/* ==========================================================================
   PuraVida Sports — Admin Dashboard Design System (Zoho-inspired)
   ========================================================================== */

:root {
    /* Brand - Matching PuraVida frontend colors */
    --pv-primary: #1e88e5;
    --pv-primary-600: #1975c2;
    --pv-primary-700: #1565c0;
    --pv-primary-50: #e3f2fd;
    --pv-primary-100: #bbdefb;
    --pv-accent: #f6a623;
    --pv-danger: #e5484d;
    --pv-success: #2ea36b;
    --pv-warning: #f5a623;
    --pv-info: #3aa3e3;
    --pv-purple: #8a6ee0;

    /* Neutrals */
    --pv-bg: #f4f6f9;
    --pv-surface: #ffffff;
    --pv-surface-2: #f8fafc;
    --pv-border: #e6e9ef;
    --pv-border-strong: #d4d9e3;
    --pv-text: #1f2a37;
    --pv-text-soft: #5b6472;
    --pv-text-muted: #8a93a3;
    --pv-sidebar: #ffffff;
    --pv-sidebar-2: #f8fafc;
    --pv-sidebar-text: #5b6472;
    --pv-sidebar-active: #1e88e5;
    --pv-header-bg: #030f40;
    --pv-header-text: #e7eceb;

    /* Layout */
    --pv-sidebar-w: 264px;
    --pv-sidebar-w-collapsed: 76px;
    --pv-topbar-h: 64px;
    --pv-radius: 12px;
    --pv-radius-sm: 8px;
    --pv-radius-lg: 18px;
    --pv-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
    --pv-shadow-md: 0 4px 16px rgba(16,24,40,.08);
    --pv-shadow-lg: 0 12px 32px rgba(16,24,40,.12);
    --pv-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    /* Animation timings */
    --pv-transition-fast: 0.15s ease;
    --pv-transition-normal: 0.22s ease;
    --pv-transition-slow: 0.35s ease;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--pv-font);
    font-size: 14px;
    color: var(--pv-text);
    background: var(--pv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--pv-primary); text-decoration: none; }
a:hover { color: var(--pv-primary-600); }

img { max-width: 100%; display: block; }

/* ---------- App shell ---------- */
.pv-app { display: flex; min-height: 100vh; max-width: 1280px; margin: 0 auto; background: var(--pv-surface); box-shadow: 0 0 24px rgba(16,24,40,.06); }

.pv-sidebar {
    width: var(--pv-sidebar-w);
    background: var(--pv-sidebar);
    color: var(--pv-sidebar-text);
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 60;
    transition: width var(--pv-transition-normal), transform var(--pv-transition-normal);
    overflow: hidden;
    border-right: 1px solid var(--pv-border);
}
.pv-sidebar.is-collapsed {
    width: 64px;
    border-right: 1px solid var(--pv-border);
}
.pv-sidebar.is-collapsed .pv-sidebar__brand {
    padding: 0;
    justify-content: center;
}
.pv-sidebar.is-collapsed .pv-sidebar__logo-img {
    display: none;
}
.pv-sidebar.is-collapsed .pv-sidebar__toggle {
    display: grid;
}
.pv-sidebar.is-collapsed .pv-sidebar__nav {
    padding: 14px 8px 24px;
}
.pv-sidebar.is-collapsed .pv-nav-item {
    justify-content: center;
    padding: 10px 8px;
    gap: 0;
}
.pv-sidebar.is-collapsed .pv-nav-item span:not(.pv-nav-badge):not(.pv-nav-chevron) {
    display: none;
}
.pv-sidebar.is-collapsed .pv-nav-item .pv-nav-badge {
    display: none;
}
.pv-sidebar.is-collapsed .pv-nav-chevron {
    display: none;
}
.pv-sidebar.is-collapsed .pv-nav-children {
    display: none;
}
.pv-sidebar.is-collapsed .pv-sidebar__foot {
    padding: 14px 8px;
    flex-direction: column;
    gap: 8px;
}
.pv-sidebar.is-collapsed .pv-sidebar__foot > div:nth-child(2) {
    display: none;
}
.pv-sidebar.is-collapsed .pv-sidebar__foot .pv-btn {
    margin-left: 0;
}
.pv-sidebar__brand,
.pv-sidebar__nav,
.pv-sidebar__foot {
    transition: opacity var(--pv-transition-fast);
}

/* Floating open button - only for mobile */
.pv-sidebar-open-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--pv-border); background: var(--pv-surface);
    display: none; place-items: center; cursor: pointer;
    color: var(--pv-text-soft); z-index: 61;
    transition: all var(--pv-transition-fast);
    box-shadow: var(--pv-shadow);
}
.pv-sidebar-open-btn:hover { background: var(--pv-surface-2); color: var(--pv-primary); transform: scale(1.05); }

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.pv-sidebar__brand {
    height: var(--pv-topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 20px;
    border-bottom: 1px solid var(--pv-border);
    flex-shrink: 0;
}
.pv-sidebar__logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.pv-sidebar__toggle {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--pv-border);
    background: var(--pv-surface); display: grid; place-items: center; cursor: pointer;
    color: var(--pv-text-soft);
    transition: all var(--pv-transition-fast);
    flex-shrink: 0;
}
.pv-sidebar__toggle:hover { background: var(--pv-surface-2); color: var(--pv-primary); transform: scale(1.05); }
.pv-sidebar__toggle:active { transform: scale(0.95); }
.pv-sidebar__logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-600));
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 18px;
    box-shadow: 0 4px 12px rgba(30,136,229,.3);
    flex-shrink: 0;
}
.pv-sidebar__brand-text { line-height: 1.15; }
.pv-sidebar__brand-text strong { color: var(--pv-text); font-size: 15px; display: block; }
.pv-sidebar__brand-text span { color: var(--pv-sidebar-text); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.pv-sidebar__nav { flex: 1; overflow-y: auto; padding: 14px 12px 24px; }
.pv-sidebar__nav::-webkit-scrollbar { width: 6px; }
.pv-sidebar__nav::-webkit-scrollbar-thumb { background: var(--pv-border-strong); border-radius: 6px; }

/* ---------- Nav items ---------- */
.pv-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; margin: 2px 0;
    border-radius: 10px; color: var(--pv-sidebar-text);
    font-size: 13.5px; font-weight: 500;
    cursor: pointer; position: relative;
    transition: all var(--pv-transition-fast);
    white-space: nowrap;
}
.pv-nav-item:hover {
    background: var(--pv-surface-2);
    color: var(--pv-primary);
    transform: translateX(4px);
}
.pv-nav-item.is-active {
    background: var(--pv-primary-50);
    color: var(--pv-primary);
    box-shadow: 0 2px 8px rgba(30,136,229,.15);
}
.pv-nav-item.is-active::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--pv-primary);
    animation: slideInLeft 0.3s ease-out;
}
.pv-nav-item .pv-nav-ico { width: 20px; height: 20px; flex-shrink: 0; }
.pv-nav-item .pv-nav-badge {
    margin-left: auto; background: var(--pv-danger); color: #fff;
    font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px;
}
.pv-nav-item .pv-nav-badge.soft { background: var(--pv-surface-2); color: var(--pv-text-muted); }

/* ---------- Nav parent with children ---------- */
.pv-nav-parent {
    user-select: none;
}
.pv-nav-chevron {
    margin-left: auto;
    display: flex; align-items: center;
    transition: transform var(--pv-transition-normal);
    color: var(--pv-text-muted);
}
.pv-nav-parent .pv-nav-badge {
    margin-left: 0;
}
.pv-nav-parent .pv-nav-badge + .pv-nav-chevron {
    margin-left: 8px;
}
.pv-nav-group.is-expanded .pv-nav-chevron {
    transform: rotate(180deg);
}

.pv-nav-children {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height var(--pv-transition-normal), opacity var(--pv-transition-normal);
    padding-left: 20px;
}
.pv-nav-group.is-expanded .pv-nav-children {
    max-height: 400px;
    opacity: 1;
}

.pv-nav-child {
    display: block;
    padding: 8px 14px 8px 16px;
    margin: 2px 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text-soft);
    text-decoration: none;
    position: relative;
    transition: all var(--pv-transition-fast);
    white-space: nowrap;
}
.pv-nav-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pv-border-strong);
    transition: all var(--pv-transition-fast);
}
.pv-nav-child:hover {
    color: var(--pv-primary);
    background: var(--pv-surface-2);
    padding-left: 22px;
}
.pv-nav-child:hover::before {
    background: var(--pv-primary);
    transform: translateY(-50%) scale(1.3);
}
.pv-nav-child.is-active {
    color: var(--pv-primary);
    font-weight: 600;
    background: var(--pv-primary-50);
}
.pv-nav-child.is-active::before {
    background: var(--pv-primary);
    width: 8px;
    height: 8px;
}
.pv-nav-item .pv-nav-ico { width: 20px; height: 20px; flex-shrink: 0; }
.pv-nav-item .pv-nav-badge {
    margin-left: auto; background: var(--pv-danger); color: #fff;
    font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px;
}
.pv-nav-item .pv-nav-badge.soft { background: var(--pv-surface-2); color: var(--pv-text-muted); }

