:root {
    --font-family-base: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --modern-bg: #F5F7FB;
    --modern-surface: #FFFFFF;
    --modern-ink: #171A21;
    --modern-muted: #4B5565;
    --modern-line: #E6E9F0;
    --modern-blue: #356DF3;
    --modern-blue-soft: #C9D9FF;
    --modern-pink: #FFD3E2;
    --modern-mint: #CDEFE2;
    --modern-yellow: #FFE49A;
}

html {
    -webkit-text-size-adjust: 100%;
}

html,
body,
input,
button,
textarea,
select {
    font-family: var(--font-family-base) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background: #E7EBF2;
    color: var(--modern-ink);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.container {
    max-width: 520px;
    height: 100dvh;
    min-height: 0;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--modern-bg);
    box-shadow: 0 0 44px rgba(24, 34, 52, 0.12);
}

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

.app-view {
    display: none !important;
}

.app-view.is-active {
    display: block !important;
    animation: appViewIn 220ms ease both;
}

@keyframes appViewIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-dashboard {
    padding-bottom: 22px;
    background: var(--modern-surface);
}

.app-bar {
    position: sticky;
    top: 0;
    z-index: 1200;
    height: 70px;
    padding: max(10px, env(safe-area-inset-top)) 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    transition: box-shadow 180ms ease;
}

.app-bar.is-scrolled {
    box-shadow: 0 6px 18px rgba(24, 34, 52, 0.08);
}

.app-greeting {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--modern-ink);
    text-decoration: none;
}

.app-greeting img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(24, 34, 52, 0.14);
}

.app-greeting span,
.app-greeting small,
.app-greeting strong {
    min-width: 0;
    display: block;
}

