body {
    background: var(--color-bg);
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 360px;
    max-width: 92%;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.auth-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar {
    position: relative;
}
.hidden {
    display: none !important;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    transition: grid-template-columns 0.2s ease;
}

.sidebar {
    background: var(--color-panel);
    border-right: 1px solid var(--color-border);
    padding: 18px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    width: 260px;
    transition: width 0.2s ease, padding 0.2s ease;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 12px 8px 10px;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    justify-content: center;
    position: relative;
    margin: 0;
}

.sidebar-brand img {
    height: auto;
    width: auto;
    object-fit: contain;
}

.sidebar-logo-full {
    height: 48px;
    width: auto;
    max-width: 220px;
}

.sidebar-logo-mini {
    height: 32px;
    width: 32px;
    margin: 0 auto;
    display: none;
}

body.sidebar-mini .sidebar-logo-full {
    display: none;
}

body.sidebar-mini .sidebar-logo-mini {
    display: block !important;
}

.sidebar .sidebar-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, border 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .sidebar .sidebar-toggle {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.04);
}

.sidebar .sidebar-toggle:hover,
.sidebar .sidebar-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    color: var(--color-primary-strong, var(--color-primary));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.sidebar-nav a,
.sidebar-nav button {
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    font-size: 14px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border 0.15s ease, color 0.15s ease;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 6px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.sidebar-body::-webkit-scrollbar {
    width: 8px;
}

.sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.sidebar-body:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .sidebar-body {
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

[data-theme="light"] .sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .sidebar-body:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.28);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    width: 100%;
    justify-content: flex-start;
}

.nav-link:hover {
    background: var(--color-hover);
    border-color: var(--color-border);
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 32px;
    border-radius: 10px;
    color: var(--color-text);
    font-size: 12.5px;
    opacity: 0.85;
    transition: background 0.15s ease, border 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.nav-sublink:hover {
    background: var(--color-hover);
    border-color: var(--color-border);
    opacity: 1;
}

.nav-subprefix {
    width: 10px;
    flex: 0 0 10px;
    opacity: 0.7;
    text-align: center;
}

.nav-link.is-active,
.sidebar-accordion[aria-expanded="true"].nav-link {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--color-text);
}

.nav-link.is-active .nav-icon,
.sidebar-accordion[aria-expanded="true"].nav-link .nav-icon {
    color: var(--color-primary);
    opacity: 1;
}

.nav-sublink.is-active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--color-text);
    opacity: 1;
}

.nav-chevron {
    margin-left: auto;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    flex-shrink: 0;
}

.nav-icon.nav-icon--svg {
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}
.nav-icon--svg svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}
.nav-icon--svg svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav button:hover .nav-icon {
    opacity: 1;
}

.sidebar-divider {
    height: 1px;
    background: var(--color-border);
    margin: 10px 4px 10px;
    opacity: 0.5;
}

.sidebar-accordion {
    position: relative;
    gap: 8px;
}

.chevron {
    transition: transform 0.2s ease;
}

.sidebar-accordion[aria-expanded="true"] .chevron {
    transform: rotate(-180deg);
}

.sidebar-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-muted);
    letter-spacing: 0.4px;
    margin: 12px 8px 4px;
}

.sidebar-children {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 0;
}

.sidebar-children a {
    padding: 0;
    font-size: inherit;
}

.sidebar-accordion[aria-expanded="true"] + .sidebar-children {
    display: flex;
}

.sidebar-extra {
    padding: 8px 0 0;
}

.sidebar-extra .sidebar-divider {
    margin: 10px 4px;
}

.sidebar-extra-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer {
    padding: 12px 6px 12px 6px;
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, var(--color-panel), rgba(0, 0, 0, 0));
    backdrop-filter: blur(10px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
}

.topbar-brand-mobile {
    display: none;
    align-items: center;
}

.mobile-logo {
    display: block;
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.mobile-menu-toggle {
    display: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-brand-desktop {
    display: none;
    align-items: center;
    gap: 10px;
}

.topbar-logo {
    display: block;
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-card);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    min-width: 320px;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 0;
    height: 22px;
}

.search-box input:focus {
    outline: none;
}

.welcome {
    color: var(--color-muted);
    font-size: 14px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
    background: var(--color-hover);
    display: inline-block;
}

.avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    cursor: pointer;
    transition: background 0.15s ease, border 0.15s ease;
}