.pv-sidebar__foot {
    padding: 14px; border-top: 1px solid var(--pv-border);
    display: flex; align-items: center; gap: 10px;
}
.pv-sidebar__foot .pv-avatar { width: 34px; height: 34px; }
.pv-sidebar__foot .pv-user-name { color: var(--pv-text); font-size: 13px; font-weight: 600; }
.pv-sidebar__foot .pv-user-role { color: var(--pv-text-muted); font-size: 11px; }

/* ---------- Main column ---------- */
.pv-main {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    transition: all var(--pv-transition-normal);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pv-topbar {
    height: var(--pv-topbar-h);
    background: var(--pv-surface);
    border-bottom: 1px solid var(--pv-border);
    display: flex; align-items: center; gap: 16px;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.pv-topbar__search {
    margin: 0 auto; position: relative; width: 100%; max-width: 480px; flex: 1;
}
.pv-topbar__search input {
    width: 100%; height: 40px; border: 1px solid var(--pv-border);
    border-radius: 10px; padding: 0 14px 0 38px; background: var(--pv-surface-2);
    font-size: 13px; color: var(--pv-text); transition: all var(--pv-transition-fast);
}
.pv-topbar__search input:focus {
    outline: none;
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px var(--pv-primary-50);
    background: var(--pv-surface);
}
.pv-topbar__search .pv-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--pv-text-muted); transition: color var(--pv-transition-fast); }
.pv-topbar__search input:focus + .pv-ico { color: var(--pv-primary); }
.pv-topbar__actions {
    display: flex; align-items: center; gap: 10px;
    margin-left: auto;
}
.pv-topbar__icon-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--pv-border);
    background: var(--pv-surface); display: grid; place-items: center; cursor: pointer;
    color: var(--pv-text-soft); position: relative;
    transition: all var(--pv-transition-fast);
}
.pv-topbar__icon-btn:hover { background: var(--pv-surface-2); color: var(--pv-primary); transform: translateY(-2px); box-shadow: var(--pv-shadow); }
.pv-topbar__icon-btn:active { transform: translateY(0); }
.pv-topbar__icon-btn .pv-dot {
    position: absolute; top: 9px; right: 10px; width: 7px; height: 7px;
    background: var(--pv-danger); border-radius: 50%; border: 2px solid var(--pv-surface);
    animation: pulse 2s infinite;
}

/* ---------- Breadcrumbs (in content area) ---------- */
.pv-breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 28px 0;
    font-size: 13px; color: var(--pv-text-muted);
}
.pv-breadcrumbs a { color: var(--pv-text-muted); transition: color var(--pv-transition-fast); }
.pv-breadcrumbs a:hover { color: var(--pv-primary); }
.pv-breadcrumbs strong { color: var(--pv-text); font-weight: 600; }
.pv-breadcrumbs span { color: var(--pv-text-muted); }

/* ---------- Role switcher ---------- */
.pv-role-switcher { position: relative; }
.pv-role-switcher__btn {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px 6px 6px; border-radius: 10px;
    border: 1px solid var(--pv-border); background: var(--pv-surface-2);
    cursor: pointer; transition: all var(--pv-transition-fast);
    font-family: inherit;
}
.pv-role-switcher__btn:hover {
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px var(--pv-primary-50);
}
.pv-role-switcher__icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: grid; place-items: center; flex-shrink: 0;
}
.pv-role-switcher__text {
    text-align: left; line-height: 1.2;
}
.pv-role-switcher__text strong {
    display: block; font-size: 13px; color: var(--pv-text); font-weight: 600;
}
.pv-role-switcher__text small {
    display: block; font-size: 11px; color: var(--pv-text-muted);
}
.pv-role-switcher__menu .pv-dropdown__item.is-active {
    background: var(--pv-primary-50);
    color: var(--pv-primary);
}
.pv-role-switcher__menu .pv-dropdown__item {
    align-items: flex-start;
}
.pv-role-switcher__menu .pv-dropdown__item strong {
    font-size: 13px; display: block; margin-bottom: 2px;
}

/* ---------- Widget cards ---------- */
.pv-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.pv-widget {
    background: var(--pv-surface);
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius);
    overflow: hidden;
    transition: all var(--pv-transition-fast);
}
.pv-widget:hover { box-shadow: var(--pv-shadow-md); }
.pv-widget__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--pv-border);
}
.pv-widget__head h4 { margin: 0; font-size: 14px; font-weight: 600; }
.pv-widget__head .pv-widget__icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: grid; place-items: center;
}
.pv-widget__body { padding: 14px 18px; }

