:root {
    --vz-primary: #f97316;
    --vz-primary-rgb: 249, 115, 22;
    --vz-primary-dark: #ea580c;
    --vz-primary-soft: rgba(249, 115, 22, 0.12);
    --vz-success: #0ab39c;
    --vz-success-rgb: 10, 179, 156;
    --vz-danger: #f06548;
    --vz-danger-rgb: 240, 101, 72;
    --vz-warning: #f7b84b;
    --vz-info: #299cdb;
    --vz-secondary: #3577f1;
    --vz-body: #212529;
    --vz-muted: #878a99;
    --vz-border: #e9ebec;
    --vz-light: #f3f6f9;
    --vz-card: #ffffff;
    --vz-sidebar: #405189;
    --vz-sidebar-dark: #364574;
    --vz-sidebar-text: #abb9e8;
    --vz-topbar-h: 70px;
    --vz-sidebar-w: 250px;
    --vz-radius: 0.4rem;
    --vz-shadow: 0 1px 2px rgba(56, 65, 74, 0.15);
    --vz-font: "Poppins", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: var(--vz-font);
    font-size: 0.875rem;
    color: var(--vz-body);
    background: var(--vz-light);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.layout { min-height: 100vh; }

/* Sidebar — Velzon dark */
.app-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--vz-sidebar-w);
    background: var(--vz-sidebar);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}

.navbar-brand-box {
    height: var(--vz-topbar-h);
    display: flex;
    align-items: center;
    padding: 0 1.3rem;
    background: var(--vz-sidebar-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    display: block;
    flex-shrink: 0;
}

.logo-img-auth {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.logo span { letter-spacing: -0.02em; }

.menu-scroll {
    overflow-y: auto;
    padding: 0.85rem 0 1.5rem;
    flex: 1;
}

.menu-title {
    padding: 0.75rem 1.5rem 0.45rem;
    color: #838fb9;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: var(--vz-sidebar-text);
    font-weight: 500;
    position: relative;
}

.nav-link-item i {
    font-size: 1.05rem;
    width: 1.25rem;
    text-align: center;
}

.nav-link-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-link-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--vz-primary);
}

.menu-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    background: rgba(249, 115, 22, 0.2);
    color: #ffc08a;
}

.menu-group {
    margin: 0.15rem 0 0.35rem;
}

.menu-group > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.menu-group > summary::-webkit-details-marker {
    display: none;
}

.menu-group-toggle .menu-group-caret {
    margin-left: auto;
    width: auto;
    transition: transform 0.2s ease;
    opacity: 0.75;
}

.menu-group[open] > .menu-group-toggle .menu-group-caret {
    transform: rotate(180deg);
}

.menu-sub {
    padding: 0.15rem 0 0.35rem;
}

.menu-sub .nav-link-item {
    padding: 0.5rem 1.5rem 0.5rem 2.35rem;
    font-size: 0.84rem;
}

.menu-sub .nav-link-item i {
    font-size: 0.95rem;
}

/* Main + topbar */
.main-content {
    margin-left: var(--vz-sidebar-w);
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

.page-topbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    height: var(--vz-topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--vz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
    box-shadow: 0 1px 2px rgba(56, 65, 74, 0.05);
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #495057;
    display: inline-grid;
    place-items: center;
    position: relative;
    cursor: pointer;
}

.topbar-btn:hover { background: var(--vz-light); color: var(--vz-primary); }

.topbar-btn .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vz-danger);
    border: 2px solid #fff;
}

.search-box {
    position: relative;
    min-width: min(280px, 42vw);
}

.search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vz-muted);
}

.search-box input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--vz-border);
    border-radius: 0.25rem;
    padding: 0.4rem 0.85rem 0.4rem 2.2rem;
    background: var(--vz-light);
    color: var(--vz-body);
}

.search-box input:focus {
    outline: 0;
    border-color: rgba(var(--vz-primary-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--vz-primary-rgb), 0.12);
    background: #fff;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.35rem 0.25rem 0.25rem;
    border-radius: 2rem;
    cursor: default;
}

.user-dropdown img,
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar {
    display: grid;
    place-items: center;
    background: var(--vz-primary-soft);
    color: var(--vz-primary-dark);
    font-weight: 600;
}

.user-meta { line-height: 1.2; }
.user-meta strong { display: block; font-size: 0.8125rem; }
.user-meta small { color: var(--vz-muted); font-size: 0.72rem; }

.page-content {
    padding: 1.15rem 1.25rem;
    max-width: 100%;
    overflow-x: clip;
}

.page-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.page-title-box h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.breadcrumb-line {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    color: var(--vz-muted);
    font-size: 0.8125rem;
}

.breadcrumb-line a { color: var(--vz-muted); }
.breadcrumb-line a:hover { color: var(--vz-primary); }
.breadcrumb-line .sep { opacity: 0.5; }

/* Cards */
.card {
    background: var(--vz-card);
    border: 1px solid var(--vz-border);
    border-radius: var(--vz-radius);
    box-shadow: var(--vz-shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vz-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
}

.card-header h5 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.card-body { padding: 1.25rem; }

.card-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--vz-border);
    background: transparent;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.stat-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.stat-label {
    color: var(--vz-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.55rem;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.45rem;
}

.stat-trend {
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.stat-trend.up { color: var(--vz-success); }
.stat-trend.down { color: var(--vz-danger); }
.stat-trend span { color: var(--vz-muted); font-weight: 400; margin-left: 0.15rem; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.4rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.bg-soft-primary { background: rgba(var(--vz-primary-rgb), 0.12); color: var(--vz-primary); }
.bg-soft-success { background: rgba(var(--vz-success-rgb), 0.12); color: var(--vz-success); }
.bg-soft-danger { background: rgba(var(--vz-danger-rgb), 0.12); color: var(--vz-danger); }
.bg-soft-info { background: rgba(41, 156, 219, 0.12); color: var(--vz-info); }
.bg-soft-warning { background: rgba(247, 184, 75, 0.18); color: #c78a1d; }
.bg-soft-secondary { background: rgba(53, 119, 241, 0.12); color: var(--vz-secondary); }

.grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1.5rem;
}

.grid-2 > * > .card { height: 100%; }

.progress {
    height: 0.5rem;
    background: #eff2f7;
    border-radius: 50rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--vz-primary);
    border-radius: 50rem;
}

.progress-item { margin-bottom: 1rem; }
.progress-item:last-child { margin-bottom: 0; }
.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
}
.progress-meta span:last-child { color: var(--vz-muted); }

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    height: 220px;
    padding-top: 0.5rem;
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    height: 100%;
}

.chart-stack {
    width: 100%;
    max-width: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    height: 100%;
}

.bar-a, .bar-b {
    width: 100%;
    border-radius: 3px 3px 2px 2px;
}

.bar-a { background: var(--vz-primary); }
.bar-b { background: #fdba74; }

.chart-col small { color: var(--vz-muted); font-size: 0.72rem; }

.legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: var(--vz-muted);
    font-size: 0.78rem;
}

.legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.35rem;
}

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }

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

.table th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vz-muted);
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--vz-border);
    white-space: nowrap;
    background: #fcfcfd;
}

.table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--vz-border);
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfd; }

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.user-cell .avatar,
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--vz-primary-soft);
    color: var(--vz-primary-dark);
    flex: 0 0 auto;
}

