@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #148fb0;
    --primary-dark: #0f6f93;
    --accent: #19c2b0;
    --bg: #eef9fb;
    --card: #ffffff;
    --text: #17324b;
    --muted: #5f7387;
    --danger: #dc3545;
    --success: #10996f;
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary {
    background: var(--primary);
}

.btn.full {
    width: 100%;
    text-align: center;
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border: 1px solid #d1d5db;
}

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

.btn-light.active {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 260px;
    background: var(--primary);
    color: #fff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-link-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
}

.sidebar-link-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-link-label {
    flex: 1;
    min-width: 0;
}

.sidebar-section-title {
    margin: 14px 0 8px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.sidebar-section-title:first-child {
    margin-top: 0;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.sidebar-nav a.is-active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #d9fffb, 0 10px 22px rgba(8, 75, 124, 0.18);
}

.sidebar-nav a:hover .sidebar-link-icon,
.sidebar-nav a.is-active .sidebar-link-icon {
    color: #ffffff;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-left: 24px;
    padding-right: 24px;
}

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

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

.app-content {
    padding: 24px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(20, 143, 176, 0.1);
}

.mt-20 {
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(20, 143, 176, 0.1);
    border: 1px solid rgba(25, 194, 176, 0.12);
}

.stat-card span {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-card strong {
    font-size: 22px;
}

.auth-body {
    background: linear-gradient(135deg, #11a7a5, #148fb0);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.auth-card {
    background: #fff;
    color: var(--text);
    padding: 24px;
    border-radius: 16px;
    margin-top: 16px;
    box-shadow: 0 20px 42px rgba(20, 143, 176, 0.18);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: #148fb0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.auth-back-link:hover {
    color: #0f6f8f;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-family: inherit;
}

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

.full-width {
    grid-column: 1 / -1;
}

.checkbox-row {
    margin-top: 10px;
}

.error {
    color: var(--danger);
    font-size: 12px;
}

.auth-links {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.public-body {
    background: var(--bg);
}

.public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.public-nav a {
    margin-left: 16px;
    font-weight: 500;
    color: var(--primary);
}

.public-content {
    padding: 32px;
}

.search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.search-row button,
.search-row input,
.search-row select {
    height: 42px;
}

.search-row input,
.search-row select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.table-meta {
    margin: -4px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-actions {
    margin: 12px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-block;
    margin-left: 6px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

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

.ebook-preview-link {
    display: inline-flex;
    margin-top: 8px;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #b91c1c;
}

.import-summary {
    margin-top: 16px;
}

.error-list {
    margin-top: 8px;
    padding-left: 18px;
    color: var(--danger);
    font-size: 13px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-text p {
    color: var(--muted);
    margin-bottom: 14px;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
}

.select-inline {
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.view-toggle {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--card);
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.muted {
    color: var(--muted);
    margin-top: 10px;
}

.small {
    font-size: 12px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* FIX 5 KOLOM */
    gap: 16px;
}

.catalog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    display: flex;
    flex-direction: column;
}

.cover-wrap {
    position: relative;
}

.cover-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.report-chart-wrap {
    position: relative;
    width: 100%;
    height: 360px;
}

.cover-img-large {
    width: 100%;
    height: 460px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 16px;
}

.cover-thumb {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

.cover-placeholder {
    height: 220px;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.cover-placeholder.thumb {
    height: 72px;
    width: 56px;
    border-radius: 6px;
    font-size: 10px;
}

.cover-placeholder.large {
    height: 320px;
    border-radius: 14px;
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-body h3 {
    font-size: 16px;
}

.catalog-inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

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

.catalog-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
}

.table tbody tr:nth-child(odd) {
    background: rgba(20, 143, 176, 0.03);
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.96);
}

.table tbody tr:hover {
    background: rgba(20, 143, 176, 0.08);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: capitalize;
}

.badge-primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-info {
    background: #ecfeff;
    color: #0e7490;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #dcfce7 0%, #ecfeff 100%);
    color: #0f766e;
    border: 1px solid rgba(20, 143, 176, 0.14);
    font-weight: 700;
    text-transform: none;
}

.badge-pdf::before {
    content: "";
    width: 14px;
    height: 14px;
    display: inline-block;
    flex: 0 0 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' fill='%2314b8a6'/%3E%3Cpath d='M6 10.2 8.5 12.7 14 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 14px 14px;
}

.pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.detail-header {
    margin-bottom: 16px;
}

.detail-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 24px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    margin-bottom: 20px;
}

.detail-info h2 {
    margin-bottom: 6px;
}

.detail-badges {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.detail-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.detail-table th {
    width: 160px;
}

.empty-state {
    text-align: center;
    color: var(--muted);
}

.public-footer {
    padding: 16px 32px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 960px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .detail-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .public-header {
        flex-direction: column;
        gap: 12px;
    }

    .search-bar {
        flex-direction: column;
    }
}

.brand--stacked {
    align-items: center;
    gap: 12px;
}

.brand-caption,
.brand-subtext,
.topbar-subtitle {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.topbar-subtitle {
    color: var(--muted);
    margin-top: 2px;
}

.app-body {
    background:
        radial-gradient(circle at top right, rgba(25, 194, 176, 0.2), transparent 30%),
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #ecfeff 0%, #f4fbff 42%, #eefcf8 100%);
}

.app-sidebar {
    background:
        linear-gradient(180deg, #10a2a7 0%, #148fb0 48%, #2b79b8 100%);
    box-shadow: 18px 0 40px rgba(20, 143, 176, 0.16);
}

.public-body {
    background: linear-gradient(180deg, #e9fbfb 0%, #f4fbff 55%, #edf9f6 100%);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(16, 148, 171, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-nav a {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.88);
}

.public-nav__cta {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.public-content {
    padding: 22px 32px 32px;
}

.public-footer {
    border-top: 1px solid rgba(20, 143, 176, 0.1);
    color: #46728a;
    background: rgba(255, 255, 255, 0.76);
}

.campus-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 420px);
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(20, 143, 176, 0.96) 0%, rgba(25, 194, 176, 0.9) 48%, rgba(52, 137, 217, 0.84) 100%);
    box-shadow: 0 28px 80px rgba(20, 143, 176, 0.24);
    color: #fff;
}

.campus-hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.18), transparent 22%),
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.06) 36%, transparent 52%, rgba(255, 255, 255, 0.05) 72%, transparent 84%);
    pointer-events: none;
}

.campus-hero__content,
.campus-hero__stats {
    position: relative;
    z-index: 1;
}

.campus-hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.campus-hero h1 {
    font-size: 48px;
    line-height: 1.08;
    margin-bottom: 16px;
}

.campus-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    margin-bottom: 18px;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    max-width: 860px;
}

.hero-search input,
.hero-search select {
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    min-height: 56px;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 16px;
}

.hero-search input {
    flex: 1;
}

.hero-search select {
    min-width: 170px;
}

.hero-search .btn {
    min-height: 56px;
    border-radius: 999px;
    padding: 0 22px;
    background: linear-gradient(135deg, #0f6f93 0%, #148fb0 100%);
}

.hero-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.26);
}

.campus-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: end;
}

.hero-stat {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.hero-stat span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.hero-stat strong {
    font-size: 28px;
}

.campus-hero-small {
    padding: 28px 30px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
}

.campus-hero-small h1 {
    font-size: 32px;
}

.campus-hero-admin {
    background:
        linear-gradient(135deg, rgba(12, 35, 94, 0.94) 0%, rgba(17, 94, 135, 0.92) 55%, rgba(8, 145, 178, 0.88) 100%);
}

.campus-hero-staff {
    background:
        linear-gradient(135deg, rgba(8, 47, 73, 0.96) 0%, rgba(15, 118, 110, 0.9) 55%, rgba(16, 185, 129, 0.82) 100%);
}

.campus-hero-member {
    background:
        linear-gradient(135deg, rgba(76, 29, 149, 0.92) 0%, rgba(29, 78, 216, 0.88) 52%, rgba(6, 182, 212, 0.76) 100%);
}

.book-rail-section,
.catalog-section-shell,
.campus-feature-grid,
.dashboard-grid,
.visit-layout,
.profile-layout {
    margin-top: 28px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading--between {
    justify-content: space-between;
    flex-wrap: wrap;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f766e;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
}

.book-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 180px);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.book-rail__item {
    display: block;
    color: #fff;
}

.book-rail__cover {
    height: 248px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 32px rgba(3, 7, 18, 0.34);
}

.book-rail__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-rail__meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-rail__meta strong {
    font-size: 14px;
}

.campus-feature-grid,
.dashboard-grid,
.visit-layout,
.profile-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.feature-card,
.quick-link-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(8, 15, 34, 0.08);
}

.feature-card h3 {
    margin-bottom: 10px;
}

.catalog-section-shell {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 50px rgba(6, 24, 44, 0.12);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    color: var(--primary-dark);
    font-weight: 700;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.74) 0%, rgba(255, 255, 255, 0.98) 100%);
}

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

