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

@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 0.8s linear infinite;
}

body {
    background: #030014;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 15% 50%, rgba(147, 51, 234, .15), transparent 25%), radial-gradient(circle at 85% 30%, rgba(147, 51, 234, .1), transparent 25%);
}

/* tab-content rules defined below in tab layout section */

.glass-card {
    background: rgba(255, 255, 255, .02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 51, 234, .3);
    box-shadow: 0 4px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .05);
    border-radius: 20px;
}

.expert-card {
    background: linear-gradient(145deg, rgba(147, 51, 234, .15), rgba(147, 51, 234, .05));
    border: 1px solid rgba(147, 51, 234, .4);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-areas:
        "avatar meta"
        "avatar body";
    column-gap: 16px;
    row-gap: 8px;
    backdrop-filter: blur(10px);
}

.expert-card .ec-avatar { grid-area: avatar; align-self: start; }

.expert-card .ec-meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: end;
}

.expert-card .ec-meta h3 { font-size: 16px; font-weight: 700; margin: 0; }
.expert-card .ec-meta p  { font-size: 12px; margin: 0; }

.expert-card .ec-body { grid-area: body; }

@keyframes blink-caret {
    50% { border-color: transparent }
}

.typewriter-cursor::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: currentColor;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-caret .7s step-end infinite;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc, #9333ea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(147, 51, 234, .5);
    border: 2px solid rgba(255, 255, 255, .8);
    flex-shrink: 0;
}

.btn-liquid {
    background: linear-gradient(135deg, rgba(147, 51, 234, .8), rgba(126, 34, 206, .9));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(192, 132, 252, .5);
    border-radius: 12px;
    color: #fff;
    transition: all .3s;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(147, 51, 234, .4);
}

.btn-liquid:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, .6);
}

.btn-liquid:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.input-dark {
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(147, 51, 234, .4);
    color: #fff;
    transition: all .3s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5);
}

.input-dark:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 15px rgba(147, 51, 234, .4), inset 0 2px 4px rgba(0, 0, 0, .5);
}

.social-btn {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #d1d5db;
    transition: all .3s;
}

.social-btn:hover {
    background: rgba(147, 51, 234, .2);
    border-color: rgba(147, 51, 234, .5);
    color: #fff;
}

.loader {
    border: 3px solid rgba(255, 255, 255, .1);
    border-bottom-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

.step-chips {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.step-chips::-webkit-scrollbar { display: none; }

@media (max-width: 639px) {
    .step-chips {
        justify-content: flex-start;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

.step-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .35);
}

.step-chip.locked {
    cursor: not-allowed;
    opacity: .4;
}

.step-chip.active {
    background: rgba(147, 51, 234, .5);
    border-color: rgba(192, 132, 252, .7);
    color: #fff;
    box-shadow: 0 0 20px rgba(147, 51, 234, .4);
}

.step-chip.done {
    background: rgba(34, 197, 94, .15);
    border-color: rgba(34, 197, 94, .4);
    color: rgba(34, 197, 94, .9);
    cursor: pointer;
}

.step-chip .chip-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, .1);
    flex-shrink: 0;
}

.step-chip.active .chip-num {
    background: rgba(255, 255, 255, .25);
}

.step-chip.done .chip-num {
    background: rgba(34, 197, 94, .3);
}

.phone-mockup {
    width: 330px;
    height: 680px;
    border-radius: 44px;
    border: 5px solid #2a2a2e;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.phone-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 39px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.phone-inner iframe {
    width: 430px;
    height: 932px;
    transform: scale(0.744);
    transform-origin: top left;
    border: none;
    display: block;
    pointer-events: none;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: grab;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 32px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.phone-notch::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #111;
    border-radius: 50%;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 5px;
    background: rgba(255, 255, 255, .25);
    border-radius: 5px;
    z-index: 20;
    pointer-events: none;
}

.tz-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 14px;
    transition: all .2s;
    position: relative;
}

.tz-card:hover {
    border-color: rgba(147, 51, 234, .4);
}

.tz-card.dragging {
    opacity: .4;
    border-style: dashed;
}

.tz-card.drag-over {
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(147, 51, 234, .3);
}

.tz-grip {
    cursor: grab;
    color: rgba(255, 255, 255, .25);
    font-size: 18px;
    line-height: 1;
    padding: 4px 2px;
    flex-shrink: 0;
    user-select: none;
}

.tz-grip:active {
    cursor: grabbing;
}

.tz-delete {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .2);
    font-size: 18px;
    cursor: pointer;
    transition: color .2s;
    padding: 4px;
}

.tz-delete:hover {
    color: #ef4444;
}

.tz-name,
.tz-desc {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: inherit;
    font-family: inherit;
    padding: 4px 8px;
    transition: border-color .2s, background .2s;
    resize: none;
    box-sizing: border-box;
    overflow-y: hidden;
}

.tz-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
    min-height: 28px;
}

.tz-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    min-height: 28px;
}

.tz-name:hover,
.tz-desc:hover {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
}

.tz-name:focus,
.tz-desc:focus {
    outline: none;
    border-color: rgba(147, 51, 234, .5);
    background: rgba(147, 51, 234, .05);
}

