@import url('style.css');

:root {
    --dash-bg: #ffffff;
    --dash-surface: #ffffff;
    --dash-surface-2: rgba(11, 18, 32, 0.03);
    --dash-border: rgba(11, 18, 32, 0.12);
    --dash-shadow: 0 16px 40px rgba(11, 18, 32, 0.08);
    --dash-text: #0b1220;
    --dash-muted: rgba(11, 18, 32, 0.65);
    --dash-accent: rgba(59, 91, 255, 0.14);
    --dash-warm: rgba(59, 91, 255, 0.12);
    --sidebar-bg: #0b1220;
    --sidebar-surface: rgba(255, 255, 255, 0.06);
    --sidebar-border: rgba(255, 255, 255, 0.14);
    --sidebar-text: #ffffff;
    --sidebar-muted: rgba(255, 255, 255, 0.7);
    --sidebar-active: #3b5bff;
    --sidebar-glow: rgba(59, 91, 255, 0.2);
    --code-bg: rgba(59, 91, 255, 0.06);
}

:root[data-theme="dark"] {
    --dash-bg: #0b1220;
    --dash-surface: rgba(255, 255, 255, 0.06);
    --dash-surface-2: rgba(255, 255, 255, 0.03);
    --dash-border: rgba(255, 255, 255, 0.14);
    --dash-shadow: 0 20px 45px rgba(11, 18, 32, 0.45);
    --dash-text: #ffffff;
    --dash-muted: rgba(255, 255, 255, 0.65);
    --dash-accent: rgba(59, 91, 255, 0.18);
    --dash-warm: rgba(59, 91, 255, 0.12);
    --sidebar-bg: #0b1220;
    --sidebar-surface: rgba(255, 255, 255, 0.06);
    --sidebar-border: rgba(255, 255, 255, 0.14);
    --sidebar-text: #ffffff;
    --sidebar-muted: rgba(255, 255, 255, 0.7);
    --sidebar-active: #3b5bff;
    --sidebar-glow: rgba(59, 91, 255, 0.22);
    --code-bg: rgba(59, 91, 255, 0.08);
}

.dashboard-body {
    background: var(--dash-bg);
    color: var(--dash-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.dashboard-body::before {
    content: '';
    position: fixed;
    inset: -15% -10%;
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 91, 255, 0.38), rgba(59, 91, 255, 0.12) 22%, transparent 46%),
        radial-gradient(circle at 82% 14%, rgba(31, 63, 208, 0.28), rgba(31, 63, 208, 0.1) 20%, transparent 44%),
        radial-gradient(circle at 76% 82%, rgba(59, 91, 255, 0.3), rgba(59, 91, 255, 0.1) 24%, transparent 46%),
        radial-gradient(circle at 20% 82%, rgba(31, 63, 208, 0.24), rgba(31, 63, 208, 0.08) 24%, transparent 45%),
        radial-gradient(circle at 46% 48%, rgba(59, 91, 255, 0.22), rgba(59, 91, 255, 0.08) 28%, transparent 50%);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: none;
}

.dashboard-body::after {
    content: '';
    position: fixed;
    inset: -10% -5%;
    background:
        radial-gradient(circle at 30% 28%, rgba(59, 91, 255, 0.2), transparent 40%),
        radial-gradient(circle at 64% 32%, rgba(31, 63, 208, 0.22), transparent 38%),
        radial-gradient(circle at 52% 78%, rgba(59, 91, 255, 0.18), transparent 40%),
        radial-gradient(circle at 85% 68%, rgba(31, 63, 208, 0.18), transparent 42%);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: none;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        linear-gradient(150deg, #0b1220 0%, #0b1220 100%);
    color: var(--sidebar-text);
    padding: 1.25rem 1.2rem 1.2rem;
    position: sticky;
    top: 1.5rem;
    height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border: 1px solid var(--sidebar-border);
    border-radius: 16px;
    box-shadow:
        0 18px 40px rgba(11, 18, 32, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 40;
    overflow: hidden;
    background-clip: padding-box;
}

:root[data-theme="dark"] .sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
        linear-gradient(150deg, #0b1220 0%, #0b1220 100%);
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    box-shadow:
        0 18px 40px rgba(11, 18, 32, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    background-clip: padding-box;
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 8%, var(--sidebar-glow), transparent 55%),
        radial-gradient(circle at 82% 18%, rgba(59, 91, 255, 0.16), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
    border-radius: inherit;
}

.sidebar::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.brand-link img {
    height: 34px;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: var(--sidebar-text);
    font-size: 1.1rem;
    display: none;
    cursor: pointer;
}

.sidebar-user {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow:
        0 10px 24px rgba(11, 18, 32, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(59, 91, 255, 0.3), rgba(31, 63, 208, 0.2));
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-email {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sidebar-text);
    word-break: break-word;
}

.user-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sidebar-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.2rem;
    margin-right: -0.2rem;
}

.sidebar-section {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--sidebar-muted);
    margin: 1rem 0 0.35rem;
}

.sidebar-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: 0.65rem 0;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem 0.55rem 0.8rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--sidebar-text);
    font-weight: 500;
    transition: none;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 3px;
    border-radius: 999px;
    background: var(--sidebar-active);
    opacity: 0;
    transform: scaleY(0.4);
    transition: none;
}