.list-stack__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.list-stack__item:last-child {
    border-bottom: none;
}

.list-stack__time {
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted);
}

.member-books-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.member-book-card {
    height: 100%;
}

.member-book-actions {
    align-items: flex-start;
}

.member-book-actions .inline-form {
    margin-left: 0;
}

.profile-summary-card {
    text-align: center;
}

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
}

.profile-meta-list {
    margin-top: 18px;
    text-align: left;
}

.profile-meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.profile-meta-list span {
    color: var(--muted);
    text-align: right;
}

.profile-action-stack {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.narrow-panel {
    max-width: 720px;
}

.security-card {
    background:
        linear-gradient(180deg, rgba(240, 249, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.visit-entry-card {
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.visit-search-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.visit-search-input input {
    flex: 1;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    padding: 0 18px;
    font-size: 17px;
}

.visit-search-input .btn {
    min-height: 58px;
    border-radius: 18px;
}

.visit-confirm-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(16, 185, 129, 0.12);
}

.visit-filter-card {
    background:
        linear-gradient(180deg, rgba(240, 253, 250, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(20, 143, 176, 0.12);
}

.visit-filter-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.visit-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.visit-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.visit-kpi-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.visit-kpi-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 255, 0.98) 100%);
    border: 1px solid rgba(20, 143, 176, 0.1);
    box-shadow: 0 16px 36px rgba(20, 143, 176, 0.08);
}

.visit-kpi-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7b90;
}

.visit-kpi-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.3;
    color: #16324b;
}

.visit-kpi-card small {
    display: block;
    margin-top: 8px;
    color: #72849a;
    line-height: 1.6;
}

.visit-chart-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.visit-chart-card {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.99) 100%);
    border: 1px solid rgba(20, 143, 176, 0.08);
}

.visit-chart-card--wide {
    grid-column: 1 / -1;
}

.visit-chart-card__head {
    margin-bottom: 16px;
}

.visit-chart-card__head h3 {
    margin-bottom: 6px;
}

.visit-chart-stage {
    position: relative;
    padding: 8px 0 0;
}

.visit-line-chart {
    width: 100%;
    height: auto;
    display: block;
}

.visit-line-point__dot {
    transition: transform 0.18s ease, stroke-width 0.18s ease, fill 0.18s ease;
    transform-origin: center;
}

.visit-line-point__hit {
    cursor: pointer;
}

.visit-line-point:hover .visit-line-point__dot,
.visit-line-point.is-active .visit-line-point__dot {
    transform: scale(1.28);
    stroke-width: 3;
    fill: #dff8ff;
}

.visit-line-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 122px;
    max-width: 200px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.94);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.visit-line-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.visit-line-tooltip strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.visit-line-tooltip span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.visit-bar-3d-chart,
.visit-pie-3d-chart {
    width: 100%;
    height: auto;
    display: block;
}

.visit-chart-stage--bar3d,
.visit-chart-stage--pie3d {
    min-height: 280px;
}

.visit-chart-legend {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.visit-chart-legend__item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #5e7389;
}

.visit-chart-legend__item strong {
    color: #15324c;
    font-size: 13px;
}

.visit-chart-legend__item em {
    font-style: normal;
    font-weight: 700;
    color: #15324c;
}

.visit-chart-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.visit-chart-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #71849a;
}

.visit-bar-list,
.visit-role-list {
    display: grid;
    gap: 14px;
}

.visit-bar-item {
    display: grid;
    gap: 8px;
}

.visit-bar-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.visit-bar-item__meta strong {
    font-size: 13px;
    color: #18344d;
}

.visit-bar-item__meta span {
    font-size: 12px;
    color: #6d8096;
    white-space: nowrap;
}

.visit-bar-item__track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e7eef6;
}

.visit-bar-item__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #14b8a6 0%, #2563eb 100%);
}

.visit-role-fill--1 {
    background: linear-gradient(135deg, #148fb0 0%, #2d6ecf 100%);
}

.visit-role-fill--2 {
    background: linear-gradient(135deg, #16a34a 0%, #14b8a6 100%);
}

.visit-role-fill--3 {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

.visit-role-fill--4 {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.visit-table-head {
    margin-bottom: 14px;
}

@media (max-width: 1180px) {
    .campus-hero,
    .campus-hero-small,
    .campus-feature-grid,
    .dashboard-grid,
    .visit-layout,
    .profile-layout,
    .visit-kpi-grid,
    .visit-chart-grid {
        grid-template-columns: 1fr;
    }

    .book-rail {
        grid-auto-columns: minmax(140px, 160px);
    }
}

@media (max-width: 860px) {
    .campus-hero {
        padding: 26px;
    }

    .campus-hero h1 {
        font-size: 34px;
    }

    .hero-search,
    .visit-search-input,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .visit-filter-grid {
        grid-template-columns: 1fr;
    }

    .hero-search,
    .visit-search-input,
    .form-actions,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .public-content {
        padding: 16px;
    }

    .catalog-section-shell {
        padding: 20px;
    }

    .book-rail__cover {
        height: 208px;
    }
}

.visitor-body {
    margin: 0;
    min-height: 100vh;
    background: #f3f6fb;
    color: #132238;
}

.visitor-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 560px) 1fr;
}

.visitor-panel {
    position: relative;
}

.visitor-panel-form {
    background: rgba(255, 255, 255, 0.98);
    z-index: 2;
}

.visitor-panel__inner {
    max-width: 470px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 34px 34px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visitor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.visitor-topbar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.visitor-topbar__links a {
    color: #4b5f79;
    font-size: 14px;
    font-weight: 600;
}

.visitor-copy h1 {
    font-size: 52px;
    line-height: 1.08;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: #10213a;
}

.visitor-copy p {
    font-size: 19px;
    line-height: 1.7;
    color: #5a6b84;
    margin-bottom: 30px;
}

.visitor-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #0f766e;
}

.visitor-kicker-light {
    color: rgba(255, 255, 255, 0.82);
}

.visitor-alert {
    margin-bottom: 14px;
}

.visitor-success-card {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.14);
}

.visitor-success-card h3 {
    margin-bottom: 8px;
}

.visitor-success-card p {
    margin: 0 0 10px;
    color: #4b5563;
}

.visitor-success-meta {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #53627a;
}

.visitor-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visitor-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.visitor-mode-switch input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.visitor-mode-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #d7e1ef;
    border-radius: 18px;
    background: #f8fbff;
    color: #54657f;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

#visitor-type-member:checked + .visitor-mode-pill,
#visitor-type-guest:checked + .visitor-mode-pill {
    border-color: #1d4ed8;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    color: #143472;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.12);
}