.user-cell .meta strong { display: block; font-size: 0.8125rem; }
.user-cell .meta small { color: var(--vz-muted); }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: max-content;
    padding: 0.22rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-soft-success { background: rgba(var(--vz-success-rgb), 0.12); color: var(--vz-success); }
.badge-soft-danger { background: rgba(var(--vz-danger-rgb), 0.12); color: var(--vz-danger); }
.badge-soft-warning { background: rgba(247, 184, 75, 0.18); color: #c78a1d; }
.badge-soft-primary { background: rgba(var(--vz-primary-rgb), 0.12); color: var(--vz-primary-dark); }
.badge-soft-info { background: rgba(41, 156, 219, 0.12); color: var(--vz-info); }

.text-primary { color: var(--vz-primary) !important; }
.text-muted { color: var(--vz-muted) !important; }
.fw-semibold { font-weight: 600; }

/* Buttons & forms */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.25rem;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.5;
}

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.75rem; }

.btn-primary {
    background: var(--vz-primary);
    border-color: var(--vz-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--vz-primary-dark);
    border-color: var(--vz-primary-dark);
    color: #fff;
}

.btn-soft-primary {
    background: rgba(var(--vz-primary-rgb), 0.12);
    color: var(--vz-primary-dark);
    border-color: transparent;
}

.btn-soft-primary:hover {
    background: var(--vz-primary);
    color: #fff;
}

.btn-soft-success {
    background: rgba(var(--vz-success-rgb), 0.12);
    color: var(--vz-success);
    border-color: transparent;
}

.btn-soft-success:hover {
    background: var(--vz-success);
    color: #fff;
}

.btn-soft-danger {
    background: rgba(var(--vz-danger-rgb), 0.12);
    color: var(--vz-danger);
    border-color: transparent;
}

.btn-soft-danger:hover {
    background: var(--vz-danger);
    color: #fff;
}

.btn-soft-info {
    background: rgba(41, 156, 219, 0.12);
    color: var(--vz-info);
    border-color: transparent;
}

.btn-soft-info:hover {
    background: var(--vz-info);
    color: #fff;
}

.btn-soft-warning {
    background: rgba(247, 184, 75, 0.16);
    color: #c2811a;
    border-color: transparent;
}

.btn-soft-warning:hover {
    background: #f7b84b;
    color: #fff;
}

.btn-soft-secondary {
    background: rgba(135, 138, 153, 0.14);
    color: #495057;
    border-color: transparent;
}

.btn-soft-secondary:hover {
    background: #878a99;
    color: #fff;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.table-actions form {
    display: inline;
    margin: 0;
}

.page-title-box .actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-title-box .actions form {
    display: inline;
    margin: 0;
}

.text-end { text-align: right; }

.btn-light {
    background: #f3f6f9;
    border-color: #f3f6f9;
    color: #212529;
}

.btn-light:hover { background: #e9ebec; }

.btn-outline-danger {
    background: transparent;
    border-color: #f7d4cd;
    color: var(--vz-danger);
}

.btn-outline-danger:hover {
    background: var(--vz-danger);
    border-color: var(--vz-danger);
    color: #fff;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #212529;
}

.form-control, .form-select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--vz-border);
    border-radius: 0.25rem;
    padding: 0.45rem 0.75rem;
    background: #fff;
    color: var(--vz-body);
}

.form-control:focus, .form-select:focus {
    outline: 0;
    border-color: rgba(var(--vz-primary-rgb), 0.55);
    box-shadow: 0 0 0 0.2rem rgba(var(--vz-primary-rgb), 0.15);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.span-2 { grid-column: span 2; }

.section-label {
    margin: 1.25rem 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--vz-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.alert {
    border-radius: 0.45rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.28s ease, margin 0.28s ease, padding 0.28s ease;
}

.alert-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    animation: alertIn 0.25s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.alert-content i {
    font-size: 1.15rem;
}

.alert-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 0.15rem;
}

.alert-close:hover { opacity: 1; }

.alert-toast.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(var(--vz-success-rgb), 0.12);
    color: #087f71;
    border-color: rgba(var(--vz-success-rgb), 0.2);
}

.alert-danger {
    background: rgba(var(--vz-danger-rgb), 0.12);
    color: #b54834;
    border-color: rgba(var(--vz-danger-rgb), 0.2);
}

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

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.vertical-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1001;
}

/* Login — Velzon style split */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2a3142 0%, #405189 48%, #ea580c 140%);
}

.auth-wrapper {
    width: min(980px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.28);
}

.auth-hero {
    position: relative;
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(160deg, rgba(64, 81, 137, 0.88), rgba(234, 88, 12, 0.72)),
        url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(36, 45, 78, 0.2), rgba(36, 45, 78, 0.55));
    pointer-events: none;
}

.auth-hero > * { position: relative; z-index: 1; }

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.auth-quote i {
    font-size: 2rem;
    color: #fdba74;
    display: block;
    margin-bottom: 0.75rem;
}

.auth-quote p {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.55;
    max-width: 26rem;
}

.auth-dots {
    display: flex;
    gap: 0.4rem;
}

.auth-dots span {
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
}

.auth-dots span.active { background: #fff; width: 28px; }

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.25rem;
    background: #fff;
}

.auth-form-inner { width: min(360px, 100%); }

.auth-form-inner h3 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #212529;
}

.auth-form-inner > .sub {
    margin: 0 0 1.5rem;
    color: var(--vz-muted);
    font-size: 0.875rem;
}

.auth-field { margin-bottom: 1.1rem; }

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.auth-label-row .form-label { margin: 0; }

.auth-link {
    color: var(--vz-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.auth-link:hover { color: var(--vz-primary); }

.auth-password {
    position: relative;
}

.auth-password .form-control { padding-right: 2.5rem; }

.auth-eye {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--vz-muted);
    cursor: pointer;
    padding: 0.2rem;
    display: grid;
    place-items: center;
}

.auth-eye:hover { color: var(--vz-primary); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.25rem 0 1rem;
    color: var(--vz-muted);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--vz-border);
}

.auth-social {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
}

.auth-social a {
    width: 38px;
    height: 38px;
    border-radius: 0.35rem;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
}