.sidebar-link i {
    display: none;
}

.sidebar-link:hover {
    background: rgba(59, 91, 255, 0.14);
    border-color: rgba(59, 91, 255, 0.3);
    color: #ffffff;
    transform: none;
}

.sidebar-link:hover i {
    background: rgba(59, 91, 255, 0.25);
    border-color: rgba(59, 91, 255, 0.45);
}

.sidebar-link.active {
    background: rgba(59, 91, 255, 0.28);
    border-color: rgba(59, 91, 255, 0.55);
    color: #ffffff;
    box-shadow: none;
}

.sidebar-link.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.sidebar-link.active i {
    background: rgba(59, 91, 255, 0.35);
    border-color: rgba(59, 91, 255, 0.6);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(11, 18, 32, 0.2);
}

.sidebar-socials {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.sidebar-socials .sidebar-link {
    padding: 0.45rem;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    justify-content: center;
}

.sidebar-socials .sidebar-link i {
    display: inline-flex;
    font-size: 1rem;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
}

.sidebar-socials .sidebar-link {
    padding: 0.45rem;
    border-radius: 10px;
    font-size: 1.05rem;
    justify-content: center;
}

.sidebar-link.logout {
    color: var(--primary);
}

.sidebar-link.logout:hover {
    background: rgba(59, 91, 255, 0.16);
    border-color: rgba(59, 91, 255, 0.4);
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(11, 18, 32, 0.25);
    border-radius: 999px;
}

.main-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--dash-border);
    box-shadow: none;
    padding: 0.9rem;
}

.main-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 10%, var(--dash-accent), transparent 50%),
        radial-gradient(circle at 15% 15%, var(--dash-warm), transparent 48%);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

:root[data-theme="dark"] .main-panel::before {
    opacity: 0;
}

:root[data-theme="dark"] .main-panel {
    background: rgba(11, 18, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .dashboard-body::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 91, 255, 0.28), rgba(59, 91, 255, 0.1) 24%, transparent 46%),
        radial-gradient(circle at 82% 14%, rgba(31, 63, 208, 0.22), rgba(31, 63, 208, 0.08) 22%, transparent 44%),
        radial-gradient(circle at 76% 82%, rgba(59, 91, 255, 0.24), rgba(59, 91, 255, 0.08) 24%, transparent 46%),
        radial-gradient(circle at 20% 82%, rgba(31, 63, 208, 0.22), rgba(31, 63, 208, 0.07) 24%, transparent 45%),
        radial-gradient(circle at 46% 48%, rgba(59, 91, 255, 0.16), rgba(59, 91, 255, 0.06) 28%, transparent 50%);
    opacity: 0;
}

:root[data-theme="dark"] .dashboard-body::after {
    background:
        radial-gradient(circle at 30% 28%, rgba(59, 91, 255, 0.18), transparent 42%),
        radial-gradient(circle at 64% 32%, rgba(31, 63, 208, 0.18), transparent 40%),
        radial-gradient(circle at 52% 78%, rgba(59, 91, 255, 0.18), transparent 44%),
        radial-gradient(circle at 85% 68%, rgba(31, 63, 208, 0.16), transparent 46%);
    opacity: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: none;
}