.visitor-form-help,
.visitor-inline-note {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #66768d;
}

.visitor-form-sections {
    display: grid;
    gap: 14px;
}

.visitor-form[data-visitor-mode="member"] .visitor-form-section-guest {
    display: none;
}

.visitor-form[data-visitor-mode="guest"] .visitor-form-section-member {
    display: none;
}

.visitor-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #10213a;
}

.visitor-form .form-group input {
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
    border: 1px solid #d4ddeb;
    padding: 0 18px;
    font-size: 16px;
    color: #22324d;
    background: #fff;
}

.visitor-form .form-group input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    outline: none;
}

.visitor-submit {
    width: 100%;
    min-height: 60px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
}

.visitor-panel-visual {
    overflow: hidden;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(9, 18, 40, 0.08) 0%, rgba(9, 18, 40, 0.4) 100%),
        radial-gradient(circle at 48% 5%, rgba(255, 227, 123, 0.95) 0%, rgba(255, 227, 123, 0.45) 12%, rgba(255, 227, 123, 0) 28%),
        linear-gradient(145deg, rgba(255, 187, 100, 0.65) 0%, rgba(68, 118, 53, 0.18) 34%, rgba(10, 38, 65, 0.72) 100%),
        linear-gradient(180deg, #f3b36d 0%, #2f5f38 55%, #12233e 100%);
}

.visitor-panel-visual::before,
.visitor-panel-visual::after {
    content: "";
    position: absolute;
    inset: auto -10% -16% -10%;
    border-radius: 50%;
    pointer-events: none;
}

.visitor-panel-visual::before {
    height: 54%;
    background:
        radial-gradient(circle at 20% 40%, rgba(76, 124, 54, 0.8) 0%, rgba(76, 124, 54, 0.08) 42%),
        radial-gradient(circle at 50% 30%, rgba(44, 90, 42, 0.88) 0%, rgba(44, 90, 42, 0.08) 46%),
        radial-gradient(circle at 80% 40%, rgba(69, 112, 60, 0.84) 0%, rgba(69, 112, 60, 0.08) 44%);
    opacity: 0.95;
}

.visitor-panel-visual::after {
    height: 42%;
    background:
        radial-gradient(circle at 15% 20%, rgba(17, 39, 62, 0.88) 0%, rgba(17, 39, 62, 0.05) 52%),
        radial-gradient(circle at 55% 15%, rgba(13, 31, 53, 0.9) 0%, rgba(13, 31, 53, 0.05) 50%),
        radial-gradient(circle at 90% 25%, rgba(18, 34, 58, 0.88) 0%, rgba(18, 34, 58, 0.05) 50%);
}

.visitor-visual-head,
.visitor-visual-copy,
.visitor-stat-grid,
.visitor-quote-card {
    position: relative;
    z-index: 1;
}

.visitor-visual-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.visitor-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.visitor-visual-copy {
    max-width: 620px;
    margin-top: auto;
}

.visitor-visual-copy h2 {
    margin: 0 0 16px;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #fff;
}

.visitor-visual-copy p {
    max-width: 560px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.visitor-stat-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 560px;
}

.visitor-stat-card {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.visitor-stat-card span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    margin-bottom: 8px;
}

.visitor-stat-card strong {
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.visitor-quote-card {
    max-width: 760px;
    margin-top: 32px;
    padding-top: 18px;
}

.visitor-quote-card p {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.7;
    color: #fff;
}

.visitor-quote-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
}

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

    .visitor-panel__inner {
        min-height: auto;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .visitor-panel-visual {
        min-height: 560px;
    }
}

@media (max-width: 768px) {
    .visitor-panel__inner,
    .visitor-panel-visual {
        padding: 22px 18px;
    }

    .visitor-topbar,
    .visitor-visual-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .visitor-copy h1,
    .visitor-visual-copy h2 {
        font-size: 36px;
    }

    .visitor-stat-grid,
    .visitor-mode-switch {
        grid-template-columns: 1fr;
    }
}

.public-body--landing {
    background: #f7f8fb;
}

.public-header--landing {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
}

.public-content--landing {
    padding: 0;
}

.public-header--landing .brand-text,
.public-header--landing .brand-caption,
.public-header--landing .public-nav a {
    color: rgba(255, 255, 255, 0.95);
}

.public-header--landing .public-nav__cta {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.library-home {
    background: #f7f8fb;
}

.library-home__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.library-home-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 108px 32px 84px;
    background:
        radial-gradient(circle at 20% 15%, rgba(89, 160, 86, 0.22), transparent 16%),
        radial-gradient(circle at 60% 22%, rgba(117, 175, 78, 0.18), transparent 18%),
        radial-gradient(circle at 80% 28%, rgba(73, 123, 58, 0.2), transparent 15%),
        linear-gradient(180deg, rgba(8, 14, 20, 0.55) 0%, rgba(12, 16, 22, 0.42) 100%),
        linear-gradient(135deg, #162b2d 0%, #173035 46%, #1b3940 100%);
}

.library-home-hero__canopy {
    position: absolute;
    inset: 0;
    background:
        repeating-radial-gradient(circle at 10% 18%, rgba(24, 47, 34, 0.82) 0 18px, rgba(10, 20, 14, 0) 18px 44px),
        repeating-radial-gradient(circle at 70% 8%, rgba(16, 39, 26, 0.7) 0 16px, rgba(10, 20, 14, 0) 16px 42px),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
    opacity: 0.38;
    pointer-events: none;
}

.library-home-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
}