.canvas-wrap {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    border-radius: 16px;
    background: #0a0a12;
    border: 1px solid rgba(255, 255, 255, .06);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.canvas-wrap .dot-grid {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .4) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.canvas-inner {
    position: absolute;
    transform-origin: 0 0;
    display: flex;
    gap: 60px;
    padding: 60px;
    align-items: flex-start;
    will-change: transform;
    cursor: grab;
}

.canvas-inner:active {
    cursor: grabbing;
}

.canvas-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

/* ── Tab layout: scroll body, fixed actions ── */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity .3s;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.tab-content.active {
    display: flex;
    opacity: 1;
}

.tab-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: clip;
    min-height: 0;
    padding: 2px 2px 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 51, 234, .3) transparent;
}

.tab-body::-webkit-scrollbar { width: 4px; }
.tab-body::-webkit-scrollbar-track { background: transparent; }
.tab-body::-webkit-scrollbar-thumb { background: rgba(147, 51, 234, .3); border-radius: 2px; }

/* Tab-1: vertically center idea form */
.tab-body--centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Scroll-hide: collapse wrappers so scroll zone grows in all directions */
#top-bar-wrap,
#chips-wrap {
    transition: max-height 0.35s ease, margin-top 0.35s ease, margin-bottom 0.35s ease, opacity 0.35s ease;
}
#top-bar-wrap {
    overflow: hidden;
    width: 100%;
    max-width: 72rem;     /* matches max-w-6xl — aligns with main-container */
    max-height: 80px;
    margin-top: 16px;     /* moved from body pt-4 so it can animate */
    margin-bottom: 8px;
}
#chips-wrap {
    /* clip clips vertically for collapse animation without forcing overflow-x to auto
       (unlike hidden, which would clip the horizontally-scrolling chips) */
    overflow-y: clip;
    max-height: 60px;
    margin-bottom: 12px;
}
#top-bar-wrap.ui-hidden {
    max-height: 0;
    margin-top: 8px; /* keep small gap from top edge when hidden */
    margin-bottom: 0;
    opacity: 0;
    pointer-events: none;
}
#chips-wrap.ui-hidden {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

/* Canvas tab: canvas fills remaining space */
.tab-body--canvas {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-body--canvas .canvas-wrap {
    flex: 1;
    height: auto;
    min-height: 200px;
}

/* ── Tab action buttons ── */
.tab-actions {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: none;
}

.tab-actions > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    white-space: nowrap;
}

/* ── Footer ── */
.footer-main {
    font-size: 11px;
    color: #4b5563;
    padding: 6px 0 2px;
    margin-top: 4px;
}

/* ── Mobile: compact expert card ── */
@media (max-width: 639px) {
    .expert-card {
        grid-template-columns: 36px 1fr;
        grid-template-areas:
            "avatar meta"
            "body   body";
        column-gap: 10px;
        row-gap: 8px;
        padding: 12px;
    }

    .expert-card .ec-avatar {
        width: 36px;
        height: 36px;
        align-self: center;
    }

    .expert-card .ec-meta { align-self: center; }
    .expert-card .ec-meta h3 { font-size: 14px; }
    .expert-card .ec-meta p  { font-size: 11px; }
}

/* ── Mobile: no glass, full height, flush ── */
@media (max-width: 639px) {
    body {
        padding: 8px 0 0 !important;
        gap: 0;
    }

    /* body already provides top gap on mobile — reset wrapper margin */
    #top-bar-wrap {
        margin-top: 0;
    }

    .main-container {
        border-radius: 0 !important;
        border: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tab-actions > button {
        flex: 1;
        font-size: 14px;
        padding: 12px 10px;
    }

    .footer-main {
        font-size: 10px;
        padding: 4px 0 2px;
    }
}

.canvas-estimate-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.canvas-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    backdrop-filter: blur(12px);
}

.canvas-btn:hover {
    background: rgba(147, 51, 234, .3);
    border-color: rgba(147, 51, 234, .5);
}

.canvas-zoom-label {
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .5);
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
}

/* ── Highlights (key features) ── */
.highlight-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(147, 51, 234, .1), rgba(147, 51, 234, .04));
    border: 1px solid rgba(147, 51, 234, .25);
    backdrop-filter: blur(8px);
}

.highlight-emoji {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.highlight-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    line-height: 1.4;
}

