@font-face {
    font-family: 'vazir';
    src: url("../fonts/Vazir.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'vazir';
    src: url("../fonts/Vazir-bold.ttf") format("truetype");
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6,
strong, b {
    font-weight: 700;
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(51, 65, 85, 0.9) transparent;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

*::-webkit-scrollbar { width: 8px; height: 8px; }

*::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
    margin: 6px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.85);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
    min-height: 48px;
    transition: background 0.25s ease;
}

*::-webkit-scrollbar-thumb:hover { background: rgba(71, 85, 105, 0.95); }
*::-webkit-scrollbar-thumb:active { background: rgba(100, 116, 139, 1); }
*::-webkit-scrollbar-corner { background: transparent; }

html { scroll-behavior: smooth; }

:root {
    --site-bg-base: #050a18;
    --bot-widget-bg: #0a1228;
}

/* Public site background — blurred layer (panel/auth use other layouts) */
html.site-public {
    background-color: var(--site-bg-base);
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.site-bg__image {
    position: absolute;
    inset: -12px;
    background: url('../images/bg-home.png') no-repeat center / cover;
    filter: blur(6px);
    transform: scale(1.03);
    will-change: transform;
}

.site-bg__veil {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 24, 0.28);
}

.ai-content table {
    min-width: 250px;
    width: 100%;
    background: #0f172a;
    color: #e2e8f0;
}

.ai-content table td,
.ai-content table th {
    font-size: 9pt;
    padding: 6px;
    border: 1px solid #334155;
    text-align: center;
}

.ai-content table th {
    font-weight: 700;
}

.ai-content a { color: #38bdf8; text-decoration: underline; }

#chat-widget.chat-widget-shell {
    --chat-button-color: #38bdf8;
}

#chat-widget.chat-widget-shell .ai-content a {
    color: var(--chat-button-color);
}

#chat-widget.chat-widget-shell .ai-content a.button,
#chat-widget.chat-widget-shell .ai-content button.button {
    border: 1px solid color-mix(in srgb, var(--chat-button-color) 40%, transparent);
    color: var(--chat-button-color);
}

#chat-widget.chat-widget-shell .ai-content a.button:hover,
#chat-widget.chat-widget-shell .ai-content button.button:hover {
    background: color-mix(in srgb, var(--chat-button-color) 10%, transparent);
}

.ai-content a.button,
.ai-content button.button {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 0.75rem;
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 0.5rem 1rem;
    margin: 0.35rem 0;
    text-decoration: none;
    color: #38bdf8;
    transition: background 0.15s;
}

.ai-content a.button:hover,
.ai-content button.button:hover { background: rgba(56, 189, 248, 0.1); }

.chat-redirect-notice {
    color: #7dd3fc;
    padding: 0.15rem 0;
}

.chat-redirect-notice__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-redirect-notice__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    animation: chat-redirect-spin 0.9s linear infinite;
}

.chat-redirect-notice__timer {
    font-size: 0.8125rem;
    color: rgba(186, 230, 253, 0.92);
    margin-bottom: 0.625rem;
}

.chat-redirect-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-redirect-notice__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 0.5rem;
    background: rgba(14, 116, 144, 0.35);
    color: #e0f2fe;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#chat-widget.chat-widget-shell .chat-redirect-notice__go {
    border-color: color-mix(in srgb, var(--chat-button-color) 55%, transparent);
    background: color-mix(in srgb, var(--chat-button-color) 20%, transparent);
    color: color-mix(in srgb, var(--chat-button-color) 15%, white);
}

.chat-redirect-notice__go:hover {
    background: rgba(14, 116, 144, 0.55);
    border-color: rgba(56, 189, 248, 0.85);
    color: #fff;
}

#chat-widget.chat-widget-shell .chat-redirect-notice__go:hover {
    background: color-mix(in srgb, var(--chat-button-color) 35%, transparent);
    border-color: color-mix(in srgb, var(--chat-button-color) 85%, transparent);
    color: #fff;
}

.chat-redirect-notice__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 0.5rem;
    background: rgba(127, 29, 29, 0.25);
    color: #fca5a5;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chat-redirect-notice__cancel:hover {
    background: rgba(127, 29, 29, 0.45);
    border-color: rgba(248, 113, 113, 0.7);
    color: #fecaca;
}

.chat-redirect-notice--cancelled {
    color: #94a3b8;
    font-size: 0.8125rem;
}

.chat-redirect-notice--cancelled .chat-redirect-notice__label {
    font-weight: 500;
}

.chat-suggest {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 92%;
    margin-top: 0.25rem;
}

.chat-suggest--visible {
    display: flex;
}

.chat-suggest__label {
    font-size: 0.75rem;
    color: #64748b;
    padding: 0 0.15rem;
}

.chat-suggest__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-suggest .suggest-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.85);
    color: #bae6fd;
    font-size: 0.8125rem;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chat-suggest .suggest-item:hover {
    background: rgba(14, 116, 144, 0.35);
    border-color: rgba(56, 189, 248, 0.65);
    color: #e0f2fe;
}

.chat-redirect-countdown {
    display: inline-block;
    min-width: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #38bdf8;
}

.ai-stream-cursor {
    display: inline-block;
    width: 0.45rem;
    height: 1em;
    margin-inline-start: 1px;
    vertical-align: text-bottom;
    background: currentColor;
    border-radius: 1px;
    opacity: 0.85;
    animation: ai-stream-cursor-blink 0.9s step-end infinite;
}

.ai-text--loading {
    min-height: 1.25em;
}

@keyframes ai-stream-cursor-blink {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.15; }
}

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

.chat-widget--fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

body.chat-widget-fullscreen-active {
    overflow: hidden;
}

/* Chat widget — fixed layout + product carousel */
.tempo-chat-page {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2.5rem 1rem 3rem;
}

.tempo-chat-page__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 32rem;
}

#chat-widget.chat-widget-shell {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

#chat-widget.chat-widget--page {
    width: 100%;
    max-width: 32rem;
    height: min(70vh, 720px);
    min-height: 28rem;
    margin-top: 1.5rem;
}

.chat-messages-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 0.625rem;
    align-items: flex-end;
    min-width: 0;
}

.chat-message--ai {
    justify-content: flex-end;
}

.chat-message--user {
    justify-content: flex-start;
}

.chat-message__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-message__col--ai {
    max-width: 85%;
    align-items: flex-start;
}

.chat-message__bubble {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chat-message__bubble--user {
    max-width: 75%;
}

.chat-message__content {
    min-width: 0;
}

.chat-message__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    margin-top: 0.25rem;
    padding-top: 0.125rem;
    user-select: none;
    pointer-events: none;
}

.chat-message__time {
    font-size: 0.6875rem;
    line-height: 1;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.chat-message__bubble--user .chat-message__time {
    color: var(--bubble-muted, rgba(255, 255, 255, 0.82));
}

.chat-message__bubble--ai .chat-message__time {
    color: var(--bubble-muted, rgba(255, 255, 255, 0.62));
}

.chat-message__status {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    color: var(--bubble-status, rgba(255, 255, 255, 0.72));
}

.chat-message__status--seen {
    color: var(--bubble-status-seen, #93c5fd);
}

.chat-message__ticks {
    display: block;
    width: 1rem;
    height: auto;
}

.chat-message__bubble--loading .chat-message__footer {
    display: none;
}

.chat-message__avatar {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

.chat-message__avatar--ai {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.chat-message__avatar--user {
    background: #334155;
    box-shadow: 0 0 0 1px #475569;
}

.chat-message--ai:has(.chat-product-carousel) .chat-message__col--ai {
    max-width: 100%;
    width: 100%;
}

.chat-message__bubble--ai:has(.chat-product-carousel) {
    max-width: 100%;
    width: 100%;
}

.chat-product-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.375rem;
    width: calc(100% + 0.5rem);
    margin-inline: -0.25rem;
    margin-top: 0.625rem;
}

.chat-product-carousel--has-nav {
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
}

.chat-product-carousel__viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    direction: ltr;
    padding-block: 0.125rem;
}

.chat-product-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.chat-product-carousel__nav {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.92);
    color: #7dd3fc;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.chat-product-carousel--has-nav .chat-product-carousel__nav {
    display: inline-flex;
}

.chat-product-carousel__nav:hover:not(:disabled) {
    background: rgba(14, 116, 144, 0.35);
    border-color: rgba(56, 189, 248, 0.55);
    transform: translateY(-1px);
}

#chat-widget.chat-widget-shell .chat-product-carousel__nav {
    border-color: color-mix(in srgb, var(--chat-button-color) 35%, transparent);
    color: color-mix(in srgb, var(--chat-button-color) 70%, white);
}

#chat-widget.chat-widget-shell .chat-product-carousel__nav:hover:not(:disabled) {
    background: color-mix(in srgb, var(--chat-button-color) 20%, transparent);
    border-color: color-mix(in srgb, var(--chat-button-color) 55%, transparent);
}

.chat-product-carousel__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.bodyAiMessage .chat-product-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: max-content;
    min-width: 100%;
    padding: 0.125rem 0.25rem;
    margin-top: 0;
    overflow: visible;
    scroll-snap-type: none;
}

.chat-product-item {
    flex: 0 0 clamp(12.5rem, 72vw, 14.5rem);
    width: clamp(12.5rem, 72vw, 14.5rem);
    scroll-snap-align: start;
    direction: rtl;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

.chat-product-item__row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-product-item__image {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 0.75rem;
}

.chat-product-item__info {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.chat-product-item__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.375;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-product-item__price {
    margin: 0.375rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #38bdf8;
}

#chat-widget.chat-widget-shell .chat-product-item__price {
    color: var(--chat-button-color);
}

.chat-product-item__btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    border-radius: 0.75rem;
    border: 1px solid rgba(14, 165, 233, 0.4);
    background: transparent;
    color: #38bdf8;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#chat-widget.chat-widget-shell .chat-product-item__btn {
    border-color: color-mix(in srgb, var(--chat-button-color) 40%, transparent);
    color: var(--chat-button-color);
}

.chat-product-item__btn:hover {
    background: rgba(14, 165, 233, 0.1);
}

#chat-widget.chat-widget-shell .chat-product-item__btn:hover {
    background: color-mix(in srgb, var(--chat-button-color) 10%, transparent);
}

.chat-send-btn {
    background-color: var(--chat-button-color, #38bdf8);
    color: #fff;
    box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--chat-button-color, #38bdf8) 20%, transparent);
}

.chat-send-btn:hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--chat-button-color, #38bdf8) 85%, white);
}