.library-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    min-height: 510px;
    background: rgba(9, 20, 31, 0.72);
    box-shadow: 0 34px 90px rgba(7, 18, 28, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.library-hero-slider__viewport {
    position: relative;
    min-height: 510px;
}

.library-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.library-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.library-hero-slide__media,
.library-hero-slide__shade {
    position: absolute;
    inset: 0;
}

.library-hero-slide__media {
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.library-hero-slide__shade {
    background:
        linear-gradient(90deg, rgba(5, 15, 24, 0.82) 0%, rgba(8, 19, 30, 0.66) 36%, rgba(8, 19, 30, 0.22) 100%),
        linear-gradient(180deg, rgba(10, 22, 34, 0.18) 0%, rgba(10, 22, 34, 0.46) 100%);
}

.library-hero-slide__content {
    position: relative;
    z-index: 1;
    min-height: 510px;
    padding: 56px 56px 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: end;
}

.library-hero-slide__copy {
    max-width: 720px;
}

.library-hero-slide__copy h1 {
    margin: 18px 0 18px;
    font-size: 54px;
    line-height: 1.05;
    font-weight: 300;
    color: #ffffff;
    text-wrap: balance;
}

.library-hero-slide__copy p {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
}

.library-hero-slide__info {
    align-self: end;
    padding: 24px 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.library-hero-slide__index {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.library-hero-slide__info strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.library-hero-slide__info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.library-hero-slider__controls {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.library-hero-slider__nav {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.library-hero-slider__nav:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.library-hero-slider__nav svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.library-hero-slider__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.library-hero-slider__dot {
    width: 44px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.library-hero-slider__dot:hover {
    transform: translateY(-1px);
}

.library-hero-slider__dot.is-active {
    width: 76px;
    background: linear-gradient(90deg, #5eead4 0%, #93c5fd 100%);
}

.library-home-hero__banner {
    min-height: 156px;
    padding: 28px 34px;
    border-radius: 2px;
    max-width: 1120px;
    margin: 0 auto;
    background:
        linear-gradient(90deg, rgba(17, 25, 30, 0.62) 0%, rgba(57, 80, 69, 0.28) 28%, rgba(188, 133, 72, 0.28) 68%, rgba(69, 83, 66, 0.18) 100%),
        linear-gradient(135deg, rgba(35, 45, 45, 0.58), rgba(117, 128, 80, 0.14));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.library-home-hero__banner-copy {
    max-width: 560px;
}

.library-home-hero__banner-copy h1 {
    margin: 14px 0 10px;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 300;
    color: #fff;
}

.library-home-hero__banner-copy p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.library-home-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.library-home-stat {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.library-home-stat span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.library-home-stat strong {
    font-size: 28px;
    line-height: 1;
    color: #fff;
}

.library-home-search {
    max-width: 760px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 180px 120px;
    align-items: center;
    min-height: 62px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.2);
}

.library-home-search__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a8798;
}

.library-home-search__icon svg,
.subject-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.library-home-search input,
.library-home-search select,
.library-home-search button {
    border: none;
    background: transparent;
    outline: none;
    min-height: 46px;
    font-family: inherit;
}

.library-home-search input {
    font-size: 15px;
    color: #203047;
}

.library-home-search select {
    padding: 0 14px;
    border-left: 1px solid #e5e7eb;
    color: #4a5d74;
}

.library-home-search button {
    border-radius: 4px;
    background: linear-gradient(135deg, #148fb0, #2a74cf);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.library-home-hero__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.library-home-action-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
}

.subject-explorer,
.shelf-section,
.library-community,
.catalog-section-shell--landing {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.subject-explorer {
    margin-top: 32px;
    padding: 0 32px;
    text-align: center;
}

.subject-explorer__lead {
    color: #607086;
    margin-bottom: 16px;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    max-width: 980px;
    margin: 0 auto;
}

.subject-card {
    min-height: 124px;
    padding: 18px 12px;
    border: 1px solid #d7dee8;
    background: #fff;
    color: #24364f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    box-shadow: 0 12px 22px rgba(17, 24, 39, 0.04);
}

.subject-card__icon {
    color: #6d8fb2;
}

.subject-card strong {
    font-size: 13px;
    line-height: 1.4;
}

.subject-card span:last-child {
    font-size: 11px;
    color: #7b8899;
}

.shelf-section {
    padding: 26px 32px 0;
}

.shelf-section__head,
.shelf-tags,
.book-shelf-grid,
.book-shelf-empty,
.library-community__copy,
.library-community__stats {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.shelf-section--soft {
    padding-top: 34px;
}

.shelf-section__head h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 500;
    color: #1f2e45;
}

.shelf-section__head p {
    color: #68788f;
    line-height: 1.7;
}

.shelf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 16px;
}

.shelf-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #b8c4d6;
    color: #5d7086;
    background: #fff;
    font-size: 12px;
}



.book-shelf-empty {
    padding: 24px 26px;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: center;
}

.book-shelf-empty h3 {
    margin: 0 0 8px;
    color: #203047;
}

.book-shelf-empty p {
    margin: 0;
    color: #6b7b90;
    line-height: 1.7;
}



.book-shelf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(21, 30, 43, 0.09);
}



.book-shelf-card__link,
.book-shelf-card__title {
    color: inherit;
    text-decoration: none;
}

.book-shelf-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.book-shelf-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* FIX 6 KOLOM */
    gap: 16px;
}

.book-shelf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(21, 30, 43, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-shelf-card__cover {
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.book-shelf-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-shelf-card__body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-shelf-card__body h3 {
    font-size: 15px;
    line-height: 1.5;
    color: #24364f;
    margin: 0;
}

.book-shelf-card__body p {
    margin-top: 8px;
    font-size: 12px;
    color: #7b8899;
    line-height: 1.6;
}



.book-shelf-card__body h3 {
    font-size: 13px;
    line-height: 1.5;
    color: #24364f;
}

.book-shelf-card__body p {
    margin-top: 8px;
    font-size: 11px;
    color: #7b8899;
    line-height: 1.5;
}

.book-shelf-card--soft {
    background: #fcfdff;
}

.library-community {
    padding: 44px 32px 12px;
}

.library-community__copy h2 {
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 500;
}

.library-community__copy p {
    color: #68788f;
    line-height: 1.7;
}

.library-community__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.library-community__card {
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 143, 176, 0.08), rgba(37, 99, 235, 0.06));
    border: 1px solid rgba(20, 143, 176, 0.12);
}

.library-community__card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #69829a;
}

.library-community__card strong {
    font-size: 30px;
    color: #1f2e45;
}

.catalog-section-shell--landing {
    margin-top: 10px;
    margin-bottom: 48px;
    max-width: 980px;
}

.public-footer--rich {
    padding: 48px 32px 20px;
    background: #394452;
    color: rgba(255, 255, 255, 0.86);
    border-top: none;
    text-align: left;
}

.public-footer__grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 28px;
    align-items: start;
    justify-items: start;
    text-align: left;
}

.public-footer__col {
    width: 100%;
    text-align: left;
}

.public-footer__brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.public-footer__brand strong,
.public-footer__col h4 {
    display: block;
    color: #fff;
}

.public-footer__brand small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
}

.public-footer__col p,
.public-footer__list li {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.75;
}

.public-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
}

.public-footer__links a {
    color: rgba(255, 255, 255, 0.88);
}

.public-footer__list {
    padding-left: 18px;
    margin-top: 14px;
    text-align: left;
}

.public-footer__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
    margin-top: 14px;
    max-width: 420px;
}

.public-footer__search input {
    min-height: 42px;
    border: none;
    padding: 0 12px;
}

.public-footer__search button {
    border: none;
    min-height: 42px;
    background: #1976d2;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.public-footer__bottom {
    max-width: 1180px;
    margin: 22px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    text-align: left;
}

.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px 0 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(20, 143, 176, 0.96) 0%, rgba(25, 194, 176, 0.96) 100%);
    color: #fff;
    box-shadow: 0 16px 38px rgba(20, 143, 176, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.92);
    transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.scroll-top-btn:hover {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 22px 42px rgba(20, 143, 176, 0.36);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.scroll-top-btn__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scroll-top-btn__label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .library-home-hero__stats,
    .subject-grid,
    .book-shelf-grid,
    .library-community__stats,
    .public-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-shelf-grid {
        grid-template-columns: repeat(auto-fit, minmax(138px, 138px));
    }
}