.auth-social .fb { background: #3b5998; }
.auth-social .google { background: #ea580c; }
.auth-social .gh { background: #2b3137; }
.auth-social .tw { background: #1da1f2; }

.auth-footer {
    margin-top: 1.35rem;
    text-align: center;
    color: var(--vz-muted);
    font-size: 0.8125rem;
}

.auth-footer a {
    color: #405189;
    font-weight: 600;
}

.auth-footer a:hover { color: var(--vz-primary); }

.auth-demo {
    background: rgba(var(--vz-primary-rgb), 0.08);
    border: 1px dashed rgba(var(--vz-primary-rgb), 0.28);
    border-radius: 0.35rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.75rem;
    color: #6c4a2b;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .auth-page { padding: 0.85rem; align-items: stretch; }
    .auth-wrapper { grid-template-columns: 1fr; min-height: auto; width: 100%; }
    .auth-hero { min-height: 180px; padding: 1.25rem; }
    .auth-quote p { font-size: 0.95rem; max-width: none; }
    .auth-form-panel { padding: 1.25rem 1.1rem 1.5rem; }
}

@media (max-width: 575px) {
    .auth-page { padding: 0; background: #fff; }
    .auth-wrapper {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .auth-hero { min-height: 150px; border-radius: 0; }
    .auth-form-panel { padding: 1.1rem 1rem 1.5rem; }
    .auth-form-inner { width: 100%; }
    .auth-form-inner h3 { font-size: 1.2rem; }
}

.empty {
    text-align: center;
    color: var(--vz-muted);
    padding: 1.5rem 0.5rem;
}

.stats-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
    padding: 0.95rem 1.1rem;
    border-radius: 0.85rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 36%),
        linear-gradient(135deg, #405189 0%, #364574 48%, #ea580c 125%);
    box-shadow: 0 10px 24px rgba(64, 81, 137, 0.18);
    overflow: hidden;
    position: relative;
}

.dash-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -40px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dash-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.dash-hero-avatar {
    width: 46px;
    height: 46px;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ea580c;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

.dash-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dash-hero h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 650;
}

.dash-hero p {
    margin: 0.15rem 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
}

.dash-hero-stats {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.dash-stat-chip {
    min-width: 76px;
    padding: 0.45rem 0.7rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.dash-stat-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.1rem;
}

.dash-stat-chip strong {
    font-size: 1.05rem;
    line-height: 1;
}

.dash-launcher {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.85rem;
    padding: 0.9rem 0.95rem 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.dash-launcher-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dash-launcher-head-gap {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e6ebf2;
}

.dash-launcher-head h5 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 650;
}

.dash-launcher-head p {
    margin: 0.12rem 0 0;
    color: var(--vz-muted);
    font-size: 0.74rem;
}

.app-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    justify-items: stretch;
}

.app-tile-grid-setup {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: stretch;
}

.app-tile {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: #111;
    padding: 0.55rem 0.35rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    background: linear-gradient(180deg, #fbfcfe, #f7f9fc);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: tileIn 0.45s ease both;
    animation-delay: var(--delay, 0s);
}

@keyframes tileIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-tile:hover {
    transform: translateY(-3px);
    color: #111;
    border-color: rgba(249, 115, 22, 0.22);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.07);
}

.app-tile:active .app-tile-icon {
    transform: scale(0.96);
}

.app-tile-icon {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 0.95rem;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.85rem;
    transition: transform 0.15s ease;
    box-shadow:
        0 8px 14px rgba(15, 23, 42, 0.16),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -8px 14px rgba(0, 0, 0, 0.12);
}

.app-tile-icon::before {
    content: "";
    position: absolute;
    inset: 9% 12% auto;
    height: 30%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.app-tile-icon::after {
    content: "";
    position: absolute;
    inset: auto 18% 10%;
    height: 18%;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    filter: blur(6px);
    pointer-events: none;
}

.app-tile-icon i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

.app-tile-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    border: 1px solid #ffe4cc;
    z-index: 2;
}

.app-tile-copy {
    display: grid;
    gap: 0.08rem;
    text-align: center;
    width: 100%;
}

.app-tile-label {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
}

.app-tile-hint {
    font-size: 0.64rem;
    color: #8b93a7;
    font-weight: 500;
}

.app-tile-icon.tone-olive {
    background-image: linear-gradient(160deg, #b4c85a 0%, #7a8f2e 48%, #556418 100%);
}

.app-tile-icon.tone-red {
    background-image: linear-gradient(160deg, #ff7b76 0%, #e53935 48%, #b71c1c 100%);
}

.app-tile-icon.tone-teal {
    background-image: linear-gradient(160deg, #45d6d6 0%, #00a8a8 48%, #007777 100%);
}

.app-tile-icon.tone-purple {
    background-image: linear-gradient(160deg, #b06bde 0%, #6a1b9a 48%, #4a148c 100%);
}

.app-tile-icon.tone-sky {
    background-image: linear-gradient(160deg, #7ad3ff 0%, #29b6f6 48%, #0277bd 100%);
}

.app-tile-icon.tone-green {
    background-image: linear-gradient(160deg, #74c878 0%, #2e7d32 48%, #1b5e20 100%);
}

.app-tile-icon.tone-blue {
    background-image: linear-gradient(160deg, #64b5f6 0%, #1565c0 48%, #0d47a1 100%);
}

.app-tile-icon.tone-indigo {
    background-image: linear-gradient(160deg, #9fa8da 0%, #3949ab 48%, #283593 100%);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0.25rem 0 1rem;
}

.section-head h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.section-head p {
    margin: 0.2rem 0 0;
    color: var(--vz-muted);
    font-size: 0.8125rem;
}

.reg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.reg-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 65, 74, 0.12);
}

.reg-card-body {
    padding: 1.25rem 1.25rem 0.85rem;
    flex: 1 1 auto;
}

.reg-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reg-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: inline-grid;
    place-items: center;
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.tone-primary .reg-icon { background: rgba(var(--vz-primary-rgb), 0.12); color: var(--vz-primary); }
.tone-success .reg-icon { background: rgba(var(--vz-success-rgb), 0.12); color: var(--vz-success); }
.tone-danger .reg-icon { background: rgba(var(--vz-danger-rgb), 0.12); color: var(--vz-danger); }
.tone-info .reg-icon { background: rgba(41, 156, 219, 0.12); color: var(--vz-info); }

.tone-primary { border-top: 3px solid var(--vz-primary); }
.tone-success { border-top: 3px solid var(--vz-success); }
.tone-danger { border-top: 3px solid var(--vz-danger); }
.tone-info { border-top: 3px solid var(--vz-info); }

.reg-card h4 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #212529;
}

.reg-card p {
    margin: 0;
    color: var(--vz-muted);
    font-size: 0.8125rem;
    line-height: 1.55;
    min-height: 3.8rem;
}

.reg-count {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--vz-border);
}

.reg-count strong {
    font-size: 1.35rem;
    font-weight: 600;
    color: #212529;
}

.reg-count span {
    color: var(--vz-muted);
    font-size: 0.75rem;
}

.reg-card-foot {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding: 0 1.25rem 1.25rem;
}

.reg-card-foot .btn {
    flex: 1 1 auto;
    min-width: 110px;
}

.form-label em {
    color: var(--vz-danger);
    font-style: normal;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.reg-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.35rem 1.4rem;
    margin-bottom: 1.25rem;
    border-radius: 0.6rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #405189 0%, #364574 42%, #ea580c 120%);
    box-shadow: 0 10px 24px rgba(64, 81, 137, 0.18);
}

.reg-hero-copy h3 {
    margin: 0.55rem 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.reg-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    max-width: 520px;
}

.reg-hero .badge-soft-primary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.reg-hero-compact {
    padding: 1.15rem 1.3rem;
    margin-bottom: 1rem;
}

.reg-hero-stat {
    min-width: 120px;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.reg-hero-stat strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
}

.reg-hero-stat span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
}

.reg-steps {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.reg-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.75rem;
    font-weight: 500;
}

.reg-step span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

.reg-step.active {
    background: rgba(249, 115, 22, 0.25);
    color: #fff;
}

.reg-form { display: grid; gap: 1.1rem; }

.form-panel {
    margin-bottom: 0;
    overflow: visible;
    border: 1px solid #e9edf3;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.form-panel:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.form-panel-primary { border-left: 3px solid var(--vz-primary); }
.form-panel-success { border-left: 3px solid var(--vz-success); }
.form-panel-info { border-left: 3px solid var(--vz-info); }
.form-panel-warning { border-left: 3px solid #f7b84b; }

.form-panel-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid var(--vz-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.form-panel-kicker {
    margin-bottom: 0.2rem;
}

.form-panel-kicker span {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(64, 81, 137, 0.08);
    color: #405189;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-panel-head h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.form-panel-head p {
    margin: 0.2rem 0 0;
    color: var(--vz-muted);
    font-size: 0.78rem;
}

.form-panel-icon {
    width: 46px;
    height: 46px;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.form-panel .card-body {
    padding: 1.25rem;
    background: #fff;
}

.input-icon {
    position: relative;
}

.input-icon > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.input-icon .form-control {
    padding-left: 2.35rem;
}

.reg-form .form-control,
.reg-form .form-select {
    min-height: 42px;
    border-radius: 0.4rem;
    border-color: #dfe5ef;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reg-form .form-control:focus,
.reg-form .form-select:focus {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.12);
}

.dial-box {
    min-height: 42px;
    border: 1px solid #dfe5ef;
    border-radius: 0.4rem;
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: #405189;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
}

.dial-box::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vz-success);
    box-shadow: 0 0 0 3px rgba(10, 179, 156, 0.15);
}

.submit-panel {
    border-left: 3px solid var(--vz-primary);
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

.submit-panel .card-body { padding: 1.2rem 1.35rem; }

.submit-panel-body {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.terms-check {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: #495057;
    font-size: 0.84rem;
    max-width: 420px;
}

.terms-check input {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--vz-primary);
}

.submit-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.submit-actions-end {
    width: 100%;
    justify-content: space-between;
}

.submit-actions-end .btn {
    margin-left: auto;
}

.otp-note {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(64, 81, 137, 0.08);
    color: #405189;
    font-size: 0.76rem;
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.35rem;
    font-size: 0.9rem;
    border-radius: 0.45rem;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.25);
}

.owner-filter-bar {
    margin-bottom: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e8edf5;
    border-radius: 0.7rem;
    background: #fff;
}

.owner-filter-form .form-label {
    margin-bottom: 0.35rem;
}

.owner-filter-row {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.owner-filter-row .form-select {
    max-width: 420px;
}

.owner-manage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.owner-manage-card {
    border: 1px solid #e8edf5;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.95rem 1rem;
}

.owner-manage-card h6 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
}

.owner-manage-card p {
    margin: 0 0 0.75rem;
    color: var(--vz-muted);
    font-size: 0.78rem;
}

.owner-manage-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.owner-manage-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.owner-manage-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-top: 1px dashed #eef2f7;
    font-size: 0.8rem;
}

@media (max-width: 991px) {
    .owner-manage-grid { grid-template-columns: 1fr; }
    .owner-filter-row { flex-direction: column; align-items: stretch; }
    .owner-filter-row .form-select { max-width: none; }
}

.upload-box {
    display: grid;
    gap: 0.55rem;
}

.upload-preview {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.65rem;
    border: 1px solid var(--vz-border);
    background: #fff;
}

.reg-form textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.coming-soon-body {
    padding: 2.4rem 1.5rem;
    text-align: center;
}

.coming-soon-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    font-size: 1.85rem;
}

.coming-soon-body h4 {
    margin: 0 0 0.55rem;
}

.coming-soon-body p {
    max-width: 420px;
    margin: 0 auto 1.25rem;
}

.geo-field { position: relative; }
.geo-selected {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(var(--vz-primary-rgb), 0.1);
    color: var(--vz-primary-dark);
    font-size: 0.72rem;
    font-weight: 600;
}
.geo-options {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.2rem);
    z-index: 30;
    background: #fff;
    border: 1px solid var(--vz-border);
    border-radius: 0.45rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    max-height: 260px;
    overflow: auto;
}
.geo-options.open { display: block; }
.geo-option {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f3f6f9;
}
.geo-option:last-child { border-bottom: 0; }
.geo-option:hover { background: rgba(var(--vz-primary-rgb), 0.08); }
.geo-option small { color: var(--vz-muted); font-weight: 600; }
.geo-empty { padding: 0.9rem; color: var(--vz-muted); font-size: 0.8125rem; }

@media (max-width: 1199px) {
    .stats-row,
    .stats-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-tile-grid,
    .app-tile-grid-setup { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
    .app-tile { max-width: 100%; }
}

@media (max-width: 991px) {
    .app-menu { transform: translateX(-105%); }
    .nav-toggle:checked ~ .layout .app-menu { transform: none; }
    .nav-toggle:checked ~ .layout .vertical-overlay { display: block; }
    .main-content { margin-left: 0; width: 100%; }
    .user-meta { display: none; }
    .page-topbar { padding: 0 0.85rem; }
    .page-title-box .actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }
    .page-title-box .actions .btn { flex: 1 1 auto; }
}

@media (max-width: 767px) {
    .stats-row,
    .stats-row-3 { grid-template-columns: 1fr; gap: 1rem; }
    .page-content { padding: 0.85rem; }
    .search-box { display: none; }
    .grid-form,
    .grid-3 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .reg-hero {
        padding: 1rem;
        align-items: flex-start;
        flex-direction: column;
    }
    .reg-hero-copy { width: 100%; }
    .reg-hero-copy h3 { font-size: 1.15rem; }
    .reg-hero-copy p { max-width: none; }
    .reg-hero-stat { width: 100%; }
    .submit-panel-body { align-items: stretch; }
    .submit-actions { width: 100%; }
    .submit-actions .btn { width: 100%; }
    .reg-grid { grid-template-columns: 1fr; }
    .reg-card-foot .btn { width: 100%; }
    .dash-hero { padding: 0.75rem; margin-bottom: 0.7rem; }
    .dash-hero h3 { font-size: 0.98rem; }
    .dash-launcher { padding: 0.7rem; }
    .dash-launcher-head { margin-bottom: 0.55rem; }
    .dash-launcher-head-gap { margin-top: 0.75rem; padding-top: 0.7rem; }
    .app-tile-grid,
    .app-tile-grid-setup {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }
    .app-tile { max-width: 100%; padding: 0.4rem 0.2rem 0.45rem; }
    .app-tile-icon { width: 58px; height: 58px; font-size: 1.45rem; border-radius: 0.8rem; }
    .app-tile-label { font-size: 0.68rem; }
    .app-tile-hint { display: none; }
    .card-footer { overflow-x: auto; }
    .pagination { flex-wrap: wrap; justify-content: center; gap: 0.2rem; }

    .table:not(.report-table) thead { display: none; }
    .table:not(.report-table),
    .table:not(.report-table) tbody,
    .table:not(.report-table) tr,
    .table:not(.report-table) td { display: block; width: 100%; }
    .table:not(.report-table) tr {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--vz-border);
    }
    .table:not(.report-table) tr:last-child { border-bottom: 0; }
    .table:not(.report-table) td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border: 0;
        padding: 0.45rem 0;
        text-align: right;
    }
    .table:not(.report-table) td::before {
        content: attr(data-label);
        color: var(--vz-muted);
        font-weight: 600;
        font-size: 0.75rem;
        text-align: left;
        flex: 0 0 38%;
    }
    .table:not(.report-table) td.actions-cell { display: block; }
    .table:not(.report-table) td.actions-cell::before { display: none; }
    .table:not(.report-table) td.actions-cell .btn { width: auto; }
    .table-actions { justify-content: flex-start; }
}

@media (max-width: 575px) {
    .app-tile-grid,
    .app-tile-grid-setup {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-title-box h4 { font-size: 0.95rem; }
    .page-topbar { padding: 0 0.65rem; }
}

/* Attractive registration directory */
.dir-panel {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(56, 65, 74, 0.08);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(64, 81, 137, 0.18), rgba(249, 115, 22, 0.22)) border-box;
    border: 1px solid transparent;
}

.dir-panel > .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.05rem 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    border-bottom: 1px solid rgba(233, 235, 236, 0.9);
}

.dir-panel > .card-header.dir-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.dir-header-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.dir-panel > .card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.dir-search {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
    align-items: center;
    width: 100%;
    margin-left: 0;
}

.dir-search > .form-select,
.dir-search > .form-control,
.dir-search > select,
.dir-search > input[type="date"],
.dir-search > input[type="text"],
.dir-search > input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px;
}

.dir-search > .btn {
    height: 38px;
    white-space: nowrap;
    justify-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.dir-search-box {
    position: relative;
    min-width: 0;
    width: 100%;
    grid-column: span 2;
}

.dir-search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vz-muted);
    pointer-events: none;
}

.dir-search-box input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--vz-border);
    border-radius: 0.55rem;
    padding: 0.4rem 0.85rem 0.4rem 2.15rem;
    background: #f8fafc;
    color: var(--vz-body);
}

