.uw-smart-hero {
    padding: 64px 0 42px;
    background:
        radial-gradient(circle at 12% 10%, rgba(13, 110, 253, .16), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(25, 135, 84, .13), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #f8fff8 100%);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.uw-smart-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: center;
}

.uw-smart-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(13, 110, 253, .10);
    color: #0b5ed7;
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.uw-smart-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.16;
    font-weight: 900;
    color: #0f172a;
}

.uw-smart-hero p {
    margin: 0;
    max-width: 760px;
    color: #475569;
    line-height: 1.95;
    font-size: 1.05rem;
}

.uw-smart-hero-actions,
.uw-open-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.uw-smart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.uw-smart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .10);
    color: #0f172a;
}

.uw-smart-btn.primary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.uw-smart-card {
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.uw-smart-note-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uw-smart-note-card > i {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: #0d6efd;
    color: #fff;
    font-size: 1.65rem;
}

.uw-smart-note-card strong {
    color: #0f172a;
    font-size: 1.15rem;
}

.uw-smart-note-card span {
    color: #64748b;
    line-height: 1.8;
}

.uw-smart-section {
    padding: 42px 0;
    background: #f8fafc;
}

.uw-smart-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.uw-smart-chat-panel,
.uw-smart-side-panel,
.uw-open-card,
.uw-open-policy-card,
.uw-open-stat {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.uw-smart-chat-panel {
    overflow: hidden;
}

.uw-smart-chat-head {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
}

.uw-smart-chat-head strong,
.uw-smart-side-title strong {
    display: block;
    font-size: 1.05rem;
}

.uw-smart-chat-head span {
    display: block;
    opacity: .85;
    font-size: .9rem;
    margin-top: 2px;
}

.uw-smart-chat-head > i {
    font-size: 2rem;
    opacity: .9;
}

.uw-smart-messages {
    min-height: 440px;
    max-height: 590px;
    overflow-y: auto;
    padding: 22px;
    background:
        linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .92)),
        repeating-linear-gradient(45deg, rgba(13, 110, 253, .05) 0, rgba(13, 110, 253, .05) 1px, transparent 1px, transparent 14px);
}

.uw-smart-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.uw-smart-message.user {
    flex-direction: row-reverse;
}

.uw-smart-message .avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7f1ff;
    color: #0d6efd;
}

.uw-smart-message.user .avatar {
    background: #e9f7ef;
    color: #198754;
}

.uw-smart-message .bubble {
    max-width: min(720px, 82%);
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    color: #334155;
    line-height: 1.85;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
    border: 1px solid rgba(15, 23, 42, .08);
}

.uw-smart-message.user .bubble {
    background: #198754;
    color: #fff;
    border-color: #198754;
}

.uw-smart-form {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
}

.uw-smart-form input {
    flex: 1;
    height: 48px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
}

.uw-smart-form input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .10);
}

.uw-smart-form button {
    border: 0;
    border-radius: 16px;
    padding: 0 20px;
    background: #0d6efd;
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.uw-smart-side-panel {
    padding: 20px;
    position: sticky;
    top: 92px;
}

.uw-smart-side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    margin-bottom: 14px;
}

.uw-smart-side-title i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #0d6efd;
    background: #e7f1ff;
}

.uw-smart-question-grid,
.uw-smart-link-list {
    display: grid;
    gap: 10px;
}

.uw-smart-question {
    text-align: inherit;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, .09);
    background: #f8fafc;
    border-radius: 16px;
    padding: 13px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px 11px;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.uw-smart-question:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: rgba(13, 110, 253, .35);
}

.uw-smart-question i {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #0d6efd;
}

.uw-smart-question strong {
    color: #0f172a;
    font-size: .92rem;
}

.uw-smart-question span {
    color: #64748b;
    font-size: .82rem;
}

.uw-smart-link-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 14px;
    color: #0f172a;
    background: #f8fafc;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(15, 23, 42, .07);
}

.uw-smart-link-list a:hover {
    background: #e7f1ff;
    color: #0b5ed7;
}

.uw-smart-results {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.uw-smart-result {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, .08);
}

.uw-smart-result:hover {
    background: #fff;
    color: #0b5ed7;
}

.uw-smart-result span {
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 900;
}

.uw-smart-result strong {
    color: inherit;
}

.uw-smart-result small {
    color: #64748b;
    line-height: 1.7;
}

.uw-smart-result em {
    font-style: normal;
    font-size: .82rem;
    font-weight: 900;
    color: #198754;
}

.uw-smart-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.uw-smart-suggestions button {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: #e7f1ff;
    color: #0b5ed7;
    font-weight: 800;
}

.uw-smart-loading i {
    display: inline-block;
    margin-inline-end: 8px;
    animation: uwSmartSpin .9s linear infinite;
}

@keyframes uwSmartSpin {
    to { transform: rotate(360deg); }
}