@media (max-width: 860px) {
    .public-header--landing {
        position: relative;
        background: rgba(16, 148, 171, 0.92);
    }

    .library-home-hero {
        padding: 32px 18px 42px;
    }

    .library-hero-slider,
    .library-hero-slider__viewport,
    .library-hero-slide__content {
        min-height: 560px;
    }

    .library-hero-slide__content {
        grid-template-columns: 1fr;
        padding: 34px 26px 88px;
    }

    .library-hero-slide__copy h1 {
        font-size: 38px;
    }

    .library-hero-slide__copy p {
        font-size: 16px;
        line-height: 1.75;
    }

    .library-hero-slide__info {
        max-width: 420px;
    }

    .library-home-hero__banner {
        padding: 20px;
    }

    .library-home-hero__banner-copy h1 {
        font-size: 32px;
    }

    .library-home-search {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0;
        padding: 10px;
    }

    .library-home-search select,
    .library-home-search button {
        grid-column: 1 / -1;
        margin-top: 10px;
        border-left: none;
    }

    .subject-explorer,
    .shelf-section,
    .library-community,
    .public-footer--rich {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 640px) {
    .library-hero-slider,
    .library-hero-slider__viewport,
    .library-hero-slide__content {
        min-height: 620px;
    }

    .library-hero-slide__content {
        padding: 26px 18px 90px;
    }

    .library-hero-slide__copy h1 {
        font-size: 30px;
    }

    .library-hero-slider__controls {
        left: 16px;
        right: 16px;
        bottom: 16px;
        gap: 12px;
    }

    .library-hero-slider__nav {
        width: 44px;
        height: 44px;
    }

    .library-hero-slider__dot {
        width: 26px;
    }

    .library-hero-slider__dot.is-active {
        width: 46px;
    }

    .library-home-hero__stats,
    .subject-grid,
    .library-community__stats,
    .public-footer__grid,
    .public-footer__search {
        grid-template-columns: 1fr;
    }

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

    .library-home-hero__actions,
    .shelf-tags,
    .public-footer__bottom {
        justify-content: flex-start;
    }

    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        min-height: 50px;
        padding-right: 14px;
    }

    .scroll-top-btn__label {
        display: none;
    }
}

html {
    scroll-padding-top: 96px;
}

.public-body--landing .public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 14px 24px;
    background: linear-gradient(180deg, rgba(6, 18, 29, 0.94) 0%, rgba(6, 18, 29, 0.76) 72%, rgba(6, 18, 29, 0.36) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(8, 21, 33, 0.12);
}

.public-body--landing .public-content--landing {
    padding-top: 78px;
}

.public-body--landing .library-home-hero {
    min-height: calc(100vh - 78px);
    padding: 14px 24px 18px;
    display: flex;
    align-items: flex-start;
}

