@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; }

.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; }

.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); }

#inp_chat::placeholder { color: #64748b; }
.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;
}

.auth-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.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-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;
}

.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__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;
    }
}

.ui-slider__dot.is-active {
    background-color: rgba(255, 255, 255, 0.95);
}

#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-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__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__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-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-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;
}

@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--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;
}

@media (min-width: 1024px) {
    .panel-profile__grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.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-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__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-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[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__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-table-click-popup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.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-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;
}

/* ── 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;
}