.add-screen-card {
    width: 330px;
    height: 680px;
    border-radius: 44px;
    border: 3px dashed rgba(147, 51, 234, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all .3s;
    background: rgba(147, 51, 234, .03);
    flex-shrink: 0;
}

.add-screen-card:hover {
    border-color: rgba(147, 51, 234, .6);
    background: rgba(147, 51, 234, .08);
}

.style-card {
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all .3s;
    background: rgba(255, 255, 255, .03);
    width: 160px;
    flex-shrink: 0;
}

.style-card:hover {
    border-color: rgba(147, 51, 234, .4);
}

.style-card.active {
    border-color: #c084fc;
    box-shadow: 0 0 20px rgba(147, 51, 234, .4);
}

.style-card .style-preview {
    height: 80px;
    overflow: hidden;
    position: relative;
}

.style-card .style-label {
    padding: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.estimate-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}

.estimate-table th {
    background: rgba(147, 51, 234, .15);
    color: #c084fc;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(147, 51, 234, .2);
}

.estimate-table td {
    padding: 10px 14px;
    font-size: 13px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.estimate-table tr:last-child td {
    border-bottom: none;
}

.estimate-table .row-total td {
    font-weight: 700;
    color: #22c55e;
    border-top: 2px solid rgba(34, 197, 94, .3);
}

.estimate-table .row-savings td {
    font-size: 12px;
    font-weight: 600;
    color: #4ade80;
    background: rgba(34, 197, 94, .06);
    border-bottom: none;
}

.complexity-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.complexity-low {
    background: rgba(34, 197, 94, .15);
    color: #22c55e;
}

.complexity-med {
    background: rgba(234, 179, 8, .15);
    color: #eab308;
}

.complexity-high {
    background: rgba(239, 68, 68, .15);
    color: #ef4444;
}

.add-popup {
    position: fixed;
    z-index: 200;
    background: rgba(10, 10, 20, .95);
    border: 1px solid rgba(147, 51, 234, .4);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .8);
    max-height: 400px;
    overflow-y: auto;
    min-width: 220px;
}

.add-popup-item {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-popup-item:hover {
    background: rgba(147, 51, 234, .2);
    color: #fff;
}

/* ── Shimmer CTA "Обсудить проект" ── */
@keyframes discuss-sheen {
    0%   { left: -80%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}
.btn-discuss {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #9333ea 100%);
    border: 1px solid rgba(192, 132, 252, .55);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 4px 18px rgba(147, 51, 234, .45), 0 0 0 0 rgba(147,51,234,.3);
    white-space: nowrap;
    letter-spacing: .01em;
}
.btn-discuss::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.32) 50%, transparent 100%);
    transform: skewX(-18deg);
    animation: discuss-sheen 3s ease-in-out infinite;
}
.btn-discuss:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(147, 51, 234, .65), 0 0 0 3px rgba(147,51,234,.2);
}

/* ── Discount pulse badge ── */
@keyframes discount-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .4); }
    50%       { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
.discount-pulse {
    animation: discount-pulse 2s ease infinite;
}

/* ── Selling points row ── */
.sell-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
}
.sell-point-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* ── AI Loader ── */
@keyframes ai-spin {
    to { transform: rotate(360deg); }
}
@keyframes ai-loader-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ai-loader-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes ai-dot-pulse {
    0%, 80%, 100% { transform: scale(1); opacity: .45; }
    40% { transform: scale(1.5); opacity: 1; }
}
@keyframes ai-mock-line-in {
    0%   { transform: scaleX(0); opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: scaleX(1); opacity: .42; }
}
@keyframes ai-mock-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
@keyframes ai-mock-card-in {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: .18; transform: translateY(0); }
}
@keyframes ai-mock-avatar-in {
    0%   { opacity: 0; transform: scale(.8); }
    100% { opacity: .32; transform: scale(1); }
}

.ai-loader-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;          /* fill the same space as .tab-body */
    min-height: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    animation: ai-loader-in .25s ease;
    background: rgba(255, 255, 255, .015);
    border: 1px solid rgba(147, 51, 234, .12);
}
.ai-loader-overlay.hiding {
    animation: ai-loader-out .25s ease forwards;
    pointer-events: none;
}
.ai-loader-overlay.hidden { display: none; }

.ai-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 0, 14, .55);
}

.ai-mock-bg {
    position: absolute;
    inset: 0;
    padding: 32px 40px;
    pointer-events: none;
}
.ai-mock-line {
    position: relative;
    overflow: hidden;
}
.ai-mock-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, .55) 50%,
        transparent 100%
    );
    animation: ai-mock-shimmer 3.2s ease 1.4s infinite;
}
.ai-mock-expert-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.ai-mock-avatar-circle {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(192, 132, 252, .3);
    border: 2px solid rgba(192, 132, 252, .2);
    flex-shrink: 0;
    animation: ai-mock-avatar-in .45s ease forwards;
    opacity: 0;
}
.ai-mock-line {
    border-radius: 5px;
    transform-origin: left center;
    background: rgba(147, 51, 234, .22);
    animation: ai-mock-line-in .65s ease forwards;
    opacity: 0;
}
.ai-mock-card-block {
    border-radius: 12px;
    background: rgba(147, 51, 234, .1);
    border: 1px solid rgba(192, 132, 252, .12);
    animation: ai-mock-card-in .45s ease forwards;
    opacity: 0;
}

.ai-loader-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.ai-loader-ring {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(147, 51, 234, .18);
    border-top-color: #c084fc;
    border-right-color: #a855f7;
    animation: ai-spin .8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(192,132,252,.55));
}
.ai-loader-msg {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -.01em;
    text-align: center;
    min-width: 200px;
    transition: opacity .22s, transform .22s;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.02); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(147,51,234,.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(147,51,234,.5); }
