/* -------------------------------------------------------------------------
   LURIFIX COMMUNITY — Full Professional Rework
   Keeps the wizard-logo color language, but makes the panel cleaner,
   easier to navigate, more readable, and friendlier on mobile.
------------------------------------------------------------------------- */

:root {
    --pro-bg: #06020f;
    --pro-bg-2: #10051f;
    --pro-card: rgba(17, 8, 32, 0.82);
    --pro-card-2: rgba(11, 5, 22, 0.90);
    --pro-card-solid: #120822;
    --pro-line: rgba(255, 255, 255, 0.105);
    --pro-line-hot: rgba(255, 48, 185, 0.30);
    --pro-line-cyan: rgba(0, 231, 255, 0.30);
    --pro-text: #fff9ff;
    --pro-muted: #bdaedb;
    --pro-soft: #ded4f7;
    --pro-pink: #ff30b9;
    --pro-cyan: #00e7ff;
    --pro-violet: #8b5cf6;
    --pro-gold: #ffd166;
    --pro-green: #37f4b5;
    --pro-red: #ff5f9d;
    --pro-shadow: 0 24px 90px rgba(0, 0, 0, 0.40);
    --pro-shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.26);
    --pro-sidebar: 330px;
}

html { scroll-behavior: smooth; }

body.panel-pro {
    min-height: 100vh;
    color: var(--pro-text);
    background:
        radial-gradient(circle at 10% -10%, rgba(255, 48, 185, 0.20), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(0, 231, 255, 0.18), transparent 28%),
        radial-gradient(circle at 60% 110%, rgba(139, 92, 246, 0.22), transparent 40%),
        linear-gradient(180deg, #05010c 0%, #080212 46%, #030108 100%) !important;
    overflow-x: hidden;
}

body.panel-pro::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 82%);
}

body.panel-pro .panel-overlay {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 48, 185, 0.12), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(0, 231, 255, 0.12), transparent 28%),
        linear-gradient(90deg, rgba(2,0,8,.88), rgba(11, 4, 26, .36) 45%, rgba(2,0,8,.88)) !important;
    z-index: 0;
}

body.panel-pro * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 48, 185, .55) rgba(8, 2, 18, .75);
}

body.panel-pro *::-webkit-scrollbar { width: 10px; height: 10px; }
body.panel-pro *::-webkit-scrollbar-track { background: rgba(8, 2, 18, .75); }
body.panel-pro *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,48,185,.75), rgba(0,231,255,.65));
    border: 2px solid rgba(8,2,18,.88);
    border-radius: 999px;
}

.pro-app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--pro-sidebar) minmax(0, 1fr);
}

.pro-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 100vh;
    border-right: 1px solid var(--pro-line-hot);
    background:
        linear-gradient(180deg, rgba(18, 7, 35, 0.96), rgba(8, 3, 20, 0.98)),
        url('/static/branding/lurifix-magic-bg.jpg') center/cover no-repeat;
    box-shadow: 24px 0 90px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(22px) saturate(1.15);
    transition: width .24s ease, transform .24s ease, opacity .24s ease, margin .24s ease;
}

.pro-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,48,185,.18), transparent 26%, transparent 74%, rgba(0,231,255,.13)),
        linear-gradient(90deg, rgba(3,0,10,.84), rgba(6,1,17,.54));
}

.pro-sidebar-scroll {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-y: auto;
    padding: 18px;
}

.pro-mobile-sidebar-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.pro-mobile-title { font-size: 1.05rem; font-weight: 900; color: white; }

.pro-brand-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: var(--pro-shadow-soft), inset 0 1px 0 rgba(255,255,255,.08);
    color: inherit;
    text-decoration: none;
}

.pro-brand-logo-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #080214;
}

.pro-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    filter: saturate(1.08) contrast(1.03);
    transform: scale(1.02);
}

.pro-brand-logo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 18%, rgba(5,0,14,.36) 58%, rgba(5,0,14,.96) 100%);
}

