.auth-page {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.auth-shell .container-fluid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.auth-stage {
    width: 100%;
    min-height: calc(100vh - 2rem);
    display: flex;
}

.auth-showcase,
.auth-form-panel {
    position: relative;
    min-height: 100%;
}

.auth-showcase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 146, 91, 0.12) 0%, rgba(233, 61, 225, 0.08) 52%, transparent 100%),
        radial-gradient(circle at 0% 0%, rgba(248, 200, 214, 0.12), transparent 32%);
}

.auth-showcase::before,
.auth-showcase::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
}

.auth-showcase::before {
    width: 11rem;
    height: 11rem;
    top: -2.5rem;
    right: -3rem;
    background: radial-gradient(circle, rgba(255, 146, 91, 0.42) 0%, rgba(255, 100, 110, 0.05) 72%, transparent 100%);
}

.auth-showcase::after {
    width: 12rem;
    height: 12rem;
    bottom: -3rem;
    left: -3rem;
    background: radial-gradient(circle, rgba(140, 123, 232, 0.32) 0%, rgba(189, 169, 212, 0.05) 70%, transparent 100%);
}

.auth-copy {
    position: relative;
    z-index: 1;
    width: 100%;
}

.auth-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.auth-lead {
    max-width: 38rem;
    margin: 1.15rem 0 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.75;
}

.auth-showcase--login .auth-copy {
    max-width: 100%;
}

.auth-showcase--login .auth-lead {
    max-width: 100%;
}

.login-page .auth-showcase--login .auth-copy {
    padding-inline: 0.7rem;
}

.auth-lead-secondary {
    margin-top: 1.4rem;
}

.auth-ai-panel {
    position: relative;
    z-index: 1;
    min-height: 24rem;
    margin-top: 2rem;
    display: grid;
    place-items: center;
}

.auth-message-card {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding: 1.4rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 146, 91, 0.1) 0%, rgba(233, 61, 225, 0.08) 100%),
        rgba(21, 21, 28, 0.55);
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(8px);
}

.auth-message-card__kicker {
    margin: 0 0 0.75rem;
    color: var(--accent-orange);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-message-card__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3.2vw, 1.55rem);
    line-height: 1.45;
    color: var(--text-primary);
}

.auth-ai-core {
    --gold-100: #fff2b2;
    --gold-300: #ffd875;
    --gold-500: #f4b942;
    --gold-700: #b96f16;
    --gold-rgb: 244, 185, 66;
    --core-size: clamp(270px, 52vw, 430px);
    --state-intensity: 0.72;
    --pulse-duration: 5.8s;
    --halo-duration: 14s;
    --vibration-x: 0px;
    --vibration-y: 0px;
    position: relative;
    width: var(--core-size);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    isolation: isolate;
    transform: translate3d(var(--vibration-x), var(--vibration-y), 0);
    transition: filter 500ms ease;
    contain: layout paint style;
}

.auth-ai-core::before {
    content: "";
    position: absolute;
    inset: 11%;
    z-index: -2;
    border-radius: 50%;
    background:
        radial-gradient(circle,
        rgba(var(--gold-rgb), calc(0.14 * var(--state-intensity))) 0%,
        rgba(var(--gold-rgb), calc(0.055 * var(--state-intensity))) 32%,
        transparent 68%);
    filter: blur(15px);
    animation: core-breathe var(--pulse-duration) ease-in-out infinite;
}

.auth-ai-core::after {
    content: "";
    position: absolute;
    inset: 5%;
    z-index: -3;
    border-radius: 50%;
    border: 1px solid rgba(var(--gold-rgb), 0.08);
    opacity: calc(0.55 * var(--state-intensity));
    animation: outer-pulse calc(var(--pulse-duration) * 1.35) ease-out infinite;
}

.ai-core__ambient {
    position: absolute;
    inset: 16%;
    z-index: -2;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg,
        transparent,
        rgba(var(--gold-rgb), 0.075),
        transparent 30%,
        rgba(255, 233, 160, 0.045),
        transparent 70%);
    filter: blur(18px);
    animation: ambient-rotation var(--halo-duration) linear infinite;
}

.ai-core__halo {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid rgba(var(--gold-rgb), 0.1);
    pointer-events: none;
}

.ai-core__halo::before,
.ai-core__halo::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-300);
    box-shadow:
        0 0 8px rgba(var(--gold-rgb), 0.75),
        0 0 18px rgba(var(--gold-rgb), 0.4);
}

.ai-core__halo::before {
    top: -3px;
    left: 50%;
}

.ai-core__halo::after {
    right: 8%;
    bottom: 18%;
}

.ai-core__halo--outer {
    inset: 5%;
    border-style: dashed;
    opacity: 0.3;
    animation: halo-spin var(--halo-duration) linear infinite;
}