:root[data-theme="dark"] .topbar {
    background: rgba(11, 18, 32, 0.9);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.topbar-title {
    min-width: 0;
}

.topbar-title h1 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.topbar-title p {
    display: none;
}

.eyebrow {
    display: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar-meta {
    color: var(--dash-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.2rem 0.3rem;
}

.topbar-actions {
    margin-left: auto;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--dash-border);
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--dash-text);
    transition: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary i {
    display: none;
}

.account-menu summary:hover {
    border-color: rgba(59, 91, 255, 0.35);
    box-shadow: none;
}

.account-avatar {
    display: none;
}

.account-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 200px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    box-shadow: none;
    padding: 0.45rem;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: 0.16s ease;
    z-index: 50;
}

.account-menu[open] .account-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.account-meta {
    padding: 0.5rem 0.6rem 0.7rem;
}

.account-meta strong {
    display: block;
    font-size: 0.95rem;
}

.account-meta span {
    display: block;
    font-size: 0.8rem;
    color: var(--dash-muted);
}

.account-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dash-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: none;
}

.account-dropdown i {
    display: none;
}

.account-dropdown a:hover {
    background: var(--dash-surface-2);
    color: var(--primary);
}

.account-divider {
    height: 1px;
    background: var(--dash-border);
    margin: 0.4rem 0.2rem;
}

.account-dropdown a.account-logout {
    color: var(--primary);
}

.account-dropdown a.account-logout:hover {
    background: rgba(59, 91, 255, 0.12);
    color: var(--primary-dark);
}

.sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    color: var(--dash-text);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 20;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dashboard-content {
    position: relative;
    z-index: 1;
    padding: 0.8rem 0 0.4rem;
}

.dashboard-content section {
    padding: 0;
    margin: 0;
}

:root[data-theme="dark"] .account-dropdown {
    background: rgba(11, 18, 32, 0.98);
}

.content-wrap {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.2rem;
    align-items: start;
}

.content-grid.single {
    grid-template-columns: minmax(0, 1fr);
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-side {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.panel-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: none;
    transition: none;
}

:root[data-theme="dark"] .account-dropdown {
    background: rgba(11, 18, 32, 0.98);
}

.panel-card:hover {
    transform: none;
    box-shadow: none;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.panel-header p {
    margin: 0.25rem 0 0;
    color: var(--dash-muted);
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    box-shadow: none;
}

.action-bar h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 600;
}

.action-bar p {
    display: none;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn i {
    display: none;
}

.dashboard-body .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.dashboard-body .btn i {
    display: none;
}

.dashboard-body .btn-lg {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
}

.dashboard-body .btn-primary {
    background: var(--primary);
    box-shadow: none;
}

.dashboard-body .btn-primary:hover {
    transform: none;
    filter: none;
    box-shadow: none;
    background: var(--primary-dark);
}

.dashboard-body .btn-white:hover,
.dashboard-body .btn-outline:hover,
.dashboard-body .btn-secondary:hover {
    transform: none;
    box-shadow: none;
    background: var(--dash-surface-2);
    color: var(--dash-text);
    border-color: var(--dash-border);
}

.side-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: none;
}

.side-card h4 {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.side-card p {
    margin: 0 0 0.6rem;
    color: var(--dash-muted);
    font-size: 0.88rem;
}

.side-list {
    display: grid;
    gap: 0.5rem;
}

.side-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    font-size: 0.9rem;
    color: var(--dash-text);
}

.side-list.simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-list.simple li {
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    font-size: 0.9rem;
    color: var(--dash-text);
}

.side-list-item i {
    color: var(--primary);
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
}

.alert-error {
    border-color: rgba(31, 63, 208, 0.35);
    background: rgba(31, 63, 208, 0.08);
}

.alert-success {
    border-color: rgba(59, 91, 255, 0.3);
    background: rgba(59, 91, 255, 0.1);
}

.alert-warning {
    border-color: rgba(31, 63, 208, 0.35);
    background: rgba(31, 63, 208, 0.12);
}

.alert i {
    display: none;
}

.alert-error i {
    color: var(--error);
}

.alert-success i {
    color: var(--success);
}

.alert-warning i {
    color: var(--warning);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.2rem;
}

.panel-card.compact {
    padding: 0.9rem;
    background: var(--dash-surface-2);
    border-color: var(--dash-border);
}

.panel-card.compact h2 {
    color: var(--dash-text);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.panel-card.compact p {
    color: var(--dash-muted);
}

.panel-card.compact .empty-actions {
    margin-top: 0.6rem;
}

.stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.stat-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    font-size: 0.9rem;
}

.stat-inline .stat-label {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dash-muted);
}