.uw-open-data-hero {
    background:
        radial-gradient(circle at 15% 12%, rgba(25, 135, 84, .16), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(13, 110, 253, .14), transparent 30%),
        linear-gradient(135deg, #f7fff9 0%, #f4fbff 100%);
}

.uw-open-stat-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}

.uw-open-stat {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.uw-open-stat i {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #e7f1ff;
    color: #0d6efd;
}

.uw-open-stat span {
    color: #64748b;
    font-size: .86rem;
    font-weight: 800;
}

.uw-open-stat strong {
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 900;
}

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

.uw-open-card {
    padding: 22px;
}

.uw-open-card-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.uw-open-card-head i {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #e9f7ef;
    color: #198754;
    font-size: 1.35rem;
}

.uw-open-card h2 {
    margin: 0 0 3px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
}

.uw-open-card-head span,
.uw-open-meta {
    color: #64748b;
    font-size: .88rem;
    font-weight: 800;
}

.uw-open-card p {
    color: #475569;
    line-height: 1.8;
    margin: 0 0 14px;
}

.uw-open-actions {
    margin-top: 16px;
}

.uw-open-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.uw-open-policy-card {
    padding: 20px;
    display: grid;
    gap: 10px;
}

.uw-open-policy-card i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff3cd;
    color: #b58105;
}

.uw-open-policy-card strong {
    color: #0f172a;
    font-size: 1.02rem;
}

.uw-open-policy-card span {
    color: #64748b;
    line-height: 1.8;
}

html[dir="ltr"] .uw-smart-result em i {
    transform: rotate(180deg);
}

@media (max-width: 1199.98px) {
    .uw-open-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .uw-smart-hero-grid,
    .uw-smart-shell,
    .uw-open-grid,
    .uw-open-policy-grid {
        grid-template-columns: 1fr;
    }

    .uw-smart-side-panel {
        position: static;
    }

    .uw-open-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .uw-smart-hero { padding: 42px 0 30px; }
    .uw-smart-form { flex-direction: column; }
    .uw-smart-form button { min-height: 46px; justify-content: center; }
    .uw-smart-message .bubble { max-width: 100%; }
    .uw-open-stat-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Floating Smart Assistant Widget
   ========================================================= */
.uw-smart-floating {
    position: fixed;
    inset-block-end: 96px;
    inset-inline-end: 24px;
    z-index: 1085;
    font-family: inherit;
    color: #0f172a;
}

html[dir="ltr"] .uw-smart-floating {
    inset-inline-start: 24px;
    inset-inline-end: auto;
}

.uw-smart-floating-toggle {
    position: relative;
    border: 0;
    min-height: 58px;
    max-width: min(270px, calc(100vw - 48px));
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd 0%, #084eb0 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 42px rgba(13, 110, 253, .32), 0 6px 16px rgba(15, 23, 42, .12);
    cursor: pointer;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.uw-smart-floating-toggle:hover,
.uw-smart-floating-toggle:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgba(13, 110, 253, .42), 0 8px 20px rgba(15, 23, 42, .16);
    outline: none;
}

.uw-smart-floating-toggle:focus-visible {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .18), 0 22px 54px rgba(13, 110, 253, .42);
}

.uw-smart-floating-toggle-pulse {
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background: rgba(13, 110, 253, .22);
    z-index: -1;
    animation: uwSmartPulse 2.4s ease-in-out infinite;
}

.uw-smart-floating-toggle-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20);
    font-size: 1.25rem;
}

.uw-smart-floating-toggle-text {
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.uw-smart-floating-toggle-badge {
    min-width: 28px;
    height: 24px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .20);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.uw-smart-floating-panel {
    position: absolute;
    inset-inline-end: 0;
    inset-block-end: 76px;
    width: min(580px, calc(100vw - 32px));
    height: min(780px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .22), 0 0 0 1px rgba(255, 255, 255, .55) inset;
    transform: translateY(18px) scale(.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: bottom right;
    transition: opacity .2s ease, visibility .2s ease, transform .24s cubic-bezier(.2, .9, .2, 1);
}

html[dir="ltr"] .uw-smart-floating-panel {
    inset-inline-start: 0;
    inset-inline-end: auto;
    transform-origin: bottom left;
}

.uw-smart-floating.is-open .uw-smart-floating-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.uw-smart-floating.is-open .uw-smart-floating-toggle-pulse {
    display: none;
}

.uw-smart-floating-head {
    padding: 16px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    gap: 12px;
    align-items: center;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .30), transparent 32%),
        linear-gradient(135deg, #0d6efd, #0a58ca 58%, #073b82);
    color: #fff;
}

.uw-smart-floating-head-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    font-size: 1.55rem;
}

.uw-smart-floating-head-text {
    min-width: 0;
}

.uw-smart-floating-head-text strong {
    display: block;
    font-size: 1.03rem;
    font-weight: 900;
    line-height: 1.25;
}