.dir-search-box input:focus {
    outline: 0;
    border-color: rgba(var(--vz-primary-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--vz-primary-rgb), 0.12);
    background: #fff;
}

.dir-search .report-filter-actions,
.dir-search .log-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.dir-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(64, 81, 137, 0.08);
    color: #405189;
    font-size: 0.72rem;
    font-weight: 600;
}

.dir-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.1rem 1.15rem;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.05), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6f9 100%);
}

.dir-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.35fr) repeat(4, minmax(90px, 1fr)) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 0.9rem;
    background: #fff;
    border: 1px solid rgba(233, 235, 236, 0.95);
    box-shadow: 0 4px 14px rgba(56, 65, 74, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dir-row:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: 0 12px 28px rgba(64, 81, 137, 0.1);
}

.dir-row-employee {
    grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(90px, 1fr)) auto;
}

.dir-row-woman,
.dir-row-youth {
    grid-template-columns: minmax(180px, 1.35fr) repeat(5, minmax(90px, 1fr)) auto;
}

.dir-person {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.dir-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    background: linear-gradient(145deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.28);
}

.dir-avatar.tone-2 {
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 55%, #1d4ed8 100%);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
}

.dir-avatar.tone-3 {
    background: linear-gradient(145deg, #34d399 0%, #0ab39c 55%, #0f766e 100%);
    box-shadow: 0 8px 16px rgba(10, 179, 156, 0.25);
}

.dir-avatar.tone-4 {
    background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 55%, #5b21b6 100%);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.22);
}

.dir-person-meta {
    min-width: 0;
}

.dir-person-meta strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-person-meta small {
    display: block;
    color: var(--vz-muted);
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-field {
    min-width: 0;
}

.dir-field span {
    display: block;
    margin-bottom: 0.18rem;
    color: #98a2b3;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dir-field strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-field .dir-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.dir-field .dir-status .badge {
    display: inline-flex;
    width: auto;
    max-width: max-content;
}

.dir-field small {
    display: block;
    margin-top: 0.12rem;
    color: var(--vz-muted);
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.dir-actions form {
    display: inline;
    margin: 0;
}

.dir-actions .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 0.65rem;
}

.dir-empty {
    padding: 2.4rem 1.25rem;
    text-align: center;
    color: var(--vz-muted);
    background: #fff;
    border: 1px dashed var(--vz-border);
    border-radius: 0.9rem;
}

.dir-empty a {
    color: var(--vz-primary-dark);
    font-weight: 600;
}

.dir-panel > .card-footer {
    background: #fff;
    border-top: 1px solid var(--vz-border);
    padding: 0.85rem 1.15rem;
}

@media (max-width: 1199px) {
    .dir-row,
    .dir-row-employee,
    .dir-row-woman,
    .dir-row-youth {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dir-person,
    .dir-actions {
        grid-column: 1 / -1;
    }

    .dir-actions {
        justify-content: flex-start;
        padding-top: 0.35rem;
        border-top: 1px dashed var(--vz-border);
    }
}

@media (max-width: 767px) {
    .dir-search {
        grid-template-columns: 1fr 1fr;
    }

    .dir-search-box {
        grid-column: 1 / -1;
    }

    .dir-search > .btn {
        grid-column: span 1;
    }
}

@media (max-width: 575px) {
    .dir-list { padding: 0.85rem; }
    .dir-row,
    .dir-row-employee,
    .dir-row-woman,
    .dir-row-youth {
        grid-template-columns: 1fr;
        padding: 0.9rem;
    }

    .dir-search {
        grid-template-columns: 1fr;
    }

    .dir-search-box,
    .dir-search > .btn,
    .dir-search .report-filter-actions,
    .dir-search .log-filter-actions {
        grid-column: 1 / -1;
    }

    .dir-search .report-filter-actions .btn,
    .dir-search .log-filter-actions .btn {
        flex: 1 1 auto;
    }
}

/* Owner programme timetable board */
.programme-board {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(233, 235, 236, 0.95);
    box-shadow: 0 10px 28px rgba(56, 65, 74, 0.08);
}

.programme-board-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.3rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(135deg, #405189 0%, #364574 48%, #ea580c 130%);
}

.programme-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
}

.programme-board-head h4 {
    margin: 0.35rem 0 0.25rem;
    font-size: 1.25rem;
}

.programme-board-head p {
    margin: 0;
    opacity: 0.86;
    font-size: 0.84rem;
}

.programme-sessions {
    display: grid;
    gap: 0.85rem;
    padding: 1.1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6f9 100%);
}

.programme-session {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.9rem;
    padding: 1rem 1.05rem;
    box-shadow: 0 4px 14px rgba(56, 65, 74, 0.04);
}

.programme-session-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.programme-session-no {
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    border-radius: 0.35rem;
    background: rgba(249, 115, 22, 0.12);
    color: var(--vz-primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.programme-session h5 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.programme-prof {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.programme-prof img,
.programme-prof .dir-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.programme-prof strong {
    display: block;
    font-size: 0.88rem;
}

.programme-prof small {
    color: var(--vz-muted);
}

.programme-bio {
    margin: 0.75rem 0 0;
    color: #495057;
    font-size: 0.82rem;
    line-height: 1.55;
}

.programme-links {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.programme-break {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(64, 81, 137, 0.08);
    color: #405189;
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .programme-board-head { flex-direction: column; }
    .programme-session-top { flex-direction: column; align-items: flex-start; }
}

/* Annual Academic Calendar */
.academic-month-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.academic-month-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.9rem;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(56, 65, 74, 0.04);
    min-height: 170px;
    display: flex;
    flex-direction: column;
}

.academic-month-card.is-empty { opacity: 0.86; }

.academic-month-no {
    width: 34px;
    height: 34px;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    background: rgba(249, 115, 22, 0.12);
    color: var(--vz-primary-dark);
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

.academic-month-card h6 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
}

.academic-month-card p {
    margin: 0 0 0.55rem;
    color: var(--vz-muted);
    font-size: 0.78rem;
    flex: 1;
}

.academic-month-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.academic-activity-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(56, 65, 74, 0.08);
}

.academic-activity-hero {
    position: relative;
    min-height: 180px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 36%),
        linear-gradient(135deg, #405189 0%, #364574 48%, #ea580c 130%);
}

.academic-activity-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.academic-activity-hero-copy {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.35rem;
}

.academic-activity-hero-copy h3 {
    margin: 0.45rem 0 0.3rem;
    font-size: 1.35rem;
}

.academic-activity-hero-copy p {
    margin: 0.15rem 0;
    opacity: 0.9;
}

.academic-activity-body { padding: 1.15rem 1.25rem 1.35rem; }

.academic-block { margin-bottom: 1rem; }
.academic-block h6 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: #405189;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.academic-block p {
    margin: 0;
    color: #495057;
    line-height: 1.55;
}

.academic-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.academic-media-grid img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: 0.55rem;
    border: 1px solid #e8edf5;
}

@media (max-width: 1199px) {
    .academic-month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .academic-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .academic-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Syllabus builder */
.syllabus-module-box {
    border: 1px solid #e8edf5;
    border-radius: 0.75rem;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.75rem;
    background: #fbfcfe;
}

.syllabus-module-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.syllabus-module-head small { color: var(--vz-muted); }

.syllabus-topic-list {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
}

.syllabus-topic-list li {
    padding: 0.55rem 0;
    border-top: 1px dashed #e8edf5;
}

.syllabus-topic-list strong { display: block; font-size: 0.86rem; }
.syllabus-topic-list small { color: var(--vz-muted); }

/* E-Material library */
.ematerial-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ematerial-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(64, 81, 137, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ematerial-card-cover {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

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

.ematerial-type-chip {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: rgba(64, 81, 137, 0.92);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.ematerial-card-body {
    padding: 1rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.ematerial-card-body h5 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.ematerial-card-body p {
    margin: 0;
    color: #6c757d;
    font-size: 0.86rem;
    line-height: 1.45;
}

.ematerial-card-meta {
    display: grid;
    gap: 0.25rem;
}

.ematerial-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
}

.ematerial-card-meta i { color: #405189; }

.ematerial-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.ematerial-card-actions form { display: inline; }

.ematerial-detail-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 1rem;
}

.ematerial-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.ematerial-meta-grid span {
    display: block;
    font-size: 0.75rem;
    color: #878a99;
    margin-bottom: 0.15rem;
}

.ematerial-meta-grid strong {
    font-size: 0.92rem;
    color: #212529;
}

.ematerial-cover-card {
    overflow: hidden;
    min-height: 220px;
}

.ematerial-cover-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.ematerial-cover-placeholder {
    min-height: 220px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(160deg, #edf2ff, #f8fafc);
    color: #405189;
}

.ematerial-cover-placeholder i { font-size: 2.4rem; }
.ematerial-cover-placeholder span { font-size: 0.85rem; font-weight: 600; }

.ematerial-flags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

@media (max-width: 1199px) {
    .ematerial-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .ematerial-card-grid,
    .ematerial-detail-grid,
    .ematerial-meta-grid { grid-template-columns: 1fr; }
}

/* Useful Videos */
.video-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.video-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(64, 81, 137, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.video-card-cover {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

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

.video-card-body {
    padding: 1rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.video-card-body h5 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.video-card-body p {
    margin: 0;
    color: #6c757d;
    font-size: 0.86rem;
    line-height: 1.45;
}

.video-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
}

.video-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e8edf5;
    background: #fff;
    color: #495057;
    font-size: 0.8rem;
    text-decoration: none;
}

.video-chip.active,
.video-chip:hover {
    background: rgba(64, 81, 137, 0.1);
    color: #405189;
    border-color: rgba(64, 81, 137, 0.2);
}

.video-player-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0f172a;
}

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

.video-preview-thumb {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.video-external-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
}

.video-external-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0.7rem;
}

.video-external-box h5 { margin: 0 0 0.35rem; }
.video-external-box p { margin: 0 0 0.85rem; }

.video-detail-grid { display: grid; gap: 1rem; }

@media (max-width: 1199px) {
    .video-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .video-card-grid { grid-template-columns: 1fr; }
    .video-external-box { grid-template-columns: 1fr; }
}

/* Bizchat moderated community */
.bizchat-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    background: rgba(64, 81, 137, 0.08);
    border: 1px solid rgba(64, 81, 137, 0.12);
    margin-bottom: 1rem;
    color: #405189;
}

.bizchat-note i { font-size: 1.2rem; margin-top: 0.1rem; }
.bizchat-note strong { display: block; margin-bottom: 0.15rem; }

.bizchat-note-danger {
    background: rgba(240, 101, 72, 0.08);
    border-color: rgba(240, 101, 72, 0.18);
    color: #c2410c;
}

.bizchat-list { display: grid; gap: 0.85rem; }

.bizchat-item {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 18px rgba(64, 81, 137, 0.04);
}

.bizchat-item-top {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.bizchat-item h5 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
}

.bizchat-item h5 a {
    color: #212529;
    text-decoration: none;
}

.bizchat-item h5 a:hover { color: #405189; }

.bizchat-item p {
    margin: 0 0 0.7rem;
    color: #6c757d;
    line-height: 1.5;
}

.bizchat-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: #878a99;
    font-size: 0.78rem;
}

.bizchat-item-meta i { color: #405189; }

.bizchat-question-body {
    white-space: pre-wrap;
    line-height: 1.65;
    color: #343a40;
    font-size: 0.95rem;
}

.bizchat-context {
    margin-top: 0.85rem;
    color: #64748b;
    font-size: 0.86rem;
}

.bizchat-answers-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.25rem 0 0.75rem;
}

.bizchat-answers-head h5 { margin: 0; }
.bizchat-answers-head small { color: #878a99; }

.bizchat-answers { display: grid; gap: 0.75rem; }

.bizchat-answer {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.85rem;
    padding: 0.95rem 1.05rem;
}

.bizchat-answer.is-featured {
    border-color: rgba(10, 179, 156, 0.35);
    background: rgba(10, 179, 156, 0.04);
}

.bizchat-answer.is-pending {
    border-style: dashed;
    background: #fbfcfe;
}

.bizchat-answer-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.bizchat-answer-badges { display: flex; gap: 0.35rem; }

.bizchat-answer p {
    margin: 0 0 0.45rem;
    white-space: pre-wrap;
    line-height: 1.55;
}

.bizchat-answer small { color: #878a99; }

.bizchat-mod-answer {
    display: grid;
    grid-template-columns: 1.5fr auto;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px dashed #e8edf5;
}

.bizchat-mod-answer:first-child { border-top: 0; padding-top: 0; }

.bizchat-mod-answer strong { display: block; }
.bizchat-mod-answer small { color: #878a99; }
.bizchat-mod-answer p {
    margin: 0.4rem 0 0;
    color: #495057;
    white-space: pre-wrap;
}

.bizchat-mod-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
}

.bizchat-reject-form {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

@media (max-width: 767px) {
    .bizchat-mod-answer { grid-template-columns: 1fr; }
    .bizchat-mod-actions { justify-content: flex-start; }
}

/* Life Meaningful Sessions � Owner */
.life-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    background:
        radial-gradient(circle at top right, rgba(10, 179, 156, 0.18), transparent 42%),
        linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
    color: #fff;
}

.life-hero-compact { margin-bottom: 1rem; }

.life-kicker {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.life-hero-copy h3 {
    margin: 0.35rem 0 0.25rem;
    font-size: 1.35rem;
}

.life-hero-copy p {
    margin: 0;
    opacity: 0.9;
}

.life-hero-progress {
    min-width: 150px;
    background: rgba(255,255,255,0.12);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.life-hero-progress strong {
    font-size: 1.5rem;
    line-height: 1;
}

.life-hero-progress span {
    font-size: 0.78rem;
    opacity: 0.9;
    margin: 0.25rem 0 0.55rem;
}

.life-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    overflow: hidden;
}

.life-progress-bar i {
    display: block;
    height: 100%;
    background: #99f6e4;
}

.life-progress-bar.slim {
    width: 110px;
    height: 6px;
    background: #e8edf5;
}

.life-progress-bar.slim i { background: #0ab39c; }

.life-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.life-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e8edf5;
    background: #fff;
    color: #495057;
    text-decoration: none;
    font-size: 0.86rem;
}

.life-tab em {
    font-style: normal;
    background: #f3f6f9;
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    font-size: 0.75rem;
}

.life-tab.active,
.life-tab:hover {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.22);
    color: #0f766e;
}

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

.life-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.95rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.05);
    display: flex;
    flex-direction: column;
}

.life-card-cover {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #ecfdf5, #f8fafc);
}

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

.life-cover-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    font-size: 2rem;
}

.life-type-chip {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: rgba(15, 118, 110, 0.92);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.life-card-body {
    padding: 1rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.life-card-body h5 { margin: 0; font-size: 1rem; }
.life-card-body p { margin: 0; color: #6c757d; font-size: 0.86rem; }

.life-card-meta {
    display: grid;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: #64748b;
}

.life-card-meta i { color: #0f766e; }

.life-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.35rem;
}

.life-progress-list { display: grid; gap: 0.7rem; }

.life-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
}

.life-progress-row strong { display: block; margin-top: 0.25rem; }
.life-progress-row small { color: #878a99; }

.life-progress-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.life-progress-meta em {
    font-style: normal;
    font-size: 0.8rem;
    color: #64748b;
    min-width: 36px;
}

.life-live-box {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1rem;
    align-items: center;
}

.life-live-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.life-live-box h5 { margin: 0 0 0.35rem; }

@media (max-width: 1199px) {
    .life-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .life-hero,
    .life-progress-row,
    .life-live-box { flex-direction: column; grid-template-columns: 1fr; }
    .life-card-grid { grid-template-columns: 1fr; }
    .life-progress-meta { flex-wrap: wrap; }
}

/* My Certificates */
.cert-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cert-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.95rem;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 8px 20px rgba(64, 81, 137, 0.05);
}

.cert-card-top {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.cert-card h5 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

.cert-card-meta {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
    color: #64748b;
}

.cert-card-meta i { color: #405189; }

.cert-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.cert-sheet {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(64, 81, 137, 0.08);
    overflow: hidden;
}

.cert-sheet-border {
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(64, 81, 137, 0.12), rgba(10, 179, 156, 0.1));
}

.cert-sheet-inner {
    border: 2px solid rgba(64, 81, 137, 0.25);
    border-radius: 0.75rem;
    padding: 2rem 1.75rem;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(64, 81, 137, 0.05), transparent 45%),
        #fff;
}

.cert-brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #405189;
    font-size: 0.85rem;
}

.cert-kicker {
    margin-top: 0.55rem;
    color: #0ab39c;
    font-weight: 600;
    font-size: 0.9rem;
}

.cert-heading {
    margin: 0.75rem 0 0.35rem;
    font-size: 1.55rem;
    color: #212529;
}

.cert-presented {
    margin: 0.85rem 0 0.25rem;
    color: #878a99;
}

.cert-name {
    margin: 0.2rem 0 0.85rem;
    font-size: 1.8rem;
    color: #405189;
    font-family: Georgia, 'Times New Roman', serif;
}

.cert-body {
    max-width: 640px;
    margin: 0 auto;
    color: #495057;
    line-height: 1.6;
}

.cert-desc {
    max-width: 620px;
    margin: 0.85rem auto 0;
    color: #6c757d;
    font-size: 0.92rem;
}

.cert-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: left;
}

.cert-meta-row span {
    display: block;
    font-size: 0.72rem;
    color: #878a99;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cert-meta-row strong {
    display: block;
    margin-top: 0.2rem;
    color: #212529;
}

.cert-sign-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed #e8edf5;
}

.cert-sign-row strong { display: block; }
.cert-sign-row small { color: #878a99; }

@media (max-width: 767px) {
    .cert-card-grid,
    .cert-meta-row,
    .cert-sign-row { grid-template-columns: 1fr; }
}

/* Photo Gallery � Session Memory Archive */
.gallery-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 40%),
        linear-gradient(135deg, #405189 0%, #564ab1 55%, #3577f1 100%);
}

.gallery-hero h3 { margin: 0.35rem 0 0.25rem; font-size: 1.35rem; }
.gallery-hero p { margin: 0; opacity: 0.92; }

.gallery-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 0.55rem;
}

.gallery-hero-stats div {
    background: rgba(255,255,255,0.12);
    border-radius: 0.7rem;
    padding: 0.65rem 0.7rem;
    text-align: center;
}

.gallery-hero-stats strong { display: block; font-size: 1.15rem; }
.gallery-hero-stats span { font-size: 0.72rem; opacity: 0.9; }

.gallery-section { margin: 1.1rem 0; }
.gallery-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.7rem;
}
.gallery-section-head h5 { margin: 0; }
.gallery-section-head a { font-size: 0.84rem; color: #405189; text-decoration: none; }

.gallery-session-grid,
.gallery-photo-grid,
.gallery-video-grid {
    display: grid;
    gap: 0.85rem;
}

.gallery-session-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gallery-session-card,
.gallery-media-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(64, 81, 137, 0.05);
}