.stat-inline .stat-value {
    margin: 0;
    font-weight: 600;
}

.stat-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--dash-shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    background: linear-gradient(140deg, rgba(59, 91, 255, 0.24), transparent 70%);
    border-radius: 50%;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--dash-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.stat-value {
    font-size: 2.05rem;
    font-weight: 600;
    margin: 0.45rem 0 0.25rem;
}

.stat-foot {
    color: var(--dash-muted);
    font-size: 0.9rem;
}

.vps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.vps-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: none;
}

.vps-card:hover {
    transform: none;
    box-shadow: none;
}

.vps-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
}

.vps-loading {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.vps-loading .spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    animation: spin 0.9s linear infinite;
}

.vps-loading p {
    margin: 0;
    font-weight: 600;
}

.vps-card.is-loading .vps-loading {
    display: flex;
}

.vps-card.is-refreshing .vps-loading {
    display: flex;
    background: rgba(11, 18, 32, 0.35);
}

.vps-card.is-refreshing .vps-loading .spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.vps-card.is-refreshing .vps-loading p {
    font-size: 0.9rem;
    font-weight: 600;
}

.vps-card.is-loading .vps-specs,
.vps-card.is-loading .vps-connection,
.vps-card.is-loading .vps-actions,
.vps-card.is-loading .provision-form,
.vps-card.is-loading .pending-payment {
    filter: blur(1px);
    pointer-events: none;
    user-select: none;
}

.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 18%, rgba(59, 91, 255, 0.26), transparent 45%),
        radial-gradient(circle at 85% 82%, rgba(31, 63, 208, 0.2), transparent 48%),
        rgba(11, 18, 32, 0.78);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.page-loader.is-active {
    opacity: 1;
    visibility: visible;
}

.page-loader.is-done {
    background: rgba(11, 18, 32, 0.42);
}

.page-loader-card {
    background: linear-gradient(160deg, rgba(11, 18, 32, 0.96), rgba(11, 18, 32, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.65rem 1.9rem;
    box-shadow:
        0 20px 52px rgba(11, 18, 32, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--dash-text);
    text-align: center;
    min-width: 240px;
    position: relative;
    overflow: hidden;
}

.page-loader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 91, 255, 0.95), transparent);
    animation: loader-sweep 1.6s ease-in-out infinite;
}

.page-loader-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.8rem;
    position: relative;
    box-shadow: 0 0 0 6px rgba(59, 91, 255, 0.08);
}

.page-loader-spinner::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.65);
    animation: spin 1.25s linear infinite reverse;
}

.page-loader-title {
    font-weight: 600;
    font-size: 0.96rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.015em;
    color: #ffffff;
}

.page-loader-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    background: rgba(59, 91, 255, 0.12);
}

@keyframes loader-sweep {
    0% { left: -120%; }
    100% { left: 120%; }
}

.vps-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.vps-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(59, 91, 255, 0.18);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.3rem;
}