.app-greeting small {
    color: var(--modern-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.app-greeting strong {
    margin-top: 1px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.app-bar-actions .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #F2F4F8;
    color: #343A46;
}

.profile-spotlight {
    position: relative;
    min-height: 238px;
    margin: 8px 18px 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--modern-blue-soft);
}

.spotlight-copy {
    position: relative;
    z-index: 2;
    width: 62%;
    padding: 22px 0 20px 20px;
}

.spotlight-label {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    color: #1A3E85;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.spotlight-copy h1 {
    max-width: 230px;
    margin-top: 13px;
    color: #11151C;
    font-size: clamp(1.45rem, 5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.spotlight-copy p {
    max-width: 220px;
    margin-top: 9px;
    color: #2D3748;
    font-size: 13px;
    line-height: 1.5;
}

.spotlight-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.spotlight-actions a {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 7px;
    background: #11151C;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.spotlight-actions a + a {
    width: 38px;
    padding: 0;
    background: rgba(255, 255, 255, 0.85);
    color: #2E4D8D;
}

.spotlight-actions svg {
    width: 15px;
    height: 15px;
}

.spotlight-portrait {
    position: absolute;
    inset: 0 0 0 auto;
    width: 43%;
    overflow: hidden;
}

.spotlight-portrait::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.spotlight-portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 30%;
}

.category-tabs {
    margin: 14px 18px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.category-tabs a {
    min-width: 0;
    min-height: 82px;
    padding: 10px 7px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    border-radius: 8px;
    color: var(--modern-ink);
    text-decoration: none;
}

.category-tabs a:nth-child(1) { background: #D9DEFF; }
.category-tabs a:nth-child(2) { background: var(--modern-pink); }
.category-tabs a:nth-child(3) { background: var(--modern-mint); }

.category-tabs a > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
}

.category-tabs svg {
    width: 15px;
    height: 15px;
}

.category-tabs strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-content {
    display: block;
}

.view-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 64px;
    margin: -28px -18px 22px;
    padding: max(11px, env(safe-area-inset-top)) 18px 11px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--modern-line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.view-topbar > a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #F2F4F8;
    color: #343A46;
}

.view-topbar > a svg {
    width: 18px;
    height: 18px;
}

.view-topbar > strong {
    overflow: hidden;
    color: var(--modern-ink);
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-topbar > span {
    color: var(--modern-muted);
    font-size: 12px;
    font-weight: 600;
}

.services-section,
.projects-feature,
.certificates-section {
    min-height: calc(100dvh - 70px - env(safe-area-inset-bottom));
    margin: 0;
    padding: 28px 18px;
    border: 0;
    background: var(--modern-bg);
}

.section-heading,
.projects-heading,
.certificates-heading {
    margin-bottom: 15px;
    align-items: flex-end;
}

.section-heading > div > span,
.projects-eyebrow,
.certificates-heading > div > span {
    margin-bottom: 4px;
    color: #5B667A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-heading h2,
.projects-heading h2,
.certificates-heading h2 {
    max-width: 330px;
    color: var(--modern-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.pricing-list {
    margin: 0 -18px;
    padding: 0 18px 10px;
    display: flex;
    gap: 11px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pricing-list::-webkit-scrollbar,
.certificate-grid::-webkit-scrollbar {
    display: none;
}

.pricing-card,
.pricing-card-featured {
    position: relative;
    width: auto;
    min-width: 0;
    flex: 0 0 82%;
    min-height: 286px;
    padding: 17px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 0;
    border-radius: 8px;
    background: #D9DEFF;
    color: var(--modern-ink);
    box-shadow: none;
}

.pricing-list .pricing-card:nth-child(2) {
    background: var(--modern-pink);
}

.pricing-card-featured::before {
    display: none;
}

.pricing-card:hover,
.pricing-card:focus-visible {
    transform: none;
    border: 0;
    box-shadow: none;
}

.pricing-icon,
.pricing-card-featured .pricing-icon,
.pricing-list .pricing-card:nth-child(2) .pricing-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #2F4169;
}

.pricing-tag,
.pricing-tag-neutral {
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.pricing-copy {
    margin-top: 17px;
}

.pricing-copy strong {
    color: #171A21;
    font-size: 18px;
    font-weight: 800;
}

.pricing-copy small,
.pricing-card-featured .pricing-copy small {
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
}

.service-price {
    margin-top: 14px;
}

.service-price strong,
.pricing-card-featured .service-price strong,
.pricing-list .pricing-card:nth-child(2) .service-price strong {
    color: #171A21;
    font-size: 26px;
    font-weight: 800;
}

.service-price small,
.pricing-card-featured .service-price small {
    color: #475467;
    font-size: 13px;
}

.pricing-benefits {
    margin-top: 15px;
    gap: 8px;
}

.pricing-benefits > span,
.pricing-card-featured .pricing-benefits > span {
    color: #344054;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.pricing-benefits svg {
    background: rgba(255, 255, 255, 0.76);
    color: #257458;
}

.pricing-action,
.pricing-card-featured .pricing-action {
    margin-top: auto;
    border-top-color: rgba(23, 26, 33, 0.12);
    color: #171A21;
    font-size: 13px;
    font-weight: 700;
}

.community-panel {
    margin-top: 10px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

.section-bridge {
    display: none;
}

.projects-feature {
    background: #FFFFFF;
}

.project-list {
    gap: 10px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--modern-line);
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 5px 14px rgba(24, 34, 52, 0.06);
}

.project-body {
    padding: 12px;
    background: #FFFFFF;
}

.project-category {
    color: #5925DC;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.project-body h3 {
    min-height: 38px;
    margin-top: 4px;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #101828;
}

.project-visit {
    padding-top: 8px;
    border-top: 1px solid #F0F1F4;
    color: #475467;
    font-size: 11px;
    font-weight: 600;
}

.certificates-section {
    background: var(--modern-bg);
}

.certificate-grid {
    margin: 0 -18px;
    padding: 0 18px 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.certificate-card,
.certificate-card-featured {
    min-width: 0;
    flex: 0 0 68%;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--modern-line);
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 5px 14px rgba(24, 34, 52, 0.05);
}

.certificate-image,
.certificate-card-featured .certificate-image {
    aspect-ratio: 1.414 / 1;
    background: #FFFFFF;
}

.certificate-info {
    padding: 10px;
}

.project-cta {
    margin: 0 18px 26px;
    padding: 18px;
    border: 0;
    border-radius: 8px;
    background: #171A21;
    color: #FFFFFF;
}

.project-cta.app-view.is-active {
    margin-top: 0;
}

.cta-person strong,
.cta-copy h2 {
    color: #FFFFFF;
}

.cta-person small,
.cta-copy p {
    color: #B6BECA;
}

.cta-copy > span {
    color: #AFC6FF;
}

.cta-button {
    background: #FFFFFF;
    color: #171A21;
}

.cta-button:hover,
.cta-button:active {
    background: #F2F4F8;
}

.footer-nav {
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--modern-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -5px 20px rgba(24, 34, 52, 0.08);
}

.footer-nav .nav-item {
    min-height: 54px;
    color: #788295;
}

.footer-nav .nav-item.active {
    color: #356DF3;
}

.nav-icon-shell {
    background: transparent;
}

.footer-nav .nav-item.active .nav-icon-shell,
.footer-nav .nav-item:hover .nav-icon-shell {
    background: #E9EEFF;
    color: #356DF3;
}

.nav-primary-icon {
    background: #171A21;
    box-shadow: 0 6px 14px rgba(23, 26, 33, 0.24);
}

@media (max-width: 360px) {
    .profile-spotlight {
        min-height: 224px;
    }

    .spotlight-copy {
        width: 64%;
        padding-left: 16px;
    }

    .spotlight-copy h1 {
        font-size: 22px;
    }

    .spotlight-copy p {
        font-size: 9px;
    }

    .pricing-card,
    .pricing-card-featured {
        flex-basis: 88%;
    }

    .category-tabs strong {
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-view.is-active {
        animation: none;
    }
}

/* Product catalog and cart */
.view-cart-button {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #171A21;
    color: #FFFFFF;
    cursor: pointer;
}

.view-cart-button > svg {
    width: 17px;
    height: 17px;
}

.view-cart-button > span {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #FFFFFF;
    border-radius: 999px;
    background: #12B76A;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
}

.view-cart-button > span[hidden] {
    display: none;
}

.pricing-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    scroll-snap-type: none;
}

.pricing-card,
.pricing-card-featured {
    width: 100%;
    min-height: 0;
    flex: none;
    padding: 18px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: none;
}

.pricing-list .pricing-card:nth-child(2) {
    background: #FFDCE8;
}

.cart-add-button {
    width: 100%;
    min-height: 44px;
    margin-top: 17px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 7px;
    background: #171A21;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.cart-add-button svg {
    width: 16px;
    height: 16px;
}

.cart-add-button.is-added {
    background: #FFFFFF;
    color: #067647;
}

.certificate-grid {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
}

.certificate-card,
.certificate-card-featured {
    min-width: 0;
    width: 100%;
    flex: none;
    scroll-snap-align: none;
}

.certificate-card-featured {
    grid-column: 1 / -1;
}

.certificate-card-featured .certificate-image {
    aspect-ratio: 1.9 / 1;
}

.cart-modal {
    align-items: flex-end;
    background: rgba(23, 26, 33, 0.58);
}

.cart-modal-content {
    width: min(520px, 100%);
    max-height: 78dvh;
    margin: 0;
    padding: 0 18px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    background: #FFFFFF;
    text-align: left;
}

.cart-modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #EAECF0;
    background: #FFFFFF;
}

.cart-modal-header small,
.cart-modal-header h2 {
    display: block;
}

.cart-modal-header small {
    color: #475467;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cart-modal-header h2 {
    margin-top: 2px;
    color: #171A21;
    font-size: 19px;
    font-weight: 800;
}

.cart-modal-header > button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #F2F4F7;
    color: #344054;
    cursor: pointer;
}

.cart-modal-header > button svg {
    width: 18px;
    height: 18px;
}

.cart-items {
    display: grid;
    gap: 10px;
    padding-top: 16px;
}

.cart-item {
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    background: #F9FAFB;
}

.cart-item-info,
.cart-item-info strong,
.cart-item-info small {
    min-width: 0;
    display: block;
}

.cart-item-info strong {
    color: #171A21;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.cart-item-info small {
    margin-top: 4px;
    color: #175CD3;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.cart-item-action {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    background: #171A21;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}

.cart-item-remove {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #FEE4E2;
    color: #B42318;
    cursor: pointer;
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

.cart-empty {
    min-height: 190px;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-empty[hidden] {
    display: none;
}

.cart-empty > svg {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    color: #98A2B3;
}

.cart-empty strong {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.cart-empty p {
    margin-top: 5px;
    color: #475467;
    font-size: 12px;
}

.cart-total {
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px solid #EAECF0;
}

.cart-total[hidden] {
    display: none;
}

.cart-total span {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.cart-total strong {
    color: #171A21;
    font-size: 19px;
    font-weight: 800;
}

@media (max-width: 360px) {
    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-controls {
        justify-content: space-between;
    }

    .cart-item-action {
        flex: 1;
    }
}

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

.chatbot-widget {
    position: fixed;
    right: max(12px, calc((100vw - 520px) / 2 + 12px));
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 1450;
    width: 92px;
    height: 112px;
    touch-action: none;
    transition: left 260ms cubic-bezier(0.2, 0.8, 0.2, 1), top 260ms cubic-bezier(0.2, 0.8, 0.2, 1), right 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chatbot-widget.is-dragging {
    transition: none;
}

.chatbot-character {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    cursor: grab;
    filter: drop-shadow(0 9px 12px rgba(23, 26, 33, 0.2));
}

.chatbot-widget.is-dragging .chatbot-character {
    cursor: grabbing;
}

.chatbot-character > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.chatbot-character > span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 13px;
    height: 13px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: #12B76A;
    box-shadow: 0 3px 8px rgba(6, 118, 71, 0.25);
}

.chatbot-type-bubble {
    position: absolute;
    right: 4px;
    bottom: calc(100% - 5px);
    min-width: 175px;
    min-height: 40px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E4E7EC;
    border-radius: 8px 8px 2px 8px;
    background: rgba(255, 255, 255, 0.98);
    color: #171A21;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(23, 26, 33, 0.14);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.chatbot-widget.is-left .chatbot-type-bubble {
    right: auto;
    left: 4px;
    border-radius: 8px 8px 8px 2px;
}

.chatbot-widget.is-open .chatbot-type-bubble,
.chatbot-widget.is-dragging .chatbot-type-bubble {
    opacity: 0;
    transform: translateY(5px);
}

.chatbot-type-bubble > i {
    width: 2px;
    height: 14px;
    margin-left: 2px;
    display: block;
    background: #171A21;
    animation: chatbotCursor 700ms steps(1) infinite;
}

@keyframes chatbotCursor {
    50% { opacity: 0; }
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 4px);
    width: min(340px, calc(100vw - 32px));
    max-height: min(520px, calc(100dvh - 190px));
    padding: 0;
    display: none;
    overflow: hidden;
    border: 1px solid #E4E7EC;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 20px 55px rgba(23, 26, 33, 0.24);
    touch-action: auto;
}

.chatbot-widget.is-left .chatbot-panel {
    right: auto;
    left: 0;
}

.chatbot-panel.is-open {
    display: block;
    animation: chatbotPanelIn 180ms ease both;
}

@keyframes chatbotPanelIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
    min-height: 64px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #EAECF0;
    background: #F9FAFB;
}

.chatbot-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.chatbot-identity > img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    background: #D9DEFF;
}

.chatbot-identity span,
.chatbot-identity strong,
.chatbot-identity small {
    min-width: 0;
    display: block;
}

.chatbot-identity strong {
    color: #171A21;
    font-size: 14px;
    font-weight: 700;
}

.chatbot-identity small {
    margin-top: 3px;
    color: #475467;
    font-size: 11px;
}

.chatbot-identity small i {
    width: 6px;
    height: 6px;
    margin-right: 4px;
    display: inline-block;
    border-radius: 50%;
    background: #12B76A;
}

.chatbot-header > button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #FFFFFF;
    color: #344054;
    cursor: pointer;
}

.chatbot-header > button svg {
    width: 16px;
    height: 16px;
}

.chatbot-messages {
    max-height: 160px;
    padding: 14px 12px 6px;
    overflow-y: auto;
    background: #FFFFFF;
}

.chat-message {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-message.bot {
    border-radius: 4px 10px 10px 10px;
    background: #F2F4F7;
    color: #1D2939;
}

.chat-message.user {
    margin-left: auto;
    border-radius: 10px 4px 10px 10px;
    background: #356DF3;
    color: #FFFFFF;
}

.chatbot-quick-actions {
    padding: 6px 12px 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.chatbot-quick-actions button,
.chatbot-quick-actions a {
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E4E7EC;
    border-radius: 7px;
    background: #FFFFFF;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.chatbot-quick-actions a {
    border-color: #B2CCFF;
    background: #EEF4FF;
    color: #175CD3;
}

.chatbot-form {
    padding: 10px 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 7px;
    border-top: 1px solid #EAECF0;
    background: #F9FAFB;
}

.chatbot-form input {
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #D0D5DD;
    border-radius: 7px;
    background: #FFFFFF;
    color: #171A21;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.chatbot-form input:focus {
    border-color: #84ADFF;
    box-shadow: 0 0 0 3px #EEF4FF;
}

.chatbot-form button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #171A21;
    color: #FFFFFF;
    cursor: pointer;
}

.chatbot-form button svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 360px) {
    .chatbot-widget {
        width: 82px;
        height: 100px;
    }

    .chatbot-panel {
        width: min(310px, calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-widget,
    .chatbot-panel,
    .chatbot-type-bubble,
    .chatbot-type-bubble > i {
        animation: none;
        transition: none;
    }
}