.gallery-session-cover,
.gallery-media-thumb {
    position: relative;
    height: 140px;
    background: #edf2ff;
}

.gallery-session-cover img,
.gallery-media-thumb img,
.gallery-media-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-session-body,
.gallery-media-caption { padding: 0.85rem 0.95rem 1rem; }

.gallery-session-body h5,
.gallery-media-caption strong {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    display: block;
}

.gallery-session-body p {
    margin: 0 0 0.55rem;
    color: #6c757d;
    font-size: 0.84rem;
}

.gallery-session-meta,
.gallery-media-caption small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: #878a99;
    font-size: 0.76rem;
}

.gallery-session-meta i { color: #405189; }

.gallery-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    background: rgba(15, 23, 42, 0.28);
}

.gallery-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.1rem 0;
}

.gallery-video-list { display: grid; gap: 0.55rem; }

.gallery-media-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.7rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.75rem;
    padding: 0.45rem;
}

.gallery-media-row-thumb {
    height: 64px;
    border-radius: 0.55rem;
    overflow: hidden;
    background: #edf2ff;
}

.gallery-media-row strong { display: block; font-size: 0.88rem; }
.gallery-media-row small { color: #878a99; font-size: 0.75rem; }

.gallery-detail-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 1rem;
}

.gallery-people-block { margin-top: 1rem; }
.gallery-people-block h6 {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #405189;
}