/* Quick notes widget */
.pv-note-form { margin-bottom: 10px; }
.pv-note-form .pv-note-input { margin-bottom: 8px; }
.pv-note-save-btn { width: 100%; justify-content: center; }
.pv-note-input {
    width: 100%; min-height: 80px; border: 1px solid var(--pv-border);
    border-radius: 10px; padding: 10px 12px; font-size: 13px;
    font-family: inherit; resize: vertical; background: var(--pv-surface-2);
    transition: all var(--pv-transition-fast);
}
.pv-note-input:focus { outline: none; border-color: var(--pv-primary); background: var(--pv-surface); }
.pv-note-list { margin-top: 12px; }
.pv-note-item {
    padding: 10px 12px; border: 1px solid var(--pv-border); border-radius: 8px;
    margin-bottom: 8px; font-size: 13px; line-height: 1.5;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
    transition: all var(--pv-transition-fast);
}
.pv-note-item:hover { border-color: var(--pv-primary); background: var(--pv-primary-50); }
.pv-note-item__text { flex: 1; min-width: 0; word-break: break-word; }
.pv-note-item__meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pv-note-item__time { font-size: 11px; color: var(--pv-text-muted); }
.pv-note-item__del { cursor: pointer; color: var(--pv-text-muted); background: none; border: none; padding: 2px; display: grid; place-items: center; border-radius: 4px; transition: all .15s; }
.pv-note-item__del:hover { color: var(--pv-danger); background: #fdecec; }

/* Task reminders widget */
.pv-task-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--pv-border);
    font-size: 13px;
}
.pv-task-item:last-child { border-bottom: none; }
.pv-task-check {
    width: 18px; height: 18px; border: 2px solid var(--pv-border-strong);
    border-radius: 5px; cursor: pointer; flex-shrink: 0;
    transition: all var(--pv-transition-fast);
    display: grid; place-items: center;
}
.pv-task-check:hover { border-color: var(--pv-primary); }
.pv-task-check.is-done { background: var(--pv-primary); border-color: var(--pv-primary); }
.pv-task-check.is-done::after { content: "✓"; color: #fff; font-size: 11px; font-weight: 700; }
.pv-task-check.is-done + .pv-task-text { text-decoration: line-through; color: var(--pv-text-muted); }

/* Task widget */
.pv-task-add-form { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--pv-border); }
.pv-task-add-row,
.pv-task-edit-row {
    display: flex; gap: 8px; align-items: center;
}
.pv-task-add-row .pv-task-title-input,
.pv-task-edit-row .pv-task-title-input {
    flex: 1;
    min-width: 0;
}
.pv-task-add-row .pv-task-due-input,
.pv-task-edit-row .pv-task-due-input {
    width: 124px; flex-shrink: 0;
}
.pv-task-add-row .pv-task-add-btn,
.pv-task-edit-row .pv-task-add-btn {
    width: 32px; flex-shrink: 0; padding: 0; justify-content: center;
}
.pv-input.pv-input--sm { padding: 6px 10px; font-size: 12px; height: 34px; }
.pv-task-list { display: flex; flex-direction: column; gap: 2px; }
.pv-task-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 8px; border-radius: 8px;
    font-size: 13px;
    transition: background-color .15s;
}
.pv-task-item:hover { background: var(--pv-surface-2); }
.pv-task-item.is-completed .pv-task-text { text-decoration: line-through; color: var(--pv-text-muted); }
.pv-task-content { flex: 1; min-width: 0; }
.pv-task-view { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pv-task-text { flex: 1; min-width: 0; word-break: break-word; }
.pv-task-due { font-size: 11px; color: var(--pv-danger); font-weight: 600; flex-shrink: 0; }
.pv-task-due.normal { color: var(--pv-text-muted); }
.pv-task-actions { display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity .15s; }
.pv-task-item:hover .pv-task-actions { opacity: 1; }
.pv-task-edit-btn, .pv-task-delete {
    background: none; border: none; cursor: pointer;
    color: var(--pv-text-muted); width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 6px; transition: all .15s;
}
.pv-task-edit-btn:hover { background: var(--pv-primary-50); color: var(--pv-primary); }
.pv-task-delete:hover { background: #fdecec; color: var(--pv-danger); }
.pv-task-edit-form { width: 100%; }
.pv-task-empty { text-align: center; padding: 24px 8px; color: var(--pv-text-muted); }
.pv-task-empty p { margin: 8px 0 0; font-size: 13px; }
.pv-task-empty svg { opacity: 0.4; }

@media (max-width: 768px) {
    .pv-task-actions { opacity: 1; }
    .pv-task-add-row { flex-wrap: wrap; }
    .pv-task-add-row .pv-task-due-input { width: 100%; }
}

/* Breaking news ticker */
.pv-breaking-ticker {
    background: linear-gradient(90deg, #fdecec, #fff5f5);
    border: 1px solid #fcc;
    border-radius: 10px; padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.pv-breaking-ticker__badge {
    background: var(--pv-danger); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 6px; flex-shrink: 0;
    animation: pulse 2s infinite;
}
.pv-breaking-ticker__text { font-size: 14px; font-weight: 600; color: var(--pv-text); }
.pv-breaking-ticker__time { font-size: 12px; color: var(--pv-text-muted); margin-left: auto; flex-shrink: 0; }

/* Time/clock widget */
.pv-clock {
    text-align: center; padding: 8px 0;
}
.pv-clock__time { font-size: 32px; font-weight: 700; color: var(--pv-text); letter-spacing: 1px; }
.pv-clock__date { font-size: 13px; color: var(--pv-text-muted); margin-top: 4px; }

/* Stat pill */
.pv-stat-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border-radius: 10px; background: var(--pv-surface-2);
    margin-bottom: 8px;
}
.pv-stat-pill__icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: grid; place-items: center; flex-shrink: 0;
}
.pv-stat-pill__value { font-size: 18px; font-weight: 700; line-height: 1; }
.pv-stat-pill__label { font-size: 12px; color: var(--pv-text-muted); }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}
.pv-avatar {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
    background: linear-gradient(135deg, var(--pv-primary), #16b3bc);
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}

.pv-content { padding: 24px 28px; flex: 1; width: 100%; }

/* ---------- Page header ---------- */
.pv-page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pv-page-head__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pv-page-head__sub { color: var(--pv-text-muted); font-size: 13px; margin-top: 4px; }
.pv-page-head__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.pv-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 10px;
    border: 1px solid var(--pv-border-strong); background: var(--pv-surface);
    color: var(--pv-text); font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: all var(--pv-transition-fast); white-space: nowrap;
    position: relative; overflow: hidden;
}
.pv-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}
.pv-btn:active::before {
    width: 200px;
    height: 200px;
}
.pv-btn:hover { background: var(--pv-surface-2); border-color: var(--pv-text-muted); transform: translateY(-1px); }
.pv-btn:active { transform: translateY(0); }
.pv-btn--primary { background: var(--pv-primary); border-color: var(--pv-primary); color: #fff; }
.pv-btn--primary:hover { background: var(--pv-primary-600); border-color: var(--pv-primary-600); color: #fff; box-shadow: 0 4px 12px rgba(10,137,145,.3); }
.pv-btn--ghost { background: transparent; border-color: transparent; color: var(--pv-text-soft); }
.pv-btn--ghost:hover { background: var(--pv-surface-2); color: var(--pv-text); }
.pv-btn--danger { background: var(--pv-danger); border-color: var(--pv-danger); color: #fff; }
.pv-btn--danger:hover { background: #cf4146; color: #fff; box-shadow: 0 4px 12px rgba(229,72,77,.3); }
.pv-btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.pv-btn--icon { width: 40px; padding: 0; justify-content: center; }
.pv-btn--sm.pv-btn--icon { width: 32px; }
.pv-btn--block { width: 100%; justify-content: center; }

/* ---------- Cards ---------- */
.pv-card {
    background: var(--pv-surface); border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius); box-shadow: var(--pv-shadow);
    transition: all var(--pv-transition-normal);
    animation: slideUp 0.4s ease-out;
}
.pv-card:hover {
    box-shadow: var(--pv-shadow-md);
    transform: translateY(-2px);
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.pv-card__head {
    padding: 16px 20px; border-bottom: 1px solid var(--pv-border);
    display: flex; align-items: center; gap: 12px;
}
.pv-card__head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.pv-card__head .pv-card__sub { color: var(--pv-text-muted); font-size: 12px; }
.pv-card__head .pv-card__tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pv-card__body { padding: 20px; }
.pv-card__body--flush { padding: 0; }
.pv-card--flat { box-shadow: none; }

/* ---------- KPI cards ---------- */
.pv-grid { display: grid; gap: 18px; }
.pv-kpis { grid-template-columns: repeat(4, 1fr); }
.pv-kpi {
    background: var(--pv-surface); border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius); padding: 18px 20px; box-shadow: var(--pv-shadow);
    display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
    transition: all var(--pv-transition-normal);
    animation: slideUp 0.4s ease-out;
}
.pv-kpi:hover {
    box-shadow: var(--pv-shadow-md);
    transform: translateY(-4px);
    border-color: var(--pv-primary);
}
.pv-kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pv-primary), var(--pv-primary-600));
    opacity: 0;
    transition: opacity var(--pv-transition-normal);
}
.pv-kpi:hover::before { opacity: 1; }
.pv-kpi__top { display: flex; align-items: center; justify-content: space-between; }
.pv-kpi__label { color: var(--pv-text-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pv-kpi__ico {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--pv-primary-50); color: var(--pv-primary);
    transition: all var(--pv-transition-fast);
}
.pv-kpi:hover .pv-kpi__ico { transform: scale(1.1) rotate(5deg); }
.pv-kpi__ico.green { background: #e6f6ee; color: var(--pv-success); }
.pv-kpi__ico.amber { background: #fef3e0; color: var(--pv-warning); }
.pv-kpi__ico.red { background: #fdecec; color: var(--pv-danger); }
.pv-kpi__ico.blue { background: #e7f3fc; color: var(--pv-info); }
.pv-kpi__ico.purple { background: #efe9fb; color: var(--pv-purple); }
.pv-kpi__value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; transition: color var(--pv-transition-fast); }
.pv-kpi:hover .pv-kpi__value { color: var(--pv-primary); }
.pv-kpi__delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pv-kpi__delta.up { color: var(--pv-success); }
.pv-kpi__delta.down { color: var(--pv-danger); }
.pv-kpi__spark { height: 38px; margin-top: 2px; }

/* ---------- Tables ---------- */
.pv-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: auto; }
.pv-card__body--flush .pv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pv-table thead th, .pv-table tbody td { white-space: nowrap; }
.pv-table thead th {
    text-align: left; padding: 12px 16px; font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: var(--pv-text-muted);
    background: var(--pv-surface-2); border-bottom: 1px solid var(--pv-border);
    position: sticky; top: 0; z-index: 10;
}
.pv-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--pv-border); vertical-align: middle; transition: background var(--pv-transition-fast); }
.pv-table .pv-cell-title { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.pv-table tbody tr:last-child td { border-bottom: none; }
.pv-table tbody tr:hover { background: var(--pv-surface-2); }
.pv-table tbody tr { transition: all var(--pv-transition-fast); }
.pv-table tbody tr:hover { transform: scale(1.005); }
.pv-table .pv-cell-main { display: flex; align-items: center; gap: 12px; }
.pv-table .pv-cell-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--pv-surface-2); flex-shrink: 0; transition: transform var(--pv-transition-fast); }
.pv-table tbody tr:hover .pv-cell-thumb { transform: scale(1.1); }
.pv-table .pv-cell-title { font-weight: 600; color: var(--pv-text); }
.pv-table .pv-cell-sub { color: var(--pv-text-muted); font-size: 12px; margin-top: 2px; }
.pv-table .pv-row-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ---------- Badges / chips ---------- */
.pv-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
    background: var(--pv-surface-2); color: var(--pv-text-soft); border: 1px solid var(--pv-border);
}
.pv-badge--primary { background: var(--pv-primary-50); color: var(--pv-primary-700); border-color: var(--pv-primary-100); }
.pv-badge--success { background: #e6f6ee; color: #1f7d4f; border-color: #c5e8d4; }
.pv-badge--warning { background: #fef3e0; color: #b87a16; border-color: #f8e0b0; }
.pv-badge--danger { background: #fdecec; color: #c2363a; border-color: #f6d2d3; }
.pv-badge--info { background: #e7f3fc; color: #1f7ab8; border-color: #c4e4f6; }
.pv-badge--purple { background: #efe9fb; color: #6a4fc4; border-color: #ddd2f3; }
.pv-badge--muted { background: #eef0f4; color: #6b7280; border-color: #e1e4ea; }
.pv-dot-status { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- Forms ---------- */
.pv-form-group { margin-bottom: 18px; }
.pv-form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--pv-text); margin-bottom: 6px; }
.pv-form-label .req { color: var(--pv-danger); }
.pv-form-hint { font-size: 11.5px; color: var(--pv-text-muted); margin-top: 5px; }
.pv-input, .pv-select, .pv-textarea {
    width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--pv-border-strong);
    border-radius: 10px; background: var(--pv-surface); color: var(--pv-text);
    font-size: 13.5px; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.pv-textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.pv-input:focus, .pv-select:focus, .pv-textarea:focus {
    outline: none; border-color: var(--pv-primary); box-shadow: 0 0 0 3px var(--pv-primary-50);
}
.pv-input::placeholder, .pv-textarea::placeholder { color: var(--pv-text-muted); }
.pv-input-group { position: relative; }
.pv-input-group .pv-input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pv-text-muted); }
.pv-input-group .pv-input { padding-left: 42px; }
.pv-input-group .pv-input-action { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--pv-text-muted); cursor: pointer; background: none; border: none; padding: 6px; }
.pv-input-group .pv-input-action:hover { color: var(--pv-text); }
.pv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pv-checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.pv-checkbox input { width: 16px; height: 16px; accent-color: var(--pv-primary); }
.pv-toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.pv-toggle input { opacity: 0; width: 0; height: 0; }
.pv-toggle .pv-toggle-slider { position: absolute; inset: 0; background: #cfd5e0; border-radius: 24px; transition: .2s; }
.pv-toggle .pv-toggle-slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pv-toggle input:checked + .pv-toggle-slider { background: var(--pv-primary); }
.pv-toggle input:checked + .pv-toggle-slider::before { transform: translateX(18px); }

/* ---------- Tabs ---------- */
.pv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--pv-border); margin-bottom: 22px; }
.pv-tab {
    padding: 11px 16px; font-size: 13.5px; font-weight: 600; color: var(--pv-text-muted);
    border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s;
    display: inline-flex; align-items: center; gap: 8px;
}
.pv-tab:hover { color: var(--pv-text); }
.pv-tab.is-active { color: var(--pv-primary); border-bottom-color: var(--pv-primary); }
.pv-tab .pv-tab-count { background: var(--pv-surface-2); color: var(--pv-text-muted); font-size: 11px; padding: 1px 7px; border-radius: 10px; }
.pv-tab.is-active .pv-tab-count { background: var(--pv-primary-50); color: var(--pv-primary-700); }

/* ---------- Filters bar ---------- */
.pv-filterbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.pv-filterbar .pv-input, .pv-filterbar .pv-select { height: 38px; width: auto; min-width: 150px; }
.pv-filterbar .pv-search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.pv-filterbar .pv-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--pv-border-strong); border-radius: 10px; font-size: 13px; background: var(--pv-surface); }
.pv-filterbar .pv-search .pv-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--pv-text-muted); }
.pv-filterbar .pv-spacer { margin-left: auto; }