.vps-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.vps-plan {
    font-size: 0.88rem;
    color: var(--dash-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
    letter-spacing: 0.1em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.status-pending {
    background: rgba(59, 91, 255, 0.16);
    color: var(--primary);
    border-color: rgba(59, 91, 255, 0.45);
}

.status-pending .status-dot {
    background: var(--primary);
}

.status-paid,
.status-active,
.status-running {
    background: rgba(59, 91, 255, 0.16);
    color: var(--primary);
    border-color: rgba(59, 91, 255, 0.45);
}

.status-paid .status-dot,
.status-active .status-dot,
.status-running .status-dot {
    background: var(--primary);
}

.status-canceled {
    background: rgba(59, 91, 255, 0.16);
    color: var(--primary);
    border-color: rgba(59, 91, 255, 0.45);
}

.status-canceled .status-dot {
    background: var(--primary);
}

.status-stopped {
    background: rgba(59, 91, 255, 0.16);
    color: var(--primary);
    border-color: rgba(59, 91, 255, 0.45);
}

.status-stopped .status-dot {
    background: var(--primary);
}

.status-locked {
    background: rgba(31, 63, 208, 0.16);
    color: var(--primary-dark);
    border-color: rgba(31, 63, 208, 0.45);
}

.status-locked .status-dot {
    background: var(--primary-dark);
}

.status-provisioning,
.status-starting,
.status-stopping {
    background: rgba(31, 63, 208, 0.16);
    color: var(--primary-dark);
    border-color: rgba(31, 63, 208, 0.45);
}

.status-provisioning .status-dot,
.status-starting .status-dot,
.status-stopping .status-dot {
    background: var(--primary-dark);
}

.vps-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 1.25rem 1.6rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    font-size: 0.9rem;
    color: var(--dash-text);
}

.spec-item i {
    color: var(--primary);
}

.vps-connection {
    padding: 1.25rem 1.6rem;
    border-top: 1px solid var(--dash-border);
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
}

.connection-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.connection-item:last-child {
    margin-bottom: 0;
}

.connection-item .label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dash-muted);
}

.connection-item code {
    background: var(--code-bg);
    border: 1px dashed var(--dash-border);
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--dash-text);
}

.vps-actions {
    padding: 1.25rem 1.6rem 1.6rem;
}

.vps-action-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.vps-action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.action-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.95rem;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--dash-surface);
    color: var(--gray-700);
    box-shadow: var(--shadow);
    transition: 0.18s ease;
}

.action-btn i {
    font-size: 1rem;
}

.action-btn span {
    font-weight: 600;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.action-btn-success {
    border-color: rgba(59, 91, 255, 0.4);
    color: var(--primary);
    background: rgba(59, 91, 255, 0.12);
}

.action-btn-success:hover {
    background: rgba(59, 91, 255, 0.2);
}

.action-btn-danger {
    border-color: rgba(31, 63, 208, 0.4);
    color: var(--primary-dark);
    background: rgba(31, 63, 208, 0.12);
}

.action-btn-danger:hover {
    background: rgba(31, 63, 208, 0.2);
}

.action-btn-outline {
    border-color: var(--dash-border);
    color: var(--gray-700);
    background: var(--dash-surface);
}

.action-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn-primary {
    border-color: transparent;
    background: var(--primary);
    color: #ffffff;
}

.action-btn-primary:hover {
    filter: brightness(1.05);
    color: #ffffff;
}

@media (max-width: 700px) {
    .vps-action-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .vps-action-form,
    .action-group {
        width: 100%;
    }

    .action-btn-primary {
        justify-content: center;
        width: 100%;
    }
}

.provision-form {
    padding: 1.5rem;
}

.pending-payment {
    padding: 1.5rem;
    text-align: center;
    color: var(--dash-muted);
}

.pending-payment i {
    font-size: 1.8rem;
    color: var(--warning);
}

.payment-form {
    margin-top: 1rem;
}

.stat-card .form-group {
    margin-bottom: 1rem;
}

.stat-card .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--gray-700);
}

.stat-card .form-group label i {
    color: var(--primary);
}

.stat-card .form-group input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--input-bg);
    color: var(--dash-text);
}

.stat-card .form-group input:focus {
    outline: none;
    border-color: rgba(59, 91, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 91, 255, 0.18);
}

.settings-form select,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--dash-text);
    transition: 0.18s ease;
}

.settings-form select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 91, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 91, 255, 0.18);
}

.settings-form select::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--dash-muted);
}

.settings-form select:disabled,
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: var(--dash-surface-2);
    color: var(--dash-muted);
    cursor: not-allowed;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 22px;
    padding: 1.8rem;
    box-shadow: var(--dash-shadow);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.settings-header h2,
.settings-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.settings-header p {
    margin: 0;
    color: var(--dash-muted);
}

.settings-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(59, 91, 255, 0.15);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.settings-form .form-group {
    margin-bottom: 1rem;
}

.settings-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-meta span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dash-muted);
}