.public-body--landing .library-home-hero__inner {
    width: 100%;
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.public-body--landing .library-hero-slider,
.public-body--landing .library-hero-slider__viewport,
.public-body--landing .library-hero-slide__content {
    min-height: clamp(300px, 46vh, 370px);
}

.public-body--landing .library-hero-slider {
    border-radius: 28px;
}

.public-body--landing .library-hero-slide__content {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    padding: 24px 28px 58px;
    align-items: end;
}

.public-body--landing .library-hero-slide__copy h1 {
    margin: 10px 0 12px;
    max-width: 760px;
    font-size: clamp(22px, 2.7vw, 32px);
    line-height: 1.12;
}

.public-body--landing .library-hero-slide__copy p {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.62;
}

.public-body--landing .library-hero-slide__info {
    padding: 16px 16px 14px;
    border-radius: 20px;
}

.public-body--landing .library-hero-slide__index {
    min-height: 28px;
    padding: 0 10px;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
}

.public-body--landing .library-hero-slide__info strong {
    font-size: 13px;
    line-height: 1.5;
}

.public-body--landing .library-hero-slide__info p {
    font-size: 12px;
    line-height: 1.7;
}

.public-body--landing .library-hero-slider__controls {
    left: 20px;
    right: 20px;
    bottom: 14px;
}

.public-body--landing .library-home-hero__stats {
    margin-top: 4px;
    gap: 10px;
}

.public-body--landing .library-home-stat {
    padding: 12px 14px;
    border-radius: 16px;
}

.public-body--landing .library-home-stat span {
    margin-bottom: 4px;
}

.public-body--landing .library-home-stat strong {
    font-size: 22px;
}

.public-body--landing .library-home-search {
    margin-top: 6px;
    max-width: 780px;
}

.public-body--landing .library-home-hero__actions {
    margin-top: 4px;
}

.public-body--landing .library-home-action-pill {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .public-body--landing .public-content--landing {
        padding-top: 86px;
    }

    .public-body--landing .library-home-hero {
        min-height: auto;
        padding: 16px 18px 24px;
    }

    .public-body--landing .library-home-hero__inner {
        min-height: auto;
    }

    .public-body--landing .library-hero-slider,
    .public-body--landing .library-hero-slider__viewport,
    .public-body--landing .library-hero-slide__content {
        min-height: 420px;
    }

    .public-body--landing .library-hero-slide__content {
        grid-template-columns: 1fr;
        padding: 24px 22px 76px;
    }

    .public-body--landing .library-hero-slide__info {
        max-width: 360px;
    }
}

@media (max-width: 640px) {
    .public-body--landing .public-header {
        padding: 12px 16px;
    }

    .public-body--landing .public-content--landing {
        padding-top: 108px;
    }

    .public-body--landing .library-home-hero {
        padding: 12px 16px 20px;
    }

    .public-body--landing .library-hero-slider,
    .public-body--landing .library-hero-slider__viewport,
    .public-body--landing .library-hero-slide__content {
        min-height: 430px;
    }

    .public-body--landing .library-hero-slide__content {
        padding: 22px 18px 82px;
    }

.public-body--landing .library-hero-slide__copy h1 {
        font-size: 24px;
    }
}

.visitor-body {
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #eef6fb 0%, #f8fbff 52%, #eefaf6 100%);
}

.visitor-shell {
    height: 100dvh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(440px, 560px) minmax(0, 1fr);
    overflow: hidden;
}

.visitor-panel__inner {
    max-width: 500px;
    min-height: 100dvh;
    padding: 18px 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.visitor-topbar {
    margin-bottom: 4px;
}

.visitor-copy h1 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.visitor-copy p {
    font-size: 14px;
    line-height: 1.58;
    margin-bottom: 10px;
}

.visitor-kicker {
    margin-bottom: 6px;
}

.visitor-success-card {
    margin-bottom: 10px;
    padding: 14px 16px;
    border-radius: 16px;
}

.visitor-success-meta {
    gap: 4px;
    font-size: 13px;
}

.visitor-form {
    gap: 10px;
}

.visitor-mode-pill {
    min-height: 46px;
    font-size: 13px;
}

.visitor-form-help,
.visitor-inline-note {
    font-size: 12px;
    line-height: 1.5;
}

.visitor-form-sections {
    gap: 8px;
}

.visitor-form .form-group label {
    margin-bottom: 6px;
    font-size: 14px;
}

.visitor-form .form-group input {
    min-height: 46px;
    border-radius: 12px;
}

.visitor-submit {
    min-height: 48px;
    border-radius: 12px;
}

.visitor-panel-visual--chart {
    padding: 18px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background:
        radial-gradient(circle at 18% 18%, rgba(103, 232, 249, 0.18), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(250, 204, 21, 0.14), transparent 20%),
        linear-gradient(135deg, #0b2233 0%, #103a56 52%, #0f766e 100%);
}

.visitor-panel-visual--chart::before,
.visitor-panel-visual--chart::after {
    display: none;
}

.visitor-chart-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    height: calc(100dvh - 36px);
    border-radius: 30px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.visitor-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.visitor-chart-head h2 {
    margin: 8px 0 6px;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 300;
}

.visitor-chart-head p {
    margin: 0;
    max-width: 540px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.visitor-chart-head strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.visitor-chart-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
}

.visitor-trend-chart {
    width: 100%;
    height: clamp(210px, 32vh, 280px);
    display: block;
}

.visitor-chart-summary {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.visitor-chart-summary__item {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.visitor-chart-summary__item span {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.visitor-chart-summary__item strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

@media (max-width: 1360px) {
    .visitor-chart-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .visitor-body {
        overflow: auto;
    }

    .visitor-shell {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .visitor-panel__inner {
        min-height: auto;
        padding-top: 22px;
        padding-bottom: 18px;
    }

    .visitor-panel-visual--chart {
        padding: 18px;
    }

    .visitor-chart-shell {
        height: auto;
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .visitor-copy h1 {
        font-size: 30px;
    }

    .visitor-chart-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .visitor-chart-head h2 {
        font-size: 26px;
    }

    .visitor-chart-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .visitor-chart-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 860px) and (min-width: 1201px) {
    .visitor-shell {
        grid-template-columns: minmax(410px, 520px) minmax(0, 1fr);
    }

    .visitor-panel__inner {
        max-width: 480px;
        padding: 14px 20px 12px;
        gap: 8px;
    }

    .visitor-topbar {
        margin-bottom: 2px;
    }

    .visitor-copy h1 {
        font-size: 28px;
        line-height: 1.08;
        margin-bottom: 8px;
    }

    .visitor-copy p {
        font-size: 13px;
        line-height: 1.48;
        margin-bottom: 8px;
    }

    .visitor-mode-switch {
        gap: 8px;
    }

    .visitor-mode-pill {
        min-height: 42px;
        font-size: 12px;
    }

    .visitor-form-help,
    .visitor-inline-note,
    .visitor-success-meta {
        font-size: 11px;
        line-height: 1.42;
    }

    .visitor-form .form-group label {
        margin-bottom: 5px;
        font-size: 13px;
    }

    .visitor-form .form-group input {
        min-height: 42px;
        padding: 0 14px;
        font-size: 13px;
    }

    .visitor-submit {
        min-height: 42px;
        font-size: 14px;
    }

    .visitor-success-card {
        padding: 12px 14px;
    }

    .visitor-panel-visual--chart {
        padding: 14px;
    }

    .visitor-chart-shell {
        height: calc(100dvh - 28px);
        padding: 14px;
        border-radius: 24px;
    }

    .visitor-chart-head {
        margin-bottom: 8px;
        gap: 12px;
    }

    .visitor-chart-head h2 {
        margin: 6px 0 4px;
        font-size: 24px;
    }

    .visitor-chart-head p {
        font-size: 12px;
        line-height: 1.42;
        max-width: 500px;
    }

    .visitor-chart-head strong {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

    .visitor-trend-chart {
        height: clamp(180px, 25vh, 228px);
    }

    .visitor-chart-summary {
        gap: 6px;
    }

    .visitor-chart-summary__item {
        padding: 8px 10px;
        border-radius: 14px;
    }

    .visitor-chart-summary__item span {
        font-size: 10px;
    }

    .visitor-chart-summary__item strong {
        font-size: 16px;
    }
}

.public-body--landing {
    background:
        radial-gradient(circle at 18% 14%, rgba(94, 234, 212, 0.18), transparent 22%),
        radial-gradient(circle at 86% 10%, rgba(96, 165, 250, 0.18), transparent 20%),
        linear-gradient(180deg, #eafbf9 0%, #f2fbff 48%, #edf9f6 100%);
}

.public-body--landing .public-header {
    background:
        linear-gradient(180deg, rgba(16, 124, 148, 0.92) 0%, rgba(28, 146, 177, 0.88) 58%, rgba(37, 99, 235, 0.76) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 26px rgba(20, 143, 176, 0.18);
}

.public-body--landing .public-nav__cta {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.public-body--landing .library-home-hero__canopy {
    background:
        repeating-radial-gradient(circle at 10% 18%, rgba(21, 130, 122, 0.22) 0 20px, rgba(21, 130, 122, 0) 20px 46px),
        repeating-radial-gradient(circle at 72% 12%, rgba(37, 99, 235, 0.18) 0 18px, rgba(37, 99, 235, 0) 18px 42px),
        linear-gradient(135deg, rgba(15, 118, 110, 0.24) 0%, rgba(20, 143, 176, 0.14) 42%, rgba(37, 99, 235, 0.12) 100%);
}

.public-body--landing .library-hero-slider {
    background:
        linear-gradient(135deg, rgba(9, 78, 104, 0.22) 0%, rgba(15, 118, 110, 0.12) 50%, rgba(37, 99, 235, 0.12) 100%);
    border: 1px solid rgba(94, 234, 212, 0.12);
    box-shadow: 0 26px 70px rgba(20, 143, 176, 0.16);
}

.public-body--landing .library-hero-slide__shade {
    background:
        linear-gradient(90deg, rgba(8, 69, 98, 0.72) 0%, rgba(10, 107, 126, 0.56) 38%, rgba(37, 99, 235, 0.18) 100%),
        linear-gradient(180deg, rgba(16, 148, 171, 0.06) 0%, rgba(7, 89, 133, 0.22) 100%);
}

.public-body--landing .library-home__eyebrow,
.public-body--landing .library-hero-slide__index {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.public-body--landing .library-hero-slide__info {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.public-body--landing .library-hero-slider__nav {
    background: rgba(255, 255, 255, 0.18);
}

.public-body--landing .library-hero-slider__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.public-body--landing .library-hero-slider__dot {
    background: rgba(255, 255, 255, 0.24);
}

.public-body--landing .library-hero-slider__dot.is-active {
    background: linear-gradient(90deg, #5eead4 0%, #60a5fa 100%);
}

.public-body--landing .library-home-stat {
    background:
        linear-gradient(135deg, rgba(94, 234, 212, 0.16) 0%, rgba(96, 165, 250, 0.14) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.public-body--landing .library-home-search {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 38px rgba(20, 143, 176, 0.16);
}

.public-body--landing .library-home-search button {
    background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
}

.public-body--landing .library-home-action-pill {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fdff;
}

.form-check-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.25rem;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.checkbox-inline input {
    margin: 0;
}

.search-row--stacked {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 220px auto;
    gap: 0.75rem;
    align-items: center;
}

.resource-page {
    display: grid;
    gap: 2rem;
}

.resource-page__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
}

.resource-page__hero-copy,
.resource-page__stats,
.resource-featured,
.resource-directory,
.resource-spotlight {
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 248, 252, 0.9));
    box-shadow: 0 22px 48px rgba(19, 70, 96, 0.12);
}

.resource-page__hero-copy {
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
}

.resource-page__hero-copy:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(22, 198, 178, 0.16), transparent 45%), radial-gradient(circle at bottom left, rgba(43, 116, 224, 0.12), transparent 36%);
    pointer-events: none;
}

.resource-page__hero-copy > * {
    position: relative;
    z-index: 1;
}

.resource-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(10, 162, 166, 0.14);
    color: #0b7b84;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.resource-page__hero-copy h1 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
    color: #133f5c;
}

.resource-page__hero-copy p {
    margin: 0;
    max-width: 62ch;
    color: #4f6780;
    font-size: 1.02rem;
    line-height: 1.8;
}

.resource-page__stats {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    background: linear-gradient(145deg, rgba(15, 85, 112, 0.95), rgba(22, 152, 150, 0.9));
}

.resource-stat-card {
    padding: 1.25rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #effcff;
}

.resource-stat-card span {
    display: block;
    font-size: 0.92rem;
    opacity: 0.88;
}

.resource-stat-card strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 2rem;
    line-height: 1;
}

.resource-featured,
.resource-directory,
.resource-spotlight {
    padding: 1.65rem;
}

.resource-featured__grid,
.resource-grid {
    display: grid;
    gap: 1.1rem;
}

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

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

.resource-featured-card,
.resource-card {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 22px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 250, 0.78));
    border: 1px solid rgba(47, 121, 201, 0.14);
    box-shadow: 0 18px 36px rgba(24, 88, 118, 0.08);
}

.resource-featured-card h3,
.resource-card h3 {
    margin: 0;
    color: #143d5a;
    font-size: 1.18rem;
    line-height: 1.35;
}

.resource-featured-card p,
.resource-card p {
    margin: 0;
    color: #59728c;
    line-height: 1.7;
}

.resource-card__top,
.resource-featured-card__meta,
.resource-card__meta,
.resource-card__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.resource-featured-card__meta,
.resource-card__meta {
    justify-content: space-between;
}

.resource-card__meta span,
.resource-featured-card__meta span {
    color: #6b8097;
    font-size: 0.92rem;
}

.resource-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(9, 160, 169, 0.12);
    color: #0b7981;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.resource-chip--soft {
    background: rgba(43, 116, 224, 0.12);
    color: #275ca8;
}

.resource-featured-card--compact {
    min-height: 100%;
}

.resource-filter {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 220px auto;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.resource-filter__chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.resource-filter__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 113, 193, 0.18);
    background: rgba(255, 255, 255, 0.84);
    color: #40607c;
    text-decoration: none;
    font-weight: 600;
}

.resource-filter__chip.is-active,
.resource-filter__chip:hover {
    background: linear-gradient(135deg, #0fa8b5, #327bd5);
    border-color: transparent;
    color: #fff;
}

@media (max-width: 1180px) {
    .resource-page__hero,
    .resource-featured__grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .resource-filter,
    .search-row--stacked {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .resource-page__stats {
        grid-template-columns: 1fr;
    }
}

.resource-page {
    gap: 2.2rem;
}

.resource-page__hero {
    position: relative;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
}

.resource-page__hero-copy {
    padding: 2.5rem;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 36%),
        radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.2), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 247, 251, 0.92));
}

.resource-page__hero-copy h1 {
    max-width: 15ch;
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 3.4vw, 3.6rem);
}

.resource-page__hero-highlights {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.resource-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(53, 138, 208, 0.14);
    box-shadow: 0 12px 26px rgba(19, 84, 118, 0.08);
    color: #35536f;
    font-weight: 600;
}

.resource-hero-pill__icon,
.resource-card__icon,
.resource-featured-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(59, 130, 246, 0.16));
    color: #0e7483;
    flex-shrink: 0;
}

.resource-hero-pill__icon svg,
.resource-card__icon svg,
.resource-featured-card__icon svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.resource-page__hero-leader {
    display: inline-grid;
    gap: 0.28rem;
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(10, 162, 166, 0.9), rgba(50, 123, 213, 0.92));
    color: #fff;
    box-shadow: 0 16px 34px rgba(33, 104, 176, 0.2);
}