.user-trigger:hover,
.user-trigger:focus-visible {
    background: var(--color-hover);
    border-color: var(--color-border);
}

.user-name {
    font-weight: 600;
    color: #e8eefc;
}
[data-theme="light"] .user-name {
    color: #0f172a;
}

.user-caret {
    font-size: 12px;
    color: var(--color-muted);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 10px;
    border-radius: 12px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 20;
}

.user-dropdown a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--color-text);
    transition: background 0.15s ease;
}

.user-dropdown a:hover,
.user-dropdown a:focus-visible {
    background: var(--color-hover);
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s ease, border 0.15s ease;
    color: #e8eefc;
}
[data-theme="light"] .theme-toggle {
    color: #0f172a;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: var(--color-hover);
    border-color: var(--color-border);
}

.theme-icon {
    font-size: 16px;
    color: inherit;
}

.notif-area {
    position: relative;
}

.page {
    padding: 22px 24px 48px;
    flex: 1;
    transition: padding 0.2s ease;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 320px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
        border-color: rgba(37, 99, 235, 0.35);
    }

    .card:hover .btn-primary,
    .card:hover .btn-accent {
        box-shadow: var(--shadow);
        transform: translateY(-1px);
    }

    .card:hover .favorite-btn,
    .card:hover .meta-count {
        opacity: 1;
    }
}

.card h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.1px;
}

.card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.card-locked {
    border-color: rgba(249, 115, 22, 0.35);
}

.card .preview {
    background: var(--color-panel);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .preview.locked img {
    filter: blur(1px);
    transform: scale(1.01);
}

.preview-guard {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.55));
    letter-spacing: 0.4px;
    z-index: 2;
}

.card h3 {
    margin: 0;
    font-size: 15px;
}

.card p {
    margin: 0;
    color: var(--color-muted);
}
.plugin-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plugin-card h3 {
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.35em * 2);
}

.plugin-card p {
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.45em * 2);
    color: var(--color-muted);
}

.card .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card .actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-height: 10px;
    margin-top: 0px;
}
.card .actions .actions-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.plugin-card .actions {
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.plugin-card .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-youtube {
    background: #ff0000;
    color: #fff;
    border: 1px solid #ff3b3b;
    box-shadow: none;
}
.btn-youtube:hover,
.btn-youtube:focus-visible {
    background: #e60000;
    border-color: #ff4f4f;
    color: #fff;
}
.btn-youtube .yt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 12px;
}
.btn-youtube .yt-label {
    font-weight: 700;
    letter-spacing: 0.1px;
}

.card .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 0;
}

.card .badge.badge-new {
    left: 12px;
    right: auto;
    z-index: 3;
    opacity: 1;
    background: linear-gradient(120deg, #1d4ed8, #3b82f6);
    color: #eff6ff;
    border: 1px solid rgba(191, 219, 254, 0.4);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

[data-theme="light"] .card .badge.badge-new {
    border-color: rgba(29, 78, 216, 0.35);
}

.btn-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-hover);
    color: var(--color-text);
    cursor: pointer;
}

.tip-popover {
    position: fixed;
    z-index: 1400;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--color-panel);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-line;
    opacity: 0;
    transform: translateY(4px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.tip-popover.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.copy-count {
    font-size: 12px;
    color: var(--color-muted);
}

.favorite-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-muted);
    font-size: 18px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.favorite-btn[data-active="true"] {
    color: #fbbf24;
}

.favorite-btn:hover {
    transform: scale(1.05);
}

.favorite-animate {
    animation: fav-pop 0.35s ease;
}

.switch-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.dmf-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.dmf-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.dmf-switch .slider {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.35);
    transition: 0.2s ease;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    z-index: 1;
}

.dmf-switch .slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3.5px;
    background-color: var(--color-card);
    border-radius: 50%;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.dmf-switch input:checked + .slider {
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    border-color: rgba(37, 99, 235, 0.8);
}