/* ---------- Pagination ---------- */
.pv-pagination { display: flex; align-items: center; gap: 4px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--pv-border); }
.pv-pagination .pv-page {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
    border: 1px solid var(--pv-border); background: var(--pv-surface);
    font-size: 13px; color: var(--pv-text-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.pv-pagination .pv-page:hover { background: var(--pv-surface-2); }
.pv-pagination .pv-page.is-active { background: var(--pv-primary); border-color: var(--pv-primary); color: #fff; }
.pv-pagination .pv-page.is-disabled { opacity: .5; cursor: not-allowed; }
.pv-pagination .pv-page-info { margin-right: auto; color: var(--pv-text-muted); font-size: 12.5px; }

/* ---------- Activity / lists ---------- */
.pv-activity { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--pv-border); }
.pv-activity:last-child { border-bottom: none; }
.pv-activity__dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.pv-activity__body { font-size: 13px; line-height: 1.5; }
.pv-activity__body strong { font-weight: 600; }
.pv-activity__time { color: var(--pv-text-muted); font-size: 11.5px; margin-top: 3px; }

/* ---------- Misc helpers ---------- */
.pv-row { display: flex; gap: 18px; }
.pv-col { flex: 1; min-width: 0; }
.pv-stack { display: flex; flex-direction: column; gap: 18px; }
.pv-muted { color: var(--pv-text-muted); }
.pv-text-sm { font-size: 12px; }
.pv-text-right { text-align: right; }
.pv-mt-0 { margin-top: 0; }
.pv-mb-0 { margin-bottom: 0; }
.pv-divider { height: 1px; background: var(--pv-border); border: none; margin: 18px 0; position: relative; text-align: center; }
.pv-divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--pv-bg); padding: 0 16px; font-size: 12px; color: var(--pv-text-muted); font-weight: 600; }
.pv-flex { display: flex; align-items: center; gap: 10px; }
.pv-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-progress { height: 8px; background: var(--pv-surface-2); border-radius: 8px; overflow: hidden; }
.pv-progress__bar { height: 100%; border-radius: 8px; background: var(--pv-primary); }
.pv-empty { text-align: center; padding: 48px 20px; color: var(--pv-text-muted); }
.pv-empty .pv-empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--pv-border-strong); }

/* ---------- Stat list ---------- */
.pv-stat-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--pv-border); }
.pv-stat-row:last-child { border-bottom: none; }
.pv-stat-row .pv-stat-label { font-size: 13px; color: var(--pv-text-soft); }
.pv-stat-row .pv-stat-value { font-weight: 700; font-size: 14px; }

/* ---------- Dropdown ---------- */
.pv-dropdown { position: relative; }
.pv-dropdown__menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: 12px;
    box-shadow: var(--pv-shadow-lg); padding: 8px; z-index: 80;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all var(--pv-transition-normal);
}
.pv-dropdown.is-open .pv-dropdown__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.pv-dropdown__item {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
    font-size: 13px; color: var(--pv-text); cursor: pointer;
    transition: all var(--pv-transition-fast);
}
.pv-dropdown__item:hover {
    background: var(--pv-surface-2);
    transform: translateX(4px);
}
.pv-dropdown__item.danger { color: var(--pv-danger); }
.pv-dropdown__item.danger:hover { background: #fdecec; }
.pv-dropdown__sep { height: 1px; background: var(--pv-border); margin: 6px 0; }
.pv-dropdown__head { padding: 12px; border-bottom: 1px solid var(--pv-border); margin-bottom: 6px; }
.pv-dropdown__head strong { display: block; font-size: 13px; }
.pv-dropdown__head span { font-size: 11.5px; color: var(--pv-text-muted); }

/* ---------- Media grid ---------- */
.pv-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pv-media-item { border: 1px solid var(--pv-border); border-radius: 12px; overflow: hidden; background: var(--pv-surface); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.pv-media-item:hover { box-shadow: var(--pv-shadow-md); transform: translateY(-2px); }
.pv-media-item .pv-media-thumb { aspect-ratio: 4/3; background: var(--pv-surface-2); overflow: hidden; }
.pv-media-item .pv-media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-media-item .pv-media-meta { padding: 10px 12px; }
.pv-media-item .pv-media-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-media-item .pv-media-size { font-size: 11px; color: var(--pv-text-muted); margin-top: 2px; }

/* ---------- Upload zone ---------- */
.pv-upload-zone {
    border: 2px dashed var(--pv-border-strong); border-radius: 14px;
    padding: 36px 20px; text-align: center; color: var(--pv-text-muted);
    background: var(--pv-surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.pv-upload-zone:hover { border-color: var(--pv-primary); background: var(--pv-primary-50); color: var(--pv-primary-700); }
.pv-upload-zone .pv-upload-ico { width: 48px; height: 48px; margin: 0 auto 12px; }

/* ---------- Editor mock ---------- */
.pv-editor { border: 1px solid var(--pv-border-strong); border-radius: 12px; overflow: hidden; }
.pv-editor__toolbar { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--pv-border); background: var(--pv-surface-2); flex-wrap: wrap; }
.pv-editor__btn { width: 32px; height: 32px; border-radius: 6px; border: none; background: transparent; cursor: pointer; color: var(--pv-text-soft); display: grid; place-items: center; }
.pv-editor__btn:hover { background: var(--pv-surface); color: var(--pv-text); }
.pv-editor__btn.is-active { background: var(--pv-primary-50); color: var(--pv-primary-700); }
.pv-editor__sep { width: 1px; background: var(--pv-border); margin: 4px 6px; }
.pv-editor__area { min-height: 240px; padding: 16px; font-size: 14px; line-height: 1.7; color: var(--pv-text); outline: none; background: var(--pv-surface); }

/* ---------- Auth shell ---------- */
.pv-auth { min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; }
.pv-auth__aside {
    color: #fff; padding: 0; display: flex; flex-direction: column; position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(3,15,64,.88) 0%, rgba(10,23,64,.82) 50%, rgba(15,27,45,.88) 100%);
    background-size: cover; background-position: center; background-blend-mode: overlay;
}
.pv-auth__aside-inner { padding: 56px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 2; }

.pv-auth__aside::after {
    content: ""; position: absolute; right: -120px; bottom: -120px;
    width: 360px; height: 360px; border-radius: 50%;
    background: rgba(255,255,255,.06); z-index: 1;
}
.pv-auth__aside::before {
    content: ""; position: absolute; left: -80px; top: -80px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255,255,255,.05); z-index: 1;
}
.pv-auth__quote { position: relative; z-index: 2; max-width: 460px; }
.pv-auth__quote h2 { font-size: 30px; line-height: 1.25; margin: 0 0 16px; font-weight: 800; letter-spacing: -.01em; }
.pv-auth__quote p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.85); margin: 0 0 24px; }
.pv-auth__quote .pv-auth__author { display: flex; align-items: center; gap: 12px; }
.pv-auth__quote .pv-auth__author .pv-avatar { background: rgba(255,255,255,.18); }
.pv-auth__quote .pv-auth__author strong { display: block; font-size: 14px; }
.pv-auth__quote .pv-auth__author span { font-size: 12px; color: rgba(255,255,255,.7); }
.pv-auth__stats { display: flex; gap: 32px; margin-top: auto; position: relative; z-index: 2; padding-top: 32px; }
.pv-auth__stat strong { display: block; font-size: 26px; font-weight: 800; }
.pv-auth__stat span { font-size: 12.5px; color: rgba(255,255,255,.75); }