.resource-page__hero-leader-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.82;
}

.resource-page__hero-leader strong {
    font-size: 1.15rem;
    line-height: 1.3;
}

.resource-page__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.35rem;
    gap: 1rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(160deg, rgba(12, 92, 124, 0.96), rgba(18, 166, 160, 0.92) 52%, rgba(47, 120, 211, 0.94) 100%);
}

.resource-stat-card {
    min-height: 118px;
    display: grid;
    align-content: space-between;
    padding: 1.1rem;
    backdrop-filter: blur(8px);
}

.resource-stat-card span {
    font-size: 0.92rem;
    line-height: 1.35;
}

.resource-stat-card strong {
    font-size: 2.1rem;
    line-height: 1;
}

.resource-featured,
.resource-directory,
.resource-spotlight {
    padding: 1.85rem;
}

.resource-featured__grid,
.resource-grid {
    gap: 1.25rem;
}

.resource-featured-card,
.resource-card {
    position: relative;
    overflow: hidden;
    padding: 1.45rem;
    border-radius: 24px;
}

.resource-featured-card:before,
.resource-card:before {
    content: '';
    position: absolute;
    inset: auto -10% -28% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 193, 255, 0.16), transparent 62%);
    pointer-events: none;
}

.resource-featured-card > *,
.resource-card > * {
    position: relative;
    z-index: 1;
}

.resource-featured-card__top,
.resource-card__headline {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.resource-card__top {
    justify-content: space-between;
}

.resource-card__metrics {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.resource-metric-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.8rem;
    border-radius: 999px;
    background: rgba(17, 118, 199, 0.08);
    color: #2c587e;
    font-size: 0.88rem;
    font-weight: 700;
}

.resource-card__actions .btn,
.resource-featured-card__meta .btn {
    min-width: 122px;
    justify-content: center;
}

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

@media (max-width: 920px) {
    .resource-page__hero-copy h1 {
        max-width: none;
    }

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

@media (max-width: 640px) {
    .resource-page__hero-copy {
        padding: 1.65rem;
    }

    .resource-page__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.72rem;
        padding: 0.9rem;
    }

    .resource-featured,
    .resource-directory,
    .resource-spotlight {
        padding: 1.25rem;
    }

    .resource-stat-card {
        min-height: 92px;
        padding: 0.85rem 0.85rem 0.8rem;
        border-radius: 18px;
    }

    .resource-stat-card span {
        font-size: 0.82rem;
    }

    .resource-stat-card strong {
        font-size: 1.7rem;
    }
}

@media (max-width: 420px) {
    .resource-page__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        padding: 0.75rem;
    }

    .resource-stat-card {
        min-height: 82px;
        padding: 0.72rem;
        border-radius: 16px;
    }

    .resource-stat-card span {
        font-size: 0.76rem;
    }

    .resource-stat-card strong {
        font-size: 1.45rem;
    }
}

@media (max-width: 340px) {
    .resource-page__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .resource-page__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 0.7rem;
    }

    .resource-stat-card {
        min-height: 72px;
        padding: 0.65rem 0.6rem;
        border-radius: 15px;
    }

    .resource-stat-card span {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .resource-stat-card strong {
        font-size: 1.35rem;
    }
}

@media (max-width: 430px) {
    .resource-page__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.48rem;
        padding: 0.58rem;
    }

    .resource-stat-card {
        min-height: 64px;
        padding: 0.55rem 0.5rem;
        border-radius: 13px;
    }

    .resource-stat-card span {
        font-size: 0.65rem;
    }

    .resource-stat-card strong {
        font-size: 1.15rem;
    }
}