.settings-meta strong {
    display: block;
    font-size: 1rem;
    color: var(--dash-text);
    margin-top: 0.35rem;
}

.settings-note {
    margin-bottom: 1rem;
    color: var(--dash-muted);
    font-size: 0.95rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dash-text);
    cursor: pointer;
}

.switch input {
    display: none;
}

.switch-track {
    position: relative;
    width: 56px;
    height: 30px;
    background: var(--dash-surface-2);
    border-radius: 999px;
    transition: 0.2s ease;
    border: 1px solid var(--dash-border);
}

.switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 22px;
    height: 22px;
    background: var(--dash-surface);
    border-radius: 999px;
    transition: 0.2s ease;
    box-shadow: var(--shadow);
}

.switch input:checked + .switch-track {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}

.switch input:checked + .switch-track::after {
    transform: translateX(24px);
}

.switch-text {
    font-size: 0.95rem;
}

.danger-card {
    border-color: rgba(31, 63, 208, 0.35);
    background: linear-gradient(135deg, rgba(31, 63, 208, 0.08), rgba(255, 255, 255, 0.95));
}

:root[data-theme="dark"] .danger-card {
    background: linear-gradient(135deg, rgba(31, 63, 208, 0.14), rgba(11, 18, 32, 0.96));
}

.danger-icon {
    color: var(--primary);
    background: rgba(59, 91, 255, 0.12);
}

.danger-form .form-group input {
    border-color: rgba(31, 63, 208, 0.3);
}

.danger-btn {
    border-color: rgba(31, 63, 208, 0.45);
    color: var(--primary-dark);
    background: rgba(31, 63, 208, 0.08);
}

.danger-btn:hover {
    border-color: rgba(31, 63, 208, 0.65);
    background: rgba(31, 63, 208, 0.14);
}

.vps-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.usage-grid {
    display: grid;
    gap: 1rem;
}

.usage-card {
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    padding: 1rem;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.usage-header span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dash-muted);
}

.usage-header strong {
    font-size: 1.05rem;
    color: var(--dash-text);
}

.usage-bar {
    height: 6px;
    background: rgba(11, 18, 32, 0.25);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.8rem 0 0.6rem;
}

.usage-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
}

.usage-chart {
    margin-top: 0.4rem;
    background: linear-gradient(180deg, rgba(59, 91, 255, 0.1), transparent);
    border-radius: 12px;
    padding: 0.4rem 0.5rem;
}

.usage-chart svg {
    width: 100%;
    height: 46px;
}

.usage-chart polyline {
    stroke: var(--primary) !important;
}

.usage-chart path {
    stroke: var(--gray-300) !important;
}

.table-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    box-shadow: var(--dash-shadow);
    overflow-x: auto;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.table-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.table-header p {
    margin: 0.25rem 0 0;
    color: var(--dash-muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 560px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--dash-border);
    vertical-align: middle;
}

.data-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--dash-muted);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(59, 91, 255, 0.12);
    color: var(--primary);
}

.pill-muted {
    background: rgba(31, 63, 208, 0.12);
    color: var(--primary-dark);
}

.pill-success {
    background: rgba(59, 91, 255, 0.12);
    color: var(--primary);
}

.pill-warning {
    background: rgba(31, 63, 208, 0.12);
    color: var(--primary-dark);
}

.pill-danger {
    background: rgba(31, 63, 208, 0.16);
    color: var(--primary-dark);
}

.muted-text {
    color: var(--dash-muted);
    font-size: 0.9rem;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.role-select {
    min-width: 140px;
}

.team-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.overview-card {
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
}

.overview-label {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dash-muted);
}

.overview-card h3 {
    margin: 0.22rem 0 0.1rem;
    font-size: 1.2rem;
}

.overview-meta {
    color: var(--dash-muted);
    font-size: 0.86rem;
}

.team-panel {
    margin-top: 1rem;
}

.team-rename-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: flex-end;
}

.team-rename-form .form-group {
    flex: 1;
    min-width: 220px;
}

.team-members-card {
    margin-top: 1rem;
}