.gallery-person-chip {
    display: inline-flex;
    flex-direction: column;
    padding: 0.45rem 0.7rem;
    border-radius: 0.65rem;
    background: #f3f6f9;
    margin: 0 0.35rem 0.35rem 0;
}

.gallery-person-chip small { color: #878a99; }

.gallery-media-view {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1rem;
}

.gallery-media-full {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #0f172a;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-admin-media { display: grid; gap: 0.55rem; }

.gallery-admin-media-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.45rem 0;
    border-top: 1px dashed #e8edf5;
}

.gallery-admin-media-item img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.45rem;
}

.gallery-admin-media-item small { color: #878a99; display: block; }

.gallery-people-list {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}

.gallery-people-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.45rem 0;
    border-top: 1px dashed #e8edf5;
}

.gallery-people-list strong { display: block; }
.gallery-people-list small { color: #878a99; }

@media (max-width: 1199px) {
    .gallery-session-grid,
    .gallery-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .gallery-hero,
    .gallery-split,
    .gallery-detail-grid,
    .gallery-media-view,
    .gallery-admin-grid { grid-template-columns: 1fr; flex-direction: column; }
    .gallery-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .gallery-session-grid,
    .gallery-photo-grid,
    .gallery-video-grid { grid-template-columns: 1fr; }
}

/* Public registration & login */
.auth-wrapper-wide {
    max-width: 1080px;
}

.auth-wrapper-wide .auth-form-inner {
    width: min(520px, 100%);
}

.public-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.public-role-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 0.9rem;
    border: 1px solid #e8edf5;
    text-decoration: none;
    color: #212529;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.public-role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(64, 81, 137, 0.08);
}