.dmf-switch input:checked + .slider::before {
    transform: translateX(22px);
    background: #fff;
}

.switch-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

[data-plugin-plan-wrapper] [data-plan-label] {
    font-weight: 700;
    color: var(--color-text);
}

button:focus-visible,
.btn:focus-visible,
.favorite-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.alert {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 12px;
    padding: 12px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-quick-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-quick-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.admin-quick-card {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-quick-card:hover,
.admin-quick-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.2);
    border-color: rgba(37, 99, 235, 0.45);
}

.admin-quick-card .quick-icon {
    color: #2563eb;
}

.admin-quick-card .quick-title {
    font-size: 16px;
    font-weight: 700;
}

.admin-quick-card .quick-desc {
    font-size: 12.5px;
    color: #475569;
}

[data-theme="light"] .admin-quick-card {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.admin-section-divider {
    height: 1px;
    background: var(--color-border);
    margin: 18px 4px;
    opacity: 0.6;
}

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.admin-metric-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-metric-card .stat-icon {
    color: var(--color-muted);
    font-size: 16px;
}

.admin-metric-card .stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.admin-metric-card .stat-label {
    color: var(--color-muted);
    font-size: 13px;
}

.admin-metric-card-users {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.admin-metric-users-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-metric-users-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    min-width: 76px;
}

.admin-metric-users-breakdown .plan-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--color-muted);
    font-size: 12px;
}