.pv-auth__main { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--pv-bg); }
.pv-auth__card { width: 100%; max-width: 420px; }
.pv-auth__card h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.pv-auth__card .pv-auth__lead { color: var(--pv-text-muted); margin: 0 0 28px; font-size: 14px; }
.pv-auth__alt { text-align: center; margin-top: 24px; font-size: 13px; color: var(--pv-text-muted); }
.pv-auth__alt a { font-weight: 600; }
.pv-auth__back { position: absolute; top: 28px; left: 28px; font-size: 13px; font-weight: 600; color: var(--pv-text-soft); display: inline-flex; align-items: center; gap: 6px; }
.pv-auth__back:hover { color: var(--pv-text); }

/* ---------- Responsive ---------- */
.pv-cols-2 { grid-template-columns: 1fr 1fr; }
.pv-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pv-cols-2-1 { grid-template-columns: 2fr 1fr; }
.pv-cols-1-2 { grid-template-columns: 1fr 2fr; }

@media (max-width: 1180px) {
    .pv-kpis { grid-template-columns: repeat(2, 1fr); }
    .pv-cols-2-1, .pv-cols-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
    .pv-app { max-width: 100%; }
    .pv-sidebar { position: fixed; top: 0; left: 0; height: 100vh; transform: translateX(-100%); }
    .pv-sidebar.is-collapsed { transform: translateX(-100%); width: var(--pv-sidebar-w); }
    .pv-sidebar:not(.is-collapsed) { transform: translateX(0); }
    .pv-main { margin-left: 0; }
    .pv-sidebar-open-btn { display: grid !important; }
    .pv-sidebar:not(.is-collapsed) ~ .pv-sidebar-open-btn { display: none; }
    .pv-auth { grid-template-columns: 1fr; }
    .pv-auth__aside { display: none; }
    .pv-cols-2, .pv-cols-3 { grid-template-columns: 1fr; }
    .pv-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pv-kpis { grid-template-columns: 1fr; }
    .pv-content { padding: 16px; }
    .pv-topbar { padding: 0 14px; gap: 10px; }
    .pv-topbar__search { display: none; }
    .pv-table thead { display: none; }
    .pv-table tbody td { display: block; border: none; padding: 6px 16px; }
    .pv-table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--pv-border); }
}

/* ---------- Backdrop for mobile sidebar ---------- */
.pv-backdrop { position: fixed; inset: 0; background: rgba(15,27,45,.5); z-index: 55; display: none; opacity: 0; transition: opacity var(--pv-transition-normal); }
.pv-backdrop.is-open { display: block; opacity: 1; }

/* ---------- Loading spinner ---------- */
.pv-spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--pv-border);
    border-top-color: var(--pv-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Skeleton loading ---------- */
.pv-skeleton {
    background: linear-gradient(90deg, var(--pv-surface-2) 25%, var(--pv-border) 50%, var(--pv-surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Tooltip ---------- */
.pv-tooltip {
    position: relative;
}
.pv-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--pv-sidebar);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--pv-transition-fast);
    z-index: 100;
}
.pv-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Notification badge animation ---------- */
.pv-badge--pulse {
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(229,72,77,0); }
}

/* ---------- Staggered animation for cards ---------- */
.pv-card:nth-child(1) { animation-delay: 0.05s; }
.pv-card:nth-child(2) { animation-delay: 0.1s; }
.pv-card:nth-child(3) { animation-delay: 0.15s; }
.pv-card:nth-child(4) { animation-delay: 0.2s; }
.pv-card:nth-child(5) { animation-delay: 0.25s; }
.pv-card:nth-child(6) { animation-delay: 0.3s; }

.pv-kpi:nth-child(1) { animation-delay: 0.05s; }
.pv-kpi:nth-child(2) { animation-delay: 0.1s; }
.pv-kpi:nth-child(3) { animation-delay: 0.15s; }
.pv-kpi:nth-child(4) { animation-delay: 0.2s; }

/* ---------- Ripple animations ---------- */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes rippleBtn {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ---------- Reels grid ---------- */
.pv-reels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pv-reel-card { border: 1px solid var(--pv-border); border-radius: var(--pv-radius); overflow: hidden; background: var(--pv-surface); transition: box-shadow .15s, transform .15s; }
.pv-reel-card:hover { box-shadow: var(--pv-shadow-md); transform: translateY(-2px); }
.pv-reel-thumb { aspect-ratio: 9/16; position: relative; display: grid; place-items: center; background: var(--pv-surface-2); }
.pv-reel-play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--pv-text); box-shadow: var(--pv-shadow-md); transition: transform .15s; }
.pv-reel-card:hover .pv-reel-play { transform: scale(1.1); }
.pv-reel-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.pv-reel-badge { position: absolute; top: 8px; left: 8px; }
.pv-reel-meta { padding: 12px 14px; }
.pv-reel-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Permission grid ---------- */
.pv-perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pv-checkbox-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.pv-checkbox-wrap input { width: 16px; height: 16px; cursor: pointer; }

/* ---------- Role icon large ---------- */
.pv-role-icon-lg { transition: transform .15s; }
.pv-card:hover .pv-role-icon-lg { transform: scale(1.05); }

/* ---------- Form grid ---------- */
.pv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pv-form-row { display: flex; flex-direction: column; gap: 6px; }
.pv-form-row label { font-size: 12px; font-weight: 600; color: var(--pv-text-soft); }
.pv-form-row .pv-input, .pv-form-row .pv-select, .pv-form-row textarea { width: 100%; }
.pv-input { height: 40px; padding: 0 14px; border: 1px solid var(--pv-border-strong); border-radius: 10px; font-size: 13px; background: var(--pv-surface); color: var(--pv-text); transition: all var(--pv-transition-fast); }
.pv-input:focus, textarea:focus { outline: none; border-color: var(--pv-primary); box-shadow: 0 0 0 3px var(--pv-primary-50); }
textarea.pv-input { height: auto; padding: 10px 14px; resize: vertical; }

/* ---------- Breaking news marquee ---------- */
.pv-breaking-ticker { overflow: hidden; }
.pv-breaking-ticker__track { display: inline-flex; align-items: center; gap: 32px; animation: pv-marquee 40s linear infinite; padding-left: 100%; white-space: nowrap; }
.pv-breaking-ticker:hover .pv-breaking-ticker__track { animation-play-state: paused; }
@keyframes pv-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.pv-breaking-ticker__item { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--pv-text); }
.pv-breaking-ticker__item::before { content: '•'; color: var(--pv-danger); font-size: 18px; }

@media (max-width: 768px) {
    .pv-form-grid { grid-template-columns: 1fr; }
    .pv-reels-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .pv-mag-grid { grid-template-columns: 1fr; }
}

/* ---------- View toggle ---------- */
.pv-view-toggle { display: inline-flex; border: 1px solid var(--pv-border-strong); border-radius: 8px; overflow: hidden; }
.pv-view-toggle__btn { width: 36px; height: 36px; border: none; background: var(--pv-surface); color: var(--pv-text-soft); cursor: pointer; display: grid; place-items: center; transition: all var(--pv-transition-fast); }
.pv-view-toggle__btn.is-active { background: var(--pv-primary); color: #fff; }
.pv-view-toggle__btn:hover:not(.is-active) { background: var(--pv-surface-2); }

/* ---------- Magazine article cards ---------- */
.pv-mag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 18px; }
.pv-mag-card { border: 1px solid var(--pv-border); border-radius: var(--pv-radius); overflow: hidden; background: var(--pv-surface); transition: box-shadow .15s, transform .15s; }
.pv-mag-card:hover { box-shadow: var(--pv-shadow-md); transform: translateY(-2px); }
.pv-mag-card__thumb { aspect-ratio: 16/10; position: relative; background: var(--pv-surface-2); }
.pv-mag-card__cat { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; letter-spacing: .03em; }
.pv-mag-card__status { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.pv-mag-card__body { padding: 14px 16px; }
.pv-mag-card__title { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.pv-mag-card__title a { color: var(--pv-text); }
.pv-mag-card__title a:hover { color: var(--pv-primary); }
.pv-mag-card__meta { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.pv-mag-card__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--pv-border); padding-top: 10px; }
.pv-mag-card__stats { display: flex; gap: 14px; font-size: 12px; color: var(--pv-text-muted); }
.pv-mag-card__stats span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Article editor layout ---------- */
.pv-article-editor-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.pv-article-editor__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pv-article-editor__sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }

/* Title input — large, borderless */
.pv-article-title-card .pv-card__body { padding: 20px 24px; }
.pv-article-title-input { width: 100%; border: none; outline: none; font-size: 24px; font-weight: 700; color: var(--pv-text); background: transparent; padding: 0; margin-bottom: 12px; line-height: 1.3; }
.pv-article-title-input::placeholder { color: var(--pv-text-muted); font-weight: 600; }
.pv-article-slug-row { display: flex; align-items: center; gap: 0; border: 1px solid var(--pv-border-strong); border-radius: 8px; padding: 0 12px; background: var(--pv-surface-2); }
.pv-article-slug-prefix { font-size: 13px; color: var(--pv-text-muted); white-space: nowrap; }
.pv-article-slug-input { border: none; outline: none; background: transparent; font-size: 13px; padding: 8px 0; color: var(--pv-text-soft); flex: 1; }
.pv-article-slug-display { font-size: 13px; padding: 8px 0; color: var(--pv-text-soft); font-weight: 500; }

/* Word count badge */
.pv-article-word-count { font-size: 12px; color: var(--pv-text-muted); font-weight: 600; }

/* Quill editor overrides */
.pv-article-editor__main .ql-toolbar { border: 1px solid var(--pv-border); border-bottom: none; border-radius: 0; background: var(--pv-surface-2); }
.pv-article-editor__main .ql-container { border: 1px solid var(--pv-border); border-radius: 0; min-height: 400px; font-size: 15px; font-family: 'Inter', sans-serif; }
.pv-article-editor__main .ql-editor { min-height: 400px; padding: 20px 24px; line-height: 1.8; }
.pv-article-editor__main .ql-editor h1 { font-size: 28px; font-weight: 800; margin: 20px 0 12px; }
.pv-article-editor__main .ql-editor h2 { font-size: 22px; font-weight: 700; margin: 18px 0 10px; }
.pv-article-editor__main .ql-editor h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.pv-article-editor__main .ql-editor blockquote { border-left: 4px solid var(--pv-primary); padding: 8px 16px; margin: 16px 0; color: var(--pv-text-soft); font-style: italic; background: var(--pv-surface-2); border-radius: 0 8px 8px 0; }
.pv-article-editor__main .ql-editor img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.pv-article-editor__main .ql-editor pre.ql-syntax { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; }
.pv-article-editor__main .ql-editor a { color: var(--pv-primary); text-decoration: underline; }
.pv-article-editor__main .ql-editor ul, .pv-article-editor__main .ql-editor ol { padding-left: 24px; margin: 12px 0; }
.pv-article-editor__main .ql-editor li { margin-bottom: 4px; }
.pv-article-editor__main .ql-editor p { margin-bottom: 12px; }

/* Featured image upload zone */
.pv-featured-image-zone { border: 2px dashed var(--pv-border-strong); border-radius: 12px; padding: 32px; text-align: center; cursor: pointer; transition: all var(--pv-transition-fast); background: var(--pv-surface-2); }
.pv-featured-image-zone:hover { border-color: var(--pv-primary); background: var(--pv-primary-50); }
.pv-featured-image-zone.is-dragover { border-color: var(--pv-primary); background: var(--pv-primary-50); }
.pv-featured-image-zone img { max-width: 100%; border-radius: 8px; }

/* Sidebar thumb */
.pv-sidebar-thumb { border: 1px solid var(--pv-border); border-radius: 8px; padding: 24px; text-align: center; background: var(--pv-surface-2); }

/* Tag chips */
.pv-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pv-tag-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--pv-primary-50); color: var(--pv-primary-700); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.pv-tag-chip__x { border: none; background: none; color: var(--pv-primary); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.pv-tag-chip__x:hover { color: var(--pv-danger); }

/* SEO preview */
.pv-seo-preview { margin-top: 16px; padding: 16px; border: 1px solid var(--pv-border); border-radius: 10px; background: var(--pv-surface-2); }
.pv-seo-preview__label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--pv-text-muted); margin-bottom: 8px; }
.pv-seo-preview__url { font-size: 12px; color: #1a0dab; margin-bottom: 2px; }
.pv-seo-preview__title { font-size: 16px; color: #1a0dab; font-weight: 500; line-height: 1.3; margin-bottom: 2px; }
.pv-seo-preview__desc { font-size: 13px; color: #4d5156; line-height: 1.4; }

@media (max-width: 920px) {
    .pv-article-editor-layout { grid-template-columns: 1fr; }
    .pv-article-editor__sidebar { position: static; }
}

/* ==========================================================================
   PuraVida Sports — Public Pages (matching admin design system)
   ========================================================================== */

/* ---------- Public shell ---------- */
.pv-public { min-height: 100vh; display: flex; flex-direction: column; background: var(--pv-bg); }

/* ---------- Public header ---------- */
.pv-public-header {
    background: var(--pv-header-bg);
    color: var(--pv-header-text);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(3,15,64,.15);
}
.pv-public-header__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 32px; gap: 16px;
}
.pv-public-header__brand {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.pv-public-header__brand img { height: 44px; width: auto; }
.pv-public-header__brand-text { line-height: 1.15; }
.pv-public-header__brand-text strong { color: #fff; font-size: 18px; display: block; font-weight: 800; }
.pv-public-header__brand-text span { color: rgba(231,236,235,.6); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pv-public-header__nav {
    display: flex; align-items: center; gap: 4px;
}
.pv-public-header__nav a {
    color: rgba(231,236,235,.75); font-size: 13.5px; font-weight: 500;
    padding: 8px 14px; border-radius: 8px; text-decoration: none;
    transition: all var(--pv-transition-fast); white-space: nowrap;
}
.pv-public-header__nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.pv-public-header__nav a.is-active { color: #fff; background: rgba(255,255,255,.12); }
.pv-public-header__actions { display: flex; align-items: center; gap: 10px; }
.pv-public-header__actions .pv-btn { height: 36px; font-size: 13px; }
.pv-public-header__actions .pv-btn--primary {
    background: var(--pv-primary); border-color: var(--pv-primary);
}
.pv-public-header__actions .pv-btn--primary:hover {
    background: var(--pv-primary-600); box-shadow: 0 4px 12px rgba(30,136,229,.3);
}
.pv-public-header__burger {
    display: none; width: 38px; height: 38px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15); background: transparent;
    color: #fff; cursor: pointer; place-items: center;
}

/* ---------- Public hero banner ---------- */
.pv-public-hero {
    background: linear-gradient(135deg, var(--pv-header-bg) 0%, #1a2a6c 100%);
    color: #fff; padding: 64px 32px; text-align: center;
    position: relative; overflow: hidden;
}
.pv-public-hero::after {
    content: ""; position: absolute; right: -100px; bottom: -100px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,.04);
}
.pv-public-hero::before {
    content: ""; position: absolute; left: -60px; top: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.03);
}
.pv-public-hero__content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.pv-public-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: .05em;
}
.pv-public-hero h1 { font-size: 38px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; line-height: 1.2; }
.pv-public-hero p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.8); margin: 0 0 28px; }
.pv-public-hero .pv-btn--primary { height: 48px; padding: 0 28px; font-size: 15px; }

/* ---------- Public content area ---------- */
.pv-public-content { flex: 1; padding: 48px 32px; }
.pv-public-container { max-width: 960px; margin: 0 auto; }
.pv-public-container--narrow { max-width: 720px; }

/* ---------- Public page card ---------- */
.pv-public-card {
    background: var(--pv-surface); border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius-lg); box-shadow: var(--pv-shadow);
    overflow: hidden; animation: slideUp 0.4s ease-out;
}
.pv-public-card__head {
    padding: 28px 32px; border-bottom: 1px solid var(--pv-border);
    background: var(--pv-surface-2);
}
.pv-public-card__head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.pv-public-card__head p { margin: 6px 0 0; color: var(--pv-text-muted); font-size: 14px; }
.pv-public-card__body { padding: 32px; }
.pv-public-card__body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.pv-public-card__body h2:first-child { margin-top: 0; }
.pv-public-card__body h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.pv-public-card__body p { font-size: 15px; line-height: 1.75; color: var(--pv-text-soft); margin: 0 0 16px; }
.pv-public-card__body ul, .pv-public-card__body ol { padding-left: 24px; margin: 0 0 16px; }
.pv-public-card__body li { font-size: 15px; line-height: 1.75; color: var(--pv-text-soft); margin-bottom: 8px; }
.pv-public-card__body a { color: var(--pv-primary); font-weight: 600; }