.ai-core__halo--middle {
    inset: 14%;
    opacity: 0.22;
    animation: halo-spin calc(var(--halo-duration) * 0.72) linear infinite reverse;
}

.ai-core__halo--inner {
    inset: 23%;
    opacity: 0.16;
    animation: halo-spin calc(var(--halo-duration) * 0.48) linear infinite;
}

.ai-core__canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    filter:
        drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.18))
        drop-shadow(0 0 20px rgba(var(--gold-rgb), 0.08));
}

.ai-core__center {
    position: absolute;
    width: 13%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle,
        rgba(255, 248, 213, 0.97) 0%,
        rgba(255, 215, 112, 0.82) 20%,
        rgba(var(--gold-rgb), 0.18) 52%,
        transparent 72%);
    box-shadow:
        0 0 18px rgba(255, 226, 136, 0.55),
        0 0 55px rgba(var(--gold-rgb), calc(0.32 * var(--state-intensity)));
    opacity: calc(0.62 + 0.25 * var(--state-intensity));
    animation: center-breathe calc(var(--pulse-duration) * 0.72) ease-in-out infinite;
    pointer-events: none;
}

.ai-core__spark {
    width: 18%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: white;
    box-shadow:
        0 0 10px white,
        0 0 25px var(--gold-300);
}

.ai-core__status {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid rgba(var(--gold-rgb), 0.13);
    border-radius: 999px;
    color: rgba(255, 244, 210, 0.82);
    background: rgba(5, 7, 11, 0.72);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    transform: translate(-50%, 40%);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.auth-ai-core .ai-core__status {
    display: none;
}

.conversations-ai-core .ai-core__status {
    display: none;
}

.ai-core__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.75);
    animation: status-dot 2.2s ease-in-out infinite;
}

.auth-ai-core[data-state="idle"] {
    --state-intensity: 0.62;
    --pulse-duration: 6.2s;
    --halo-duration: 17s;
}

.auth-ai-core[data-state="analyzing"] {
    --state-intensity: 1;
    --pulse-duration: 2.15s;
    --halo-duration: 7.5s;
    filter: saturate(1.08) brightness(1.06);
}

.auth-ai-core[data-state="analyzing"] .ai-core__status-dot {
    animation-duration: 0.75s;
}

.auth-ai-core[data-state="responding"] {
    --state-intensity: 1.14;
    --pulse-duration: 1.65s;
    --halo-duration: 5.8s;
    filter: saturate(1.16) brightness(1.11);
}

.auth-ai-core[data-state="responding"]::after {
    animation-duration: 1.4s;
}

.auth-ai-core[data-state="finished"] {
    --state-intensity: 0.38;
    --pulse-duration: 7.5s;
    --halo-duration: 22s;
    filter: saturate(0.82) brightness(0.86);
}

.auth-ai-core[data-state="finished"] .ai-core__status-dot {
    animation: none;
    opacity: 0.62;
}

@keyframes core-breathe {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.66;
    }

    50% {
        transform: scale(1.055);
        opacity: 1;
    }
}