.admin-metric-users-breakdown .plan-row strong {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 1280px) {
    .admin-body .page {
        padding: 18px;
    }
    .admin-body .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-body .page-header .search-box {
        width: 100%;
        min-width: 0;
    }
    .admin-body .admin-grid {
        grid-template-columns: 1fr !important;
    }
    .admin-body .admin-metrics-grid,
    .admin-body .admin-quick-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .admin-body .table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 900px) {
    .admin-body .page {
        padding: 14px;
    }
    .admin-body .admin-quick-card,
    .admin-body .admin-metric-card {
        padding: 12px;
    }
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-title {
    font-weight: 600;
}

.setting-desc {
    font-size: 13px;
    color: var(--color-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-border);
    transition: 0.2s ease;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    top: 4px;
    background: var(--color-card);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: 0.2s ease;
}

.switch input:checked + .slider {
    background: linear-gradient(120deg, var(--color-primary), var(--color-primary-strong));
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #fff;
    white-space: nowrap;
}
.status-enviado { background: #2563eb; }
.status-lido { background: #6b7280; }
.status-em-analise { background: #f59e0b; color: #0f172a; }
.status-produzindo { background: #8b5cf6; }
.status-concluido { background: #22c55e; color: #0f172a; }
.status-recusado { background: #ef4444; }
.status-analise { background: #f59e0b; color: #0f172a; }
.status-producao { background: #2563eb; }
.status-concluido { background: #22c55e; color: #0f172a; }
.status-respondido { background: #8b5cf6; }
.status-cancelado { background: #ef4444; }
.status-informacao { background: #2563eb; }
.status-aviso { background: #f59e0b; color: #0f172a; }
.status-atualizacao { background: #8b5cf6; }
.status-importante { background: #ef4444; }
.status-online { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.35); }
.status-offline { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.sessions-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    min-width: 28px;
    text-align: center;
}
.sessions-animate {
    animation: sessionsPulse 0.18s ease;
}
@keyframes sessionsPulse {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}
.plan-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}
.filter-chip {
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text);
    padding: 8px 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background 0.15s ease, color 0.15s ease, border 0.15s ease, transform 0.15s ease;
}
.filter-chip:hover {
    background: var(--color-hover);
    transform: translateY(-1px);
}
.filter-chip.chip-active {
    background: linear-gradient(120deg, var(--color-primary), var(--color-primary-strong));
    color: #f8fafc;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.2);
}
[data-theme="light"] .filter-chip {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.6);
    color: #0f172a;
}
[data-theme="light"] .filter-chip.chip-active {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.8);
    color: #0f172a;
    box-shadow: none;
}

.notif-button {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s ease, border 0.15s ease, color 0.15s ease;
    color: inherit;
}
.notif-button:hover,
.notif-button:focus-visible {
    background: var(--color-hover);
    border-color: var(--color-border);
}
.notif-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}
.notif-button.shake {
    animation: notif-shake 0.65s ease-in-out;
}
@keyframes notif-shake {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-12deg); }
    50% { transform: rotate(10deg); }
    80% { transform: rotate(-6deg); }
    100% { transform: rotate(0deg); }
}
.notif-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    animation: pulse 1.6s infinite;
}
.notif-badge.pop {
    animation: notif-badge-pop 0.26s ease-out;
}
@keyframes notif-badge-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.88; }
    100% { transform: scale(1); opacity: 1; }
}
.notif-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 380px;
    max-width: 420px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 30;
}
.notif-dropdown[hidden] {
    display: none !important;
}
[data-theme="light"] .notif-dropdown {
    background: #f8faff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.12);
}
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
    padding-bottom: 8px;
}
.notif-dropdown:hover .notif-list {
    scrollbar-width: thin;
}
[data-theme="light"] .notif-list {
    scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
}
[data-theme="light"] .notif-list::-webkit-scrollbar {
    width: 6px;
}
[data-theme="light"] .notif-list::-webkit-scrollbar-track {
    background: transparent;
}
[data-theme="light"] .notif-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.35);
    border-radius: 8px;
}
[data-theme="light"] .notif-dropdown:hover .notif-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.55);
}
.icon-btn {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.icon-btn svg {
    width: 18px;
    height: 18px;
}
.icon-btn:hover {
    transform: scale(1.05);
}
.icon-btn.danger:hover {
    background: #2a0f14;
    color: #ff5c5c;
    border-color: rgba(255, 92, 92, 0.3);
}
.icon-btn.danger {
    color: var(--color-muted);
}
.table .btn-excluir-envio {
    opacity: 1;
    pointer-events: auto;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-muted);
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.table .btn-excluir-envio svg {
    width: 16px;
    height: 16px;
}
.table .btn-excluir-envio:hover {
    background: #2a0f14;
    color: #ff5c5c;
    transform: scale(1.02);
    border-color: rgba(255, 92, 92, 0.3);
}
.fade-out {
    animation: fadeOutRow 0.2s ease forwards;
}
@keyframes fadeOutRow {
    to { opacity: 0; transform: translateY(-4px); }
}
.table tr .icon-btn {
    opacity: 0;
    pointer-events: none;
}
.table tr:hover .icon-btn {
    opacity: 1;
    pointer-events: auto;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
}
.modal-backdrop.hidden {
    display: none !important;
}
.modal {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 16px;
    max-width: 460px;
    width: 92%;
    box-shadow: var(--shadow);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.notif-item {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border 0.15s ease, opacity 0.18s ease-out, transform 0.18s ease-out;
}
.notif-item.unread {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
    font-weight: 700;
}
.notif-item:hover {
    background: var(--color-hover);
}
.notif-item.read {
    opacity: 0.6;
    transform: translateY(4px);
    background: rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .notif-item {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}
[data-theme="light"] .notif-item.unread {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.32);
    color: #0f172a;
}
[data-theme="light"] .notif-item.read {
    background: #ffffff;
    color: #475569;
    opacity: 0.85;
}
.notif-new {
    animation: notif-in 0.2s ease;
}
@keyframes notif-in {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}
.notif-item-title {
    font-weight: 700;
    font-size: 14px;
}
.notif-item-meta {
    font-size: 12px;
    color: var(--color-muted);
}
.notif-footer {
    position: sticky;
    bottom: -10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 4px;
    margin: 0 -10px -10px;
    background: linear-gradient(180deg, rgba(12,16,27,0.6), var(--color-panel));
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: nowrap;
    white-space: nowrap;
}
.notif-empty {
    text-align: center;
    color: var(--color-muted);
    padding: 12px 6px;
}
.notif-unread-row {
    background: rgba(59, 130, 246, 0.08);
}
.notif-read-row {
    opacity: 0.7;
}
.notif-footer .notif-action {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 12px;
    padding: 8px 10px;
}
.notif-footer .chip-primary {
    background: linear-gradient(120deg, var(--color-primary), var(--color-primary-strong));
    color: #f8fafc;
    border: none;
    padding: 10px 12px;
}
.notif-footer .chip {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}
.notif-footer .chip:last-child {
    flex: 1.2;
}
[data-theme="light"] .notif-footer {
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.85), #f8faff);
    border-top: 1px solid rgba(37, 99, 235, 0.14);
}
[data-theme="light"] .notif-footer .chip {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #1e293b;
    box-shadow: none;
}
[data-theme="light"] .notif-footer [data-notif-mark-all] {
    border-color: rgba(37, 99, 235, 0.6);
    color: #1d4ed8;
}
[data-theme="light"] .notif-footer [data-notif-clear-read] {
    border-color: rgba(139, 92, 246, 0.6);
    color: #6d28d9;
}
[data-theme="light"] .notif-footer [data-notif-clear-all] {
    border-color: rgba(239, 68, 68, 0.5);
    color: #dc2626;
}
[data-theme="light"] .notif-footer .chip-primary {
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
}
[data-theme="light"] .notif-footer .chip:hover {
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
[data-theme="light"] .notif-footer .chip-primary:hover {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}
[data-theme="light"] .notif-empty {
    color: #1e3a8a;
}
[data-theme="light"] .notif-item-meta {
    color: #475569;
}
[data-theme="light"] .notif-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}
.notif-list::-webkit-scrollbar-track {
    background: transparent;
}
.notif-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 8px;
}
.notif-dropdown:hover .notif-list::-webkit-scrollbar-thumb {
    background: rgba(100, 140, 255, 0.4);
}
.notif-dropdown:hover .notif-list::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 140, 255, 0.8);
}
.notif-list {
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}
.notif-dropdown:hover .notif-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 140, 255, 0.5) transparent;
}