.pro-brand-copy { padding: 16px; }
.pro-brand-title { margin-top: 6px; font-size: 1.1rem; line-height: 1; text-transform: uppercase; color: #fff; }
.pro-brand-text { margin-top: 8px; color: var(--pro-muted); font-size: .84rem; line-height: 1.45; }

.pro-eyebrow {
    letter-spacing: .20em;
    text-transform: uppercase;
    font-size: .70rem;
    font-weight: 900;
    color: var(--pro-cyan);
    text-shadow: 0 0 16px rgba(0,231,255,.20);
}

.pro-user-card {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background: rgba(5, 0, 14, .48);
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.pro-user-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pro-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(0,231,255,.42);
    box-shadow: 0 0 24px rgba(0,231,255,.15), 0 0 26px rgba(255,48,185,.12);
}
.pro-user-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255,48,185,.36), rgba(0,231,255,.20));
    font-weight: 900;
}
.pro-user-meta { min-width: 0; }
.pro-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 800; font-size: .93rem; }
.pro-user-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pro-muted); font-size: .78rem; margin-top: 2px; }
.pro-logout-link { color: #ff9bd6; font-size: .78rem; font-weight: 800; text-decoration: none; }
.pro-logout-link:hover { color: #fff; }

.pro-nav-search {
    position: relative;
    margin: 16px 0 14px;
}
.pro-nav-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pro-cyan);
    font-weight: 900;
    z-index: 1;
}
.pro-nav-search input {
    width: 100%;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(3, 0, 10, .54) !important;
    color: #fff !important;
    padding: 12px 14px 12px 38px !important;
    font-size: .88rem !important;
}

.pro-nav { display: grid; gap: 16px; }
.pro-nav-section { display: grid; gap: 8px; }
.pro-nav-section-title {
    margin: 2px 4px 4px;
    color: rgba(222, 212, 247, .62);
    font-size: .70rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pro-nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    color: rgba(255,249,255,.90);
    padding: 10px 12px;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.pro-nav-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,48,185,.18), rgba(0,231,255,.10));
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: 1rem;
}

.pro-nav-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .92rem;
    line-height: 1.15;
}
.pro-nav-item small {
    display: block;
    margin-top: 3px;
    color: rgba(222, 212, 247, .66);
    font-size: .74rem;
    line-height: 1.2;
}
.pro-nav-item:hover {
    transform: translateY(-1px);
    border-color: rgba(0,231,255,.26);
    background: linear-gradient(135deg, rgba(255,48,185,.12), rgba(0,231,255,.07));
    box-shadow: 0 16px 36px rgba(0,0,0,.20);
}
.pro-nav-item.is-active {
    border-color: rgba(255,48,185,.45);
    background: linear-gradient(135deg, rgba(255,48,185,.25), rgba(139,92,246,.22) 52%, rgba(0,231,255,.13));
    box-shadow: 0 18px 44px rgba(0,0,0,.28), 0 0 32px rgba(255,48,185,.12);
}
.pro-nav-item.is-active .pro-nav-icon {
    border-color: rgba(0,231,255,.32);
    background: linear-gradient(135deg, rgba(255,48,185,.48), rgba(0,231,255,.28));
}
.pro-nav-item[hidden], .pro-nav-section[hidden] { display: none !important; }

.pro-main {
    position: relative;
    min-width: 0;
    padding: 22px;
}
.pro-main-inner {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
}

.pro-topbar {
    position: sticky;
    top: 16px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(18, 7, 35, .84), rgba(6, 2, 16, .82));
    box-shadow: var(--pro-shadow-soft), inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter: blur(24px) saturate(1.18);
    padding: 16px 18px;
    margin-bottom: 22px;
}
.pro-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 0 0, rgba(255,48,185,.18), transparent 34%),
        radial-gradient(circle at 100% 0, rgba(0,231,255,.14), transparent 30%);
}
.pro-topbar > * { position: relative; z-index: 1; }
.pro-topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pro-page-heading { min-width: 0; }
.pro-page-title {
    margin: 4px 0 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-shadow: 0 0 24px rgba(255,48,185,.18), 0 0 28px rgba(0,231,255,.10);
}
.pro-page-desc {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--pro-muted);
    font-size: .92rem;
    line-height: 1.55;
}
.pro-topbar-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.pro-chip-action,
.pro-menu-toggle,
.pro-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pro-chip-action { padding: 10px 14px; font-size: .78rem; letter-spacing: .10em; text-transform: uppercase; }
.pro-menu-toggle { padding: 12px 14px; white-space: nowrap; }
.pro-icon-button { width: 42px; height: 42px; }
.pro-chip-action:hover,
.pro-menu-toggle:hover,
.pro-icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(0,231,255,.32);
    background: linear-gradient(135deg, rgba(255,48,185,.16), rgba(0,231,255,.10));
    box-shadow: 0 14px 32px rgba(0,0,0,.20);
}