/* ---------- Public feature grid ---------- */
.pv-public-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 28px 0; }
.pv-public-feature {
    background: var(--pv-surface); border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius); padding: 24px; text-align: center;
    transition: all var(--pv-transition-normal); animation: slideUp 0.4s ease-out;
}
.pv-public-feature:hover { box-shadow: var(--pv-shadow-md); transform: translateY(-4px); border-color: var(--pv-primary); }
.pv-public-feature__icon {
    width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
    display: grid; place-items: center; background: var(--pv-primary-50); color: var(--pv-primary);
    transition: transform var(--pv-transition-fast);
}
.pv-public-feature:hover .pv-public-feature__icon { transform: scale(1.1); }
.pv-public-feature__icon.green { background: #e6f6ee; color: var(--pv-success); }
.pv-public-feature__icon.amber { background: #fef3e0; color: var(--pv-warning); }
.pv-public-feature__icon.purple { background: #efe9fb; color: var(--pv-purple); }
.pv-public-feature__icon.blue { background: #e7f3fc; color: var(--pv-info); }
.pv-public-feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.pv-public-feature p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--pv-text-muted); }

/* ---------- Public contact info ---------- */
.pv-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pv-contact-info { display: flex; flex-direction: column; gap: 18px; }
.pv-contact-item { display: flex; align-items: flex-start; gap: 14px; }
.pv-contact-item__icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; background: var(--pv-primary-50); color: var(--pv-primary);
}
.pv-contact-item__icon.green { background: #e6f6ee; color: var(--pv-success); }
.pv-contact-item__icon.amber { background: #fef3e0; color: var(--pv-warning); }
.pv-contact-item__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--pv-text-muted); margin-bottom: 2px; }
.pv-contact-item__value { font-size: 15px; font-weight: 600; color: var(--pv-text); }
.pv-contact-item__value a { color: var(--pv-text); }

/* ---------- Public footer ---------- */
.pv-public-footer {
    background: var(--pv-header-bg); color: rgba(231,236,235,.7);
    padding: 48px 32px 0; margin-top: auto;
}
.pv-public-footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
    max-width: 1200px; margin: 0 auto; padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.pv-public-footer__brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.pv-public-footer__brand p { font-size: 13.5px; line-height: 1.7; margin: 0; }
.pv-public-footer__col h4 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.pv-public-footer__col ul { list-style: none; padding: 0; margin: 0; }
.pv-public-footer__col li { margin-bottom: 10px; }
.pv-public-footer__col a { color: rgba(231,236,235,.7); font-size: 13.5px; text-decoration: none; transition: color var(--pv-transition-fast); }
.pv-public-footer__col a:hover { color: #fff; }
.pv-public-footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; max-width: 1200px; margin: 0 auto;
    font-size: 13px; color: rgba(231,236,235,.5);
}
.pv-public-footer__bottom a { color: rgba(231,236,235,.6); text-decoration: none; }
.pv-public-footer__bottom a:hover { color: #fff; }
.pv-public-footer__social { display: flex; gap: 10px; }
.pv-public-footer__social a {
    width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
    background: rgba(255,255,255,.06); color: rgba(231,236,235,.7); transition: all var(--pv-transition-fast);
}
.pv-public-footer__social a:hover { background: var(--pv-primary); color: #fff; transform: translateY(-2px); }

/* ---------- Public section header ---------- */
.pv-public-section-head { text-align: center; margin-bottom: 32px; }
.pv-public-section-head h2 { font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.pv-public-section-head p { font-size: 15px; color: var(--pv-text-muted); margin: 0; }

/* ---------- Public CTA banner ---------- */
.pv-public-cta {
    background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-700) 100%);
    border-radius: var(--pv-radius-lg); padding: 40px 32px; text-align: center;
    color: #fff; margin: 32px 0;
}
.pv-public-cta h2 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.pv-public-cta p { font-size: 15px; color: rgba(255,255,255,.85); margin: 0 0 20px; }
.pv-public-cta .pv-btn { background: #fff; border-color: #fff; color: var(--pv-primary); height: 44px; padding: 0 24px; font-size: 14px; }
.pv-public-cta .pv-btn:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

/* ---------- Public responsive ---------- */
@media (max-width: 920px) {
    .pv-public-header__nav { display: none; }
    .pv-public-header__burger { display: grid; }
    .pv-public-header__nav.is-open {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--pv-header-bg); padding: 12px; gap: 4px; border-top: 1px solid rgba(255,255,255,.08);
    }
    .pv-public-header__nav.is-open a { width: 100%; padding: 12px 14px; }
    .pv-public-hero h1 { font-size: 28px; }
    .pv-public-hero { padding: 40px 20px; }
    .pv-public-content { padding: 28px 16px; }
    .pv-public-card__head { padding: 20px; }
    .pv-public-card__body { padding: 20px; }
    .pv-contact-grid { grid-template-columns: 1fr; }
    .pv-public-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .pv-public-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 640px) {
    .pv-public-footer__grid { grid-template-columns: 1fr; }
    .pv-public-features { grid-template-columns: 1fr; }
}

/* ---------- Toast notifications ---------- */
.pv-toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 99999;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 380px; width: calc(100% - 40px);
    pointer-events: none;
}
.pv-toast {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: 10px;
    background: var(--pv-surface);
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    border-left: 4px solid var(--pv-primary);
    pointer-events: auto;
    animation: pvToastIn .3s ease forwards;
    opacity: 0; transform: translateX(100%);
}
.pv-toast.is-leaving { animation: pvToastOut .3s ease forwards; }
.pv-toast--success { border-left-color: var(--pv-success); }
.pv-toast--error   { border-left-color: var(--pv-danger); }
.pv-toast--warning { border-left-color: var(--pv-warning); }
.pv-toast--info    { border-left-color: var(--pv-info); }
.pv-toast__icon {
    flex-shrink: 0; width: 22px; height: 22px;
    display: grid; place-items: center; border-radius: 50%;
    font-size: 13px; font-weight: 700; color: #fff;
    margin-top: 1px;
}
.pv-toast--success .pv-toast__icon { background: var(--pv-success); }
.pv-toast--error   .pv-toast__icon { background: var(--pv-danger); }
.pv-toast--warning .pv-toast__icon { background: var(--pv-warning); }
.pv-toast--info    .pv-toast__icon { background: var(--pv-info); }
.pv-toast__body { flex: 1; min-width: 0; }
.pv-toast__title { font-weight: 600; font-size: 14px; color: var(--pv-text); margin: 0 0 2px; }
.pv-toast__msg { font-size: 13px; color: var(--pv-text-soft); margin: 0; line-height: 1.4; word-wrap: break-word; }
.pv-toast__close {
    flex-shrink: 0; background: none; border: none; cursor: pointer;
    color: var(--pv-text-muted); font-size: 18px; line-height: 1; padding: 0;
    margin-top: -2px;
}
.pv-toast__close:hover { color: var(--pv-text); }
@keyframes pvToastIn  { to { opacity: 1; transform: translateX(0); } }
@keyframes pvToastOut { to { opacity: 0; transform: translateX(120%); } }
@media (max-width: 480px) {
    .pv-toast-container { top: 10px; right: 10px; left: 10px; max-width: none; width: auto; }
}

/* ==========================================================================
   PuraVida Sports — Shadcn-inspired Articles Table
   ========================================================================== */

.pv-sd-card {
    background: var(--pv-surface);
    border: 1px solid var(--pv-border);
    border-radius: var(--pv-radius);
    overflow: hidden;
    box-shadow: var(--pv-shadow);
}

/* ---------- Status tabs ---------- */
.pv-sd-tabs {
    display: flex;
    gap: 2px;
    padding: 12px 16px 0;
    border-bottom: 1px solid var(--pv-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pv-sd-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pv-text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    text-decoration: none;
}
.pv-sd-tab:hover { color: var(--pv-text); text-decoration: none; }
.pv-sd-tab.is-active { color: var(--pv-text); border-bottom-color: var(--pv-primary); }
.pv-sd-tab-count {
    background: var(--pv-surface-2);
    color: var(--pv-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}
.pv-sd-tab.is-active .pv-sd-tab-count {
    background: var(--pv-primary-50);
    color: var(--pv-primary-700);
}
.pv-sd-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.pv-sd-dot--success { background: var(--pv-success); }
.pv-sd-dot--muted { background: var(--pv-text-muted); }
.pv-sd-dot--info { background: var(--pv-info); }
.pv-sd-dot--warning { background: var(--pv-warning); }

/* ---------- Filter bar ---------- */
.pv-sd-filterbar {
    padding: 14px 16px;
    border-bottom: 1px solid var(--pv-border);
    background: var(--pv-surface-2);
}
.pv-sd-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}
.pv-sd-search .pv-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pv-text-muted);
}
.pv-sd-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--pv-border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--pv-surface);
    color: var(--pv-text);
    transition: border-color .15s, box-shadow .15s;
}
.pv-sd-search input:focus {
    outline: none;
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px var(--pv-primary-50);
}
.pv-sd-select {
    height: 36px;
    padding: 0 28px 0 12px;
    border: 1px solid var(--pv-border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--pv-surface);
    color: var(--pv-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .15s, box-shadow .15s;
}
.pv-sd-select:focus {
    outline: none;
    border-color: var(--pv-primary);
    box-shadow: 0 0 0 3px var(--pv-primary-50);
}

/* ---------- Buttons (shadcn) ---------- */
.pv-sd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--pv-border);
    background: var(--pv-surface);
    color: var(--pv-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.pv-sd-btn:hover { background: var(--pv-surface-2); border-color: var(--pv-border-strong); text-decoration: none; color: var(--pv-text); }
.pv-sd-btn--sm { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.pv-sd-btn--ghost { background: transparent; border-color: transparent; color: var(--pv-text-soft); }
.pv-sd-btn--ghost:hover { background: var(--pv-surface-2); color: var(--pv-text); }
.pv-sd-btn--primary { background: var(--pv-primary); border-color: var(--pv-primary); color: #fff; }
.pv-sd-btn--primary:hover { background: var(--pv-primary-600); border-color: var(--pv-primary-600); color: #fff; }
.pv-sd-btn--success { background: var(--pv-success); border-color: var(--pv-success); color: #fff; }
.pv-sd-btn--success:hover { background: #259060; border-color: #259060; color: #fff; }
.pv-sd-btn--danger { background: var(--pv-danger); border-color: var(--pv-danger); color: #fff; }
.pv-sd-btn--danger:hover { background: #cf4146; border-color: #cf4146; color: #fff; }

/* ---------- Bulk action bar ---------- */
.pv-sd-bulkbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--pv-primary-50);
    border-bottom: 1px solid var(--pv-primary-100);
    gap: 12px;
    flex-wrap: wrap;
}
.pv-sd-bulkbar__info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pv-primary-700);
}
.pv-sd-bulkbar__count {
    background: var(--pv-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}
.pv-sd-bulkbar__clear {
    background: none;
    border: none;
    color: var(--pv-primary-700);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: .8;
    transition: opacity .15s;
}
.pv-sd-bulkbar__clear:hover { opacity: 1; }
.pv-sd-bulkbar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Table ---------- */
.pv-sd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pv-sd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pv-sd-th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--pv-text-muted);
    background: var(--pv-surface-2);
    border-bottom: 1px solid var(--pv-border);
    white-space: nowrap;
}
.pv-sd-th--check { width: 40px; padding-right: 8px; }
.pv-sd-th--num { text-align: right; }
.pv-sd-th--actions { text-align: right; width: 120px; }
.pv-sd-td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pv-border);
    vertical-align: middle;
    transition: background .12s;
}
.pv-sd-td--check { width: 40px; padding-right: 8px; }
.pv-sd-td--num { text-align: right; }
.pv-sd-td--actions { text-align: right; }
.pv-sd-tr { transition: background .12s; }
.pv-sd-tr:hover .pv-sd-td { background: var(--pv-surface-2); }
.pv-sd-tr:last-child .pv-sd-td { border-bottom: none; }

/* ---------- Checkbox (shadcn style) ---------- */
.pv-sd-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
.pv-sd-checkbox input {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--pv-border-strong);
    border-radius: 4px;
    appearance: none;
    background: var(--pv-surface);
    cursor: pointer;
    transition: all .15s;
    margin: 0;
}
.pv-sd-checkbox input:checked {
    background: var(--pv-primary);
    border-color: var(--pv-primary);
}
.pv-sd-checkbox input:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}
.pv-sd-checkbox input:indeterminate {
    background: var(--pv-primary);
    border-color: var(--pv-primary);
}
.pv-sd-checkbox input:indeterminate::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