.toast {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.2s ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-error {
    border-color: rgba(249, 115, 22, 0.8);
}

.empty-state {
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    padding: 26px;
    text-align: center;
    color: var(--color-muted);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: 0.38fr 0.62fr;
    gap: 16px;
    align-items: start;
}

.suggestion-form-card {
    min-height: auto;
}

.suggestion-list-card {
    min-height: 420px;
}

@media (max-width: 1023px) {
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
}

.pro-guard {
    position: absolute;
    top: 12px;
    right: 12px;
}

.badge.pro-lock {
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
}

.upload-preview {
    height: 120px;
    border-radius: 12px;
    border: 1px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px;
    max-width: 440px;
    width: 92%;
    box-shadow: var(--shadow);
}

.youtube-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1300;
}

.youtube-modal-backdrop.visible {
    display: flex;
}

.youtube-modal {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    width: min(960px, 96%);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.youtube-modal .btn-icon.close {
    position: absolute;
    top: 12px;
    right: 12px;
    margin-top: 0;
    background: rgba(0, 0, 0, 0.28);
}

.youtube-modal .youtube-frame {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: #000;
}

.youtube-modal .youtube-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-benefits {
    padding-left: 18px;
    color: var(--color-text);
}

.modal-benefits li {
    margin-bottom: 6px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-icon.close {
    width: 45px;
    height: 32px;
    margin-top: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
    display: grid;
    place-items: center;
}

.btn-icon.close:hover,
.btn-icon.close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-text);
    border-color: var(--color-border);
}
.card .actions .btn {
    min-width: 90px;
    height: 35px;
    min-height: 35px;
    max-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plugin-card .actions .btn {
    min-width: 90px;
    height: 35px;
    min-height: 35px;
    max-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-muted);
    font-size: 12px;
    max-width: 200px;
    justify-content: flex-end;
}

.card-meta .meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--color-muted);
    transition: transform 0.25s ease;
}

.card-meta .favorite-btn {
    flex-shrink: 0;
}

.meta-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-muted);
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.meta-count span {
    color: var(--color-text);
    font-weight: 600;
}

.meta-count::before {
    font-size: 11px;
}