.uw-smart-floating-head-text span {
    display: block;
    margin-top: 3px;
    opacity: .88;
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uw-smart-floating-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.uw-smart-floating-close:hover,
.uw-smart-floating-close:focus-visible {
    background: rgba(255, 255, 255, .24);
    transform: rotate(4deg);
    outline: none;
}

.uw-smart-floating-body {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    background:
        linear-gradient(rgba(248, 250, 252, .94), rgba(248, 250, 252, .94)),
        radial-gradient(circle at 14% 22%, rgba(13, 110, 253, .15), transparent 30%),
        radial-gradient(circle at 86% 0%, rgba(25, 135, 84, .13), transparent 28%);
}

.uw-smart-floating-messages {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 22px;
    scroll-behavior: smooth;
}

.uw-smart-floating .uw-smart-message {
    margin-bottom: 12px;
}

.uw-smart-floating .uw-smart-message .avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 13px;
}

.uw-smart-floating .uw-smart-message .bubble {
    max-width: 88%;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 1rem;
    line-height: 1.75;
}

.uw-smart-floating-quick {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .70);
}

.uw-smart-floating-quick-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #0f172a;
    font-size: .82rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.uw-smart-floating-quick-title i {
    color: #f59e0b;
}

.uw-smart-floating-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.uw-smart-floating-chip,
.uw-smart-floating-footer button {
    border: 1px solid rgba(13, 110, 253, .15);
    border-radius: 999px;
    min-height: 34px;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0b5ed7;
    background: #e7f1ff;
    font-weight: 800;
    font-size: .82rem;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.uw-smart-floating-chip:hover,
.uw-smart-floating-chip:focus-visible,
.uw-smart-floating-footer button:hover,
.uw-smart-floating-footer button:focus-visible {
    transform: translateY(-1px);
    background: #fff;
    border-color: rgba(13, 110, 253, .35);
    outline: none;
}

.uw-smart-floating-form {
    padding: 16px;
    gap: 12px;
    box-shadow: 0 -12px 28px rgba(15, 23, 42, .05);
}

.uw-smart-floating-form input {
    height: 54px;
    border-radius: 18px;
    font-size: 1rem;
}

.uw-smart-floating-form button {
    height: 54px;
    border-radius: 18px;
    padding-inline: 20px;
    flex: 0 0 auto;
}

.uw-smart-floating.is-loading .uw-smart-floating-form button {
    opacity: .72;
    cursor: wait;
}

.uw-smart-floating-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 14px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    border-top: 1px solid rgba(15, 23, 42, .06);
    background: #fff;
}

.uw-smart-floating-footer button {
    min-height: 28px;
    padding: 5px 9px;
    font-size: .76rem;
    background: #f8fafc;
    color: #334155;
    border-color: rgba(15, 23, 42, .09);
}

.uw-smart-floating .uw-smart-results {
    gap: 8px;
}

.uw-smart-floating .uw-smart-result {
    padding: 10px;
    border-radius: 13px;
}

.uw-smart-floating .uw-smart-result span {
    font-size: .72rem;
}

.uw-smart-floating .uw-smart-result strong {
    font-size: .9rem;
}

.uw-smart-floating .uw-smart-result small {
    font-size: .8rem;
}

.uw-smart-floating .uw-smart-suggestions button {
    font-size: .78rem;
    padding: 6px 10px;
}

@keyframes uwSmartPulse {
    0%, 100% {
        opacity: .55;
        transform: scale(.98);
    }
    50% {
        opacity: 0;
        transform: scale(1.15);
    }
}

@media (max-width: 575.98px) {
    .uw-smart-floating {
        inset-inline: 14px;
        inset-block-end: 82px;
    }

    html[dir="ltr"] .uw-smart-floating {
        inset-inline: 14px;
    }

    .uw-smart-floating-toggle {
        width: 100%;
        justify-content: center;
        min-height: 54px;
    }

    .uw-smart-floating-panel {
        width: 100%;
        inset-inline: 0;
        inset-block-end: 68px;
        height: calc(100vh - 108px);
        max-height: calc(100vh - 108px);
        border-radius: 24px;
    }

    html[dir="ltr"] .uw-smart-floating-panel {
        inset-inline: 0;
    }

    .uw-smart-floating-head-text span {
        white-space: normal;
        line-height: 1.35;
    }

    .uw-smart-floating-messages {
        max-height: none;
        padding: 16px;
    }

    .uw-smart-floating-form {
        flex-direction: row;
    }

    .uw-smart-floating-form button span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uw-smart-floating-toggle,
    .uw-smart-floating-panel,
    .uw-smart-floating-chip,
    .uw-smart-floating-footer button,
    .uw-smart-floating-close {
        transition: none !important;
        animation: none !important;
    }

    .uw-smart-floating-toggle-pulse {
        display: none !important;
    }
}