/* ---------- Title cell ---------- */
.pv-sd-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pv-sd-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--pv-surface-2);
}
.pv-sd-thumb--placeholder {
    display: grid;
    place-items: center;
    color: var(--pv-text-muted);
}

/* ---------- Author display (article editor) ---------- */
.pv-author-display {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pv-author-name { font-size: 14px; font-weight: 600; color: var(--pv-text); }
.pv-author-role { font-size: 12px; color: var(--pv-text-muted); margin-top: 2px; }
.pv-sd-title-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}
.pv-sd-title-link {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--pv-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 340px;
    transition: color .12s;
}
.pv-sd-title-link:hover { color: var(--pv-primary); text-decoration: none; }
.pv-sd-id {
    font-size: 11px;
    color: var(--pv-text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

/* ---------- Pills ---------- */
.pv-sd-pill {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}
.pv-sd-pill--danger { background: #fdecec; color: #c2363a; }

/* ---------- Status badge ---------- */
.pv-sd-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
}
.pv-sd-status--success { color: #1f7d4f; }
.pv-sd-status--muted { color: var(--pv-text-muted); }
.pv-sd-status--info { color: #1f7ab8; }
.pv-sd-status--warning { color: #b87a16; }

/* ---------- Category / author / views / date ---------- */
.pv-sd-cat { font-size: 12.5px; font-weight: 600; }
.pv-sd-author { font-size: 12.5px; color: var(--pv-text-soft); }
.pv-sd-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--pv-text-muted);
}
.pv-sd-date { font-size: 12.5px; color: var(--pv-text-muted); }

/* ---------- Row actions ---------- */
.pv-sd-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
}
.pv-sd-action-btn {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--pv-text-muted);
    cursor: pointer;
    transition: background .12s, color .12s;
}
.pv-sd-action-btn:hover { background: var(--pv-surface-2); color: var(--pv-text); }

/* ---------- Row dropdown menu ---------- */
.pv-sd-dropdown { position: relative; display: inline-block; }
.pv-sd-dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 180px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(16,24,40,.12), 0 1px 4px rgba(16,24,40,.06);
    padding: 4px;
    z-index: 80;
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    pointer-events: none;
    transition: opacity .15s, transform .15s;
}
.pv-sd-dropdown.is-open .pv-sd-dropdown__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.pv-sd-dropdown__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text);
    cursor: pointer;
    transition: background .12s, color .12s;
    text-decoration: none;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
}
.pv-sd-dropdown__item:hover { background: var(--pv-surface-2); color: var(--pv-text); text-decoration: none; }
.pv-sd-dropdown__item--danger { color: var(--pv-danger); }
.pv-sd-dropdown__item--danger:hover { background: #fdecec; color: var(--pv-danger); }
.pv-sd-dropdown__sep { height: 1px; background: var(--pv-border); margin: 4px 0; }

/* ---------- Empty state ---------- */
.pv-sd-empty { padding: 48px 20px; }
.pv-sd-empty-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--pv-text-muted);
}
.pv-sd-empty-inner .pv-ico { color: var(--pv-border-strong); margin-bottom: 4px; }
.pv-sd-empty-inner h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--pv-text); }
.pv-sd-empty-inner p { margin: 0 0 8px; font-size: 13px; }

/* ---------- Pagination ---------- */
.pv-sd-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid var(--pv-border);
    flex-wrap: wrap;
}
.pv-sd-page-info {
    margin-right: auto;
    color: var(--pv-text-muted);
    font-size: 12.5px;
}
.pv-sd-pagination .pagination { margin: 0; }
.pv-sd-pagination .pagination a,
.pv-sd-pagination .pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--pv-border);
    background: var(--pv-surface);
    font-size: 13px;
    color: var(--pv-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, border-color .12s;
    margin: 0 1px;
}
.pv-sd-pagination .pagination a:hover { background: var(--pv-surface-2); border-color: var(--pv-border-strong); text-decoration: none; }
.pv-sd-pagination .pagination .active {
    background: var(--pv-primary);
    border-color: var(--pv-primary);
    color: #fff;
    font-weight: 600;
}
.pv-sd-pagination .pagination .disabled { opacity: .5; }

/* ---------- Custom Pagination (pv-pagination) ---------- */
.pv-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pv-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--pv-border);
    background: var(--pv-surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--pv-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    user-select: none;
}
.pv-page-btn:hover {
    background: var(--pv-surface-2);
    border-color: var(--pv-border-strong);
    color: var(--pv-text);
    text-decoration: none;
}
.pv-page-btn--active {
    background: var(--pv-primary);
    border-color: var(--pv-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(30, 136, 229, 0.3);
}
.pv-page-btn--active:hover {
    background: var(--pv-primary);
    border-color: var(--pv-primary);
    color: #fff;
}
.pv-page-btn--disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
.pv-page-dots {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--pv-text-muted);
    letter-spacing: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pv-sd-th:nth-child(4),
    .pv-sd-td:nth-child(4),
    .pv-sd-th:nth-child(5),
    .pv-sd-td:nth-child(5),
    .pv-sd-th:nth-child(6),
    .pv-sd-td:nth-child(6) {
        display: none;
    }
    .pv-sd-title-link { max-width: 180px; }
    .pv-sd-bulkbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .pv-sd-th:nth-child(7),
    .pv-sd-td:nth-child(7) {
        display: none;
    }
    .pv-sd-title-link { max-width: 140px; }
}