.pro-content-card {
    position: relative;
    min-height: calc(100vh - 150px);
}

/* Generic page polish for the existing templates */
.pro-content-card > h1:first-child,
.pro-content-card > h2:first-child {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 18px !important;
    color: #fff !important;
    font-size: clamp(1.55rem, 2.2vw, 2.25rem) !important;
    font-weight: 900 !important;
    letter-spacing: -.02em;
}
.pro-content-card > h1:first-child::before,
.pro-content-card > h2:first-child::before {
    content: "";
    width: .70rem;
    height: .70rem;
    border-radius: 999px;
    background: var(--pro-cyan);
    box-shadow: 0 0 0 .45rem rgba(0,231,255,.10), 0 0 24px rgba(0,231,255,.65);
}

/* Cards and panels used throughout the site */
.panel-pro .bg-zinc-950,
.panel-pro .bg-zinc-900,
.panel-pro .rounded-2xl.border,
.panel-pro .rounded-xl.border,
.panel-pro .overflow-hidden.rounded-2xl.border,
.panel-pro .dash-panel,
.panel-pro .dashboard-panel,
.panel-pro .dashboard-kpi-card,
.panel-pro .dashboard-server-card,
.panel-pro .dashboard-category-section,
.panel-pro .dashboard-empty-state,
.panel-pro [class*="shop-card"],
.panel-pro [class*="server-card-effect"],
.panel-pro .login-feature-card,
.panel-pro .login-shell {
    border-color: var(--pro-line) !important;
    background: linear-gradient(180deg, var(--pro-card), var(--pro-card-2)) !important;
    box-shadow: var(--pro-shadow-soft), inset 0 1px 0 rgba(255,255,255,.055) !important;
    backdrop-filter: blur(18px) saturate(1.1);
}

.panel-pro .rounded-2xl.border,
.panel-pro .overflow-hidden.rounded-2xl.border,
.panel-pro .dash-panel,
.panel-pro .dashboard-panel,
.panel-pro .dashboard-kpi-card,
.panel-pro .dashboard-server-card,
.panel-pro .dashboard-category-section {
    border-radius: 24px !important;
}

.panel-pro .bg-zinc-800,
.panel-pro .bg-zinc-800\/70,
.panel-pro .bg-zinc-700,
.panel-pro .hover\:bg-zinc-800:hover,
.panel-pro .hover\:bg-zinc-700:hover,
.panel-pro .bg-white\/5,
.panel-pro .bg-white\/\[0\.03\],
.panel-pro .bg-black\/10,
.panel-pro .bg-black\/25,
.panel-pro .bg-black\/35 {
    background: rgba(255,255,255,.055) !important;
}

.panel-pro .border-zinc-800,
.panel-pro .border-zinc-700,
.panel-pro .divide-zinc-800 > :not([hidden]) ~ :not([hidden]),
.panel-pro .border-white\/10,
.panel-pro .border-white\/8,
.panel-pro .border-t.border-zinc-800,
.panel-pro .border-b.border-zinc-800,
.panel-pro .border-r.border-zinc-800 {
    border-color: var(--pro-line) !important;
}

.panel-pro .text-zinc-500,
.panel-pro .text-zinc-400 { color: var(--pro-muted) !important; }
.panel-pro .text-zinc-300 { color: var(--pro-soft) !important; }
.panel-pro .text-zinc-200,
.panel-pro .text-zinc-100,
.panel-pro .text-white { color: var(--pro-text) !important; }