.member-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.invite-card .invite-form {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.invite-card .invite-form button {
    margin-top: 0.3rem;
    justify-content: center;
}

.invite-state-row {
    margin-top: 0.45rem;
}

.team-page .team-overview-grid {
    gap: 0.75rem;
}

.team-page .overview-card {
    background: linear-gradient(180deg, var(--dash-surface), var(--dash-surface-2));
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
}

.team-page .team-panel {
    border-radius: 16px;
}

.team-page .team-panel h2 {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
}

.team-page .team-panel > .muted-text {
    margin: 0 0 0.55rem;
}

.team-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.member-user {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(59, 91, 255, 0.18);
    border: 1px solid rgba(59, 91, 255, 0.35);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-role-pill {
    border: 1px solid transparent;
}

.team-role-pill.role-owner {
    background: rgba(31, 63, 208, 0.16);
    border-color: rgba(31, 63, 208, 0.28);
    color: var(--primary-dark);
}

.team-role-pill.role-admin {
    background: rgba(59, 91, 255, 0.16);
    border-color: rgba(59, 91, 255, 0.3);
    color: var(--primary);
}

.team-role-pill.role-member,
.team-role-pill.role-viewer {
    background: rgba(11, 18, 32, 0.08);
    border-color: var(--dash-border);
    color: var(--dash-text);
}

.team-page .team-members-card .data-table th,
.team-page .team-members-card .data-table td {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
}

.team-page .team-members-card > h3 {
    margin: 0;
    font-size: 1.05rem;
}

.team-page .team-members-card > .muted-text {
    margin: 0.2rem 0 0.55rem;
}

.team-page .content-main {
    gap: 1rem;
}

.team-page .content-side {
    gap: 0.9rem;
}

.team-page .table-card {
    padding: 1rem 1.05rem;
}

.team-page .table-header {
    margin-bottom: 0.65rem;
}

.team-page .team-rename-form .form-group label,
.team-page .invite-form label {
    margin-bottom: 0.2rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dash-muted);
}

.team-page .team-rename-form input,
.team-page .invite-form input,
.team-page .invite-form select,
.team-page .role-select {
    min-height: 38px;
    padding: 0.52rem 0.72rem;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--dash-text);
    font-size: 0.9rem;
    line-height: 1.25;
}