.public-role-card i {
    font-size: 1.45rem;
    color: #405189;
}

.public-role-card strong { font-size: 0.98rem; }
.public-role-card span { color: #6c757d; font-size: 0.82rem; line-height: 1.4; }

.public-role-card.tone-olive i { color: #7a8b4a; }
.public-role-card.tone-teal i { color: #0ab39c; }
.public-role-card.tone-purple i { color: #6559cc; }
.public-role-card.tone-sky i { color: #299cdb; }

.public-reg-form .public-reg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.public-reg-form .span-2 { grid-column: span 2; }

.public-login-roles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1rem;
}

.public-login-roles a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.65rem 0.35rem;
    border-radius: 0.7rem;
    border: 1px solid #e8edf5;
    text-decoration: none;
    color: #495057;
    font-size: 0.78rem;
    background: #fbfcfe;
}

.public-login-roles a i { color: #405189; font-size: 1.1rem; }

@media (max-width: 767px) {
    .public-role-grid,
    .public-reg-form .public-reg-grid,
    .public-login-roles { grid-template-columns: 1fr 1fr; }
    .public-reg-form .span-2 { grid-column: span 2; }
    .auth-wrapper-wide .auth-form-inner { width: min(520px, 100%); }
}

@media (max-width: 575px) {
    .public-role-grid,
    .public-reg-form .public-reg-grid,
    .public-login-roles { grid-template-columns: 1fr; }
    .public-reg-form .span-2 { grid-column: auto; }
}

/* Module Reports */
.report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.report-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.15rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid #e8edf5;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    min-width: 0;
}
.report-card:hover {
    transform: translateY(-2px);
    border-color: #cfd8ea;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: inherit;
}
.report-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.report-card-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff4ec;
    color: #f06548;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.report-card-count {
    font-size: 1.35rem;
    color: #212529;
}
.report-card h5 {
    margin: 0.15rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    word-break: break-word;
}
.report-card p {
    margin: 0;
    color: #878a99;
    font-size: 0.82rem;
    line-height: 1.4;
    flex: 1;
}
.report-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.report-card-tags span {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #f3f6f9;
    color: #495057;
}
.report-card-cta {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f06548;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.report-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.report-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.report-stat-pill {
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid #e8edf5;
}
.report-stat-pill strong {
    display: block;
    font-size: 1.15rem;
    color: #212529;
}
.report-stat-pill span {
    font-size: 0.75rem;
    color: #878a99;
    word-break: break-word;
}
.report-filters {
    width: 100% !important;
}
.report-filter-control {
    height: 38px;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
}
.report-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.report-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.report-table {
    width: 100%;
    min-width: 720px;
    font-size: 0.86rem;
}
.report-table thead th {
    white-space: nowrap;
    background: #f8f9fb;
    border-bottom: 1px solid #e9edf5;
    color: #495057;
    font-weight: 600;
    padding: 0.75rem 0.9rem;
}
.report-table tbody td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #f0f2f7;
    vertical-align: middle;
    word-break: break-word;
}
.report-pagination {
    overflow-x: auto;
}
.report-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
}

@media (max-width: 1399px) {
    .report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-filters { width: 100%; }
    .report-hero-actions { width: 100%; }
    .report-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 767px) {
    .report-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .report-card { padding: 1rem; }
    .report-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-filter-control,
    .report-filters .dir-search-box,
    .report-filter-actions {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    .report-filter-actions .btn { flex: 1 1 auto; }
    .report-table { min-width: 0; }
    .report-table thead { display: none; }
    .report-table,
    .report-table tbody,
    .report-table tr,
    .report-table td {
        display: block;
        width: 100%;
    }
    .report-table tbody tr {
        margin: 0.75rem;
        padding: 0.85rem 1rem;
        border: 1px solid #e8edf5;
        border-radius: 0.85rem;
        background: #fff;
        box-shadow: 0 4px 14px rgba(56, 65, 74, 0.04);
    }
    .report-table tbody tr.report-empty-row {
        box-shadow: none;
        border-style: dashed;
    }
    .report-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border: 0;
        padding: 0.4rem 0;
        text-align: right;
    }
    .report-table tbody td::before {
        content: attr(data-label);
        color: var(--vz-muted);
        font-weight: 600;
        font-size: 0.75rem;
        text-align: left;
        flex: 0 0 38%;
    }
    .report-table tbody tr.report-empty-row td {
        display: block;
        text-align: center;
    }
    .report-table tbody tr.report-empty-row td::before { display: none; }
}

@media (max-width: 575px) {
    .report-stat-row { grid-template-columns: 1fr 1fr; }
    .report-hero-actions .btn { width: 100%; }
}

.log-properties {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-x: auto;
    max-height: 420px;
}

/* Activity Logs UI */
.log-module-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.log-module-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e8edf5;
    background: #fff;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}
.log-module-chip em {
    font-style: normal;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f6f9;
    color: #405189;
    font-size: 0.7rem;
    font-weight: 700;
}
.log-module-chip.active,
.log-module-chip:hover {
    border-color: rgba(249, 115, 22, 0.35);
    background: #fff7ed;
    color: #c2410c;
}
.log-module-chip.active em,
.log-module-chip:hover em {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}
.log-panel > .card-header.log-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1rem 1.15rem 1.1rem;
}
.log-filter-form { width: 100%; }
.log-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem 0.7rem;
    align-items: end;
}
.log-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}
.log-filter-field label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #878a99;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.log-filter-field .form-control,
.log-filter-field .form-select {
    height: 38px;
    width: 100%;
}
.log-filter-search { grid-column: span 1; }
.log-filter-search .dir-search-box {
    min-width: 0;
    width: 100%;
}
.log-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.log-filter-actions .btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.log-row {
    grid-template-columns: minmax(180px, 1.5fr) minmax(110px, 0.95fr) minmax(110px, 0.9fr) minmax(90px, 0.75fr) auto !important;
}

@media (max-width: 1199px) {
    .log-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .log-filter-search,
    .log-filter-buttons { grid-column: span 1; }
}

@media (max-width: 767px) {
    .log-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    .log-filter-search,
    .log-filter-buttons {
        grid-column: 1 / -1;
    }
    .log-filter-actions .btn { flex: 1 1 auto; justify-content: center; }
    .log-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 575px) {
    .log-filter-grid { grid-template-columns: 1fr; }
}