@keyframes center-breathe {
    0%,
    100% {
        transform: scale(0.88);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes outer-pulse {
    0% {
        transform: scale(0.83);
        opacity: 0;
    }

    25% {
        opacity: calc(0.48 * var(--state-intensity));
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes halo-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ambient-rotation {
    to {
        transform: rotate(-360deg) scale(1.08);
    }
}

@keyframes status-dot {
    0%,
    100% {
        transform: scale(0.72);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.auth-form-panel {
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.auth-form-panel__inner {
    max-width: 34rem;
    padding: 1.5rem;
    margin: 0 auto;
}

.auth-form-panel--login .auth-form-panel__inner {
    width: 100%;
}

.login-page .auth-shell {
    min-height: 100dvh;
    padding: 0.75rem;
}

.login-page .auth-stage {
    height: calc(100dvh - 1.5rem);
    min-height: calc(100dvh - 1.5rem);
}

.login-page .auth-stage > .row {
    flex: 1 1 auto;
    min-height: 100%;
}

.login-page .auth-stage > .row > [class*="col-"] {
    display: flex;
}

.login-page .auth-showcase {
    padding: 1.2rem 1.25rem 1rem;
}

.login-page .auth-showcase--login,
.login-page .auth-form-panel--login {
    width: 100%;
}

.login-page .auth-title {
    font-size: clamp(1.9rem, 5.2vw, 3.15rem);
    line-height: 1.02;
}

.login-page .auth-lead {
    max-width: 100%;
    margin-top: 0.9rem;
    font-size: 0.94rem;
    line-height: 1.62;
}

.login-page .auth-ai-panel {
    min-height: 17rem;
    margin-top: 1.15rem;
}

.login-page .auth-ai-core {
    --core-size: clamp(220px, 34vw, 320px);
}

.login-page .auth-form-panel__inner {
    max-width: 28.75rem;
    padding: 1.25rem;
}

.login-page .auth-form-title {
    font-size: clamp(1.9rem, 4.2vw, 2.7rem);
}

.login-page .auth-form-copy {
    margin: 0.75rem 0 1.2rem;
}

.auth-form-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.auth-form-copy {
    margin: 0.9rem 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.auth-meta {
    display: flex;
    justify-content: flex-end;
}

.auth-link {
    color: var(--accent-orange);
    font-weight: 600;
}

.auth-link:hover,
.auth-link:focus {
    color: #ffb28a;
}

.password-toggle {
    min-width: 3.6rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.reset-link-card {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.reset-link-card__label {
    margin: 0 0 0.85rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.dashboard-page {
    min-height: 100vh;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top right, rgba(255, 146, 91, 0.12), transparent 20%),
        radial-gradient(circle at bottom left, rgba(140, 123, 232, 0.14), transparent 18%),
        var(--bg-app);
}

.admin-sidebar-offcanvas {
    --bs-offcanvas-width: 290px;
    background: transparent;
    border-right: 0;
}

.admin-sidebar {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(23, 24, 30, 0.98) 0%, rgba(16, 17, 23, 0.98) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.admin-brand__mark {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(233, 61, 225, 0.18), rgba(255, 146, 91, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.admin-brand__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.admin-brand__meta {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.admin-sidebar__close {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

.admin-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-context-pill--muted {
    color: var(--text-secondary);
}

.admin-nav {
    display: grid;
    gap: 0.8rem;
}

.admin-nav__group {
    display: grid;
    gap: 0.4rem;
}

.admin-nav__label {
    margin: 0 0 0.25rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-nav__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-nav__link:hover,
.admin-nav__link:focus {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.admin-nav__link.is-active {
    color: #fff;
    background: linear-gradient(90deg, var(--accent-pink) 0%, #f45eab 50%, var(--accent-orange) 100%);
    box-shadow: 0 20px 36px rgba(233, 61, 225, 0.18);
}

.admin-nav__icon {
    width: 1.15rem;
    text-align: center;
}

.admin-sidebar__footer {
    margin-top: auto;
    padding-top: 1rem;
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
}

.admin-user-card__avatar {
    position: relative;
    width: 2.65rem;
    height: 2.65rem;
    min-width: 2.65rem;
    min-height: 2.65rem;
    display: inline-flex;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(255, 146, 91, 0.22), rgba(140, 123, 232, 0.22));
    color: transparent;
    font-weight: 700;
    overflow: hidden;
}

.admin-user-card__avatar::before {
    content: attr(data-letter);
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.admin-user-card strong,
.admin-user-card span {
    display: block;
}

.admin-user-card strong {
    font-size: 0.92rem;
}

.admin-user-card span:last-child {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-main {
    min-width: 0;
    flex: 1;
    padding: 0.85rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.admin-topbar__start,
.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-topbar__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-topbar__workspace {
    align-items: center;
}

.dashboard-page .btn-firu-primary,
.dashboard-page .btn-firu-secondary,
.dashboard-page .btn-firu-ghost {
    min-height: 2.9rem;
    padding: 0.7rem 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    line-height: 1.2;
    text-align: center;
}

.admin-topbar__eyebrow {
    margin: 0 0 0.18rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-topbar__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
}

.admin-menu-toggle,
.admin-icon-btn {
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-content {
    min-width: 0;
}

.dashboard-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 0.8rem;
}

.dashboard-stage::before {
    content: "";
    position: absolute;
    top: 10rem;
    left: 50%;
    z-index: -1;
    width: min(42rem, 72vw);
    height: min(42rem, 72vw);
    border-radius: 50%;
    transform: translateX(-50%);
    background:
        radial-gradient(circle,
        rgba(244, 144, 177, 0.26) 0%,
        rgba(255, 100, 110, 0.18) 26%,
        rgba(255, 146, 91, 0.14) 46%,
        rgba(255, 146, 91, 0.06) 62%,
        transparent 78%);
    filter: blur(42px);
    pointer-events: none;
}

.dashboard-hero,
.dashboard-panel,
.dashboard-section-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(21, 21, 28, 0.96) 0%, rgba(18, 19, 27, 0.98) 100%);
    box-shadow: var(--shadow-glow);
}

.dashboard-hero {
    padding: 1.15rem;
    display: grid;
    gap: 1rem;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto -4rem -4rem 35%;
    height: 12rem;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 146, 91, 0.95), transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(244, 144, 177, 0.7), transparent 34%),
        radial-gradient(circle at 80% 40%, rgba(255, 100, 110, 0.84), transparent 30%);
    opacity: 0.9;
    filter: blur(6px);
    pointer-events: none;
}

.dashboard-hero__content,
.dashboard-level-card,
.dashboard-section-hero {
    position: relative;
    z-index: 1;
}

.dashboard-hero__eyebrow {
    margin: 0 0 0.6rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-hero__title,
.dashboard-section-hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3.5vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-hero__copy,
.dashboard-section-hero__copy {
    max-width: 42rem;
    margin: 0.75rem 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dashboard-level-card {
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.45rem;
    background:
        linear-gradient(180deg, rgba(217, 143, 210, 0.18) 0%, rgba(221, 183, 221, 0.12) 45%, rgba(166, 200, 245, 0.12) 75%, rgba(140, 123, 232, 0.18) 100%),
        rgba(21, 21, 28, 0.55);
    max-width: 20rem;
}

.dashboard-level-card__label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.dashboard-level-card__value {
    display: block;
    margin-top: 0.65rem;
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: capitalize;
}

.dashboard-level-card__copy {
    margin: 0.75rem 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.dashboard-level-card--progress {
    gap: 0.85rem;
}

.dashboard-progress {
    width: 100%;
    height: 0.62rem;
    margin-top: 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.dashboard-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-coral), var(--accent-orange));
    box-shadow: 0 0 16px rgba(255, 146, 91, 0.28);
}

.dashboard-level-card__meta {
    margin: 0.85rem 0 0;
    color: rgba(244, 243, 246, 0.76);
    font-size: 0.84rem;
    line-height: 1.55;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.dashboard-grid--kpi {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.dashboard-card {
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #1a1b22 0%, #15151c 100%);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.dashboard-card--kpi {
    position: relative;
    overflow: hidden;
}

.dashboard-card--kpi::after {
    content: "";
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 146, 91, 0.22) 0%, rgba(255, 146, 91, 0) 72%);
    pointer-events: none;
}

.dashboard-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-card__label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-card__value {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.5;
}

.dashboard-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 1rem;
}

.dashboard-card__hint {
    position: relative;
    z-index: 1;
    margin: 0.7rem 0 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.dashboard-card--success {
    border-color: rgba(22, 184, 178, 0.26);
}

.dashboard-card--warning {
    border-color: rgba(255, 146, 91, 0.28);
}

.dashboard-card--pending {
    border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-panels {
    display: grid;
    gap: 0.8rem;
}

.dashboard-panels--split {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-panel {
    padding: 1.1rem;
}

.dashboard-panel--note {
    background:
        linear-gradient(180deg, rgba(255, 146, 91, 0.08) 0%, rgba(233, 61, 225, 0.06) 100%),
        linear-gradient(180deg, rgba(21, 21, 28, 0.96) 0%, rgba(18, 19, 27, 0.98) 100%);
}

.dashboard-panel__header h3 {
    margin: 0 0 0.8rem;
    font-size: 0.98rem;
}

.dashboard-panel__header--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-reel-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.dashboard-reel-controls__btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 0.9rem;
}

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
}

.dashboard-shortcut {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
}

.dashboard-shortcut:hover,
.dashboard-shortcut:focus {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-checklist {
    display: grid;
    gap: 1rem;
}

.dashboard-checklist__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
}

.dashboard-checklist__dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--accent-pink), var(--accent-orange));
    box-shadow: 0 0 12px rgba(233, 61, 225, 0.5);
}

.dashboard-checklist__item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.dashboard-info-list {
    display: grid;
    gap: 0.9rem;
}

.dashboard-info-list__item {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

.dashboard-info-list__item strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dashboard-info-list__item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.dashboard-panel--journey {
    background:
        linear-gradient(180deg, rgba(255, 146, 91, 0.06) 0%, rgba(233, 61, 225, 0.04) 100%),
        linear-gradient(180deg, rgba(21, 21, 28, 0.96) 0%, rgba(18, 19, 27, 0.98) 100%);
}

.dashboard-journey-reel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(17.5rem, 20.5rem);
    gap: 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0.15rem 0.05rem 0.2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.dashboard-journey-reel::-webkit-scrollbar {
    display: none;
}

.dashboard-journey-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #1a1b22 0%, #15151c 100%);
    scroll-snap-align: start;
    min-height: 100%;
}

.dashboard-journey-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-journey-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.95rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-journey-card__body {
    min-width: 0;
}

.dashboard-journey-card__body strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
    font-size: 0.96rem;
}

.dashboard-journey-card__body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.88rem;
}

.dashboard-journey-card__action {
    margin-top: auto;
    align-self: flex-start;
}

.dashboard-journey-card.is-complete {
    border-color: rgba(22, 184, 178, 0.2);
}

.dashboard-journey-card.is-pending {
    border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-status-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-status-pill.is-complete {
    border-color: rgba(22, 184, 178, 0.28);
    color: var(--positive);
    background: rgba(22, 184, 178, 0.08);
}

.dashboard-status-pill.is-pending {
    border-color: rgba(255, 146, 91, 0.24);
    color: #ffb58f;
    background: rgba(255, 146, 91, 0.08);
}

.dashboard-status-list {
    display: grid;
}

.dashboard-status-list__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.92rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-status-list__item:first-child {
    padding-top: 0.2rem;
    border-top: 0;
}

.dashboard-status-list__item span {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-status-list__item strong {
    max-width: 55%;
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: right;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.dashboard-summary__item {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-summary__item strong {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--text-primary);
    font-size: 0.94rem;
}

.dashboard-summary__item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.62;
}

.dashboard-section-hero {
    padding: 1.1rem;
}

.dashboard-divider {
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.company-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.8rem;
}

.company-layout > * {
    flex: 1 1 100%;
    min-width: 0;
}

.company-panel__header {
    margin-bottom: 1rem;
}

.company-panel__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.22rem;
    color: var(--text-primary);
}

.company-panel__copy {
    margin: 0.55rem 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.company-panel__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.company-panel__hint {
    margin: 0;
    max-width: 36rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.company-meta {
    display: grid;
    gap: 0.85rem;
}

.company-meta__row {
    display: grid;
    gap: 0.3rem;
}

.company-meta__row span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.company-meta__row strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.settings-panel,
.settings-aside {
    display: flex;
    flex-direction: column;
}

.settings-panel__subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.settings-maintenance {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.settings-maintenance__form {
    margin-top: 0.25rem;
}

.widget-panel,
.widget-aside {
    display: flex;
    flex-direction: column;
}

.widget-script-box {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.widget-gradient-picker {
    position: relative;
}

.widget-gradient-picker__trigger {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.05rem;
    background:
        radial-gradient(circle at top right, rgba(255, 146, 91, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    text-align: left;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.widget-gradient-picker__trigger:hover,
.widget-gradient-picker__trigger.is-open {
    border-color: rgba(255, 146, 91, 0.22);
}

.widget-gradient-picker__swatch {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--widget-gradient-start), var(--widget-gradient-end));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 10px 24px rgba(0, 0, 0, 0.18);
    flex: 0 0 auto;
}

.widget-gradient-picker__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
}

.widget-gradient-picker__copy strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.widget-gradient-picker__copy span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
}

.widget-gradient-picker__chevron {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: transform 0.18s ease;
}

.widget-gradient-picker__trigger.is-open .widget-gradient-picker__chevron {
    transform: rotate(180deg);
}

.widget-gradient-picker__panel {
    margin-top: 0.75rem;
}

.widget-color-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.05rem;
    background:
        radial-gradient(circle at top right, rgba(255, 146, 91, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.02);
}

.widget-color-card__section {
    display: grid;
    gap: 0.85rem;
}

.widget-color-card__label {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.widget-color-card__picker {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.widget-color-card__input {
    width: 3.35rem;
    height: 3.35rem;
    padding: 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(12, 13, 19, 0.92);
    cursor: pointer;
}

.widget-color-card__input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.widget-color-card__input::-webkit-color-swatch {
    border: 0;
    border-radius: 0.8rem;
}

.widget-color-card__input::-moz-color-swatch {
    border: 0;
    border-radius: 0.8rem;
}

.widget-color-card__copy {
    display: grid;
    gap: 0.2rem;
}

.widget-color-card__copy strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.widget-color-card__copy span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
}

.widget-color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.widget-color-preset {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--widget-preset-color);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.widget-color-preset:hover {
    transform: translateY(-1px) scale(1.03);
}

.widget-color-preset.is-active {
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.92),
        0 0 0 5px rgba(255, 146, 91, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.24);
}

.widget-script-box__code {
    min-height: 12rem;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
    line-height: 1.7;
    resize: none;
}

.widget-script-box__actions {
    display: flex;
    justify-content: flex-end;
}

.widget-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.02);
}

.widget-preview__panel {
    position: relative;
    min-height: 19rem;
    padding: 0.75rem;
    border-radius: 0.95rem;
    background:
        radial-gradient(circle at top right, rgba(255, 146, 91, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    overflow: hidden;
}

.widget-preview__window {
    width: min(100%, 20.5rem);
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    background: rgba(16, 17, 23, 0.88);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.widget-preview__panel.is-open .widget-preview__window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.widget-preview__window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.95rem 1rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-preview__window-header strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.widget-preview__window-header span {
    color: var(--text-secondary);
    font-size: 0.74rem;
}

.widget-preview__window-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.widget-preview__messages {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.widget-preview__message {
    max-width: 85%;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
}

.widget-preview__message p {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.6;
}

.widget-preview__message--assistant {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.widget-preview__message--visitor {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(233, 61, 225, 0.16), rgba(255, 146, 91, 0.16));
    color: var(--text-primary);
}

.widget-preview__composer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-preview__composer span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.widget-preview__composer button {
    min-height: 2.15rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 700;
}

.widget-preview__launcher {
    position: absolute;
    bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0 1.05rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--widget-preview-accent-start, #E93DE1) 0%, var(--widget-preview-accent-end, #FF925B) 100%);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(233, 61, 225, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.widget-preview__launcher:hover {
    transform: translateY(-1px);
}

.widget-preview__panel.is-open .widget-preview__launcher {
    box-shadow: 0 20px 36px rgba(233, 61, 225, 0.26);
}

.widget-preview__launcher--right {
    right: 0.9rem;
}

.widget-preview__launcher--left {
    left: 0.9rem;
}

.users-list {
    display: grid;
    gap: 0.8rem;
}

.users-list__item {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.users-list__item.is-selected {
    border-color: rgba(255, 146, 91, 0.24);
    box-shadow: 0 0 0 1px rgba(255, 146, 91, 0.08) inset;
}

.users-list__top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.users-list__avatar {
    flex: 0 0 auto;
}

.users-list__identity {
    min-width: 0;
    flex: 1;
}

.users-list__identity strong,
.users-list__identity span {
    display: block;
}

.users-list__identity strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.users-list__identity span {
    margin-top: 0.18rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.users-list__badges {
    flex: 0 0 auto;
}

.users-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.users-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.users-list__actions form {
    margin: 0;
}

.users-list__actions .btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.documents-layout > * {
    min-width: 0;
}

.documents-upload-panel,
.documents-list-panel {
    display: flex;
    flex-direction: column;
}

.documents-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.documents-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 16rem;
    padding: 1.4rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at top, rgba(255, 146, 91, 0.12), transparent 48%),
        rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.documents-dropzone:hover,
.documents-dropzone.is-dragover {
    border-color: rgba(255, 146, 91, 0.45);
    background:
        radial-gradient(circle at top, rgba(255, 146, 91, 0.18), transparent 48%),
        rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.documents-dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 1.35rem;
}

.documents-dropzone strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.documents-dropzone span {
    max-width: 17rem;
    line-height: 1.6;
}

.documents-upload-meta {
    display: grid;
    gap: 0.8rem;
}

.documents-upload-meta__row {
    display: grid;
    gap: 0.18rem;
}

.documents-upload-meta__row span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.documents-upload-meta__row strong {
    color: var(--text-primary);
    font-size: 0.94rem;
}

.documents-upload-note {
    margin-top: auto;
}

.documents-upload-note--filled {
    border-color: rgba(22, 184, 178, 0.24);
    color: var(--text-primary);
}

.documents-upload-footer {
    margin-top: auto;
}

.documents-list-panel__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.documents-search-form {
    width: min(100%, 21rem);
}

.documents-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 41rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.documents-table-head {
    display: none;
    margin-top: 0.35rem;
}

.documents-list {
    display: grid;
    gap: 0;
    padding-top: 0.55rem;
}

.documents-item {
    padding: 0.8rem 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

.documents-item__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
}

.documents-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.045);
    color: var(--accent-orange);
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.documents-item__document {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.documents-item__content {
    min-width: 0;
    flex: 1;
}

.documents-item__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.documents-item__heading strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.35;
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.documents-item__status {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.documents-item__status--ready {
    background: rgba(22, 184, 178, 0.12);
    color: #72e3de;
}

.documents-item__status--processing {
    background: rgba(197, 166, 0, 0.12);
    color: #e5d355;
}

.documents-item__status--failed {
    background: rgba(178, 30, 87, 0.12);
    color: #f17aa7;
}

.documents-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.5;
}

.documents-item__date,
.documents-item__author {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.45;
}

.documents-item__date span,
.documents-item__author span {
    display: block;
}

.documents-item__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.documents-item__actions form {
    margin: 0;
}

.documents-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0.7rem;
}

.documents-icon-btn i {
    font-size: 0.9rem;
}

.documents-delete-btn {
    color: #ffb5bf;
}

.documents-rename-form {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.documents-rename-form__label {
    font-size: 0.8rem;
}

.documents-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 100%;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.documents-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.6rem;
}

.documents-empty-state h4 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--text-primary);
}

.documents-empty-state p {
    margin: 0;
    max-width: 28rem;
    line-height: 1.7;
}

.documents-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.documents-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.documents-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.documents-pagination__link:hover,
.documents-pagination__link.is-active {
    border-color: rgba(255, 146, 91, 0.24);
    background: rgba(255, 146, 91, 0.1);
    color: var(--text-primary);
}

.conversations-layout > * {
    min-width: 0;
}

.conversations-aside,
.conversations-chat-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.conversations-aside {
    justify-content: space-between;
}

.conversations-divider {
    margin-block: 1rem;
}

.conversations-meta {
    display: grid;
    gap: 0.85rem;
}

.conversations-sources {
    display: grid;
    gap: 0.8rem;
}

.conversations-ai-stage {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    min-height: 20rem;
    padding: 0.5rem 0 0.25rem;
}

.conversations-ai-core {
    --gold-100: #fff2b2;
    --gold-300: #ffd875;
    --gold-500: #f4b942;
    --gold-700: #b96f16;
    --gold-rgb: 244, 185, 66;
    --core-size: clamp(250px, 28vw, 360px);
    --state-intensity: 0.72;
    --pulse-duration: 5.8s;
    --halo-duration: 14s;
    --vibration-x: 0px;
    --vibration-y: 0px;
    position: relative;
    width: var(--core-size);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    isolation: isolate;
    transform: translate3d(var(--vibration-x), var(--vibration-y), 0);
    transition: filter 500ms ease;
    contain: layout paint style;
}

.conversations-ai-core::before {
    content: "";
    position: absolute;
    inset: 11%;
    z-index: -2;
    border-radius: 50%;
    background:
        radial-gradient(circle,
        rgba(var(--gold-rgb), calc(0.14 * var(--state-intensity))) 0%,
        rgba(var(--gold-rgb), calc(0.055 * var(--state-intensity))) 32%,
        transparent 68%);
    filter: blur(15px);
    animation: core-breathe var(--pulse-duration) ease-in-out infinite;
}

.conversations-ai-core::after {
    content: "";
    position: absolute;
    inset: 5%;
    z-index: -3;
    border-radius: 50%;
    border: 1px solid rgba(var(--gold-rgb), 0.08);
    opacity: calc(0.55 * var(--state-intensity));
    animation: outer-pulse calc(var(--pulse-duration) * 1.35) ease-out infinite;
}

.conversations-ai-core[data-state="idle"] {
    --state-intensity: 0.62;
    --pulse-duration: 6.2s;
    --halo-duration: 17s;
}

.conversations-ai-core[data-state="analyzing"] {
    --state-intensity: 1;
    --pulse-duration: 2.15s;
    --halo-duration: 7.5s;
    filter: saturate(1.08) brightness(1.06);
}

.conversations-ai-core[data-state="analyzing"] .ai-core__status-dot {
    animation-duration: 0.75s;
}

.conversations-ai-core[data-state="responding"] {
    --state-intensity: 1.14;
    --pulse-duration: 1.65s;
    --halo-duration: 5.8s;
    filter: saturate(1.16) brightness(1.11);
}

.conversations-ai-core[data-state="responding"]::after {
    animation-duration: 1.4s;
}

.conversations-ai-core[data-state="finished"] {
    --state-intensity: 0.38;
    --pulse-duration: 7.5s;
    --halo-duration: 22s;
    filter: saturate(0.82) brightness(0.86);
}

.conversations-ai-core[data-state="finished"] .ai-core__status-dot {
    animation: none;
    opacity: 0.62;
}

.conversations-docs {
    display: grid;
    gap: 0.75rem;
}

.conversations-docs__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.conversations-docs__icon {
    position: relative;
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-orange);
    font-size: 0.95rem;
    flex: 0 0 auto;
    overflow: hidden;
}

.conversations-docs__icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.conversations-docs__item div {
    min-width: 0;
}

.conversations-docs__item strong,
.conversations-docs__item span {
    display: block;
}

.conversations-docs__item strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.conversations-docs__item span {
    margin-top: 0.14rem;
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.conversations-chat-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.conversations-chat-header__status {
    flex: 0 0 auto;
}

.conversations-chat-stream {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.7rem;
    margin-top: 0.75rem;
    padding-top: 0.2rem;
    padding-bottom: 0.15rem;
    max-height: 22rem;
    overflow-y: auto;
    padding-right: 0.3rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.conversation-bubble {
    width: fit-content;
    max-width: min(100%, 42rem);
    padding: 0.78rem 0.9rem 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.025);
}

.conversation-bubble--user {
    align-self: flex-end;
    max-width: min(100%, 20rem);
    background: linear-gradient(135deg, rgba(233, 61, 225, 0.14), rgba(255, 146, 91, 0.12));
    border-color: rgba(255, 146, 91, 0.18);
}

.conversation-bubble--assistant {
    align-self: flex-start;
}

.conversation-bubble__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.71rem;
}

.conversation-bubble__meta strong {
    color: var(--text-primary);
    font-size: 0.75rem;
}

.conversation-bubble__body p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.86rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.conversation-bubble__sources {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.conversation-bubble__sources > span {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.conversation-bubble__source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.conversation-bubble__correction {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 146, 91, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 146, 91, 0.06);
}

.conversation-bubble__correction span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.conversation-bubble__correction p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.conversation-bubble__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.conversation-bubble__hint {
    margin: 0.65rem 0 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.5;
}

.conversation-correction-form {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.conversation-correction-form__textarea {
    min-height: 6rem;
    resize: vertical;
}

.conversation-correction-form__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.conversation-bubble__action-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.55rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(22, 184, 178, 0.28);
    border-radius: 0.85rem;
    background: rgba(22, 184, 178, 0.08);
    color: var(--positive);
    font-size: 0.8rem;
    font-weight: 700;
}

.conversations-composer {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.conversations-composer__textarea {
    min-height: 2.9rem;
    max-height: 12rem;
    resize: none;
    overflow-y: auto;
}

.conversations-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 9rem;
}

.conversations-submit-btn.is-loading {
    pointer-events: none;
}

.conversations-composer__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.conversations-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.15rem;
    padding-inline: 0.85rem;
    font-size: 0.82rem;
}

.conversations-modal {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.1rem;
    background: var(--bg-panel);
    color: var(--text-primary);
}

.conversations-modal__header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1rem 0.9rem;
}

.conversations-modal__header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.conversations-modal__body {
    padding: 1rem;
}

.conversations-modal__list {
    display: grid;
    gap: 0.65rem;
}

.conversations-modal__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.conversations-modal__item:hover {
    border-color: rgba(255, 146, 91, 0.24);
    background: rgba(255, 146, 91, 0.07);
    transform: translateY(-1px);
}

.conversations-modal__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-orange);
}

.conversations-composer__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem 1rem;
}

.conversations-reset-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.55rem;
}

@media (min-width: 992px) {
    .auth-shell {
        padding: 1.5rem;
    }

    .auth-stage {
        min-height: calc(100vh - 3rem);
    }

    .auth-showcase {
        padding: 2.5rem;
    }

    .auth-ai-panel {
        min-height: 30rem;
    }

    .auth-form-panel {
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .auth-form-panel__inner {
        padding: 2.5rem;
    }

    .admin-sidebar-offcanvas {
        position: static;
        visibility: visible !important;
        transform: none !important;
        background: transparent;
    }

    .admin-sidebar {
        width: 290px;
        padding: 1.15rem 1rem;
    }

    .admin-main {
        padding: 1rem;
    }

    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr) 21rem;
        align-items: start;
        padding: 1.35rem;
    }

    .dashboard-grid--kpi {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-section-hero,
    .dashboard-panel {
        padding: 1.2rem;
    }

    .dashboard-panels {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .dashboard-journey-reel {
        grid-auto-columns: minmax(18rem, 19.5rem);
    }

    .company-layout > * {
        flex: 1 1 calc(50% - 0.4rem);
    }

    .documents-layout > :first-child {
        flex-basis: calc(30% - 0.4rem);
    }

    .documents-layout > :last-child {
        flex-basis: calc(70% - 0.4rem);
    }

    .conversations-layout > :first-child {
        flex-basis: calc(20% - 0.4rem);
    }

    .conversations-layout > :last-child {
        flex-basis: calc(80% - 0.4rem);
    }

    .conversations-chat-panel {
        height: calc(100dvh - 5rem);
        overflow: hidden;
    }

    .conversations-ai-stage {
        min-height: 0;
    }

    .conversations-aside .conversations-ai-core {
        --core-size: min(100%, 220px);
    }

    .documents-table-head {
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) 9rem 8rem 5rem;
        gap: 0.9rem;
        padding: 0.15rem 0.15rem 0.7rem;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .documents-item__main {
        grid-template-columns: minmax(0, 1.65fr) 9rem 8rem 5rem;
        align-items: center;
        gap: 0.9rem;
    }

    .documents-item__date,
    .documents-item__author {
        font-size: 0.7rem;
    }

    .documents-item__actions {
        justify-content: flex-end;
    }

    .conversations-chat-stream {
        min-height: 0;
        max-height: none;
    }

    .login-page .auth-shell {
        padding: 1rem;
    }

    .login-page .auth-stage {
        height: calc(100dvh - 2rem);
        min-height: calc(100dvh - 2rem);
    }

    .login-page .auth-showcase {
        padding: 1.75rem 1.85rem;
    }

    .login-page .auth-showcase--login .auth-copy {
        padding-inline: 1.15rem;
    }

    .login-page .auth-ai-panel {
        min-height: 19rem;
        margin-top: 1rem;
    }

    .login-page .auth-ai-core {
        --core-size: clamp(240px, 28vw, 340px);
    }

    .login-page .auth-form-panel__inner {
        max-width: 29.5rem;
        padding: 1.75rem;
    }
}

@media (max-width: 620px) {
    .auth-ai-panel {
        min-height: 20rem;
    }

    .auth-ai-core {
        --core-size: min(100%, 320px);
    }

    .conversations-ai-core {
        --core-size: min(100%, 300px);
    }

    .documents-list-panel__top,
    .documents-pagination {
        align-items: stretch;
    }

    .conversations-chat-header,
    .conversations-composer__footer {
        align-items: stretch;
    }

    .documents-table-head {
        display: none;
    }

    .documents-item__main {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .documents-search-form {
        width: 100%;
    }

    .documents-list-scroll {
        max-height: 33rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-ai-core::before,
    .auth-ai-core::after,
    .ai-core__ambient,
    .ai-core__halo,
    .ai-core__center,
    .ai-core__status-dot {
        animation-duration: 12s;
    }
}