@media (max-width: 860px) {
    .public-header {
        padding: 14px 16px;
        gap: 10px;
    }

    .brand--stacked {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .brand--stacked .brand-dot {
        display: none;
    }

    .public-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .public-nav a {
        font-size: 15px;
        line-height: 1.2;
    }

    .public-nav__cta {
        padding: 8px 14px;
    }

    .resource-page__hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resource-page__hero-copy {
        padding: 1.4rem;
    }

    .resource-page__hero-copy h1 {
        max-width: none;
        font-size: clamp(1.9rem, 7vw, 2.5rem);
        line-height: 1.14;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .resource-page__hero-copy p {
        max-width: none;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .resource-page__hero-highlights {
        gap: 0.65rem;
    }

    .resource-hero-pill {
        width: 100%;
        padding: 0.7rem 0.85rem;
        border-radius: 16px;
        font-size: 0.88rem;
    }

    .resource-page__hero-leader {
        width: 100%;
        padding: 0.9rem 1rem;
    }

    .resource-page__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
        padding: 0.8rem;
    }

    .resource-stat-card {
        min-height: 88px;
        padding: 0.8rem;
        border-radius: 16px;
    }

    .resource-stat-card span {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .resource-stat-card strong {
        font-size: 1.55rem;
    }
}

@media (max-width: 520px) {
    .public-header {
        padding: 12px 14px;
    }

    .brand--stacked .brand-text {
        font-size: 0.98rem;
        line-height: 1.25;
    }

    .brand--stacked .brand-caption {
        font-size: 0.8rem;
    }

    .public-nav {
        gap: 8px 12px;
    }

    .public-nav a {
        font-size: 14px;
    }

    .resource-page {
        gap: 1.25rem;
    }

    .resource-page__hero-copy {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .resource-page__hero-copy h1 {
        font-size: clamp(1.65rem, 7.2vw, 2.05rem);
    }

    .resource-page__hero-copy p {
        font-size: 0.9rem;
    }

    .resource-page__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 0.65rem;
        border-radius: 22px;
    }

    .resource-stat-card {
        min-height: 74px;
        padding: 0.65rem 0.6rem;
        border-radius: 14px;
    }

    .resource-stat-card span {
        font-size: 0.72rem;
    }

    .resource-stat-card strong {
        font-size: 1.28rem;
    }
}

@media (max-width: 360px) {
    .resource-page__stats {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SIDEBAR TOGGLE / COLLAPSE
   TAMBAHKAN PALING BAWAH AGAR MENIMPA CSS LAMA
   ========================================================= */

.app-body {
    overflow-x: hidden;
}

.app-shell {
    display: block;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1100;
    transition: transform 0.28s ease;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-main {
    min-height: 100vh;
    margin-left: 260px;
    transition: margin-left 0.28s ease;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-left: 68px;
}

.app-content {
    padding: 24px;
}

.sidebar-toggle-btn {
    position: fixed;
    top: 10px;
    left: 274px; /* 260px sidebar + jarak 14px */
    z-index: 1200;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #0d6efd;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    padding: 0;
    transition: left 0.28s ease;
}
body.sidebar-collapsed .sidebar-toggle-btn {
    left: 10px;
}

.sidebar-toggle-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

body.sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .app-main {
    margin-left: 0;
}

@media (min-width: 992px) {
    .sidebar-overlay {
        display: none;
    }
}



/* override aturan lama yang bentrok */
@media (max-width: 960px) {
    .app-shell {
        flex-direction: initial !important;
    }

    .app-sidebar {
        width: 260px !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* =========================================
   TOPBAR FINAL + USER DROPDOWN
   Tambahkan paling bawah style.css
   ========================================= */

.app-topbar {
    height: 96px;
    background: #e9ecef;
    border-bottom: 1px solid #d7dee3;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 92px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
}

.topbar-brand-block {
    min-width: 0;
}

.topbar-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #17324b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #5f7387;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.sidebar-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1200;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: #0d6efd;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    padding: 0;
}

.sidebar-toggle-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.sidebar-collapsed .app-main {
    margin-left: 0;
}

body.sidebar-collapsed .sidebar-toggle-btn {
    left: 20px;
}

.topbar-user-dropdown {
    position: relative;
}

.topbar-user-btn {
    min-height: 52px;
    border: 1px solid #d3d9df;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 14px 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #17324b;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.topbar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #148fb0 0%, #2a74cf 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex: 0 0 38px;
}

.topbar-user-name {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7b8c;
}

.topbar-user-caret svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 8px;
    display: none;
    z-index: 1300;
}

.topbar-user-dropdown.is-open .topbar-user-menu {
    display: block;
}

.topbar-user-menu a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: #17324b;
    font-size: 14px;
    font-weight: 600;
}

.topbar-user-menu a:hover {
    background: #f3f6f9;
}

.topbar-user-menu a.is-logout {
    color: #dc3545;
}

.topbar-user-menu a.is-logout:hover {
    background: #fff1f2;
}

@media (max-width: 991.98px) {
    .app-topbar {
        height: auto;
        min-height: 84px;
        padding: 12px 16px 12px 86px;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
    }

    .topbar-title {
        font-size: 18px;
        white-space: normal;
    }

    .topbar-subtitle {
        font-size: 13px;
        white-space: normal;
    }

    .topbar-user-name {
        max-width: 110px;
    }

    .sidebar-toggle-btn {
        top: 14px;
        left: 14px;
        width: 50px;
        height: 50px;
    }
}

/* ===============================
   FIX POSISI TOMBOL DI SAMPING SIDEBAR
   =============================== */

/* kasih ruang untuk sidebar */
.app-main {
    margin-left: 260px;
}

/* header ikut geser */
.app-topbar {
    margin-left: 0;
}

/* tombol hamburger */
.sidebar-toggle-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* area kiri navbar */
.topbar-left {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 60px; /* ruang untuk tombol */
    gap: 12px;
}
/* =========================================
   NAVBAR + TOMBOL SIDEBAR DI KANAN SIDEBAR
   Tambahkan paling bawah style.css
   ========================================= */

.app-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.28s ease;
}

body.sidebar-collapsed .app-main {
    margin-left: 0;
}

.app-topbar {
    height: 74px;
    background: linear-gradient(180deg, #10a2a7 0%, #148fb0 48%, #2b79b8 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-brand-block {
    min-width: 0;
}

.topbar-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.sidebar-toggle-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: #1f6fff;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    padding: 0;
}

.sidebar-toggle-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-user-dropdown {
    position: relative;
}

.topbar-user-btn {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 14px 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.topbar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex: 0 0 36px;
}

.topbar-user-name {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
}

.topbar-user-caret svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 8px;
    display: none;
    z-index: 1300;
}

.topbar-user-dropdown.is-open .topbar-user-menu {
    display: block;
}

.topbar-user-menu a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: #17324b;
    font-size: 14px;
    font-weight: 600;
}

.topbar-user-menu a:hover {
    background: #f3f6f9;
}

.topbar-user-menu a.is-logout {
    color: #dc3545;
}

.topbar-user-menu a.is-logout:hover {
    background: #fff1f2;
}

@media (max-width: 991.98px) {
    .app-main {
        margin-left: 0;
    }

    .app-topbar {
        height: auto;
        min-height: 70px;
        padding: 10px 14px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .topbar-left {
        width: 100%;
    }

    .topbar-title {
        font-size: 18px;
        white-space: normal;
    }

    .topbar-subtitle {
        white-space: normal;
    }

    .topbar-user-name {
        max-width: 110px;
    }
}