.badge-pro-thumb {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(120deg, #f97316, #fb923c);
    color: #0f172a;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        position: relative;
    }
}

@media (max-width: 768px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0;
        width: 240px;
        max-width: 80%;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        z-index: 1300;
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    }

    body.mobile-menu-open .sidebar {
        transform: translateX(0);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1290;
    }

    body.mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-toggle {
        display: none;
    }

    .topbar-inner {
        justify-content: space-between;
        align-items: center;
    }

    .search-box,
    .topbar-right {
        display: none;
    }

    .topbar {
        padding: 10px 14px;
    }

    .topbar-brand-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1 1 70%;
    }

    .mobile-logo {
        height: 75px;
        max-height: 75px;
    }

    .mobile-menu-toggle {
        display: grid;
        place-items: center;
        width: 75px;
        height: 75px;
        border: none;
        background: transparent;
        color: var(--color-text);
        cursor: pointer;
        flex: 0 0 30%;
        font-size: 55px;
        margin-top: -10px;
        line-height: 1;
        transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .user-area,
    .theme-toggle {
        display: none;
    }

    .mobile-menu-toggle:hover {
        opacity: 0.85;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    .search-box,
    .topbar-right,
    .topbar-logo {
        display: none;
    }
}

@media (min-width: 1024px) {
    .topbar-brand-mobile,
    .mobile-menu-toggle {
        display: none !important;
    }

    .topbar-brand-desktop {
        display: none;
    }

    .topbar-inner {
        flex-direction: row;
        align-items: center;
    }

    .search-box {
        display: flex;
    }

    .topbar-right {
        margin-left: auto;
    }
}

.user-dropdown[hidden] {
    display: none !important;
}

body.sidebar-mini .app-shell {
    grid-template-columns: 72px 1fr;
}

body.sidebar-mini .sidebar {
    width: 72px;
    padding: 18px 8px;
}

body.sidebar-mini .sidebar-brand {
    padding: 8px;
}

body.sidebar-mini .sidebar-divider,
body.sidebar-mini .sidebar-section-title,
body.sidebar-mini .nav-text,
body.sidebar-mini .nav-subprefix,
body.sidebar-mini .sidebar-children,
body.sidebar-mini .nav-chevron {
    display: none !important;
}

body.sidebar-mini .nav-link,
body.sidebar-mini .nav-sublink {
    justify-content: center;
    padding: 10px;
}

body.sidebar-mini .nav-icon {
    margin: 0;
}

body.sidebar-mini .nav-link.is-active,
body.sidebar-mini .sidebar-accordion[aria-expanded="true"] {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

body.sidebar-mini .nav-sublink.is-active {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.25);
}

body.sidebar-mini .sidebar-nav {
    margin-top: 8px;
}

body.sidebar-mini .sidebar-logo-full {
    display: none;
}

body.sidebar-mini .sidebar-logo-mini {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

body.sidebar-mini .sidebar-footer {
    justify-content: center;
}

body.sidebar-mini .sidebar,
body.sidebar-mini .sidebar-nav {
    overflow-x: hidden;
}

.mini-tooltip {
    position: fixed;
    z-index: 9999;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.mini-tooltip.visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar {
    scrollbar-width: none;
}

.hosting-page {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hosting-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.hosting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.coupon-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--color-text);
    flex-wrap: wrap;
}

.coupon-code {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
}

.hosting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.small-note {
    font-size: 13px;
    color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
    .app-shell,
    .sidebar,
    .sidebar .sidebar-toggle,
    .main,
    .page,
    .nav-link,
    .nav-sublink,
    body.sidebar-mini .nav-link::after,
    body.sidebar-mini .nav-sublink::after {
        transition: none !important;
    }
}
.copy-animate {
    animation: copy-bounce 0.35s ease;
}

.count-animate {
    animation: count-pop 0.35s ease;
}

@keyframes copy-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes count-pop {
    0% { opacity: 0.5; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fav-pop {
    0% { transform: scale(1) rotate(0deg); }
    45% { transform: scale(1.25) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .copy-animate,
    .count-animate {
        animation: none;
    }

    .favorite-animate {
        animation: none;
    }
}