.panel-pro .text-green-400,
.panel-pro .text-emerald-400,
.panel-pro .text-emerald-300,
.panel-pro .text-emerald-200,
.panel-pro .text-emerald-100,
.panel-pro .text-cyan-400,
.panel-pro .text-cyan-300,
.panel-pro .text-cyan-200,
.panel-pro .text-cyan-100 { color: #7af7ff !important; }
.panel-pro .text-violet-400,
.panel-pro .text-violet-300,
.panel-pro .text-purple-300 { color: #d8c1ff !important; }
.panel-pro .text-amber-400,
.panel-pro .text-amber-300,
.panel-pro .text-yellow-300 { color: var(--pro-gold) !important; }
.panel-pro .text-red-400,
.panel-pro .text-rose-400,
.panel-pro .text-rose-300 { color: #ff8bc8 !important; }

/* Buttons */
.panel-pro button,
.panel-pro a.rounded-xl,
.panel-pro a.rounded-2xl,
.panel-pro a.rounded-full,
.panel-pro button.rounded-xl,
.panel-pro button.rounded-2xl,
.panel-pro button.rounded-full {
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.panel-pro button:hover,
.panel-pro a.rounded-xl:hover,
.panel-pro a.rounded-2xl:hover,
.panel-pro a.rounded-full:hover,
.panel-pro button.rounded-xl:hover,
.panel-pro button.rounded-2xl:hover,
.panel-pro button.rounded-full:hover {
    transform: translateY(-1px);
    filter: brightness(1.06) saturate(1.08);
}

.panel-pro .bg-green-600,
.panel-pro .bg-green-500,
.panel-pro .bg-emerald-600,
.panel-pro .bg-emerald-500,
.panel-pro .hover\:bg-green-500:hover,
.panel-pro .hover\:bg-emerald-500:hover {
    background: linear-gradient(135deg, #ff30b9, #8b5cf6 46%, #00e7ff) !important;
    color: white !important;
    border-color: rgba(255,255,255,.12) !important;
}
.panel-pro .bg-blue-600,
.panel-pro .bg-blue-500,
.panel-pro .bg-indigo-500,
.panel-pro .bg-cyan-500,
.panel-pro .hover\:bg-blue-500:hover,
.panel-pro .hover\:bg-indigo-400:hover {
    background: linear-gradient(135deg, #1989ff, #00e7ff 55%, #a855f7) !important;
    color: white !important;
}
.panel-pro .bg-violet-600,
.panel-pro .bg-violet-500,
.panel-pro .bg-purple-600,
.panel-pro .bg-purple-500 {
    background: linear-gradient(135deg, #5b21b6, #8b5cf6 52%, #ff30b9) !important;
    color: white !important;
}
.panel-pro .bg-yellow-600,
.panel-pro .bg-yellow-500,
.panel-pro .bg-amber-600,
.panel-pro .bg-amber-500 {
    background: linear-gradient(135deg, #ff30b9, #ff8bdc 42%, #ffd166) !important;
    color: #1b0922 !important;
}
.panel-pro .bg-red-600,
.panel-pro .bg-red-500,
.panel-pro .bg-rose-600,
.panel-pro .bg-rose-500,
.panel-pro .bg-rose-400 {
    background: linear-gradient(135deg, #9f1239, #ff2f8f 56%, #ff8bc8) !important;
    color: white !important;
}

/* Forms */
.panel-pro label {
    font-weight: 800;
}
.panel-pro input,
.panel-pro select,
.panel-pro textarea {
    color: var(--pro-text) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(3,0,10,.50) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
}
.panel-pro input::placeholder,
.panel-pro textarea::placeholder { color: rgba(222,212,247,.50) !important; }
.panel-pro input:focus,
.panel-pro select:focus,
.panel-pro textarea:focus {
    outline: none !important;
    border-color: rgba(0,231,255,.72) !important;
    box-shadow: 0 0 0 3px rgba(0,231,255,.12), 0 0 30px rgba(0,231,255,.08) !important;
}
.panel-pro input[type="checkbox"],
.panel-pro input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--pro-pink);
}
.panel-pro select option,
.panel-pro optgroup {
    background: #120822;
    color: #fff;
}

/* Tables */
.panel-pro .overflow-x-auto {
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(5,0,14,.22);
}
.panel-pro table {
    border-collapse: separate !important;
    border-spacing: 0;
    min-width: 760px;
}
.panel-pro thead,
.panel-pro thead.bg-zinc-800\/70 {
    background: linear-gradient(135deg, rgba(255,48,185,.13), rgba(0,231,255,.08)) !important;
}
.panel-pro th {
    color: rgba(255,249,255,.86) !important;
    font-size: .76rem;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .13em;
    white-space: nowrap;
}
.panel-pro td {
    color: rgba(255,249,255,.86);
    vertical-align: top;
}
.panel-pro tbody tr {
    transition: background .16s ease;
}
.panel-pro tbody tr:hover {
    background: rgba(255,48,185,.055) !important;
}
.panel-pro pre,
.panel-pro code {
    background: rgba(3,0,10,.72) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #eafbff !important;
}

/* Login page polish */
.login-body .login-shell {
    max-width: 1240px !important;
    border-radius: 32px !important;
}
.login-body .login-hero {
    min-height: 520px;
}
.login-body .login-hero-copy {
    padding: clamp(24px, 4vw, 44px) !important;
}
.login-body .login-feature-card {
    text-align: center;
    font-weight: 800;
    color: var(--pro-soft);
}

/* Better dashboard/card readability */
.panel-pro .dash-hero,
.panel-pro .dashboard-hero {
    background:
        linear-gradient(115deg, rgba(5,0,14,.92), rgba(18,7,35,.70) 48%, rgba(5,0,14,.90)),
        url('/static/branding/lurifix-magic-banner.jpg') center 42% / cover no-repeat !important;
}
.panel-pro .dash-action,
.panel-pro .dash-server-card,
.panel-pro .dash-overview-card,
.panel-pro .dashboard-action-card,
.panel-pro .dashboard-server-card,
.panel-pro .dashboard-overview-card {
    border-color: rgba(255,255,255,.10) !important;
    background: rgba(255,255,255,.045) !important;
}
.panel-pro .dash-action:hover,
.panel-pro .dash-server-card:hover,
.panel-pro .dash-overview-card:hover,
.panel-pro .dashboard-action-card:hover,
.panel-pro .dashboard-server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,231,255,.28) !important;
    box-shadow: 0 22px 56px rgba(0,0,0,.25), 0 0 28px rgba(0,231,255,.08) !important;
}

/* Mobile / collapsed behavior */
.pro-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    border: 0;
    background: rgba(2, 0, 8, .68);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

@media (min-width: 1024px) {
    body.sidebar-collapsed .pro-app-shell { grid-template-columns: 0 minmax(0, 1fr); }
    body.sidebar-collapsed .pro-sidebar {
        width: 0;
        opacity: 0;
        transform: translateX(-24px);
        overflow: hidden;
        border-right-width: 0;
        box-shadow: none;
    }
    body.sidebar-collapsed .pro-sidebar-scroll { padding: 0; overflow: hidden; }
}

@media (max-width: 1280px) {
    :root { --pro-sidebar: 304px; }
    .pro-main { padding: 18px; }
}

@media (max-width: 1023px) {
    .pro-app-shell { display: block; }
    .pro-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(88vw, 360px);
        height: 100dvh;
        transform: translateX(calc(-100% - 20px));
        opacity: 0;
        pointer-events: none;
    }
    body.sidebar-mobile-open .pro-sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    body.sidebar-mobile-open .pro-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    body.sidebar-mobile-open { overflow: hidden; }
    .pro-mobile-sidebar-head { display: flex; }
    .pro-main { padding: 14px 14px 86px; }
    .pro-topbar {
        position: relative;
        top: auto;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 22px;
    }
    .pro-topbar-left {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }
    .pro-topbar-actions { width: 100%; justify-content: flex-start; }
    .pro-page-desc { font-size: .86rem; }
    .pro-content-card { min-height: auto; }
}

@media (max-width: 720px) {
    .pro-topbar-actions { display: none; }
    .pro-page-title { font-size: 1.45rem; }
    .pro-content-card > h1:first-child,
    .pro-content-card > h2:first-child { font-size: 1.35rem !important; }
    .panel-pro .grid,
    .panel-pro .dashboard-hero-grid,
    .panel-pro .dashboard-command-grid,
    .panel-pro .dashboard-kpi-grid,
    .panel-pro .dashboard-server-grid {
        gap: 14px;
    }
    .panel-pro .p-6 { padding: 1rem !important; }
    .panel-pro .px-6 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .panel-pro .py-4 { padding-top: .85rem !important; padding-bottom: .85rem !important; }
}

.pro-mobile-tabbar {
    display: none;
}

@media (max-width: 767px) {
    .pro-mobile-tabbar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 42;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 24px;
        background: rgba(10, 3, 22, .86);
        box-shadow: 0 18px 58px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06);
        backdrop-filter: blur(20px) saturate(1.2);
        padding: 8px;
    }
    .pro-mobile-tabbar a {
        display: flex;
        min-height: 54px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        border-radius: 18px;
        color: rgba(255,249,255,.72);
        text-decoration: none;
        font-weight: 900;
    }
    .pro-mobile-tabbar a span { font-size: 1.05rem; line-height: 1; }
    .pro-mobile-tabbar a small { font-size: .68rem; }
    .pro-mobile-tabbar a.is-active {
        color: #fff;
        background: linear-gradient(135deg, rgba(255,48,185,.26), rgba(0,231,255,.14));
        box-shadow: 0 0 24px rgba(255,48,185,.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