.team-page .invite-form select,
.team-page .role-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--dash-muted) 50%), linear-gradient(135deg, var(--dash-muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 1px), calc(100% - 11px) calc(50% - 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}

.team-page .team-rename-form input:focus,
.team-page .invite-form input:focus,
.team-page .invite-form select:focus,
.team-page .role-select:focus {
    outline: none;
    border-color: rgba(59, 91, 255, 0.62);
    box-shadow: 0 0 0 2px rgba(59, 91, 255, 0.16);
}

.team-page .member-actions .inline-form {
    gap: 0.4rem;
}

.team-page .role-select {
    min-width: 118px;
}

.invite-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.invite-item {
    display: grid;
    gap: 0.2rem;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    padding: 0.55rem 0.6rem;
    background: var(--dash-surface-2);
}

.invite-item i {
    color: var(--primary);
}

.btn-primary-soft {
    border-color: rgba(59, 91, 255, 0.35) !important;
    color: var(--primary) !important;
    background: rgba(59, 91, 255, 0.12) !important;
}

.btn-primary-soft:hover {
    background: rgba(59, 91, 255, 0.2) !important;
}

.btn-danger-soft {
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.btn-danger-soft:hover {
    background: rgba(239, 68, 68, 0.18) !important;
}

.pill-status-down {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.dashboard-compact .content-wrap {
    gap: 0.95rem;
}

.dashboard-compact .content-main,
.dashboard-compact .content-side {
    gap: 0.55rem;
}

.dashboard-compact .content-main > * + *,
.dashboard-compact .content-side > * + * {
    margin-top: 4px;
}

.dashboard-compact .panel-card,
.dashboard-compact .table-card,
.dashboard-compact .side-card,
.dashboard-compact .settings-card,
.dashboard-compact .stat-card {
    border-radius: 14px;
    padding: 0.92rem 0.98rem;
    border: none;
    background: var(--dash-surface);
    box-shadow: none;
}

.dashboard-compact .table-header {
    margin-bottom: 0.65rem;
}

.dashboard-compact .data-table th,
.dashboard-compact .data-table td {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
}

.dashboard-compact .form-group input,
.dashboard-compact .form-group select,
.dashboard-compact .form-group textarea,
.dashboard-compact .role-select {
    min-height: 38px;
    padding: 0.52rem 0.72rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.dashboard-compact .settings-icon {
    display: none;
}

.dashboard-compact .settings-header {
    margin-bottom: 0.8rem;
}

.dashboard-compact .settings-header h2,
.dashboard-compact .settings-header h3 {
    margin-bottom: 0.2rem;
}

.dashboard-compact .settings-form label i,
.dashboard-compact .danger-form label i,
.dashboard-compact .side-list-item i {
    display: none;
}

.dashboard-compact .side-list-item {
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
}

.team-page .team-panel {
    border: none !important;
    background: var(--dash-surface) !important;
}

.settings-page .settings-icon,
.settings-page .settings-form label i,
.settings-page .danger-form label i,
.settings-page .side-list-item i {
    display: none !important;
}

.settings-page .form-group {
    margin-bottom: 0.75rem;
}

.settings-page .settings-form .form-group label,
.settings-page .danger-form .form-group label {
    margin-bottom: 0.2rem;
    font-size: 0.86rem;
    color: var(--dash-muted);
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.75rem;
    align-items: end;
    margin-top: 1rem;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.chart-bar span {
    font-size: 0.75rem;
    color: var(--dash-muted);
}

.chart-bar .bar {
    width: 100%;
    height: 120px;
    background: rgba(11, 18, 32, 0.22);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.chart-bar .bar div {
    width: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 12px;
}

.empty-state {
    padding: 1.2rem;
    border-radius: 14px;
    border: 1px dashed var(--dash-border);
    color: var(--dash-muted);
    background: var(--dash-surface-2);
    text-align: center;
}

.vps-action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.console-card {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px dashed var(--dash-border);
    background: var(--dash-surface-2);
}

.console-card h3 {
    margin: 0 0 0.35rem;
}

.console-link {
    margin-top: 0.75rem;
}

.console-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.firewall-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.firewall-table {
    display: grid;
    gap: 0.6rem;
}

.firewall-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 90px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface-2);
    font-size: 0.85rem;
}

.firewall-head {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--dash-muted);
    background: var(--dash-surface);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--gray-700);
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.empty-dashboard {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    padding: 1rem;
    text-align: left;
    box-shadow: none;
}

.empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    border-radius: 28px;
    background: rgba(59, 91, 255, 0.15);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 2.4rem;
}

.empty-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.why-choose {
    margin-top: 2rem;
    text-align: left;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.features-list {
    display: grid;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--dash-surface);
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid var(--dash-border);
}


.dashboard-footer {
    margin-top: auto;
    padding: 1.15rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid var(--dash-border);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    z-index: 1;
    font-size: 0.92rem;
}

:root[data-theme="dark"] .dashboard-footer {
    background: rgba(11, 18, 32, 0.88);
}

.dashboard-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--dash-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid var(--dash-border);
    color: var(--dash-muted);
    text-decoration: none;
    transition: 0.18s ease;
}

.footer-socials a:hover {
    border-color: rgba(59, 91, 255, 0.4);
    color: var(--primary);
    transform: translateY(-2px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bubble-drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(3%, -2%, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-body::before,
    .dashboard-body::after {
        animation: none;
    }

    .page-loader-card::before,
    .page-loader-spinner,
    .page-loader-spinner::after {
        animation: none;
    }
}


@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        height: 100vh;
        top: 0;
        border-radius: 0;
        transform: translateX(-100%);
        transition: 0.2s ease;
        box-shadow: 0 25px 50px rgba(11, 18, 32, 0.35);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-flex;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .main-panel {
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 0;
        background: var(--dash-bg);
    }

    .topbar {
        top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1rem 1.2rem;
    }

    .dashboard-content {
        padding: 1.5rem 1.2rem 2.5rem;
    }

    .dashboard-footer {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .team-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .topbar-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .account-menu {
        width: 100%;
    }

    .account-menu summary {
        width: 100%;
        justify-content: space-between;
    }

    .action-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .vps-specs {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .firewall-grid {
        grid-template-columns: 1fr;
    }

    .firewall-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
}