.chat-send-btn:active:not(:disabled) {
    background-color: color-mix(in srgb, var(--chat-button-color, #38bdf8) 75%, black);
}

.chat-handoff-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 11.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--chat-button-color, #38bdf8) 35%, transparent);
    background: color-mix(in srgb, var(--chat-button-color, #38bdf8) 10%, transparent);
    color: var(--chat-button-color, #38bdf8);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chat-handoff-toggle:hover:not(:disabled) {
    background: color-mix(in srgb, var(--chat-button-color, #38bdf8) 16%, transparent);
    border-color: color-mix(in srgb, var(--chat-button-color, #38bdf8) 55%, transparent);
}

.chat-handoff-toggle:disabled {
    opacity: 0.65;
    cursor: wait;
}

.chat-handoff-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-handoff-toggle__icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.chat-handoff-toggle__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-widget-header__identity {
    min-width: 0;
}

.chat-widget-header__title {
    min-width: 0;
}

.chat-header-avatars {
    display: inline-flex;
    align-items: center;
    padding-inline-end: 0.15rem;
}

.chat-header-avatars__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-inline-start: -0.45rem;
    border-radius: 999px;
    border: 2px solid #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.chat-header-avatars__item:first-child {
    margin-inline-start: 0;
}

.chat-header-avatars__item--more {
    background: #334155;
    font-size: 0.625rem;
}

#chat-widget.chat-widget-shell > header,
#chat-widget.chat-widget-shell > .shrink-0 {
    flex-shrink: 0;
}

#inp_chat::placeholder { color: #64748b; }

.chat-input-wrap__textarea {
    padding-inline-start: 2.75rem;
}

.chat-emoji-toggle {
    position: absolute;
    inset-inline-start: 0.625rem;
    bottom: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.625rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.chat-emoji-toggle:hover:not(:disabled) {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
}

.chat-emoji-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chat-emoji-picker {
    position: absolute;
    inset-inline-start: 0;
    bottom: calc(100% + 0.5rem);
    z-index: 50;
    width: min(18.5rem, calc(100vw - 2rem));
    max-height: 16rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 1rem;
    background: #0f172a;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
    overflow: hidden;
}

.chat-emoji-picker[hidden] {
    display: none !important;
}

.chat-emoji-picker--open {
    display: flex !important;
}

.chat-emoji-picker__tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
    overflow-x: auto;
    scrollbar-width: none;
}

.chat-emoji-picker__tabs::-webkit-scrollbar {
    display: none;
}

.chat-emoji-picker__tab {
    flex-shrink: 0;
    padding: 0.375rem 0.625rem;
    border: none;
    border-radius: 0.5rem 0.5rem 0 0;
    background: transparent;
    color: #94a3b8;
    font-size: 0.6875rem;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.chat-emoji-picker__tab:hover {
    color: #e2e8f0;
}

.chat-emoji-picker__tab--active {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.1);
}

.chat-emoji-picker__panels {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.chat-emoji-picker__panel {
    display: none;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.125rem;
    padding: 0.5rem;
    max-height: 11.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.5) transparent;
}

.chat-emoji-picker__panel--active {
    display: grid;
}

.chat-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.12s ease, transform 0.12s ease;
}

.chat-emoji-item:hover {
    background: rgba(148, 163, 184, 0.14);
    transform: scale(1.12);
}

.chat-float {
    position: fixed;
    z-index: var(--chat-float-z, 9995);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
    overflow: visible;
}

.chat-float--bottom-left {
    top: auto;
    right: auto;
    bottom: var(--chat-float-y, 1.25rem);
    left: var(--chat-float-x, 1.25rem);
    align-items: flex-start;
}

.chat-float--bottom-right {
    top: auto;
    left: auto;
    bottom: var(--chat-float-y, 1.25rem);
    right: var(--chat-float-x, 1.25rem);
    align-items: flex-end;
}

.chat-float--top-left {
    bottom: auto;
    right: auto;
    top: var(--chat-float-y, 1.25rem);
    left: var(--chat-float-x, 1.25rem);
    align-items: flex-start;
}

.chat-float--top-right {
    bottom: auto;
    left: auto;
    top: var(--chat-float-y, 1.25rem);
    right: var(--chat-float-x, 1.25rem);
    align-items: flex-end;
}

.chat-float__panel[hidden] {
    display: none !important;
}

.chat-float__panel {
    pointer-events: auto;
    width: min(28rem, calc(100vw - 2rem));
    height: min(38rem, calc(100dvh - 6rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: var(--bot-widget-bg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
    transform-origin: bottom center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-float--top-left .chat-float__panel,
.chat-float--top-right .chat-float__panel {
    transform-origin: top center;
    transform: translateY(-0.75rem) scale(0.96);
}

.chat-float--open .chat-float__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-float__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.95);
    flex-shrink: 0;
}

.chat-float__panel-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.chat-float__panel-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.chat-float__panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.chat-float__panel-close:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #f8fafc;
}

.chat-float__panel-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.chat-float__widget {
    min-height: 0;
}

.chat-float__launcher-wrap {
    position: relative;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.55) translateY(1.25rem);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
}

.chat-float--launcher-visible .chat-float__launcher-wrap {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.chat-float__tooltip {
    position: absolute;
    top: 50%;
    z-index: 1;
    padding: 0.45rem 0.7rem;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

/* آیکون چپ → تولتیپ سمت راست (به سمت داخل صفحه) */
.chat-float--bottom-left .chat-float__tooltip,
.chat-float--top-left .chat-float__tooltip {
    left: calc(100% + 0.65rem);
    right: auto;
    transform: translateY(-50%) translateX(-0.35rem);
}

/* آیکون راست → تولتیپ سمت چپ (به سمت داخل صفحه) */
.chat-float--bottom-right .chat-float__tooltip,
.chat-float--top-right .chat-float__tooltip {
    right: calc(100% + 0.65rem);
    left: auto;
    transform: translateY(-50%) translateX(0.35rem);
}

.chat-float--launcher-visible .chat-float__launcher-wrap:hover .chat-float__tooltip,
.chat-float--launcher-visible .chat-float__launcher-wrap:focus-within .chat-float__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.chat-float--open .chat-float__tooltip {
    opacity: 0;
    visibility: hidden;
}

.chat-float__invite {
    position: absolute;
    bottom: calc(100% + 0.85rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(16.5rem, calc(100vw - 5rem));
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.45rem) scale(0.96);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.chat-float--bottom-left .chat-float__invite,
.chat-float--top-left .chat-float__invite {
    left: 0;
    right: auto;
}

.chat-float--bottom-right .chat-float__invite,
.chat-float--top-right .chat-float__invite {
    right: 0;
    left: auto;
}

.chat-float--top-left .chat-float__invite,
.chat-float--top-right .chat-float__invite {
    bottom: auto;
    top: calc(100% + 0.85rem);
    transform: translateY(-0.45rem) scale(0.96);
}

.chat-float--invite-visible .chat-float__invite {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-float--open .chat-float__invite,
.chat-float--open .chat-float__tooltip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.chat-float__invite-body {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(8, 16, 34, 0.98));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(148, 163, 184, 0.08);
    color: #f8fafc;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-float__invite-body:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}

.chat-float__invite-body::after {
    content: '';
    position: absolute;
    bottom: -0.45rem;
    width: 0.75rem;
    height: 0.75rem;
    background: inherit;
    border-right: 1px solid rgba(56, 189, 248, 0.28);
    border-bottom: 1px solid rgba(56, 189, 248, 0.28);
    transform: rotate(45deg);
}

.chat-float--bottom-left .chat-float__invite-body::after,
.chat-float--top-left .chat-float__invite-body::after {
    left: 1.15rem;
    right: auto;
}

.chat-float--bottom-right .chat-float__invite-body::after,
.chat-float--top-right .chat-float__invite-body::after {
    right: 1.15rem;
    left: auto;
}

.chat-float--top-left .chat-float__invite-body::after,
.chat-float--top-right .chat-float__invite-body::after {
    bottom: auto;
    top: -0.45rem;
    transform: rotate(225deg);
}

.chat-float__invite-text {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.55;
    white-space: normal;
}

.chat-float__invite-close {
    position: absolute;
    top: -0.45rem;
    left: -0.45rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.96);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chat-float__invite-close:hover {
    color: #f8fafc;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(30, 41, 59, 0.98);
}

.chat-float__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.15rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.55);
    border: 2px solid #0f172a;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-float__badge:not([hidden]) {
    opacity: 1;
    transform: scale(1);
}

.chat-float__launcher {
    position: relative;
    pointer-events: auto;
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-float--launcher-visible .chat-float__launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.5);
}

.chat-float__launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
}

.chat-float__launcher-icon svg {
    width: 100%;
    height: 100%;
}

.chat-float__launcher-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bot-avatar--default {
    filter: brightness(0) invert(1);
}

.chat-float__launcher-icon--close {
    display: none;
}

.chat-float--open .chat-float__launcher-icon--open {
    display: none;
}

.chat-float--open .chat-float__launcher-icon--close {
    display: inline-flex;
}

body.chat-float-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .chat-float__panel {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        max-width: none;
        max-height: none;
        border-radius: 0;
        border: 0;
        transform: translateY(100%);
    }

    .chat-float--open .chat-float__panel {
        transform: translateY(0);
    }

    .chat-float--bottom-left,
    .chat-float--bottom-right,
    .chat-float--top-left,
    .chat-float--top-right {
        inset: auto;
        bottom: var(--chat-float-y, 1rem);
        left: var(--chat-float-x, 1rem);
        right: auto;
        top: auto;
    }

    body.chat-float-open .chat-float__launcher {
        display: none;
    }
}

.product-billing-toggle {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.75);
}

.product-billing-btn {
    flex: 1;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.product-billing-btn:hover:not(.is-active) {
    color: #f8fafc;
}

.product-billing-btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.product-billing-card .pricing-panel,
.pricing-panel {
    display: none;
}

.product-billing-card .pricing-panel.is-active,
.pricing-panel.is-active {
    display: block;
}

.glass-feature {
    position: relative;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s, background 0.35s, border 0.35s, backdrop-filter 0.35s;
}

.glass-feature:hover {
    /* شیشه‌ای شدن */
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 8px 32px 0 rgba(56, 189, 248, 0.12),
        0 2px 16px 2px rgba(139, 92, 246, 0.08);
    border: 1.5px solid rgba(56,189,248,0.25);
}

.glass-feature::after {
    /* افکت عبور نور از زیر */
    content: "";
    position: absolute;
    left: 50%;
    bottom: -40px;
    width: 120%;
    height: 50px;
    background: radial-gradient(ellipse at center, rgba(56,189,248,0.20) 0%, rgba(10,112,206,0.00) 70%);
    filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    transform: translateX(-50%);
    z-index: 1;
}

.glass-feature:hover::after {
    opacity: 1;
}

.home-hero__visual {
    margin-inline: auto;
    width: 100%;
    max-width: 480px;
}

.home-hero__visual-img {
    display: block;
    width: 100%;
    height: auto;
}

.home-hero__visual-glow {
    width: 360px;
    height: 360px;
    transform: scale(1.15);
}

@media (min-width: 1024px) {
    .home-hero__visual {
        margin-inline: 0;
        margin-inline-start: auto;
    }
}

.home-visual-3d {
    position: relative;
    perspective: 1400px;
    padding: 1rem 0 1.5rem;
    max-width: 16rem;
    margin-inline: auto;
}

@media (min-width: 640px) {
    .home-visual-3d {
        max-width: 18rem;
    }
}

@media (min-width: 1024px) {
    .home-visual-3d {
        max-width: 19rem;
    }
}

.home-visual-3d__glow {
    position: absolute;
    inset: 8% 10% 12%;
    border-radius: 2rem;
    background: radial-gradient(circle at 35% 35%, rgba(139, 92, 246, 0.45), rgba(56, 189, 248, 0.18) 45%, transparent 72%);
    filter: blur(36px);
    opacity: 0.85;
    pointer-events: none;
}

.home-visual-3d--emerald .home-visual-3d__glow {
    background: radial-gradient(circle at 35% 35%, rgba(16, 185, 129, 0.45), rgba(52, 211, 153, 0.18) 45%, transparent 72%);
}

.home-visual-3d--blue .home-visual-3d__glow {
    background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.45), rgba(96, 165, 250, 0.18) 45%, transparent 72%);
}

.home-visual-3d--amber .home-visual-3d__glow {
    background: radial-gradient(circle at 35% 35%, rgba(245, 158, 11, 0.5), rgba(251, 191, 36, 0.2) 45%, transparent 72%);
}

.home-visual-3d--sky .home-visual-3d__glow {
    background: radial-gradient(circle at 35% 35%, rgba(14, 165, 233, 0.45), rgba(56, 189, 248, 0.18) 45%, transparent 72%);
}

.home-visual-3d--teal .home-visual-3d__glow {
    background: radial-gradient(circle at 35% 35%, rgba(20, 184, 166, 0.45), rgba(45, 212, 191, 0.18) 45%, transparent 72%);
}

.home-visual-3d--rose .home-visual-3d__glow {
    background: radial-gradient(circle at 35% 35%, rgba(244, 63, 94, 0.42), rgba(251, 113, 133, 0.18) 45%, transparent 72%);
}

.home-panel-features > section:first-child {
    padding-top: 0;
}

.home-panel-features > section + section {
    border-top: 1px solid color-mix(in srgb, var(--site-bg-base) 78%, #1e293b 22%);
}

.home-panel-feature__content .ui-text--title,
.home-panel-feature__content h2 {
    color: #fff;
}

.home-panel-feature__content .ui-text--subtitle,
.home-panel-feature__content .ui-text--white {
    color: #7dd3fc;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.home-panel-feature__content .ui-text--body {
    color: #cbd5e1;
}

.home-panel-feature__badge {
    display: inline-flex;
    border-radius: 9999px;
    border-width: 1px;
    border-style: solid;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
}

.home-panel-feature__badge--violet {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
}

.home-panel-feature__badge--emerald {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(5, 150, 105, 0.15);
    color: #6ee7b7;
}

.home-panel-feature__badge--blue {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
}

.home-panel-feature__badge--amber {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(217, 119, 6, 0.15);
    color: #fcd34d;
}

.home-panel-feature__badge--sky {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(2, 132, 199, 0.15);
    color: #7dd3fc;
}

.home-panel-feature__badge--teal {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(13, 148, 136, 0.15);
    color: #5eead4;
}

.home-panel-feature__badge--rose {
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(225, 29, 72, 0.15);
    color: #fda4af;
}

.home-visual-3d__card {
    position: relative;
    transform: rotateY(-10deg) rotateX(8deg);
    transform-style: preserve-3d;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    border-radius: 1.35rem;
    padding: 0.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.45),
        0 12px 24px rgba(79, 70, 229, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.home-visual-3d:hover .home-visual-3d__card,
.home-visual-3d.is-active .home-visual-3d__card {
    transform: rotateY(-6deg) rotateX(4deg) translateY(-6px);
    box-shadow:
        0 36px 70px rgba(15, 23, 42, 0.5),
        0 16px 32px rgba(124, 58, 237, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.home-visual-3d__shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.28) 0%, transparent 38%, transparent 62%, rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
    opacity: 0.75;
}

.home-visual-3d__frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: translateZ(24px);
}

.home-visual-3d__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.home-visual-3d__caption {
    position: relative;
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem 0.15rem;
    text-align: right;
    transform: translateZ(16px);
}

.home-visual-3d__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: rgba(124, 58, 237, 0.18);
    color: #ddd6fe;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-visual-3d__caption p {
    margin: 0.5rem 0 0;
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.6;
}

@media (max-width: 1023px) {
    .home-visual-3d__card {
        transform: rotateY(-6deg) rotateX(5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-visual-3d__card {
        transform: none;
        transition: none;
    }

    .home-visual-3d:hover .home-visual-3d__card,
    .home-visual-3d.is-active .home-visual-3d__card {
        transform: none;
    }
}

.auth-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(15, 23, 42, 0.6);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #f1f5f9;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.auth-checkbox {
    height: 1rem;
    width: 1rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

.auth-checkbox-field__text {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #94a3b8;
}

.auth-password-wrap {
    position: relative;
}

.auth-input--password {
    padding-left: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s, background 0.2s;
}

.auth-password-toggle:hover {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.auth-password-toggle__icon {
    width: 1.125rem;
    height: 1.125rem;
}

.auth-password-toggle__icon--hide {
    display: none;
}

.auth-password-toggle.is-visible .auth-password-toggle__icon--show {
    display: none;
}

.auth-password-toggle.is-visible .auth-password-toggle__icon--hide {
    display: block;
}

/* ── UI components (dark default) ── */

.ui-btn--primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.25);
}

.ui-btn--primary:hover {
    background: #1d4ed8;
}

.ui-btn--secondary {
    border: 1px solid rgba(71, 85, 105, 0.8);
    background: rgba(15, 23, 42, 0.4);
    color: #fff;
    backdrop-filter: blur(4px);
}

.ui-btn--secondary:hover {
    border-color: rgba(100, 116, 139, 0.9);
    background: rgba(30, 41, 59, 0.6);
}

.ui-btn--ghost {
    color: #fff;
}

.ui-btn--ghost:hover {
    color: #60a5fa;
}

.ui-btn--outline {
    border: 1px solid #334155;
    color: #fff;
}

.ui-btn--outline:hover {
    border-color: #64748b;
    background: rgba(30, 41, 59, 0.4);
}

.ui-text--brand {
    color: #60a5fa;
}

.ui-text--title {
    color: #fff;
}

.ui-text--subtitle {
    background: linear-gradient(to left, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ui-text--body {
    color: #94a3b8;
}

.ui-text--muted {
    color: #64748b;
}

.ui-text--white {
    color: #fff;
}

html[data-panel-theme="light"] .auth-label {
    color: #475569;
}

html[data-panel-theme="light"] .auth-input {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

html[data-panel-theme="light"] .auth-input::placeholder {
    color: #94a3b8;
}

html[data-panel-theme="light"] .auth-input:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html[data-panel-theme="light"] .auth-checkbox-field__text {
    color: #64748b;
}

html[data-panel-theme="light"] .auth-password-toggle {
    color: #94a3b8;
}

html[data-panel-theme="light"] .auth-password-toggle:hover {
    color: #475569;
    background: rgba(148, 163, 184, 0.16);
}

html[data-panel-theme="light"] .ui-btn--secondary {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

html[data-panel-theme="light"] .ui-btn--secondary:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

html[data-panel-theme="light"] .ui-btn--ghost {
    color: #334155;
}

html[data-panel-theme="light"] .ui-btn--ghost:hover {
    color: #2563eb;
}

html[data-panel-theme="light"] .ui-btn--outline {
    border-color: #e2e8f0;
    color: #0f172a;
}

html[data-panel-theme="light"] .ui-btn--outline:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

html[data-panel-theme="light"] .ui-text--title,
html[data-panel-theme="light"] .ui-text--white {
    color: #0f172a;
}

html[data-panel-theme="light"] .ui-text--body {
    color: #475569;
}

html[data-panel-theme="light"] .ui-text--muted {
    color: #64748b;
}

html[data-panel-theme="light"] .ui-text--brand {
    color: #2563eb;
}

/* ── UI charts ── */

.ui-chart {
    --ui-chart-grid: rgba(148, 163, 184, 0.14);
    --ui-chart-axis: #64748b;
    --ui-chart-title: #f8fafc;
    --ui-chart-description: #94a3b8;
    --ui-chart-empty: #64748b;
    --ui-chart-min-width: 32rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(30, 41, 59, 0.85);
    background: rgba(15, 23, 42, 0.55);
    padding: 1.25rem;
}

.ui-chart__header {
    margin-bottom: 0.875rem;
}

.ui-chart__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ui-chart-title);
}

.ui-chart__description {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--ui-chart-description);
}

.ui-chart__canvas {
    width: 100%;
    max-width: 100%;
    min-height: var(--ui-chart-height, 240px);
}

.ui-chart__figure {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.ui-chart__scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.ui-chart__scroll::-webkit-scrollbar {
    height: 6px;
}

.ui-chart__scroll::-webkit-scrollbar-thumb {
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.45);
}

.ui-chart__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ui-chart__plot {
    position: relative;
    width: 100%;
    height: var(--ui-chart-height, 240px);
}

.ui-chart__plot canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 767px) {
    .ui-chart__plot {
        width: max(100%, var(--ui-chart-min-width, 32rem));
    }
}

.ui-chart__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: var(--ui-chart-height, 240px);
    margin: 0;
    font-size: 0.875rem;
    color: var(--ui-chart-empty);
}

.ui-chart__sr-only,
.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;
}

html[data-panel-theme="light"] .ui-chart {
    --ui-chart-grid: rgba(15, 23, 42, 0.08);
    --ui-chart-axis: #64748b;
    --ui-chart-title: #0f172a;
    --ui-chart-description: #64748b;
    --ui-chart-empty: #94a3b8;
    border-color: #e2e8f0;
    background: #ffffff;
}

.auth-slider__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.auth-slider__slide[data-active] {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.auth-slider__dot.is-active {
    background-color: rgba(255, 255, 255, 0.95);
}

.ui-slider {
    isolation: isolate;
}

.ui-slider__overlay {
    background: linear-gradient(to bottom right, #0a1a3a, #050a18, #0d2460);
}

.ui-slider__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.ui-slider__description {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #94a3b8;
}

.ui-slider__dots {
    pointer-events: auto;
}

.ui-slider__dot {
    height: 0.5rem;
    width: 0.5rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
    padding: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.ui-slider__dot.is-active {
    width: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
}

.ui-slider__nav {
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.ui-slider__nav:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.ui-slider[data-mouse-scroll="true"] {
    cursor: grab;
}

.ui-slider.ui-slider--dragging {
    cursor: grabbing;
    user-select: none;
}

.ui-slider.ui-slider--dragging * {
    user-select: none;
}

.ui-slider__track {
    z-index: 0;
}

.ui-slider__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ui-slider__slide[data-active] {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.ui-slider__image {
    max-height: 10rem;
}

@media (min-width: 640px) {
    .ui-slider__image {
        max-height: 12rem;
    }
}

@media (min-width: 1024px) {
    .ui-slider__image {
        max-height: 16rem;
    }
}

@media (min-width: 1280px) {
    .ui-slider__image {
        max-height: 18rem;
    }
}

html[data-panel-theme="light"] .ui-slider__overlay {
    background: linear-gradient(to bottom right, #eff6ff, #f8fafc, #e0f2fe);
}

html[data-panel-theme="light"] .ui-slider__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .ui-slider__description {
    color: #64748b;
}

html[data-panel-theme="light"] .ui-slider__dot {
    background: rgba(15, 23, 42, 0.18);
}

html[data-panel-theme="light"] .ui-slider__dot.is-active {
    background: #2563eb;
}

html[data-panel-theme="light"] .ui-slider__nav {
    border-color: #e2e8f0;
    background: rgba(255, 255, 255, 0.85);
    color: #475569;
}

html[data-panel-theme="light"] .ui-slider__nav:hover {
    background: #fff;
    color: #0f172a;
}

/* ── App popup (default dark; follows panel light theme when present) ── */

.app-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.app-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.app-popup__dialog {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.app-popup__panel {
    pointer-events: auto;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #334155;
    background: #0f172a;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-popup__panel--sm {
    max-width: 24rem;
}

.app-popup__panel--md {
    max-width: 28rem;
}

.app-popup__panel--lg {
    max-width: 32rem;
}

.app-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #1e293b;
    padding: 1rem 1.25rem;
}

.app-popup__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.app-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.app-popup__close:hover {
    background: #1e293b;
    color: #fff;
}

.app-popup__close-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.app-popup__body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #cbd5e1;
}

.app-popup__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #1e293b;
    padding: 1rem 1.25rem;
}

.app-popup__text {
    margin: 0;
    color: inherit;
}

.app-popup__btn {
    border: 0;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.app-popup__btn--primary {
    background: #2563eb;
    color: #fff;
}

.app-popup__btn--primary:hover {
    background: #1d4ed8;
}

.app-popup__btn--secondary {
    border: 1px solid #334155;
    background: #1e293b;
    color: #cbd5e1;
}

.app-popup__btn--secondary:hover {
    background: #334155;
    color: #fff;
}

.app-popup__product {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-popup__product-image {
    height: 12rem;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    object-fit: cover;
}

.app-popup__product-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.app-popup__product-price {
    margin: 0.5rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #38bdf8;
}

.app-popup__product-price-unit {
    font-size: 0.875rem;
    font-weight: 400;
    color: #94a3b8;
}

.app-popup__product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.app-popup__product-stat {
    border-radius: 0.75rem;
    border: 1px solid #334155;
    background: #1e293b;
    padding: 0.75rem;
}

.app-popup__product-stat-label {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.app-popup__product-stat-value {
    margin: 0;
    font-size: 0.875rem;
    color: #fff;
}

.app-popup__product-description {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.app-popup__product-description-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.app-popup__product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(14, 116, 144, 0.18);
    color: #7dd3fc;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-popup__product-link:hover {
    background: rgba(14, 116, 144, 0.32);
    border-color: rgba(56, 189, 248, 0.55);
    color: #e0f2fe;
}

html[data-panel-theme="light"] .app-popup__backdrop {
    background: rgba(15, 23, 42, 0.35);
}

html[data-panel-theme="light"] .app-popup__panel {
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

html[data-panel-theme="light"] .app-popup__header,
html[data-panel-theme="light"] .app-popup__footer {
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .app-popup__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .app-popup__close {
    color: #64748b;
}

html[data-panel-theme="light"] .app-popup__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

html[data-panel-theme="light"] .app-popup__body {
    color: #475569;
}

html[data-panel-theme="light"] .app-popup__btn--secondary {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

html[data-panel-theme="light"] .app-popup__btn--secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

html[data-panel-theme="light"] .app-popup__product-image {
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .app-popup__product-name,
html[data-panel-theme="light"] .app-popup__product-stat-value {
    color: #0f172a;
}

html[data-panel-theme="light"] .app-popup__product-price {
    color: #2563eb;
}

html[data-panel-theme="light"] .app-popup__product-price-unit,
html[data-panel-theme="light"] .app-popup__product-stat-label {
    color: #64748b;
}

html[data-panel-theme="light"] .app-popup__product-stat {
    border-color: #e2e8f0;
    background: #f8fafc;
}

#app-alert-root {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}

.app-alert-stack {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100% - 2rem, 24rem);
    pointer-events: none;
}

.app-alert-stack[data-alert-position="top-right"] {
    top: 1rem;
    right: 1rem;
    align-items: flex-end;
}

.app-alert-stack[data-alert-position="top-center"] {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.app-alert-stack[data-alert-position="top-left"] {
    top: 1rem;
    left: 1rem;
    align-items: flex-start;
}

.app-alert-stack[data-alert-position="bottom-right"] {
    bottom: 1rem;
    right: 1rem;
    align-items: flex-end;
    flex-direction: column-reverse;
}

.app-alert-stack[data-alert-position="bottom-center"] {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    flex-direction: column-reverse;
}

.app-alert-stack[data-alert-position="bottom-left"] {
    bottom: 1rem;
    left: 1rem;
    align-items: flex-start;
    flex-direction: column-reverse;
}

.app-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: rgba(15, 23, 42, 0.95);
    padding: 0.875rem 1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.app-alert-stack[data-alert-position^="bottom"] .app-alert {
    transform: translateY(12px) scale(0.98);
}

.app-alert.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.app-alert.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}

.app-alert-stack[data-alert-position^="bottom"] .app-alert.is-leaving {
    transform: translateY(8px) scale(0.98);
}

.app-alert__accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
}

.app-alert--success .app-alert__accent {
    background: linear-gradient(180deg, #34d399, #059669);
}

.app-alert--error .app-alert__accent {
    background: linear-gradient(180deg, #f87171, #dc2626);
}

.app-alert--success {
    border-color: rgba(52, 211, 153, 0.25);
}

.app-alert--error {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(45, 15, 20, 0.96);
    box-shadow: 0 16px 40px rgba(127, 29, 29, 0.2), inset 0 1px 0 rgba(248, 113, 113, 0.06);
}

.app-alert__icon-wrap {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.app-alert--success .app-alert__icon-wrap {
    color: #34d399;
}

.app-alert--error .app-alert__icon-wrap {
    color: #f87171;
}

.app-alert__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.app-alert__content {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.app-alert__title {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #f8fafc;
}

.app-alert__message {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.app-alert__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.125rem;
    border-radius: 0.375rem;
    transition: color 0.2s, background 0.2s;
}

.app-alert__close:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.12);
}

button.is-loading,
a.is-loading,
.is-loading[type="submit"] {
    pointer-events: none;
    cursor: wait;
    opacity: 0.9;
}

.btn-loading-spinner {
    display: inline-block;
}

.panel-shell {
    display: flex;
    min-height: 100vh;
    background: #0c1229;
}

.panel-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 1024px) {
    .panel-main {
        margin-right: 18rem;
    }
}

.panel-topbar {
    position: relative;
    top: auto;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    background: rgba(12, 18, 41, 0.92);
    padding: 0.875rem 1rem;
    backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
    .panel-topbar {
        padding: 1rem 1.5rem;
    }
}

.panel-topbar__start {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
}

.panel-topbar__end {
    display: flex;
    shrink: 0;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .panel-topbar__end {
        gap: 1rem;
    }
}

.panel-topbar__heading {
    min-width: 0;
}

.panel-topbar__title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .panel-topbar__title {
        font-size: 1.125rem;
    }
}

.panel-topbar__subtitle {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: #64748b;
}

.panel-topbar__user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-right: 0.25rem;
}

.panel-topbar__user-info {
    text-align: left;
}

.panel-topbar__user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.2;
}

.panel-topbar__user-meta {
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.panel-topbar__badge {
    align-items: center;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.15);
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fbbf24;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.panel-topbar__theme {
    flex-shrink: 0;
}

.panel-topbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    padding: 0.5rem;
    color: #cbd5e1;
    transition: background 0.2s, color 0.2s;
}

.panel-topbar__toggle:hover {
    background: rgba(30, 41, 59, 0.7);
    color: #fff;
}

.panel-topbar__avatar {
    display: flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(14, 165, 233, 0.2));
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.panel-content {
    flex: 1;
    padding: 1.25rem 1rem 2rem;
}

@media (min-width: 640px) {
    .panel-content {
        padding: 1.5rem 1.5rem 2.5rem;
    }
}

.panel-body--impersonating .panel-content {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.panel-impersonation-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9990;
    border-top: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px rgba(2, 6, 23, 0.35);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.panel-impersonation-bar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 80rem;
    margin: 0 auto;
}

.panel-impersonation-bar__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.panel-impersonation-bar__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.16);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    white-space: nowrap;
}

.panel-impersonation-bar__text {
    margin: 0;
    font-size: 0.8125rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.panel-impersonation-bar__text strong {
    color: #f8fafc;
    font-weight: 700;
}

.panel-impersonation-bar__username {
    margin-right: 0.375rem;
    color: #94a3b8;
}

.panel-impersonation-bar__form {
    flex-shrink: 0;
}

.panel-impersonation-bar__btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .panel-impersonation-bar__content {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-impersonation-bar__info {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-impersonation-bar__btn {
        width: 100%;
    }
}

html[data-panel-theme="light"] .panel-impersonation-bar {
    border-top-color: rgba(245, 158, 11, 0.35);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

html[data-panel-theme="light"] .panel-impersonation-bar__badge {
    background: #fffbeb;
    color: #d97706;
}

html[data-panel-theme="light"] .panel-impersonation-bar__text {
    color: #475569;
}

html[data-panel-theme="light"] .panel-impersonation-bar__text strong {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-impersonation-bar__username {
    color: #64748b;
}

.panel-page {
    max-width: 100%;
}

.panel-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.panel-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    display: flex;
    height: 100%;
    width: 18rem;
    max-width: 88vw;
    flex-direction: column;
    border-left: 1px solid rgba(30, 41, 59, 0.85);
    background: #050a18;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.panel-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    padding: 1rem 1.25rem;
}

.panel-sidebar__brand {
    display: inline-flex;
    align-items: center;
}

.panel-sidebar__close {
    border-radius: 0.5rem;
    padding: 0.375rem;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s;
}

.panel-sidebar__close:hover {
    background: rgba(30, 41, 59, 0.7);
    color: #fff;
}

.panel-sidebar__mode-switch {
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.panel-sidebar__mode-form {
    margin: 0;
}

.panel-sidebar__mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.875rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.8);
}

.panel-sidebar__mode-btn {
    border: 0;
    border-radius: 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.panel-sidebar__mode-btn:hover {
    color: #e2e8f0;
}

.panel-sidebar__mode-btn--active {
    color: #f8fafc;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.panel-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 1rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(30, 41, 59, 0.85);
    background: rgba(15, 23, 42, 0.55);
    padding: 0.875rem;
}

.panel-sidebar__avatar {
    display: flex;
    height: 2.75rem;
    width: 2.75rem;
    shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.panel-sidebar__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #f8fafc;
}

.panel-sidebar__meta {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: #64748b;
}

.panel-sidebar__badge {
    shrink: 0;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.15);
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fbbf24;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.panel-sidebar__wallet {
    margin: 0 1rem 0.75rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
    padding: 0.75rem 0.875rem;
}

.panel-sidebar__wallet-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}

.panel-sidebar__wallet-value {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.panel-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
}

.panel-sidebar__section-title {
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
}

.panel-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.875rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.panel-sidebar__link:hover {
    background: rgba(30, 41, 59, 0.65);
    color: #fff;
}

.panel-sidebar__link--active {
    background: rgba(37, 99, 235, 0.15);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28);
}

.panel-sidebar__link-icon {
    display: inline-flex;
    height: 1.25rem;
    width: 1.25rem;
    shrink: 0;
    color: #94a3b8;
}

.panel-sidebar__link--active .panel-sidebar__link-icon {
    color: #60a5fa;
}

.panel-sidebar__group-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: right;
}

.panel-sidebar__group-chevron {
    height: 1rem;
    width: 1rem;
    shrink: 0;
    color: #64748b;
    transition: transform 0.2s ease;
}

.panel-sidebar__group--open .panel-sidebar__group-chevron {
    transform: rotate(180deg);
}

.panel-sidebar__submenu {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.panel-sidebar__submenu[hidden] {
    display: none !important;
}

.panel-sidebar__sublink {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 0.625rem;
    padding: 0.5rem 0.75rem 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s;
}

.panel-sidebar__sublink:hover {
    background: rgba(30, 41, 59, 0.45);
    color: #e2e8f0;
}

.panel-sidebar__sublink--active {
    background: rgba(37, 99, 235, 0.1);
    color: #93c5fd;
}

.panel-sidebar__sublink-dot {
    height: 0.375rem;
    width: 0.375rem;
    shrink: 0;
    border-radius: 9999px;
    background: currentColor;
    opacity: 0.45;
}

.panel-sidebar__sublink--active .panel-sidebar__sublink-dot {
    opacity: 1;
    background: #60a5fa;
}

.panel-sidebar__footer {
    border-top: 1px solid rgba(30, 41, 59, 0.85);
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.panel-sidebar__footer-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s;
}

.panel-sidebar__footer-link:hover {
    background: rgba(30, 41, 59, 0.55);
    color: #e2e8f0;
}

.panel-sidebar__footer-link--danger:hover {
    background: rgba(127, 29, 29, 0.18);
    color: #fca5a5;
}

html[data-panel-theme="dark"] body {
    background: #0c1229;
}

html[data-panel-theme="light"] body {
    background: #f8fafc;
}

.panel-sidebar__theme {
    margin-bottom: 0.5rem;
}

.panel-theme-toggle {
    display: flex;
    gap: 0.375rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(30, 41, 59, 0.85);
    background: rgba(15, 23, 42, 0.45);
    padding: 0.25rem;
}

.panel-theme-toggle--compact {
    border-radius: 0.75rem;
    padding: 0.1875rem;
}

.panel-theme-toggle__btn {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.625rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.panel-theme-toggle--compact .panel-theme-toggle__btn {
    flex: 0 0 auto;
    padding: 0.4375rem;
}

.panel-theme-toggle__icon {
    height: 1rem;
    width: 1rem;
    shrink: 0;
}

.panel-theme-toggle__btn:hover {
    color: #e2e8f0;
}

.panel-theme-toggle__btn--active {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

html[data-panel-theme="light"] .panel-theme-toggle {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

html[data-panel-theme="light"] .panel-theme-toggle__btn {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-theme-toggle__btn:hover {
    color: #334155;
}

html[data-panel-theme="light"] .panel-theme-toggle__btn--active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

/* ── Panel light theme ── */

html[data-panel-theme="light"] .panel-shell {
    background: #f1f5f9;
}

html[data-panel-theme="light"] .panel-topbar__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-topbar__subtitle {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-topbar__user-name {
    color: #334155;
}

html[data-panel-theme="light"] .panel-topbar__user-meta {
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-topbar__badge {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.panel-topbar__theme {
    flex-shrink: 0;
}

.panel-header {
    position: sticky;
    top: 0;
    z-index: 30;
}

.panel-breadcrumb {
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    background: rgba(12, 18, 41, 0.88);
    padding: 0.625rem 1rem;
    backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
    .panel-breadcrumb {
        padding: 0.625rem 1.5rem;
    }
}

.panel-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.panel-breadcrumb__item:not(:last-child)::after {
    content: '/';
    color: #475569;
    font-size: 0.75rem;
}

.panel-breadcrumb__link {
    color: #94a3b8;
    transition: color 0.2s;
}

.panel-breadcrumb__link:hover {
    color: #e2e8f0;
}

.panel-breadcrumb__current {
    color: #cbd5e1;
    font-weight: 600;
}

.panel-breadcrumb__item--active .panel-breadcrumb__current {
    color: #f8fafc;
}

html[data-panel-theme="light"] .panel-breadcrumb {
    border-bottom-color: #e2e8f0;
    background: rgba(255, 255, 255, 0.089);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-panel-theme="light"] .panel-breadcrumb__item {
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-breadcrumb__item:not(:last-child)::after {
    color: #cbd5e1;
}

html[data-panel-theme="light"] .panel-breadcrumb__link {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-breadcrumb__link:hover {
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-breadcrumb__current {
    color: #475569;
}

html[data-panel-theme="light"] .panel-breadcrumb__item--active .panel-breadcrumb__current {
    color: #0f172a;
}

/* ── Panel cards & forms ── */

.panel-card {
    border-radius: 1rem;
    border: 1px solid rgba(30, 41, 59, 0.85);
    background: rgba(15, 23, 42, 0.55);
    padding: 1.25rem 1.5rem;
    box-shadow: none;
}

.panel-card__header {
    margin-bottom: 1.25rem;
}

.panel-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #f8fafc;
}

.panel-card__description {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.panel-card--guide {
    padding: 0;
    overflow: hidden;
}

.panel-card--guide .panel-card__guide-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.panel-card--guide .panel-card__guide-summary::-webkit-details-marker {
    display: none;
}

.panel-card--guide .panel-card__guide-heading {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.panel-card--guide .panel-card__guide-chevron {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.45);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.panel-card--guide .panel-card__guide-chevron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translate(-50%, -65%) rotate(45deg);
    transition: border-color 0.2s ease;
}

.panel-card--guide[open] .panel-card__guide-chevron {
    transform: rotate(180deg);
    border-color: rgba(34, 211, 238, 0.45);
}

.panel-card--guide[open] .panel-card__guide-chevron::before {
    border-color: #22d3ee;
}

.panel-card--guide .panel-card__body {
    padding: 0 1.25rem 1.25rem;
}

@media (min-width: 768px) {
    .panel-card--guide {
        padding: 1.25rem 1.5rem;
    }

    .panel-card--guide .panel-card__guide-summary {
        padding: 0;
        cursor: default;
        pointer-events: none;
    }

    .panel-card--guide .panel-card__guide-chevron {
        display: none;
    }

    .panel-card--guide .panel-card__guide-heading {
        margin-bottom: 1.25rem;
    }

    .panel-card--guide .panel-card__body {
        padding: 0;
    }
}

.panel-cron-error-guide-wrap {
    padding: 0;
    overflow: hidden;
}

.panel-cron-error-guide-wrap__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.panel-cron-error-guide-wrap__summary::-webkit-details-marker {
    display: none;
}

.panel-cron-error-guide-wrap__heading {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.panel-cron-error-guide-wrap__chevron {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.45);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.panel-cron-error-guide-wrap__chevron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translate(-50%, -65%) rotate(45deg);
    transition: border-color 0.2s ease;
}

.panel-cron-error-guide-wrap[open] .panel-cron-error-guide-wrap__chevron {
    transform: rotate(180deg);
    border-color: rgba(34, 211, 238, 0.45);
}

.panel-cron-error-guide-wrap[open] .panel-cron-error-guide-wrap__chevron::before {
    border-color: #22d3ee;
}

.panel-cron-error-guide-wrap__body {
    padding: 0 1.25rem 1.25rem;
}

.panel-settings-cron__guide-lead,
.panel-settings-cron__table-hint {
    margin: 0 0 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.8;
}

.panel-cron-error-guide {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-cron-error-guide__item {
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.panel-cron-error-guide__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
}

.panel-cron-error-guide__summary::-webkit-details-marker {
    display: none;
}

.panel-cron-error-guide__summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.35rem;
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25rem;
    text-align: center;
}

.panel-cron-error-guide__item[open] .panel-cron-error-guide__summary::after {
    content: '−';
}

.panel-cron-error-guide__tag {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 500;
}

.panel-cron-error-guide__body {
    padding: 0 1rem 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.8;
}

.panel-cron-error-guide__body p {
    margin: 0 0 0.5rem;
}

.panel-cron-error-guide__body strong {
    color: #e2e8f0;
}

.panel-cron-error-guide__body .panel-bots-guide {
    margin-top: 0.35rem;
}

.panel-settings-cron code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    background: rgba(15, 23, 42, 0.45);
    color: #e2e8f0;
    font-size: 0.82rem;
}

html[data-panel-theme="light"] .panel-cron-error-guide-wrap__chevron {
    border-color: #e2e8f0;
    background: #f8fafc;
}

html[data-panel-theme="light"] .panel-settings-cron__guide-lead,
html[data-panel-theme="light"] .panel-settings-cron__table-hint {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-cron-error-guide__item {
    border-color: #e2e8f0;
    background: #f8fafc;
}

html[data-panel-theme="light"] .panel-cron-error-guide__summary {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-cron-error-guide__summary::after {
    background: #e2e8f0;
    color: #475569;
}

html[data-panel-theme="light"] .panel-cron-error-guide__body {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-cron-error-guide__body strong {
    color: #334155;
}

html[data-panel-theme="light"] .panel-cron-error-guide__tag {
    background: rgba(59, 130, 246, 0.1);
    color: #0369a1;
}

html[data-panel-theme="light"] .panel-settings-cron code {
    background: #f1f5f9;
    color: #334155;
}

.panel-settings-cron,
.panel-page-cron {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-settings-cron__summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.panel-settings-cron__status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.panel-settings-cron__status-label {
    min-width: 10rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
}

.panel-settings-cron__actions {
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.panel-settings-cron__hint {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.08);
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.75;
}

.panel-settings-cron__hint-note {
    margin: 0.5rem 0 0;
}

.panel-settings-cron__ping-url {
    display: block;
    margin-top: 0.5rem;
    word-break: break-all;
}

.panel-cron-tasks {
    display: grid;
    gap: 0.875rem;
}

.panel-cron-tasks__empty {
    padding: 1.25rem;
    border-radius: 0.875rem;
    border: 1px dashed rgba(51, 65, 85, 0.85);
    color: #94a3b8;
    text-align: center;
    font-size: 0.875rem;
}

.panel-cron-task {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(30, 41, 59, 0.9);
    background: rgba(15, 23, 42, 0.45);
}

.panel-cron-task--failed {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(127, 29, 29, 0.12);
}

.panel-cron-task--running {
    border-color: rgba(245, 158, 11, 0.35);
}

.panel-cron-task__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.panel-cron-task__identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.panel-cron-task__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.5;
}

.panel-cron-task__command {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
    color: #94a3b8;
}

.panel-cron-task__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem 1rem;
    margin: 0;
}

.panel-cron-task__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.panel-cron-task__meta-item dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.panel-cron-task__meta-item dd {
    margin: 0;
    font-size: 0.875rem;
    color: #e2e8f0;
}

.panel-cron-task__error {
    padding: 0.75rem 0.875rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(127, 29, 29, 0.18);
}

.panel-cron-task__error-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fca5a5;
}

.panel-cron-task__error-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #fecaca;
    word-break: break-word;
}

.panel-cron-task__actions {
    display: flex;
    justify-content: flex-end;
}

.panel-cron-failed-table {
    margin-top: 1rem;
}

.panel-cron-failed-table__error {
    font-size: 0.8125rem;
    color: #fca5a5;
    word-break: break-word;
}

html[data-panel-theme="light"] .panel-settings-cron__status-label {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-settings-cron__hint {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.06);
    color: #475569;
}

html[data-panel-theme="light"] .panel-cron-task {
    border-color: rgba(226, 232, 240, 0.95);
    background: #fff;
}

html[data-panel-theme="light"] .panel-cron-task--failed {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(254, 242, 242, 0.9);
}

html[data-panel-theme="light"] .panel-cron-task__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-cron-task__command {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-cron-task__meta-item dd {
    color: #334155;
}

html[data-panel-theme="light"] .panel-cron-task__error {
    border-color: rgba(239, 68, 68, 0.22);
    background: #fef2f2;
}

html[data-panel-theme="light"] .panel-cron-task__error-label {
    color: #b91c1c;
}

html[data-panel-theme="light"] .panel-cron-task__error-text {
    color: #991b1b;
}

html[data-panel-theme="light"] .panel-cron-failed-table__error {
    color: #b91c1c;
}

.panel-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.panel-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #cbd5e1;
}

.panel-label__required {
    color: #f87171;
}

.panel-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.65);
    padding: 0.6875rem 0.875rem;
    font-size: 0.875rem;
    color: #f1f5f9;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-input::placeholder {
    color: #64748b;
}

.panel-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.panel-input--readonly {
    cursor: not-allowed;
    opacity: 0.75;
}

.panel-input--textarea {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.7;
}

.panel-bots-guide {
    margin: 0;
    padding: 0 1.25rem 0 0;
    list-style: disc;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.9;
}

.panel-bots-guide li + li {
    margin-top: 0.35rem;
}

.panel-bots-guide strong {
    color: #e2e8f0;
    font-weight: 600;
}

.panel-bots-guide__link {
    color: #38bdf8;
    text-decoration: underline;
}

.panel-page-bots > .panel-card + .panel-card,
.panel-page-bots > .panel-card + .panel-table {
    margin-top: 1.25rem;
}

.panel-page-form.panel-page-bots > .panel-card + .panel-card {
    margin-top: 1.25rem;
}

.panel-page-products {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-form__checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.375rem;
}

.panel-handoff-picker {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.panel-handoff-picker__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.panel-handoff-picker__intro {
    min-width: 0;
}

.panel-handoff-picker__title {
    display: block;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
}

.panel-handoff-picker__hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #94a3b8;
}

.panel-handoff-picker__toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.panel-handoff-picker__tool {
    border: 0;
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.panel-handoff-picker__tool:hover {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
}

.panel-handoff-picker__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

@media (min-width: 640px) {
    .panel-handoff-picker__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.panel-handoff-picker__card {
    display: block;
    cursor: pointer;
}

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

.panel-handoff-picker__card-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: rgba(15, 23, 42, 0.35);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.panel-handoff-picker__card:hover .panel-handoff-picker__card-body {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(30, 41, 59, 0.55);
}

.panel-handoff-picker__card:has(.panel-handoff-picker__input:checked) .panel-handoff-picker__card-body {
    border-color: rgba(59, 130, 246, 0.75);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.panel-handoff-picker__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    flex-shrink: 0;
}

.panel-handoff-picker__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.panel-handoff-picker__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.panel-handoff-picker__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-handoff-picker__uid {
    font-size: 0.6875rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-handoff-picker__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.65);
    color: transparent;
    background: rgba(15, 23, 42, 0.35);
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.panel-handoff-picker__check svg {
    width: 0.875rem;
    height: 0.875rem;
}

.panel-handoff-picker__card:has(.panel-handoff-picker__input:checked) .panel-handoff-picker__check {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #ffffff;
}

.panel-handoff-picker__card:has(.panel-handoff-picker__input:focus-visible) .panel-handoff-picker__card-body {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: 2px;
}

html[data-panel-theme="light"] .panel-handoff-picker__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-handoff-picker__hint {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-handoff-picker__tool {
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-handoff-picker__tool:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

html[data-panel-theme="light"] .panel-handoff-picker__card-body {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-handoff-picker__card:hover .panel-handoff-picker__card-body {
    background: #f8fafc;
    border-color: #93c5fd;
}

html[data-panel-theme="light"] .panel-handoff-picker__card:has(.panel-handoff-picker__input:checked) .panel-handoff-picker__card-body {
    background: #eff6ff;
    border-color: #3b82f6;
}

html[data-panel-theme="light"] .panel-handoff-picker__icon {
    color: #2563eb;
    background: #eff6ff;
}

html[data-panel-theme="light"] .panel-handoff-picker__name {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-handoff-picker__check {
    background: #f8fafc;
    border-color: #cbd5e1;
}

@media (max-width: 520px) {
    .panel-handoff-picker__header {
        flex-direction: column;
        gap: 0.625rem;
    }

    .panel-handoff-picker__card-body {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
    }

    .panel-handoff-picker__card-body .panel-table__badge {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .panel-handoff-picker__check {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

.panel-handoff-team__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.panel-handoff-team__member {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: rgba(15, 23, 42, 0.35);
}

.panel-handoff-team__member--suspended {
    opacity: 0.72;
}

.panel-handoff-team__member-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.panel-handoff-team__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    font-size: 0.9375rem;
    font-weight: 700;
    flex-shrink: 0;
}

.panel-handoff-team__identity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.panel-handoff-team__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-handoff-team__email {
    font-size: 0.75rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-handoff-team__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .panel-handoff-team__meta {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 1.25rem;
    }
}

.panel-handoff-team__channels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-handoff-team__channel {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.panel-handoff-team__channel svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.panel-handoff-team__channel--on {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.panel-handoff-team__channel--off {
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.35);
    border-color: rgba(71, 85, 105, 0.45);
}

.panel-handoff-team__bots {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.panel-handoff-team__bots-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel-handoff-team__bot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.panel-handoff-team__bot-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-handoff-team__bots-empty {
    font-size: 0.8125rem;
    color: #64748b;
}

.panel-handoff-team__issues {
    margin: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.panel-handoff-team__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(51, 65, 85, 0.35);
}

.panel-handoff-team__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
}

.panel-handoff-team__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: #64748b;
    background: rgba(51, 65, 85, 0.35);
}

.panel-handoff-team__empty-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.panel-handoff-team__empty-text {
    margin: 0.25rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #cbd5e1;
}

.panel-handoff-team__empty-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

html[data-panel-theme="light"] .panel-handoff-team__member {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-handoff-team__avatar {
    color: #2563eb;
    background: #eff6ff;
}

html[data-panel-theme="light"] .panel-handoff-team__name {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-handoff-team__channel--on {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

html[data-panel-theme="light"] .panel-handoff-team__channel--off {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-handoff-team__bot-tag {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

html[data-panel-theme="light"] .panel-handoff-team__issues {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

html[data-panel-theme="light"] .panel-handoff-team__actions {
    border-top-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-handoff-team__empty-icon {
    color: #64748b;
    background: #f1f5f9;
}

html[data-panel-theme="light"] .panel-handoff-team__empty-text {
    color: #334155;
}

.panel-settings-faq {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel-settings-faq__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-settings-faq__item {
    padding: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.45);
}

.panel-settings-faq__item--inactive {
    opacity: 0.72;
    border-style: dashed;
}

.panel-settings-faq__item-header {
    margin-bottom: 0.75rem;
}

.panel-settings-faq__status {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-settings-faq__status--active {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.panel-settings-faq__status--inactive {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
}

.panel-settings-faq__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.panel-settings-faq__delete {
    margin-top: 0.75rem;
}

.panel-settings-faq__create {
    margin-top: 0.25rem;
}

html[data-panel-theme="light"] .panel-settings-faq__item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-settings-faq__checkbox {
    color: #475569;
}

html[data-panel-theme="light"] .panel-bots-guide {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-bots-guide strong {
    color: #334155;
}

html[data-panel-theme="light"] .panel-bots-guide__link {
    color: #0284c7;
}

.panel-bots-prompt-example {
    margin: 1rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(51, 65, 85, 0.8);
    color: #cbd5e1;
    font-size: 0.8125rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.panel-bots-train-meta {
    margin: 0.25rem 0 1rem;
}

.panel-bots-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.panel-bot-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
}

.panel-bot-style-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.45);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-bot-style-card:hover {
    border-color: rgba(59, 130, 246, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.panel-bot-style-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.65);
    background: rgba(2, 6, 23, 0.35);
}

.panel-bot-style-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.panel-bot-style-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-bot-style-card__action {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #60a5fa;
}

.panel-bot-train-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.45);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-bot-train-card:hover {
    border-color: rgba(59, 130, 246, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.panel-bot-train-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.panel-bot-train-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.panel-bot-train-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
}

.panel-bot-train-card__desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #94a3b8;
}

.panel-bot-train-card__uid {
    margin: 0;
    font-size: 0.6875rem;
    color: #64748b;
    font-family: ui-monospace, monospace;
    word-break: break-all;
}

.panel-bot-train-card__action {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: #60a5fa;
}

.panel-bot-style-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 11rem;
    padding: 0.875rem;
    border-radius: 0.75rem 0.75rem 0 0;
    border: 1px solid rgba(51, 65, 85, 0.45);
    background-color: var(--bot-widget-bg);
}

.panel-bot-style-preview--compact {
    min-height: 9.5rem;
    border: none;
    border-radius: 0;
}

.panel-bot-style-preview__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-bot-style-preview__avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(59, 130, 246, 0.35);
}

.panel-bot-style-preview__avatar-wrap--mini {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0;
}

.panel-bot-style-preview__avatar {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
    border: 0;
}

.panel-bot-style-preview__avatar--default,
.panel-bot-style-preview__mini-avatar.panel-bot-style-preview__avatar--default {
    filter: brightness(0) invert(1);
}

.panel-bot-style-preview__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
}

.panel-bot-style-preview__messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.panel-bot-style-preview__row {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
}

.panel-bot-style-preview__row--user {
    justify-content: flex-start;
}

.panel-bot-style-preview__row--bot {
    justify-content: flex-end;
}

.panel-bot-style-preview__mini-avatar {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.panel-bot-style-preview__bubble {
    max-width: 78%;
    padding: 0.45rem 0.65rem;
    border-radius: 0.85rem;
    font-size: 0.72rem;
    line-height: 1.5;
}

.panel-bot-style-preview__row--user .panel-bot-style-preview__bubble {
    border-top-right-radius: 0.25rem;
}

.panel-bot-style-preview__row--bot .panel-bot-style-preview__bubble {
    border-top-left-radius: 0.25rem;
}

.panel-bot-style-preview__row--button {
    justify-content: flex-end;
}

.panel-bot-style-preview__button {
    width: 100%;
    max-width: 9.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--chat-button-color, #38bdf8) 40%, transparent);
    background: transparent;
    color: var(--chat-button-color, #38bdf8);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: default;
}

.panel-bot-style-editor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1100px) {
    .panel-bot-style-editor {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }

    .panel-bot-style-editor__preview {
        position: sticky;
        top: 6.5rem;
        align-self: start;
    }
}

.panel-bot-style-editor__preview-label {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.panel-bot-style-editor__reset {
    margin-top: 0.85rem;
}

.panel-btn--block {
    width: 100%;
    justify-content: center;
}

.panel-bot-style-form__section {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
}

.panel-bot-style-form__legend {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-bot-style-form__legend {
    color: #0f172a;
}

.panel-bot-style-form__avatar-fields,
.panel-bot-style-form__header-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-bot-style-form__type-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.panel-bot-style-form__radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    cursor: pointer;
}

.panel-bot-style-form__current-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.panel-bot-style-form__thumb {
    width: 4.5rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid rgba(51, 65, 85, 0.85);
}

.panel-bot-style-form__thumb--round {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
}

.panel-bot-style-form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #94a3b8;
    cursor: pointer;
}

.panel-form__grid--style-colors {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .panel-form__grid--style-colors {
        grid-template-columns: repeat(2, 1fr);
    }
}

.panel-input--file {
    padding: 0.55rem 0.75rem;
}

.panel-input[type="color"] {
    min-height: 2.75rem;
    padding: 0.25rem;
    cursor: pointer;
}

.panel-input[type="color"] {
    min-height: 2.75rem;
    padding: 0.25rem;
    cursor: pointer;
}

.panel-color-picker {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.panel-color-picker__wrap {
    position: relative;
    max-width: 12rem;
}

.panel-color-picker__input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem 0.55rem 2.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    font-size: 0.875rem;
    cursor: pointer;
}

.panel-color-picker__input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

html[data-panel-theme="light"] .panel-color-picker__input {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.65);
    color: #0f172a;
}

.panel-color-palette {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.panel-color-palette__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: right;
    transition: background 0.15s ease;
}

.panel-color-palette__trigger:hover {
    background: rgba(30, 41, 59, 0.45);
}

.panel-color-palette.is-open .panel-color-palette__trigger {
    background: rgba(30, 41, 59, 0.55);
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.panel-color-palette__trigger-main {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.panel-color-palette__label {
    margin: 0;
}

.panel-color-palette__current {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.panel-color-palette__current-dot {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--swatch-color);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25);
}

.panel-color-palette__current-label {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-color-palette__chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.25s ease, border-color 0.15s ease;
    margin-top: -0.2rem;
}

.panel-color-palette.is-open .panel-color-palette__chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
    border-color: #38bdf8;
}

.panel-color-palette__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.panel-color-palette.is-open .panel-color-palette__panel {
    grid-template-rows: 1fr;
}

.panel-color-palette__panel-inner {
    min-height: 0;
    overflow: hidden;
}

.panel-color-palette.is-open .panel-color-palette__panel-inner {
    overflow: visible;
}

.panel-color-palette__group + .panel-color-palette__group {
    border-top: 1px solid rgba(51, 65, 85, 0.45);
}

.panel-color-palette__group-label {
    margin: 0;
    padding: 0.65rem 0.85rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.panel-color-palette__swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
    gap: 0.45rem;
    padding: 0 0.75rem 0.75rem;
}

.panel-color-palette__swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.25rem 0.45rem;
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.panel-color-palette__swatch:hover {
    border-color: rgba(148, 163, 184, 0.65);
    transform: translateY(-1px);
}

.panel-color-palette__swatch.is-selected {
    border-color: rgba(56, 189, 248, 0.85);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.panel-color-palette__swatch-color {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: var(--swatch-color);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25);
}

.panel-color-palette__swatch-label {
    font-size: 0.68rem;
    line-height: 1.2;
    color: #94a3b8;
    text-align: center;
}

.panel-color-palette__swatch.is-selected .panel-color-palette__swatch-label {
    color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-color-palette {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(148, 163, 184, 0.55);
}

html[data-panel-theme="light"] .panel-color-palette__trigger:hover,
html[data-panel-theme="light"] .panel-color-palette.is-open .panel-color-palette__trigger {
    background: rgba(241, 245, 249, 0.95);
}

html[data-panel-theme="light"] .panel-color-palette.is-open .panel-color-palette__trigger {
    border-bottom-color: rgba(148, 163, 184, 0.45);
}

html[data-panel-theme="light"] .panel-color-palette__current-label {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-color-palette__group-label {
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-color-palette__group + .panel-color-palette__group {
    border-top-color: rgba(148, 163, 184, 0.35);
}

html[data-panel-theme="light"] .panel-color-palette__swatch {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.55);
}

html[data-panel-theme="light"] .panel-color-palette__swatch-label {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-color-palette__swatch.is-selected .panel-color-palette__swatch-label {
    color: #0f172a;
}

.panel-form__grid--style-colors .panel-color-palette {
    min-width: 0;
}

.panel-form__grid--style-colors .panel-color-palette--full {
    grid-column: 1 / -1;
}

.panel-color-palette--full .panel-color-palette__swatches {
    grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
}

.panel-file-picker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-file-picker__zone {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px dashed rgba(100, 116, 139, 0.75);
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.35);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.panel-file-picker__zone:hover,
.panel-file-picker__zone:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.75);
    background: rgba(30, 41, 59, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.panel-file-picker__zone--drag {
    border-color: rgba(59, 130, 246, 0.9);
    background: rgba(30, 58, 138, 0.25);
}

.panel-file-picker__zone--has-file {
    border-style: solid;
}

.panel-file-picker__preview-wrap {
    width: 4.5rem;
    height: 3.25rem;
    border-radius: 0.55rem;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.85);
    flex-shrink: 0;
}

.panel-file-picker--round .panel-file-picker__preview-wrap {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 9999px;
}

.panel-file-picker__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.panel-file-picker__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 4.5rem;
    height: 3.25rem;
    border-radius: 0.55rem;
    background: rgba(2, 6, 23, 0.35);
    color: #94a3b8;
    flex-shrink: 0;
}

.panel-file-picker--round .panel-file-picker__empty {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 9999px;
}

.panel-file-picker__icon {
    width: 1.35rem;
    height: 1.35rem;
}

.panel-file-picker__placeholder {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.4;
    max-width: 4rem;
}

.panel-file-picker__meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.panel-file-picker__filename {
    font-size: 0.8rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-file-picker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-file-picker__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 0.55rem;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.panel-file-picker__btn--primary {
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
}

.panel-file-picker__btn--primary:hover {
    background: rgba(29, 78, 216, 1);
}

.panel-file-picker__btn--ghost {
    background: transparent;
    border-color: rgba(100, 116, 139, 0.65);
    color: #cbd5e1;
}

.panel-file-picker__btn--ghost:hover {
    border-color: rgba(248, 113, 113, 0.75);
    color: #fca5a5;
}

html[data-panel-theme="light"] .panel-file-picker__zone {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.75);
}

html[data-panel-theme="light"] .panel-file-picker__zone:hover,
html[data-panel-theme="light"] .panel-file-picker__zone:focus {
    background: #eff6ff;
}

html[data-panel-theme="light"] .panel-file-picker__empty {
    background: #e2e8f0;
    color: #64748b;
}

html[data-panel-theme="light"] .panel-file-picker__filename {
    color: #334155;
}

html[data-panel-theme="dark"] .clr-picker,
html[data-panel-theme="dark"] .clr-picker input {
    color: #e2e8f0;
}

html[data-panel-theme="dark"] .clr-picker {
    background: #0f172a;
    border-color: rgba(51, 65, 85, 0.9);
}

html[data-panel-theme="light"] .panel-bot-style-card {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.55);
}

html[data-panel-theme="light"] .panel-bot-style-card__footer {
    background: #f8fafc;
    border-top-color: rgba(148, 163, 184, 0.45);
}

html[data-panel-theme="light"] .panel-bot-style-card__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-bot-train-card {
    background: #fff;
    border-color: rgba(148, 163, 184, 0.55);
}

html[data-panel-theme="light"] .panel-bot-train-card__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-bot-train-card__desc {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-bot-train-card__uid {
    color: #94a3b8;
}

.panel-bot-logs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 24rem;
    overflow-y: auto;
    padding-left: 0.25rem;
}

.panel-bot-log {
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.55);
    padding: 0.85rem 1rem;
}

.panel-bot-log__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.panel-bot-log__action {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
}

.panel-bot-log__time {
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
}

.panel-bot-log__actor {
    margin: 0 0 0.5rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.panel-bot-log__ip {
    color: #64748b;
}

.panel-bot-log__changes {
    margin: 0;
    padding: 0 1.1rem 0 0;
    list-style: disc;
    color: #cbd5e1;
    font-size: 0.8125rem;
    line-height: 1.7;
}

html[data-panel-theme="light"] .panel-bot-log {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-bot-log__action {
    color: #1e293b;
}

html[data-panel-theme="light"] .panel-bot-log__changes {
    color: #475569;
}

.panel-table-click-popup__section--flush {
    border-top: 0;
    padding-top: 0;
}

.panel-bot-chat-purge__summary {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.panel-bot-chat-purge {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.panel-bot-chat-purge__select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #cbd5e1;
    cursor: pointer;
}

.panel-bot-chat-purge__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 18rem;
    overflow: auto;
}

.panel-bot-chat-purge__item {
    margin: 0;
}

.panel-bot-chat-purge__row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(30, 41, 59, 0.65);
    border-radius: 0.625rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.35);
}

.panel-bot-chat-purge__row:hover {
    border-color: rgba(51, 65, 85, 0.9);
}

.panel-bot-chat-purge__row input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.panel-bot-chat-purge__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.panel-bot-chat-purge__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.panel-bot-chat-purge__name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #e2e8f0;
}

.panel-bot-chat-purge__time {
    font-size: 0.6875rem;
    color: #64748b;
    white-space: nowrap;
}

.panel-bot-chat-purge__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.panel-bot-chat-purge__preview {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-btn--danger-text {
    color: #f87171;
}

html[data-panel-theme="light"] .panel-bot-chat-purge__select-all {
    color: #334155;
}

html[data-panel-theme="light"] .panel-bot-chat-purge__row {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-bot-chat-purge__name {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-bot-chat-purge__preview {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-bots-prompt-example {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.panel-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.panel-dropdown--inline {
    display: inline-flex;
}

.panel-dropdown--inline .panel-dropdown__control {
    width: auto;
}

.panel-dropdown__control {
    position: relative;
    width: 100%;
}

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

.panel-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.65);
    padding: 0.6875rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f1f5f9;
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
}

.panel-dropdown__trigger:hover {
    border-color: rgba(59, 130, 246, 0.35);
}

.panel-dropdown--open .panel-dropdown__trigger,
.panel-dropdown__trigger:focus-visible {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.panel-dropdown__trigger:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.panel-dropdown__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-dropdown__chevron {
    width: 1rem;
    height: 1rem;
    shrink: 0;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
}

.panel-dropdown--open .panel-dropdown__chevron {
    transform: rotate(180deg);
    color: #94a3b8;
}

.panel-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    max-height: 14rem;
    overflow-y: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.98);
    padding: 0.25rem;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

.panel-dropdown__option {
    width: 100%;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    padding: 0.5625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #cbd5e1;
    text-align: right;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.panel-dropdown__option:hover {
    background: rgba(30, 41, 59, 0.75);
    color: #f8fafc;
}

.panel-dropdown__option--active {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
}

.panel-dropdown__trigger.panel-table-filter__control,
.panel-dropdown__trigger.panel-table__per-page-select {
    width: 100%;
}

.panel-dropdown--inline .panel-dropdown__trigger.panel-table__per-page-select {
    width: auto;
}

html[data-panel-theme="light"] .panel-dropdown__trigger {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-dropdown__trigger:hover {
    border-color: #bfdbfe;
}

html[data-panel-theme="light"] .panel-dropdown--open .panel-dropdown__trigger,
html[data-panel-theme="light"] .panel-dropdown__trigger:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html[data-panel-theme="light"] .panel-dropdown__chevron {
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-dropdown__menu {
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

html[data-panel-theme="light"] .panel-dropdown__option {
    color: #475569;
}

html[data-panel-theme="light"] .panel-dropdown__option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-dropdown__option--active {
    background: #eff6ff;
    color: #2563eb;
}

.panel-field__hint {
    font-size: 0.75rem;
    color: #64748b;
}

.panel-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.panel-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.65);
    padding-bottom: 0.875rem;
}

.panel-info-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.panel-info-row__label {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.panel-info-row__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: left;
}

.panel-info-row__value--mono {
    font-family: ui-monospace, monospace;
}

.panel-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.panel-form__grid--checkbox {
    align-items: end;
}

@media (min-width: 640px) {
    .panel-form__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.panel-form__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(30, 41, 59, 0.65);
}

.panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.75rem;
    padding: 0.6875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.panel-btn--primary {
    border: 0;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.panel-btn--primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.panel-btn--sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
}

.panel-btn__icon {
    height: 1rem;
    width: 1rem;
    shrink: 0;
}

.panel-btn--ghost {
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.35);
    color: #cbd5e1;
}

.panel-btn--ghost:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(37, 99, 235, 0.12);
    color: #fff;
}

.panel-btn--secondary {
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
}

.panel-btn--secondary:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.panel-btn--danger {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.panel-btn--danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.panel-btn--success {
    border-color: rgba(34, 197, 94, 0.35) !important;
    background: rgba(34, 197, 94, 0.12) !important;
    color: #4ade80 !important;
}

.panel-api-token {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.panel-api-token--section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(30, 41, 59, 0.65);
}

.panel-api-token__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.panel-api-token__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #e2e8f0;
}

.panel-api-token__hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

.panel-api-token__badge {
    shrink: 0;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.12);
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #a78bfa;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.panel-api-token__box {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(2, 6, 23, 0.55);
    padding: 0.875rem 1rem;
}

.panel-api-token__value {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #93c5fd;
    word-break: break-all;
    user-select: all;
}

.panel-api-token__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-api-token__form {
    display: inline-flex;
}

.panel-api-token__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(51, 65, 85, 0.85);
    background: rgba(15, 23, 42, 0.35);
    padding: 1rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.panel-profile {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel-profile__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.panel-profile__grid--single {
    max-width: 42rem;
}

.panel-profile__grid--password {
    max-width: 56rem;
}

.panel-form__grid.panel-form__grid--password {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .panel-profile__grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.panel-wallet {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel-wallet__renew-banner {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    font-size: 0.8125rem;
    line-height: 1.7;
}

html[data-panel-theme="light"] .panel-wallet__renew-banner {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.panel-wallet__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
    padding: 1.25rem 1.5rem;
}

.panel-wallet__summary-icon {
    display: flex;
    height: 3.25rem;
    width: 3.25rem;
    shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
}

.panel-wallet__summary-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.panel-wallet__summary-label {
    margin: 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.panel-wallet__summary-value {
    margin: 0.35rem 0 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}

.panel-wallet__summary-unit {
    margin-right: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #94a3b8;
}

.panel-wallet__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.panel-wallet__grid > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.panel-wallet__chart {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.panel-wallet__history {
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .panel-wallet__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.panel-wallet__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-wallet__presets-label {
    margin: 0 0 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #cbd5e1;
}

.panel-wallet__presets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

@media (min-width: 640px) {
    .panel-wallet__presets-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.panel-wallet__preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    min-height: 3.75rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: rgba(15, 23, 42, 0.35);
    padding: 0.75rem 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #e2e8f0;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.panel-wallet__preset:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(37, 99, 235, 0.12);
}

.panel-wallet__preset.is-active {
    border-color: rgba(59, 130, 246, 0.75);
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.panel-wallet__preset-unit {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
}

.panel-wallet__preset.is-active .panel-wallet__preset-unit {
    color: #93c5fd;
}

.panel-profile-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(30, 41, 59, 0.85);
    background: rgba(15, 23, 42, 0.55);
    padding: 1.25rem 1.5rem;
}

.panel-profile-summary__avatar {
    display: flex;
    height: 4rem;
    width: 4rem;
    shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.panel-profile-summary__name {
    font-size: 1.125rem;
    font-weight: 800;
    color: #f8fafc;
}

.panel-profile-summary__username {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.panel-profile-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.625rem;
}

.panel-profile-summary__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
}

.panel-profile-summary__badge--active {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.panel-profile-summary__badge--inactive,
.panel-profile-summary__badge--pending {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.panel-profile-summary__badge--suspended {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.panel-profile-summary__badge--admin {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.panel-profile-summary__badge--google {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

html[data-panel-theme="light"] .panel-card,
html[data-panel-theme="light"] .panel-profile-summary {
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-panel-theme="light"] .panel-card__title,
html[data-panel-theme="light"] .panel-profile-summary__name {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-card__description,
html[data-panel-theme="light"] .panel-profile-summary__username {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-card--guide .panel-card__guide-chevron {
    border-color: #e2e8f0;
    background: #f8fafc;
}

html[data-panel-theme="light"] .panel-label {
    color: #334155;
}

html[data-panel-theme="light"] .panel-input {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html[data-panel-theme="light"] .panel-info-row {
    border-bottom-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-info-row__label {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-info-row__value {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-form__actions {
    border-top-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-btn--ghost {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

html[data-panel-theme="light"] .panel-btn--ghost:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-btn--secondary {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

html[data-panel-theme="light"] .panel-btn--secondary:hover {
    background: #fef3c7;
    color: #92400e;
}

html[data-panel-theme="light"] .panel-api-token--section {
    border-top-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-api-token__title {
    color: #334155;
}

html[data-panel-theme="light"] .panel-api-token__hint {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-api-token__badge {
    background: #f5f3ff;
    color: #7c3aed;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15);
}

html[data-panel-theme="light"] .panel-api-token__box {
    border-color: #e2e8f0;
    background: #f8fafc;
}

html[data-panel-theme="light"] .panel-api-token__value {
    color: #1d4ed8;
}

html[data-panel-theme="light"] .panel-api-token__empty {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

html[data-panel-theme="light"] .panel-profile-summary__badge--active {
    background: #ecfdf5;
    color: #059669;
}

html[data-panel-theme="light"] .panel-profile-summary__badge--admin {
    background: #eff6ff;
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-profile-summary__badge--google {
    background: #eff6ff;
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-topbar {
    border-bottom-color: #e2e8f0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html[data-panel-theme="light"] .panel-topbar__toggle {
    color: #475569;
}

html[data-panel-theme="light"] .panel-topbar__toggle:hover {
    background: #f1f5f9;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-topbar__avatar {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

html[data-panel-theme="light"] .panel-sidebar {
    border-left-color: #e2e8f0;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.06);
}

html[data-panel-theme="light"] .panel-sidebar__header {
    border-bottom-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-sidebar__close {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-sidebar__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-sidebar__mode-toggle {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-sidebar__mode-btn {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-sidebar__mode-btn--active {
    color: #ffffff;
}

html[data-panel-theme="light"] .panel-sidebar__profile {
    border-color: #e2e8f0;
    background: #f8fafc;
}

html[data-panel-theme="light"] .panel-sidebar__name {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-sidebar__meta {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-sidebar__badge {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

html[data-panel-theme="light"] .panel-sidebar__wallet {
    border-color: #dbeafe;
    background: #eff6ff;
}

html[data-panel-theme="light"] .panel-sidebar__wallet-label {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-sidebar__wallet-value {
    color: #1e40af;
}

html[data-panel-theme="light"] .panel-sidebar__wallet-value .text-slate-400 {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-wallet__summary {
    border-color: #dbeafe;
    background: #eff6ff;
}

html[data-panel-theme="light"] .panel-wallet__summary-icon {
    background: #dbeafe;
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-wallet__summary-label,
html[data-panel-theme="light"] .panel-wallet__summary-unit {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-wallet__summary-value {
    color: #1e40af;
}

html[data-panel-theme="light"] .panel-wallet__presets-label {
    color: #475569;
}

html[data-panel-theme="light"] .panel-wallet__preset {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-wallet__preset:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

html[data-panel-theme="light"] .panel-wallet__preset.is-active {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1d4ed8;
}

html[data-panel-theme="light"] .panel-sidebar__section-title {
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-sidebar__link {
    color: #475569;
}

html[data-panel-theme="light"] .panel-sidebar__link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-sidebar__link--active {
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

html[data-panel-theme="light"] .panel-sidebar__link-icon {
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-sidebar__link--active .panel-sidebar__link-icon {
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-sidebar__group-chevron {
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-sidebar__sublink {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-sidebar__sublink:hover {
    background: #f1f5f9;
    color: #334155;
}

html[data-panel-theme="light"] .panel-sidebar__sublink--active {
    background: #eff6ff;
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-sidebar__sublink--active .panel-sidebar__sublink-dot {
    background: #2563eb;
}

html[data-panel-theme="light"] .panel-sidebar__footer {
    border-top-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-sidebar__footer-link {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-sidebar__footer-link:hover {
    background: #f1f5f9;
    color: #334155;
}

html[data-panel-theme="light"] .panel-sidebar__footer-link--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

html[data-panel-theme="light"] .panel-sidebar-overlay {
    background: rgba(15, 23, 42, 0.25);
}

.panel-admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panel-admin-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .panel-admin-title {
        font-size: 1.875rem;
    }
}

.panel-admin-subtitle {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #64748b;
}

.panel-admin-header-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #eff6ff;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.panel-admin-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .panel-admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .panel-admin-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.panel-admin-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.panel-admin-stat:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.panel-admin-stat__icon {
    display: flex;
    height: 2.75rem;
    width: 2.75rem;
    shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
}

.panel-admin-stat__icon svg {
    height: 1.375rem;
    width: 1.375rem;
}

.panel-admin-stat__icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.panel-admin-stat__icon--green {
    background: #ecfdf5;
    color: #059669;
}

.panel-admin-stat__icon--violet {
    background: #f5f3ff;
    color: #7c3aed;
}

.panel-admin-stat__icon--amber {
    background: #fffbeb;
    color: #d97706;
}

.panel-admin-stat__label {
    font-size: 0.8125rem;
    color: #64748b;
}

.panel-admin-stat__value {
    margin-top: 0.125rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.panel-admin-stat__value--sm {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
}

.panel-admin-stat__unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.panel-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .panel-admin-grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

.panel-admin-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.panel-admin-card__title {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.panel-admin-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-admin-quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    transition: background 0.2s, color 0.2s;
}

.panel-admin-quick-link:hover {
    background: #f8fafc;
    color: #2563eb;
}

.panel-admin-quick-link__icon {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: #64748b;
}

.panel-admin-quick-link__icon svg {
    height: 1.125rem;
    width: 1.125rem;
}

.panel-admin-quick-link:hover .panel-admin-quick-link__icon {
    background: #eff6ff;
    color: #2563eb;
}

.panel-admin-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.panel-admin-status-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #475569;
}

.panel-admin-status-dot {
    height: 0.5rem;
    width: 0.5rem;
    shrink: 0;
    border-radius: 9999px;
}

.panel-admin-status-dot--green {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.panel-admin-status-dot--amber {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ── Admin dashboard dark theme ── */

html[data-panel-theme="dark"] .panel-admin-title {
    color: #f8fafc;
}

html[data-panel-theme="dark"] .panel-admin-subtitle {
    color: #94a3b8;
}

html[data-panel-theme="dark"] .panel-admin-header-badge {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

html[data-panel-theme="dark"] .panel-admin-stat {
    border-color: rgba(30, 41, 59, 0.85);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: none;
}

html[data-panel-theme="dark"] .panel-admin-stat:hover {
    border-color: rgba(51, 65, 85, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html[data-panel-theme="dark"] .panel-admin-stat__label {
    color: #94a3b8;
}

html[data-panel-theme="dark"] .panel-admin-stat__value {
    color: #f1f5f9;
}

html[data-panel-theme="dark"] .panel-admin-stat__value--sm,
html[data-panel-theme="dark"] .panel-admin-stat__unit {
    color: #64748b;
}

html[data-panel-theme="dark"] .panel-admin-stat__icon--blue {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

html[data-panel-theme="dark"] .panel-admin-stat__icon--green {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

html[data-panel-theme="dark"] .panel-admin-stat__icon--violet {
    background: rgba(124, 58, 237, 0.12);
    color: #a78bfa;
}

html[data-panel-theme="dark"] .panel-admin-stat__icon--amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

html[data-panel-theme="dark"] .panel-admin-card {
    border-color: rgba(30, 41, 59, 0.85);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: none;
}

html[data-panel-theme="dark"] .panel-admin-card__title {
    color: #f8fafc;
}

html[data-panel-theme="dark"] .panel-admin-quick-link {
    color: #cbd5e1;
}

html[data-panel-theme="dark"] .panel-admin-quick-link:hover {
    background: rgba(30, 41, 59, 0.65);
    color: #fff;
}

html[data-panel-theme="dark"] .panel-admin-quick-link__icon {
    background: rgba(30, 41, 59, 0.7);
    color: #94a3b8;
}

html[data-panel-theme="dark"] .panel-admin-quick-link:hover .panel-admin-quick-link__icon {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

html[data-panel-theme="dark"] .panel-admin-status-item {
    color: #94a3b8;
}

.panel-error-page {
    display: flex;
    min-height: 20rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.panel-error-content {
    max-width: 24rem;
    text-align: center;
}

.panel-error-icon {
    margin-inline: auto;
    height: 3rem;
    width: 3rem;
    color: #ef4444;
}

.panel-error-title {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
}

.panel-error-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-error-title {
    color: #1e293b;
}

html[data-panel-theme="light"] .panel-error-message {
    color: #64748b;
}

/* ── Panel table ── */

.panel-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.panel-table__title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.panel-table__description {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.panel-table__header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.panel-table__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-table-filter {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.panel-table-filter__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.panel-table-filter__control {
    width: 100%;
    border-radius: 0.625rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(2, 6, 23, 0.55);
    padding: 0.5625rem 0.75rem;
    font-size: 0.8125rem;
    color: #f1f5f9;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-table-filter__control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.panel-table-filter__range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.panel-table-filter__range--stack {
    grid-template-columns: 1fr;
    gap: 0.375rem;
}

.panel-table-filter__range--stack .panel-table-filter__range-sep {
    text-align: center;
}

.panel-table-filter__range-sep {
    font-size: 0.75rem;
    color: #64748b;
}

.panel-table__scroll {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(30, 41, 59, 0.85);
    background: rgba(15, 23, 42, 0.55);
}

.panel-table__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.panel-table__th {
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: right;
    border-bottom: 1px solid rgba(30, 41, 59, 0.85);
    background: rgba(2, 6, 23, 0.35);
    white-space: nowrap;
}

.panel-table__th--filterable {
    position: relative;
}

.panel-table__th-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.panel-table__th-label {
    line-height: 1.2;
}

.panel-table__filter {
    position: relative;
    display: inline-flex;
}

.panel-table__filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.panel-table__filter-trigger:hover {
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.45);
}

.panel-table__filter-trigger--active {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
}

.panel-table__filter-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.panel-table__filter-popover {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    z-index: 30;
    min-width: 14rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.98);
    padding: 0.875rem;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.45);
}

.panel-table__filter-popover--floating {
    position: fixed;
    top: 0;
    right: auto;
    left: 0;
    z-index: 500;
}

.panel-table__filter-popover[hidden] {
    display: none;
}

.panel-table__filter-popover-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
}

.panel-table__filter-popover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.panel-table__th--center {
    text-align: center;
}

.panel-table__th--left {
    text-align: left;
}

.panel-table__td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: #e2e8f0;
    text-align: right;
    border-bottom: 1px solid rgba(30, 41, 59, 0.55);
    vertical-align: middle;
}

.panel-table__td--center {
    text-align: center;
}

.panel-table__td--left {
    text-align: left;
}

.panel-table__row:last-child .panel-table__td {
    border-bottom: 0;
}

.panel-table__row:hover {
    background: rgba(30, 41, 59, 0.35);
}

.panel-table__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
}

.panel-table__product-thumb {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    background: rgba(148, 163, 184, 0.15);
}

.panel-table__product-thumb--placeholder {
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

.panel-table__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
}

.panel-table__badge--green {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.panel-table__badge--gray {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.panel-table__badge--red {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.panel-table__badge--amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.panel-table__empty {
    padding: 2.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.panel-table__pagination {
    display: flex;
    justify-content: center;
}

.panel-table__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding-top: 0.25rem;
}

.panel-table__per-page {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-table__per-page-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.panel-table__per-page-select {
    min-width: 4.5rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.55);
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
    color: #f1f5f9;
    cursor: pointer;
}

.panel-table__per-page-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.panel-table__summary {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.panel-table__cell-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: inherit;
    text-decoration: none;
}

.panel-table__cell-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.panel-table__td--clickable .panel-table__cell-link {
    color: #93c5fd;
}

.panel-table__row--clickable {
    cursor: pointer;
}

.panel-table__row--clickable:hover {
    background: rgba(30, 41, 59, 0.5);
}

/* ── Panel tabs ── */

.panel-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.panel-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: rgba(15, 23, 42, 0.45);
    padding: 0.25rem;
}

.panel-tabs__tab {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 0.625rem;
    background: transparent;
    padding: 0.4375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.panel-tabs__tab:hover {
    color: #e2e8f0;
}

.panel-tabs__tab--active {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.panel-tabs__panels {
    display: flex;
    flex-direction: column;
}

.panel-tabs__panel {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

html[data-panel-theme="light"] .panel-tabs__list {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

html[data-panel-theme="light"] .panel-tabs__tab {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-tabs__tab:hover {
    color: #334155;
}

html[data-panel-theme="light"] .panel-tabs__tab--active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.panel-table-click-popup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-table-click-popup__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-form__grid--popup {
    grid-template-columns: 1fr;
}

.panel-table-click-popup__section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(30, 41, 59, 0.65);
}

.panel-table-click-popup__section-title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #e2e8f0;
}

.panel-table-click-popup__section-hint,
.panel-table-click-popup__notice {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.6;
}

.panel-table-click-popup__actions--stack {
    flex-direction: column;
    align-items: stretch;
}

.panel-table-click-popup__actions--stack .panel-btn {
    width: 100%;
}

.panel-api-token--compact {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 41, 59, 0.65);
}

.panel-table-click-popup__value {
    margin: 0;
    font-size: 0.9375rem;
    color: #e2e8f0;
    word-break: break-all;
}

.panel-table-click-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-table__pagination nav {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.panel-table__pagination a,
.panel-table__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.panel-table__pagination a {
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: rgba(15, 23, 42, 0.55);
}

.panel-table__pagination a:hover {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.45);
}

.panel-table__pagination span[aria-current="page"] {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.panel-table__pagination span[aria-disabled="true"] {
    opacity: 0.45;
    cursor: default;
}

html[data-panel-theme="light"] .panel-table__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-table__description,
html[data-panel-theme="light"] .panel-table-filter__label {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-table__scroll {
    border-color: #e2e8f0;
    background: #ffffff;
}

html[data-panel-theme="light"] .panel-table__filter-trigger {
    color: #94a3b8;
}

html[data-panel-theme="light"] .panel-table__filter-trigger:hover {
    color: #475569;
    background: #f1f5f9;
}

html[data-panel-theme="light"] .panel-table__filter-trigger--active {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

html[data-panel-theme="light"] .panel-table__filter-popover {
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

html[data-panel-theme="light"] .panel-table__filter-popover-title {
    color: #334155;
}

html[data-panel-theme="light"] .panel-table__per-page-label {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-table__per-page-select {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-table__summary {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-table__cell-link:hover,
html[data-panel-theme="light"] .panel-table__td--clickable .panel-table__cell-link {
    color: #2563eb;
}

html[data-panel-theme="light"] .panel-table__row--clickable:hover {
    background: #f8fafc;
}

html[data-panel-theme="light"] .panel-table-click-popup__value {
    color: #334155;
}

html[data-panel-theme="light"] .panel-table-click-popup__section {
    border-top-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-table-click-popup__section-title {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-table-click-popup__section-hint,
html[data-panel-theme="light"] .panel-table-click-popup__notice {
    color: #64748b;
}

html[data-panel-theme="light"] .panel-api-token--compact {
    border-top-color: #e2e8f0;
}

html[data-panel-theme="light"] .panel-table-filter__control {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-table__th {
    color: #64748b;
    border-bottom-color: #e2e8f0;
    background: #f8fafc;
}

html[data-panel-theme="light"] .panel-table__td {
    color: #334155;
    border-bottom-color: #f1f5f9;
}

html[data-panel-theme="light"] .panel-table__row:hover {
    background: #f8fafc;
}

html[data-panel-theme="light"] .panel-table__badge--green {
    background: #ecfdf5;
    color: #059669;
}

html[data-panel-theme="light"] .panel-table__badge--gray {
    background: #f1f5f9;
    color: #64748b;
}

html[data-panel-theme="light"] .panel-table__badge--red {
    background: #fef2f2;
    color: #dc2626;
}

html[data-panel-theme="light"] .panel-table__badge--amber {
    background: #fffbeb;
    color: #d97706;
}

html[data-panel-theme="light"] .panel-table__pagination a {
    border-color: #e2e8f0;
    background: #fff;
    color: #64748b;
}

/* Panel suspension overlay */
body.panel-body--suspended {
    overflow: hidden;
}

body.panel-body--suspended .panel-shell,
body.panel-body--suspended .panel-impersonation-bar,
body.panel-body--suspended .app-popup,
body.panel-body--suspended .panel-support-chat-widget {
    pointer-events: none;
    user-select: none;
}

.panel-suspension-block {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: auto;
}

.panel-suspension-block__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(6px);
}

.panel-suspension-block__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
}

.panel-suspension-block__panel {
    border-radius: 1rem;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
    padding: 1.35rem 1.25rem 1rem;
    text-align: center;
}

.panel-suspension-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.panel-suspension-block__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.panel-suspension-block__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
}

.panel-suspension-block__body {
    text-align: right;
}

.panel-suspension-block__lead,
.panel-suspension-block__contact {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #cbd5e1;
}

.panel-suspension-block__contact strong {
    color: #f8fafc;
    font-weight: 800;
}

.panel-suspension-block__reason {
    margin: 0 0 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.08);
    text-align: right;
}

.panel-suspension-block__reason-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fca5a5;
}

.panel-suspension-block__reason p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.75;
    color: #f1f5f9;
    white-space: pre-wrap;
}

.panel-suspension-block__contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.panel-suspension-block__contact-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
}

.panel-suspension-block__contact-link:hover {
    text-decoration: underline;
}

.panel-suspension-block__logout {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

html[data-panel-theme="light"] .panel-suspension-block__backdrop {
    background: rgba(15, 23, 42, 0.55);
}

html[data-panel-theme="light"] .panel-suspension-block__panel {
    background: #ffffff;
    border-color: #fecaca;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

html[data-panel-theme="light"] .panel-suspension-block__title {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-suspension-block__lead,
html[data-panel-theme="light"] .panel-suspension-block__contact {
    color: #475569;
}

html[data-panel-theme="light"] .panel-suspension-block__contact strong {
    color: #0f172a;
}

html[data-panel-theme="light"] .panel-suspension-block__reason {
    background: #fef2f2;
    border-color: #fecaca;
}

html[data-panel-theme="light"] .panel-suspension-block__reason p {
    color: #334155;
}

html[data-panel-theme="light"] .panel-suspension-block__contact-link {
    color: #0284c7;
}

/* ── Persian datepicker (panel tables) ── */

.datepicker-container {
    z-index: 60 !important;
    font-family: vazir, ui-sans-serif, system-ui, sans-serif;
}

.datepicker-plot-area {
    border-radius: 0.75rem !important;
    border: 1px solid rgba(51, 65, 85, 0.9) !important;
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.45) !important;
    color: #e2e8f0 !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td span,
.datepicker-plot-area .datepicker-year-view .year-item,
.datepicker-plot-area .datepicker-month-view .month-item {
    border-radius: 0.375rem;
}

.datepicker-plot-area .datepicker-day-view .table-days td.selected span,
.datepicker-plot-area .datepicker-day-view .table-days td span:hover {
    background: rgba(37, 99, 235, 0.85) !important;
    color: #fff !important;
}

.datepicker-plot-area .datepicker-header .btn-next,
.datepicker-plot-area .datepicker-header .btn-prev,
.datepicker-plot-area .toolbox .btn-today {
    color: #cbd5e1 !important;
}

html[data-panel-theme="light"] .datepicker-plot-area {
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
}

html[data-panel-theme="light"] .datepicker-plot-area .datepicker-header .btn-next,
html[data-panel-theme="light"] .datepicker-plot-area .datepicker-header .btn-prev,
html[data-panel-theme="light"] .datepicker-plot-area .toolbox .btn-today {
    color: #475569 !important;
}

/* Error pages */
.error-page-body {
    background: #050a18;
    color: #e2e8f0;
}

.error-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow: hidden;
}

.error-page__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.error-page__glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.45;
}

.error-page__glow--1 {
    width: 28rem;
    height: 28rem;
    top: -6rem;
    right: -4rem;
    background: rgba(37, 99, 235, 0.35);
}

.error-page__glow--2 {
    width: 22rem;
    height: 22rem;
    bottom: -5rem;
    left: -3rem;
    background: rgba(124, 58, 237, 0.28);
}

.error-page--forbidden .error-page__glow--1 {
    background: rgba(245, 158, 11, 0.28);
}

.error-page--forbidden .error-page__glow--2 {
    background: rgba(234, 88, 12, 0.2);
}

.error-page--server .error-page__glow--1 {
    background: rgba(239, 68, 68, 0.28);
}

.error-page--server .error-page__glow--2 {
    background: rgba(220, 38, 38, 0.18);
}

.error-page--maintenance .error-page__glow--1 {
    background: rgba(139, 92, 246, 0.3);
}

.error-page--maintenance .error-page__glow--2 {
    background: rgba(59, 130, 246, 0.22);
}

.error-page--session .error-page__glow--1 {
    background: rgba(14, 165, 233, 0.28);
}

.error-page__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.error-page__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.error-page__brand {
    display: inline-flex;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.error-page__brand:hover {
    opacity: 1;
}

.error-page__logo {
    height: 2.5rem;
    width: auto;
}

.error-page__card {
    width: 100%;
    padding: 2rem 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: rgba(12, 18, 41, 0.82);
    backdrop-filter: blur(12px);
    box-shadow:
        0 24px 48px rgba(2, 6, 23, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
}

.error-page__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.error-page__badge svg {
    width: 1.6rem;
    height: 1.6rem;
}

.error-page--forbidden .error-page__badge {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.28);
}

.error-page--server .error-page__badge {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.28);
}

.error-page--maintenance .error-page__badge {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.28);
}

.error-page--session .error-page__badge {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.28);
}

.error-page__code {
    margin: 0 0 0.35rem;
    font-size: clamp(3rem, 12vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #f8fafc 15%, #64748b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-page__title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
}

.error-page__message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #94a3b8;
}

.error-page__hint {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(51, 65, 85, 0.65);
    font-size: 0.82rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.error-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.error-page__btn:hover {
    transform: translateY(-1px);
}

.error-page__btn--primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.error-page__btn--primary:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

.error-page__btn--ghost {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(100, 116, 139, 0.55);
    color: #e2e8f0;
}

.error-page__btn--ghost:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.65);
}

.error-page__footer {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

/* Tailwind/component display rules must not override the native hidden attribute */
[hidden] {
    display: none !important;
}

/* Blog */
.blog-post-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.blog-post-layout__main {
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
}

.blog-post-layout__sidebar {
    min-width: 0;
    width: 100%;
    flex: 0 0 auto;
}

@media (min-width: 1024px) {
    .blog-post-layout {
        flex-direction: row;
        align-items: stretch;
        gap: 2.5rem;
    }

    .blog-post-layout__main {
        flex: 1 1 0;
        order: 1;
    }

    .blog-post-layout__sidebar {
        flex: 0 0 18rem;
        width: 18rem;
        order: 2;
        align-self: stretch;
    }

    .blog-sidebar {
        position: sticky;
        top: 5.5rem;
        max-height: calc(100vh - 6.5rem);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(100, 116, 139, 0.5) transparent;
    }

    .blog-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .blog-sidebar::-webkit-scrollbar-thumb {
        background: rgba(100, 116, 139, 0.5);
        border-radius: 9999px;
    }
}

@media (min-width: 1280px) {
    .blog-post-layout__sidebar {
        flex-basis: 20rem;
        width: 20rem;
    }
}

.blog-img {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.25), rgba(76, 29, 149, 0.25));
}

.blog-img--card {
    height: 12.5rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .blog-img--card {
        height: 13.5rem;
    }
}

.blog-img--hero {
    width: 100%;
    height: 13rem;
    max-height: 13rem;
}

@media (min-width: 640px) {
    .blog-img--hero {
        height: 16rem;
        max-height: 16rem;
    }
}

@media (min-width: 1024px) {
    .blog-img--hero {
        height: 18rem;
        max-height: 18rem;
    }
}

.blog-img--featured-card {
    height: 14rem;
    max-height: 14rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .blog-img--featured-card {
        height: 16rem;
        max-height: 16rem;
    }
}

.blog-img__photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-img__overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 10, 24, 0.55) 0%, rgba(5, 10, 24, 0.05) 45%, transparent 100%);
}

.blog-hero-figure {
    width: 100%;
    max-width: 100%;
}

.blog-post-body {
    width: 100%;
    max-width: 100%;
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 1rem;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    color: #f8fafc;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-post-body h2 { font-size: 1.5rem; }
.blog-post-body h3 { font-size: 1.25rem; }

.blog-post-body p {
    margin-bottom: 1.25rem;
}

.blog-post-body a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post-body a:hover {
    color: #7dd3fc;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0.85rem 0 1.1rem;
    padding: 0;
    list-style: none;
}

.blog-post-body ul > li,
.blog-post-body ol > li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.55rem;
    line-height: 1.75;
}

.blog-post-body ul > li::before {
    content: "";
    position: absolute;
    right: 0.2rem;
    top: 0.72em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #38bdf8;
    transform: translateY(-50%);
}

.blog-post-body ul ul > li::before {
    width: 0.35rem;
    height: 0.35rem;
    background: transparent;
    border: 2px solid #64748b;
}

.blog-post-body ul ul ul > li::before {
    width: 0.32rem;
    height: 0.32rem;
    background: #64748b;
    border: none;
}

.blog-post-body ol {
    counter-reset: blog-ol;
}

.blog-post-body ol > li {
    counter-increment: blog-ol;
}

.blog-post-body ol > li::before {
    content: counter(blog-ol);
    position: absolute;
    right: 0;
    top: 0.12em;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3rem;
    text-align: center;
}

.blog-post-body ol ol {
    counter-reset: blog-ol-nested;
}

.blog-post-body ol ol > li {
    counter-increment: blog-ol-nested;
}

.blog-post-body ol ol > li::before {
    content: counter(blog-ol-nested);
    min-width: 1.15rem;
    height: 1.15rem;
    font-size: 0.68rem;
    line-height: 1.15rem;
    background: rgba(100, 116, 139, 0.2);
    border-color: rgba(100, 116, 139, 0.45);
    color: #94a3b8;
}

.blog-post-body li > ul,
.blog-post-body li > ol {
    margin-top: 0.45rem;
    margin-bottom: 0.1rem;
}

.blog-post-body li > p {
    margin-bottom: 0.35rem;
}

.blog-post-body li > p:last-child {
    margin-bottom: 0;
}

.blog-post-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-right: 3px solid #38bdf8;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 0.75rem;
    color: #e2e8f0;
}

.blog-post-body figure,
.blog-post-body .rich-editor__figure {
    margin: 1.5rem auto;
    max-width: 100%;
}

.blog-post-body .rich-editor__figure-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.blog-post-body figure img,
.blog-post-body .rich-editor__figure-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    margin: 0;
    border: 0;
}

.blog-post-body > img,
.blog-post-body p > img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 22rem;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.blog-post-body .rich-editor__figure-handle,
.blog-post-body .rich-editor__figure-resize {
    display: none !important;
}

@media (max-width: 639px) {
    .blog-post-body {
        font-size: 0.875rem;
        line-height: 1.75;
    }

    .blog-post-body h2 {
        font-size: 1.25rem;
    }

    .blog-post-body h3 {
        font-size: 1.0625rem;
    }

    .blog-post-body h4 {
        font-size: 0.9375rem;
    }

    .blog-post-body p {
        margin-bottom: 1rem;
    }

    .blog-post-body blockquote {
        margin: 1.25rem 0;
        padding: 0.85rem 1rem;
        font-size: 0.875rem;
    }

    .blog-post-body figure,
    .blog-post-body .rich-editor__figure {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .blog-post-body .rich-editor__figure-media {
        width: 100%;
    }

    .blog-post-body figure img,
    .blog-post-body .rich-editor__figure-media img,
    .blog-post-body > img,
    .blog-post-body p > img {
        width: 100% !important;
        max-width: 100%;
    }
}

.blog-post-body strong {
    color: #f1f5f9;
}

.blog-sidebar__thumb {
    width: 3.5rem;
    height: 3.5rem;
}

.blog-sidebar__related-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.blog-sidebar__related-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
}

.blog-sidebar__related-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.blog-sidebar__related-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 9999px;
    background: rgba(51, 65, 85, 0.65);
    color: #94a3b8;
    font-size: 0.6875rem;
    font-weight: 700;
}

.blog-sidebar__related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-sidebar__card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid rgba(51, 65, 85, 0.65);
    background: rgba(15, 23, 42, 0.45);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.blog-sidebar__card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.blog-sidebar__card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.25), rgba(76, 29, 149, 0.25));
}

.blog-sidebar__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-sidebar__card:hover .blog-sidebar__card-media img {
    transform: scale(1.05);
}

.blog-sidebar__card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.55), transparent 55%);
    pointer-events: none;
}

.blog-sidebar__card-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.blog-sidebar__card-media--placeholder svg {
    width: 1.75rem;
    height: 1.75rem;
    opacity: 0.75;
}

.blog-sidebar__card-body {
    padding: 0.75rem 0.875rem 0.875rem;
}

.blog-sidebar__card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    color: #e2e8f0;
    transition: color 0.2s;
}

.blog-sidebar__card:hover .blog-sidebar__card-title {
    color: #7dd3fc;
}

.blog-sidebar__card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.blog-sidebar__card-meta-dot {
    color: #475569;
}

.blog-sidebar__card-arrow {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    opacity: 0;
    transform: translateX(4px);
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.blog-sidebar__card-arrow svg {
    width: 0.75rem;
    height: 0.75rem;
}

.blog-sidebar__card:hover .blog-sidebar__card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #7dd3fc;
}

.blog-sidebar__related-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(56, 189, 248, 0.25);
    background: rgba(14, 165, 233, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    color: #7dd3fc;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.blog-sidebar__related-all:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.12);
    color: #bae6fd;
}

.blog-sidebar__related-all svg {
    width: 0.875rem;
    height: 0.875rem;
}

@media (max-width: 1023px) {
    .blog-sidebar__related-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.875rem;
        padding-bottom: 0.25rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
    }

    .blog-sidebar__related-list::-webkit-scrollbar {
        height: 4px;
    }

    .blog-sidebar__related-list::-webkit-scrollbar-thumb {
        background: rgba(100, 116, 139, 0.45);
        border-radius: 9999px;
    }

    .blog-sidebar__card {
        flex: 0 0 14.5rem;
        scroll-snap-align: start;
    }
}

/* Site header — products mega menu */
.site-header-nav,
.site-header-nav ul,
.site-header-nav li[data-nav-dropdown] {
    overflow: visible;
}

.site-nav-products-panel {
    position: absolute;
    top: 100%;
    right: 50%;
    z-index: 50;
    width: 34rem;
    max-width: calc(100vw - 2rem);
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 1rem;
    transform: translateX(50%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(
        165deg,
        rgba(15, 23, 42, 0.96) 0%,
        rgba(5, 10, 24, 0.98) 100%
    );
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    isolation: isolate;
}

.site-nav-products-panel::before {
    content: '';
    position: absolute;
    top: -0.625rem;
    right: 0;
    left: 0;
    height: 0.625rem;
}

.site-nav-products-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
}

.site-nav-product-link {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.site-nav-product-link:hover {
    background: rgba(30, 41, 59, 0.7);
}

.site-nav-product-link--compact {
    padding: 0.75rem 1rem;
}

.site-nav-product-link--compact:hover {
    background: rgba(30, 41, 59, 0.6);
}

.site-nav-product-link__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.site-nav-product-link__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-nav-product-link__body {
    min-width: 0;
    text-align: right;
}

.site-nav-product-link__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.site-nav-product-link__summary {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    line-height: 1.625;
    color: #94a3b8;
}

.site-nav-products-panel--wide {
    width: 38rem;
}

/* ── Website Design — light body only (header/footer keep main site style) ── */

.site-wd-main {
    position: relative;
    isolation: isolate;
    background: var(--wd-bg-base);
    color: var(--wd-text-primary);
}

.site-wd-main .site-wd-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--wd-bg-base);
}

.site-wd-main .site-wd-bg__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.14;
}

.site-wd-main .site-wd-bg__glow--primary {
    top: -8rem;
    right: 10%;
    width: 28rem;
    height: 28rem;
    background: var(--wd-glow-primary);
}

.site-wd-main .site-wd-bg__glow--secondary {
    bottom: -6rem;
    left: 5%;
    width: 24rem;
    height: 24rem;
    background: var(--wd-glow-secondary);
    opacity: 0.1;
}

.site-wd-main .site-wd-bg__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--wd-bg-surface) 40%, transparent) 0%,
        var(--wd-bg-base) 85%
    );
}

.site-wd-main__content {
    position: relative;
    z-index: 1;
}

/* Typography — scoped to body */
.site-wd-main .ui-text--title,
.site-wd-main .ui-text--white,
.site-wd-main .ui-text--subtitle {
    color: var(--wd-text-primary) !important;
}

.site-wd-main .ui-text--body {
    color: var(--wd-text-body) !important;
}

.site-wd-main .ui-text--muted {
    color: var(--wd-text-muted) !important;
}

.site-wd-main .wd-card h3,
.site-wd-main .wd-card .font-bold {
    color: var(--wd-text-primary);
}

.site-wd-main .wd-card p {
    color: var(--wd-text-muted);
}

/* Surfaces */
.site-wd-main .wd-glass {
    position: relative;
    background: color-mix(in srgb, var(--wd-bg-surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--wd-accent) 14%, var(--wd-border-subtle));
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s, border-color 0.35s;
}

.site-wd-main .wd-glass:hover {
    border-color: color-mix(in srgb, var(--wd-accent) 28%, var(--wd-border-subtle));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--wd-accent) 10%, transparent);
}

.site-wd-main .wd-section-border {
    border-color: color-mix(in srgb, var(--wd-accent) 10%, var(--wd-border-subtle));
}

.site-wd-main .wd-surface {
    background: var(--wd-bg-surface);
}

.site-wd-main .wd-surface-alt {
    background: color-mix(in srgb, var(--wd-bg-surface) 75%, var(--wd-bg-base));
}

.site-wd-main .wd-card {
    border: 1px solid color-mix(in srgb, var(--wd-accent) 12%, var(--wd-border-subtle));
    background: var(--wd-bg-surface);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.site-wd-main .wd-card:hover {
    border-color: color-mix(in srgb, var(--wd-accent) 25%, var(--wd-border-subtle));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--wd-accent) 8%, transparent);
}

/* Buttons — only inside body */
.site-wd-main .ui-btn--primary {
    background: var(--wd-accent);
    border-color: var(--wd-accent);
    color: var(--wd-text-on-accent);
    font-weight: 700;
}

.site-wd-main .ui-btn--primary:hover {
    background: color-mix(in srgb, var(--wd-accent) 88%, black);
    border-color: color-mix(in srgb, var(--wd-accent) 88%, black);
}

.site-wd-main .ui-btn--outline {
    border-color: color-mix(in srgb, var(--wd-accent) 35%, var(--wd-border-subtle));
    color: var(--wd-accent);
    background: var(--wd-bg-surface);
}

.site-wd-main .ui-btn--outline:hover {
    background: color-mix(in srgb, var(--wd-accent) 8%, var(--wd-bg-surface));
    border-color: color-mix(in srgb, var(--wd-accent) 45%, var(--wd-border-subtle));
}

.site-wd-main .wd-link {
    color: var(--wd-accent);
}

.site-wd-main .wd-badge {
    border: 1px solid color-mix(in srgb, var(--wd-accent) 25%, var(--wd-border-subtle));
    background: color-mix(in srgb, var(--wd-accent) 8%, var(--wd-bg-surface));
    color: var(--wd-accent);
}

.site-wd-main .wd-stat-value {
    color: var(--wd-accent);
}

.site-wd-main .wd-faq-chevron {
    color: var(--wd-accent);
}

.site-wd-main .wd-cta {
    border: 1px solid color-mix(in srgb, var(--wd-accent) 18%, var(--wd-border-subtle));
    background: linear-gradient(
        135deg,
        var(--wd-bg-surface),
        color-mix(in srgb, var(--wd-accent) 6%, var(--wd-bg-base))
    );
    box-shadow: 0 4px 20px color-mix(in srgb, var(--wd-accent) 8%, transparent);
}

.site-wd-main .wd-cta__btn {
    background: var(--wd-accent);
    color: var(--wd-text-on-accent);
    font-weight: 700;
}

.site-wd-main .wd-cta__btn:hover {
    background: color-mix(in srgb, var(--wd-accent) 88%, black);
}

.site-wd-main .wd-bubble-user {
    background: color-mix(in srgb, var(--wd-border-subtle) 80%, var(--wd-bg-base));
    color: var(--wd-text-primary);
}

.site-wd-main .wd-bubble-assistant {
    background: var(--wd-accent);
    color: var(--wd-text-on-accent);
}

.site-wd-main .wd-demo-muted {
    color: var(--wd-text-muted);
}

.site-wd-main .wd-demo-text {
    color: var(--wd-text-primary);
}

/* ── Clinic landing (unique layout) ── */
.clinic-landing .clinic-hero {
    background: linear-gradient(160deg, #ecfdf5 0%, #f0fdf4 40%, #ffffff 100%);
}

.clinic-landing .clinic-hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .clinic-landing .clinic-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.clinic-landing .clinic-widget {
    border-radius: 1.25rem;
    border: 1px solid #d1fae5;
    background: #fff;
    box-shadow: 0 20px 50px -12px rgba(5, 150, 105, 0.18);
    overflow: hidden;
}

.clinic-landing .clinic-widget__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #ecfdf5;
    background: #f0fdf4;
}

.clinic-landing .clinic-widget__pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #10b981;
    animation: clinic-pulse 2s ease-in-out infinite;
}

@keyframes clinic-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.clinic-landing .clinic-widget__body {
    padding: 1.25rem;
}

.clinic-landing .clinic-widget__input {
    border-radius: 0.75rem;
    border: 1px dashed #a7f3d0;
    background: #f9fafb;
    padding: 0.875rem 1rem;
}

.clinic-landing .clinic-widget__result {
    margin-top: 1rem;
    border-radius: 0.875rem;
    border: 1px solid #d1fae5;
    background: linear-gradient(135deg, #ecfdf5, #fff);
    padding: 1rem;
}

.clinic-landing .clinic-widget__cta {
    background: linear-gradient(135deg, #059669, #10b981);
}

.clinic-landing .clinic-flow__track {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .clinic-landing .clinic-flow__track {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
}

.clinic-landing .clinic-flow__step {
    position: relative;
    display: flex;
    align-items: stretch;
}

.clinic-landing .clinic-flow__connector {
    position: absolute;
    top: 2rem;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to left, #a7f3d0, #6ee7b7);
    z-index: 0;
}

.clinic-landing .clinic-flow__card {
    position: relative;
    flex: 1;
    border-radius: 1rem;
    border: 1px solid #d1fae5;
    background: #fff;
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.clinic-landing .clinic-flow__card:hover {
    border-color: #6ee7b7;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.1);
}

.clinic-landing .clinic-flow__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: #ecfdf5;
    color: #059669;
    margin: 0 auto;
}

.clinic-landing .clinic-flow__num {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #a7f3d0;
}

.clinic-landing .clinic-chat {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
}

.clinic-landing .clinic-chat__window {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
}

.clinic-landing .clinic-chat__titlebar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.clinic-landing .clinic-chat__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
}

.clinic-landing .clinic-chat__dot--red { background: #fca5a5; }
.clinic-landing .clinic-chat__dot--yellow { background: #fcd34d; }
.clinic-landing .clinic-chat__dot--green { background: #6ee7b7; }

.clinic-landing .clinic-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    max-height: 22rem;
    overflow-y: auto;
}

.clinic-landing .clinic-chat__bubble {
    max-width: 85%;
    border-radius: 1rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.clinic-landing .clinic-chat__bubble--user {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-right-radius: 0.25rem;
}

.clinic-landing .clinic-chat__bubble--assistant {
    align-self: flex-end;
    background: #059669;
    color: #fff;
    border-bottom-left-radius: 0.25rem;
}

.clinic-landing .clinic-chat__card {
    align-self: flex-end;
    width: 100%;
    border-radius: 0.875rem;
    border: 1px solid #d1fae5;
    background: #ecfdf5;
    padding: 0.875rem;
}

.clinic-landing .clinic-doctor {
    border-color: #d1fae5;
    background: #fff;
}

.clinic-landing .clinic-doctor--highlight {
    border-color: #059669;
    background: linear-gradient(135deg, #ecfdf5, #fff);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.12);
}

.clinic-landing .clinic-dashboard {
    background: #f9fafb;
}

.clinic-landing .clinic-schedule__row {
    background: #f8fafc;
}

.clinic-landing .clinic-schedule__row--empty {
    background: #fffbeb;
    border: 1px dashed #fcd34d;
}

.clinic-landing .clinic-schedule__row--risk {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.clinic-landing .clinic-bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .clinic-landing .clinic-bento {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, auto);
    }

    .clinic-landing .clinic-bento__item--large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .clinic-landing .clinic-bento__item--medium {
        grid-column: span 2;
    }
}

.clinic-landing .clinic-bento__item--large {
    background: linear-gradient(135deg, #ecfdf5, #fff);
    border-color: #6ee7b7;
}

.clinic-landing .clinic-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .clinic-landing .clinic-timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.clinic-landing .clinic-timeline__step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
}

.clinic-landing .clinic-timeline__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #059669;
    background: #ecfdf5;
    z-index: 1;
}

.clinic-landing .clinic-timeline__line {
    display: none;
}

@media (min-width: 640px) {
    .clinic-landing .clinic-timeline__line {
        display: block;
        position: absolute;
        top: 1.25rem;
        left: calc(50% + 1.25rem);
        width: calc(100% - 2.5rem);
        height: 2px;
        background: #a7f3d0;
        z-index: 0;
    }
}

.clinic-landing .clinic-timeline__content {
    margin-top: 0.75rem;
}

.clinic-landing .clinic-cta__card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 6px rgba(4, 120, 87, 0.06),
        0 20px 50px rgba(4, 120, 87, 0.18),
        0 0 0 1px rgba(16, 185, 129, 0.08);
    background: linear-gradient(145deg, #022c22 0%, #064e3b 28%, #047857 55%, #059669 78%, #0d9488 100%);
}

.clinic-landing .clinic-cta__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.clinic-landing .clinic-cta__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.clinic-landing .clinic-cta__glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    pointer-events: none;
}

.clinic-landing .clinic-cta__glow--1 {
    top: -20%;
    right: -8%;
    width: 340px;
    height: 340px;
    background: rgba(52, 211, 153, 0.45);
}

.clinic-landing .clinic-cta__glow--2 {
    bottom: -25%;
    left: -10%;
    width: 380px;
    height: 380px;
    background: rgba(16, 185, 129, 0.35);
}

.clinic-landing .clinic-cta__glow--3 {
    top: 30%;
    left: 40%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
}

.clinic-landing .clinic-cta__badge {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #ecfdf5;
    backdrop-filter: blur(8px);
}

.clinic-landing .clinic-cta__btn {
    background: #fff;
    color: #047857;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.clinic-landing .clinic-cta__btn:hover {
    background: #ecfdf5;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.clinic-landing .clinic-cta__inner::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(2rem - 1px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

@media (min-width: 640px) {
    .clinic-landing .clinic-cta__inner::after {
        border-radius: calc(2.5rem - 1px);
    }
}

.clinic-landing .clinic-chat .ui-text--title,
.clinic-landing .clinic-chat .ui-text--subtitle,
.clinic-landing .clinic-cta .ui-text--title {
    color: #fff !important;
}

.clinic-landing .clinic-cta .ui-text--body {
    color: rgba(236, 253, 245, 0.9) !important;
}

.clinic-landing .clinic-chat .ui-text--body {
    color: rgba(209, 250, 229, 0.9) !important;
}

.clinic-landing .clinic-hero__visual {
    position: relative;
    min-height: 280px;
}

.clinic-landing .clinic-hero__svg {
    max-width: 100%;
    opacity: 0.95;
}

.clinic-landing .clinic-widget--overlay {
    position: absolute;
    bottom: -1rem;
    left: -0.5rem;
    width: min(240px, 55%);
    z-index: 2;
    box-shadow: 0 16px 40px rgba(5, 150, 105, 0.22);
}

@media (min-width: 640px) {
    .clinic-landing .clinic-widget--overlay {
        bottom: 1.5rem;
        left: 0;
        width: min(260px, 50%);
    }
}

.clinic-landing .clinic-illustration {
    display: block;
    pointer-events: none;
    user-select: none;
}

.clinic-landing .clinic-dashboard__visual {
    border-radius: 1rem;
    overflow: hidden;
}

.clinic-landing .clinic-showcase__badge {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.clinic-landing .clinic-journey__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .clinic-landing .clinic-journey__track {
        justify-content: space-between;
        gap: 0;
    }
}

.clinic-landing .clinic-journey__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 5rem;
    max-width: 8rem;
}

.clinic-landing .clinic-journey__line {
    position: absolute;
    top: 1.25rem;
    right: calc(50% + 1.25rem);
    width: calc(100% - 2.5rem);
    height: 2px;
    background: #6ee7b7;
}

.clinic-landing .clinic-journey__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid #10b981;
    color: #059669;
    z-index: 1;
}

.clinic-landing .clinic-faq summary::-webkit-details-marker {
    display: none;
}

/* ── Shop landing (unique layout) ── */
.shop-landing .shop-hero {
    background: linear-gradient(160deg, #faf5ff 0%, #f5f3ff 40%, #ffffff 100%);
}

.shop-landing .shop-hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .shop-landing .shop-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.shop-landing .shop-hero__visual {
    display: flex;
    justify-content: center;
}

.shop-landing .shop-showcase__badge {
    border-color: #ddd6fe;
    background: #faf5ff;
    color: #7c3aed;
}

.shop-landing .shop-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .shop-landing .shop-timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.shop-landing .shop-timeline__step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
}

.shop-landing .shop-timeline__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #9333ea;
    background: #faf5ff;
    z-index: 1;
}

.shop-landing .shop-timeline__line {
    display: none;
}

@media (min-width: 640px) {
    .shop-landing .shop-timeline__line {
        display: block;
        position: absolute;
        top: 1.25rem;
        left: calc(50% + 1.25rem);
        width: calc(100% - 2.5rem);
        height: 2px;
        background: #ddd6fe;
        z-index: 0;
    }
}

.shop-landing .shop-timeline__content {
    margin-top: 0.75rem;
}

.shop-landing .shop-journey__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0;
}

@media (min-width: 640px) {
    .shop-landing .shop-journey__track {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}

.shop-landing .shop-journey__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 4.5rem;
    text-align: center;
}

.shop-landing .shop-journey__line {
    position: absolute;
    top: 1.25rem;
    right: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to left, #ddd6fe, #c4b5fd);
    z-index: 0;
}

.shop-landing .shop-journey__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #ddd6fe;
    background: #fff;
    color: #9333ea;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.1);
}

.shop-landing .shop-cta__card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 6px rgba(88, 28, 135, 0.06),
        0 20px 50px rgba(88, 28, 135, 0.18),
        0 0 0 1px rgba(147, 51, 234, 0.08);
    background: linear-gradient(145deg, #2e1065 0%, #4c1d95 28%, #6b21a8 55%, #9333ea 78%, #a855f7 100%);
}

.shop-landing .shop-cta__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.shop-landing .shop-cta__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.shop-landing .shop-cta__glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.5;
}

.shop-landing .shop-cta__glow--1 {
    top: -20%;
    right: 10%;
    width: 40%;
    height: 50%;
    background: #c084fc;
}

.shop-landing .shop-cta__glow--2 {
    bottom: -10%;
    left: 5%;
    width: 35%;
    height: 45%;
    background: #a855f7;
}

.shop-landing .shop-cta__glow--3 {
    top: 30%;
    left: 40%;
    width: 25%;
    height: 30%;
    background: #e9d5ff;
    opacity: 0.3;
}

.shop-landing .shop-cta__badge {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #f3e8ff;
}

.shop-landing .shop-cta__btn {
    background: #fff;
    color: #6b21a8;
}

.shop-landing .shop-cta__btn:hover {
    background: #faf5ff;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.shop-landing .shop-cta .ui-text--title {
    color: #fff;
}

.shop-landing .shop-faq summary::-webkit-details-marker {
    display: none;
}

/* ── Marketplace landing (unique layout) ── */
.marketplace-landing .marketplace-hero {
    background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 40%, #ffffff 100%);
}

.marketplace-landing .marketplace-hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .marketplace-landing .marketplace-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.marketplace-landing .marketplace-hero__visual {
    display: flex;
    justify-content: center;
}

.marketplace-landing .marketplace-showcase__badge {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #ea580c;
}

.marketplace-landing .marketplace-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .marketplace-landing .marketplace-timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.marketplace-landing .marketplace-timeline__step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
}

.marketplace-landing .marketplace-timeline__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #ea580c;
    background: #fff7ed;
    z-index: 1;
}

.marketplace-landing .marketplace-timeline__line {
    display: none;
}

@media (min-width: 640px) {
    .marketplace-landing .marketplace-timeline__line {
        display: block;
        position: absolute;
        top: 1.25rem;
        left: calc(50% + 1.25rem);
        width: calc(100% - 2.5rem);
        height: 2px;
        background: #fed7aa;
        z-index: 0;
    }
}

.marketplace-landing .marketplace-timeline__content {
    margin-top: 0.75rem;
}

.marketplace-landing .marketplace-journey__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0;
}

@media (min-width: 640px) {
    .marketplace-landing .marketplace-journey__track {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}

.marketplace-landing .marketplace-journey__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 4.5rem;
    text-align: center;
}

.marketplace-landing .marketplace-journey__line {
    position: absolute;
    top: 1.25rem;
    right: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to left, #fed7aa, #fdba74);
    z-index: 0;
}

.marketplace-landing .marketplace-journey__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #fed7aa;
    background: #fff;
    color: #ea580c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.1);
}

.marketplace-landing .marketplace-cta__card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 6px rgba(124, 45, 18, 0.06),
        0 20px 50px rgba(124, 45, 18, 0.18),
        0 0 0 1px rgba(234, 88, 12, 0.08);
    background: linear-gradient(145deg, #7c2d12 0%, #9a3412 28%, #c2410c 55%, #ea580c 78%, #f97316 100%);
}

.marketplace-landing .marketplace-cta__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.marketplace-landing .marketplace-cta__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.marketplace-landing .marketplace-cta__glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.5;
}

.marketplace-landing .marketplace-cta__glow--1 {
    top: -20%;
    right: 10%;
    width: 40%;
    height: 50%;
    background: #fb923c;
}

.marketplace-landing .marketplace-cta__glow--2 {
    bottom: -10%;
    left: 5%;
    width: 35%;
    height: 45%;
    background: #f97316;
}

.marketplace-landing .marketplace-cta__glow--3 {
    top: 30%;
    left: 40%;
    width: 25%;
    height: 30%;
    background: #ffedd5;
    opacity: 0.3;
}

.marketplace-landing .marketplace-cta__badge {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #ffedd5;
}

.marketplace-landing .marketplace-cta__btn {
    background: #fff;
    color: #c2410c;
}

.marketplace-landing .marketplace-cta__btn:hover {
    background: #fff7ed;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.marketplace-landing .marketplace-cta .ui-text--title {
    color: #fff;
}

.marketplace-landing .marketplace-faq summary::-webkit-details-marker {
    display: none;
}

/* ── Restaurant landing (unique layout) ── */
.restaurant-landing .restaurant-hero {
    background: linear-gradient(160deg, #fff1f2 0%, #ffe4e6 40%, #ffffff 100%);
}

.restaurant-landing .restaurant-hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .restaurant-landing .restaurant-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.restaurant-landing .restaurant-hero__visual {
    display: flex;
    justify-content: center;
}

.restaurant-landing .restaurant-showcase__badge {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.restaurant-landing .restaurant-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .restaurant-landing .restaurant-timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.restaurant-landing .restaurant-timeline__step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
}

.restaurant-landing .restaurant-timeline__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #e11d48;
    background: #fff1f2;
    z-index: 1;
}

.restaurant-landing .restaurant-timeline__line {
    display: none;
}

@media (min-width: 640px) {
    .restaurant-landing .restaurant-timeline__line {
        display: block;
        position: absolute;
        top: 1.25rem;
        left: calc(50% + 1.25rem);
        width: calc(100% - 2.5rem);
        height: 2px;
        background: #fecdd3;
        z-index: 0;
    }
}

.restaurant-landing .restaurant-timeline__content {
    margin-top: 0.75rem;
}

.restaurant-landing .restaurant-journey__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0;
}

@media (min-width: 640px) {
    .restaurant-landing .restaurant-journey__track {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}

.restaurant-landing .restaurant-journey__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 4.5rem;
    text-align: center;
}

.restaurant-landing .restaurant-journey__line {
    position: absolute;
    top: 1.25rem;
    right: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to left, #fecdd3, #fda4af);
    z-index: 0;
}

.restaurant-landing .restaurant-journey__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #fecdd3;
    background: #fff;
    color: #e11d48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.1);
}

.restaurant-landing .restaurant-cta__card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 6px rgba(136, 19, 55, 0.06),
        0 20px 50px rgba(136, 19, 55, 0.18),
        0 0 0 1px rgba(225, 29, 72, 0.08);
    background: linear-gradient(145deg, #881337 0%, #9f1239 28%, #be123c 55%, #e11d48 78%, #f43f5e 100%);
}

.restaurant-landing .restaurant-cta__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.restaurant-landing .restaurant-cta__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.restaurant-landing .restaurant-cta__glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.5;
}

.restaurant-landing .restaurant-cta__glow--1 {
    top: -20%;
    right: 10%;
    width: 40%;
    height: 50%;
    background: #fb7185;
}

.restaurant-landing .restaurant-cta__glow--2 {
    bottom: -10%;
    left: 5%;
    width: 35%;
    height: 45%;
    background: #f43f5e;
}

.restaurant-landing .restaurant-cta__glow--3 {
    top: 30%;
    left: 40%;
    width: 25%;
    height: 30%;
    background: #ffe4e6;
    opacity: 0.3;
}

.restaurant-landing .restaurant-cta__badge {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #ffe4e6;
}

.restaurant-landing .restaurant-cta__btn {
    background: #fff;
    color: #be123c;
}

.restaurant-landing .restaurant-cta__btn:hover {
    background: #fff1f2;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.restaurant-landing .restaurant-cta .ui-text--title {
    color: #fff;
}

.restaurant-landing .restaurant-faq summary::-webkit-details-marker {
    display: none;
}

/* ── Real estate landing (unique layout) ── */
.real-estate-landing .real-estate-hero {
    background: linear-gradient(160deg, #fefce8 0%, #fef9c3 40%, #ffffff 100%);
}

.real-estate-landing .real-estate-hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .real-estate-landing .real-estate-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.real-estate-landing .real-estate-hero__visual {
    display: flex;
    justify-content: center;
}

.real-estate-landing .real-estate-showcase__badge {
    border-color: #fde68a;
    background: #fefce8;
    color: #b45309;
}

.real-estate-landing .real-estate-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .real-estate-landing .real-estate-timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.real-estate-landing .real-estate-timeline__step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
}

.real-estate-landing .real-estate-timeline__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #b45309;
    background: #fefce8;
    z-index: 1;
}

.real-estate-landing .real-estate-timeline__line {
    display: none;
}

@media (min-width: 640px) {
    .real-estate-landing .real-estate-timeline__line {
        display: block;
        position: absolute;
        top: 1.25rem;
        left: calc(50% + 1.25rem);
        width: calc(100% - 2.5rem);
        height: 2px;
        background: #fde68a;
        z-index: 0;
    }
}

.real-estate-landing .real-estate-timeline__content {
    margin-top: 0.75rem;
}

.real-estate-landing .real-estate-journey__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0;
}

@media (min-width: 640px) {
    .real-estate-landing .real-estate-journey__track {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}

.real-estate-landing .real-estate-journey__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 4.5rem;
    text-align: center;
}

.real-estate-landing .real-estate-journey__line {
    position: absolute;
    top: 1.25rem;
    right: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to left, #fde68a, #fcd34d);
    z-index: 0;
}

.real-estate-landing .real-estate-journey__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #fde68a;
    background: #fff;
    color: #b45309;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.1);
}

.real-estate-landing .real-estate-cta__card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 6px rgba(120, 53, 15, 0.06),
        0 20px 50px rgba(120, 53, 15, 0.18),
        0 0 0 1px rgba(180, 83, 9, 0.08);
    background: linear-gradient(145deg, #78350f 0%, #92400e 28%, #b45309 55%, #ca8a04 78%, #d97706 100%);
}

.real-estate-landing .real-estate-cta__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.real-estate-landing .real-estate-cta__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.real-estate-landing .real-estate-cta__glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.5;
}

.real-estate-landing .real-estate-cta__glow--1 {
    top: -20%;
    right: 10%;
    width: 40%;
    height: 50%;
    background: #fbbf24;
}

.real-estate-landing .real-estate-cta__glow--2 {
    bottom: -10%;
    left: 5%;
    width: 35%;
    height: 45%;
    background: #d97706;
}

.real-estate-landing .real-estate-cta__glow--3 {
    top: 30%;
    left: 40%;
    width: 25%;
    height: 30%;
    background: #fef9c3;
    opacity: 0.3;
}

.real-estate-landing .real-estate-cta__badge {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fef9c3;
}

.real-estate-landing .real-estate-cta__btn {
    background: #fff;
    color: #92400e;
}

.real-estate-landing .real-estate-cta__btn:hover {
    background: #fefce8;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.real-estate-landing .real-estate-cta .ui-text--title {
    color: #fff;
}

.real-estate-landing .real-estate-faq summary::-webkit-details-marker {
    display: none;
}