/* ==========================================================================
   NAWASENA - Catalog-First & Interactive Explorer (Antislop Mode: DURING)
   Palette: Indigo Slate (#1e293b, #0f172a), Pearl Fog (#f8fafc), Steel (#2563eb)
   Energy: 2 | Rhythm: 3 (Split Layout & Asymmetric Hub) | Motion: 1 (Instant)
   ========================================================================== */

:root {
    --bg-canvas: #f8fafc;
    --bg-surface: #ffffff;
    --bg-panel: #f1f5f9;
    --bg-dark: #0f172a;
    
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #334155;
    
    --text-primary: #0f172a;
    --text-body: #1e293b;
    --text-muted: #475569;
    --text-light: #64748b;
    --text-inverse: #f8fafc;
    
    --accent-indigo: #1d4ed8;
    --accent-indigo-hover: #1e40af;
    --accent-subtle: #eff6ff;
    
    --status-success-bg: #ecfdf5;
    --status-success-text: #047857;
    --status-process-bg: #fffbeb;
    --status-process-text: #b45309;
    
    --font-heading: 'Newsreader', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    
    --container-max: 1240px;
}

/* Accessibility Utilities */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: clamp(1.85rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p {
    margin-bottom: 0.85rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

/* Accessibility Focus Outline */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-indigo);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.site-main {
    flex: 1 0 auto;
}

/* Slim Top Banner */
.portal-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #1e293b;
}

.portal-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.portal-bar-links {
    display: flex;
    gap: 1.25rem;
}

.portal-bar-links a {
    color: #94a3b8;
}

.portal-bar-links a:hover {
    color: #ffffff;
}

/* Clean Header Bar */
.explorer-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.explorer-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    gap: 1.5rem;
}

.explorer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    max-width: 55px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.explorer-brand:hover .brand-logo-img {
    transform: scale(1.05);
}

.brand-badge {
    width: 38px;
    height: 38px;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: var(--radius-sm);
    letter-spacing: -0.02em;
}

.hero-badge-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-title-main {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-title-sub {
    font-size: 0.725rem;
    color: var(--text-muted);
    font-weight: 500;
}

.explorer-nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.explorer-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}

.explorer-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-panel);
}

.explorer-nav-link.active {
    color: var(--accent-indigo);
    background: var(--accent-subtle);
}

.explorer-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.25;
    transition: all 0.15s ease;
}

.btn-indigo {
    background: var(--accent-indigo);
    color: #ffffff;
    border-color: var(--accent-indigo);
}

.btn-indigo:hover {
    background: var(--accent-indigo-hover);
    border-color: var(--accent-indigo-hover);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    color: var(--text-body);
    border-color: var(--border-medium);
}

.btn-outline:hover {
    background: var(--bg-panel);
    border-color: var(--border-dark);
}

.btn-dark {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.btn-dark:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.725rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.badge-success {
    background: var(--status-success-bg);
    color: var(--status-success-text);
    border: 1px solid #a7f3d0;
}

.badge-process {
    background: var(--status-process-bg);
    color: var(--status-process-text);
    border: 1px solid #fde68a;
}

/* UX: Interactive Catalog-First Split Hub */
.split-hub {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 2rem;
    padding: 2rem 0 4rem;
    align-items: start;
}

.hub-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}

.hub-sidebar h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.sidebar-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Filter Controls in Sidebar */
.filter-search-box {
    margin-bottom: 1.25rem;
}

.filter-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-body);
}

.filter-input:focus {
    background: #ffffff;
    border-color: var(--accent-indigo);
    outline: none;
}

.filter-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.filter-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.filter-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.filter-nav-item:hover {
    background: var(--bg-panel);
    color: var(--text-primary);
}

.filter-nav-item.active {
    background: var(--accent-subtle);
    color: var(--accent-indigo);
    font-weight: 600;
    border-color: #bfdbfe;
}

.filter-count {
    font-size: 0.75rem;
    background: #e2e8f0;
    color: var(--text-body);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.filter-nav-item.active .filter-count {
    background: #dbeafe;
    color: var(--accent-indigo);
}

/* Sidebar Live Stats */
.sidebar-stats-box {
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.825rem;
}

.stat-row-lbl {
    color: var(--text-muted);
}

.stat-row-val {
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}

/* Hub Main Area */
.hub-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hub-hero-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hub-hero-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.hub-hero-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
    max-width: 580px;
}

/* Editorial Showcase & Digital Archive Desk UX */
.showcase-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.75rem;
    padding: 2.25rem 0 2rem;
    align-items: stretch;
}

.spotlight-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: center;
}

.spotlight-thumb-wrap {
    height: 330px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.spotlight-thumb-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.spotlight-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-indigo);
    margin-bottom: 0.5rem;
}

.spotlight-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.spotlight-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.spotlight-desc {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Timeline Releases Panel */
.timeline-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.timeline-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--border-light);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-thumb {
    width: 48px;
    height: 64px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.timeline-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-meta {
    flex: 1;
    min-width: 0;
}

.timeline-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   LANDING PAGE SYSTEM - NAWASENA (Modern Academic Editorial & ISBN Desk)
   Palette: Indigo Slate (#0f172a, #1e293b), Pearl Fog (#f8fafc), Steel Indigo (#1d4ed8)
   Typography: Plus Jakarta Sans / Newsreader, Tabular Monospace for ISBNs
   ========================================================================== */

/* 1. Academic Editorial Hero */
.landing-hero {
    padding: 3.75rem 0 3.5rem;
    border-bottom: 1px solid var(--border-light);
    background: 
        linear-gradient(180deg, rgba(248, 250, 252, 0.93) 0%, rgba(255, 255, 255, 0.97) 100%),
        url('../images/hero-bg.jpg') center center / cover no-repeat;
    position: relative;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3.25rem;
    align-items: center;
}

.hero-left-pane {
    display: flex;
    flex-direction: column;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.15rem;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
}

.hero-pill-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.hero-main-title {
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 1.15rem;
}

.hero-sub-lead {
    font-size: 1.025rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 600px;
}

/* Integrated Hero Search Form */
.hero-search-bar {
    margin-bottom: 1.75rem;
    max-width: 620px;
}

.hero-search-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.4rem 0.35rem 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: all 0.15s ease;
}

.hero-search-input-wrap:focus-within {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.hero-search-icon {
    color: var(--text-light);
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.925rem;
    color: var(--text-primary);
    font-family: inherit;
    min-width: 0;
}

.hero-search-input::placeholder {
    color: var(--text-light);
    font-size: 0.875rem;
}

.hero-search-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-quick-tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    font-size: 0.775rem;
}

.quick-tags-label {
    color: var(--text-light);
    font-weight: 600;
    margin-right: 0.2rem;
}

.quick-tag-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.12s ease;
}

.quick-tag-chip:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
    background: var(--accent-subtle);
}

.quick-tag-chip.mono {
    font-family: monospace;
    font-size: 0.725rem;
    font-weight: 600;
}

.hero-cta-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Integrated Hero Metrics Bar */
.hero-metrics-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    box-shadow: var(--shadow-sm);
    max-width: 620px;
}

.hero-metric-item {
    flex: 1;
    text-align: center;
}

.hero-metric-item .num {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    font-family: monospace;
}

.hero-metric-item .lbl {
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 600;
    line-height: 1.25;
}

.hero-metric-divider {
    width: 1px;
    height: 36px;
    background: var(--border-light);
    margin: 0 0.65rem;
}

/* Right Hero Pane: Terminal / Live Registry Desk */
.hero-right-pane {
    display: flex;
    justify-content: center;
}

.hero-interactive-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.interactive-card-header {
    background: #0f172a;
    color: #ffffff;
    padding: 1.15rem 1.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
}

.card-header-label {
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.card-header-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.interactive-card-body {
    padding: 1.35rem;
}

.desk-instructions {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.9rem;
}

.desk-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.desk-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    background: #ffffff;
}

.desk-input:focus {
    border-color: var(--accent-indigo);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.desk-submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
}

/* Live Verified Snippet in Hero */
.hero-live-verified {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin-bottom: 1rem;
}

.live-verified-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
}

.live-verified-title {
    color: var(--text-light);
    font-weight: 600;
}

.live-verified-tag {
    color: var(--status-success-text);
    background: var(--status-success-bg);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    font-size: 0.675rem;
    font-weight: 700;
    border: 1px solid rgba(4, 120, 87, 0.2);
}

.live-book-row {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.live-book-thumb {
    width: 44px;
    height: 60px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}

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

.live-book-info {
    flex: 1;
    min-width: 0;
}

.live-book-title-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.live-book-title-link:hover {
    color: var(--accent-indigo);
}

.live-book-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.live-book-isbn {
    font-size: 0.725rem;
    font-family: monospace;
    color: var(--accent-indigo);
    font-weight: 600;
    margin-top: 3px;
}

.desk-card-footer {
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

.desk-footer-org {
    font-weight: 700;
    color: var(--text-body);
}

/* ==========================================================================
   2. CURATED ACADEMIC COLLECTION (Interactive Showcase Grid)
   ========================================================================== */
.curated-showcase-section {
    padding: 4.25rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.showcase-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.showcase-tabs-pillbar {
    display: inline-flex;
    background: #f1f5f9;
    padding: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    gap: 0.35rem;
}

.showcase-tab-btn {
    background: transparent;
    border: none;
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.showcase-tab-btn:hover {
    color: var(--text-primary);
}

.showcase-tab-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.tab-count-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    background: #e2e8f0;
    color: var(--text-body);
}

.showcase-tab-btn.active .tab-count-badge {
    background: var(--accent-subtle);
    color: var(--accent-indigo);
}

.curated-tab-panel {
    display: none;
}

.curated-tab-panel.active {
    display: block;
}

/* Modern Editorial Book Grid */
.curated-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.editorial-book-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.18s ease;
}

.editorial-book-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

.book-card-cover-wrap {
    height: 220px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.25rem;
    overflow: hidden;
}

.book-card-cover-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease;
}

.editorial-book-card:hover .book-card-cover-img {
    transform: scale(1.03);
}

.book-card-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.book-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.book-card-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    gap: 0.5rem;
}

.book-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.book-card-title a:hover {
    color: var(--accent-indigo);
}

.book-card-author {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-card-date {
    font-size: 0.775rem;
    color: var(--text-light);
}

/* ==========================================================================
   3. EDITORIAL SPOTLIGHT & TIMELINE RELEASES
   ========================================================================== */
.spotlight-showcase-section {
    padding: 4.5rem 0;
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-light);
}

.showcase-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.spotlight-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 2rem;
    align-items: center;
}

.spotlight-thumb-wrap {
    height: 300px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    position: relative;
    padding: 0.75rem;
}

.spotlight-thumb-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.spotlight-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.spotlight-body {
    display: flex;
    flex-direction: column;
}

.spotlight-meta-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.spotlight-title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.spotlight-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.spotlight-title a:hover {
    color: var(--accent-indigo);
}

.spotlight-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.spotlight-desc {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Timeline Releases */
.timeline-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.15rem;
}

.timeline-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.timeline-subtitle-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.timeline-item {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--border-light);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-thumb {
    width: 44px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.timeline-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-meta {
    flex: 1;
    min-width: 0;
}

.timeline-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-item-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.timeline-item-title a:hover {
    color: var(--accent-indigo);
}

.timeline-item-author {
    font-size: 0.775rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-item-isbn {
    font-size: 0.7rem;
    font-family: monospace;
    color: var(--text-light);
    margin-top: 2px;
}

.timeline-empty-notice {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeline-footer {
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-footer-lead {
    font-size: 0.775rem;
    color: var(--text-muted);
}

.timeline-footer-link {
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--accent-indigo);
    text-decoration: none;
}

.timeline-footer-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   4. DUAL-TRACK INTERACTIVE SECTION
   ========================================================================== */
.dual-track-section {
    padding: 4.5rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.section-lead-block {
    max-width: 680px;
    margin-bottom: 2.25rem;
}

.section-lead-block.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-indigo);
    margin-bottom: 0.4rem;
}

.section-heading {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.track-tabs-container {
    margin-bottom: 2.5rem;
}

.track-tabs-nav {
    display: inline-flex;
    background: #f1f5f9;
    padding: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    gap: 0.35rem;
}

.track-tab-btn {
    background: transparent;
    border: none;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.track-tab-btn:hover {
    color: var(--text-primary);
}

.track-tab-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.track-content-panel {
    display: none;
}

.track-content-panel.active {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
}

.track-panel-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.track-panel-lead {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.track-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.track-feature-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.track-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    color: var(--accent-indigo);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.track-feature-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.track-feature-content p {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.track-actions-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.workflow-summary-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.workflow-card-top {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.workflow-badge {
    display: inline-block;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-indigo);
    background: #eff6ff;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
}

.workflow-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.workflow-steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.workflow-step-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.workflow-step-row .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.workflow-step-row .step-num.mono {
    font-family: monospace;
    font-size: 0.725rem;
    background: #1e293b;
    border-radius: var(--radius-sm);
}

.workflow-step-row .step-desc strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.workflow-step-row .step-desc span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.workflow-card-bottom {
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border-light);
}

.bottom-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-indigo);
    display: block;
}

/* ==========================================================================
   5. PILLARS / INTEGRITAS AKADEMIK
   ========================================================================== */
.pillars-section {
    padding: 4.5rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.pillar-card {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--accent-indigo);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.pillar-num {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: monospace;
    color: var(--accent-indigo);
    line-height: 1;
    margin-bottom: 1rem;
}

.pillar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.pillar-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   6. CTA BANNER SECTION
   ========================================================================== */
.cta-banner-section {
    padding: 3.5rem 0;
    background: var(--bg-canvas);
}

.isbn-lookup-card {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(30, 41, 59, 0.88) 100%),
        url('../images/cta-bg.jpg') center center / cover no-repeat;
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 3rem 2.75rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-heading {
    color: #ffffff;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.cta-subtext {
    color: #94a3b8;
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.cta-note {
    font-size: 0.75rem;
    color: #64748b;
}

.cta-actions-group {
    display: flex;
    gap: 0.85rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #475569;
}

.cta-btn-secondary:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #64748b;
}

/* Responsive Rules for Landing Page */
@media (max-width: 992px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .track-content-panel.active {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .isbn-lookup-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .cta-actions-group {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-search-input-wrap {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .hero-search-icon {
        display: none;
    }

    .hero-search-submit {
        width: 100%;
        justify-content: center;
    }

    .hero-metrics-bar {
        flex-direction: column;
        gap: 0.85rem;
    }

    .hero-metric-divider {
        display: none;
    }

    .track-tabs-nav,
    .showcase-tabs-pillbar {
        flex-direction: column;
        width: 100%;
    }

    .track-tab-btn,
    .showcase-tab-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .spotlight-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .spotlight-thumb-wrap {
        height: 240px;
        margin: 0 auto;
        width: 170px;
    }

    .spotlight-meta-tags,
    .spotlight-actions {
        justify-content: center;
    }
}



/* Books Grid Explorer */
.books-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.book-card-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.book-card-item:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.book-thumb-wrap {
    height: 190px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.book-thumb-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.book-thumb-fallback {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

.book-thumb-fallback .title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.book-thumb-fallback .label {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.book-meta-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.book-top-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.book-isbn-mono {
    font-family: monospace;
    font-size: 0.725rem;
    color: var(--text-light);
}

.book-heading-link {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.book-author-text {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.book-bottom-action {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Empty State */
.empty-box {
    background: #ffffff;
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-box h3 {
    margin-bottom: 0.5rem;
}

.empty-box p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* Forms & Inputs */
.form-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    background: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-body);
}

.form-input:focus {
    border-color: var(--accent-indigo);
    outline: none;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.alert-success {
    background: var(--status-success-bg);
    color: var(--status-success-text);
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer Minimal */
.portal-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

.footer-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1e293b;
}

.footer-copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    font-size: 0.775rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .split-hub {
        grid-template-columns: 1fr;
    }
    
    .hub-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .explorer-nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow-md);
        gap: 0.5rem;
    }
    
    .explorer-nav-links.is-open {
        display: flex;
    }
    
    .portal-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-nav-row, .footer-copyright-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   ADMIN PANEL INTERFACE - NAWASENA
   Palette: Indigo Slate & Pearl Fog
   ========================================================================== */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-sidebar {
    width: 250px;
    background: #0f172a;
    color: #94a3b8;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: margin-left 0.25s ease;
    position: relative;
    z-index: 50;
    border-right: 1px solid #1e293b;
}

@media (min-width: 869px) {
    .admin-wrapper.sidebar-collapsed .admin-sidebar {
        margin-left: -250px;
    }
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1.25rem;
}

.admin-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 1;
}

.admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.admin-nav-item a:hover {
    background: #1e293b;
    color: #ffffff;
}

.admin-nav-item.active a {
    background: var(--accent-indigo);
    color: #ffffff;
}

.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    background: #ffffff;
    height: 64px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-toggle-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--border-medium);
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    transition: all 0.15s ease;
}

.sidebar-toggle-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.admin-content {
    padding: 1.75rem;
    flex-grow: 1;
}

.admin-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
}

/* Admin Table */
.table-responsive {
    overflow-x: auto;
}

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

.table-custom th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.table-custom td {
    padding: 0.95rem 1rem;
    font-size: 0.875rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover td {
    background: #f8fafc;
}

.table-book-cover {
    width: 40px;
    height: 52px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

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

/* Admin Form Controls */
.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    background: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-body);
}

.form-control:focus {
    border-color: var(--accent-indigo);
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

.form-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Button Variants in Admin */
.btn-emerald {
    background: #047857;
    color: #ffffff;
    border-color: #047857;
}

.btn-emerald:hover {
    background: #065f46;
    border-color: #065f46;
    color: #ffffff;
}

.btn-primary {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

.btn-primary:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

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

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* Mobile Sidebar Off-canvas */
@media (max-width: 868px) {
    .admin-wrapper {
        position: relative;
        overflow-x: hidden;
    }

    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        bottom: 0 !important;
        width: 250px !important;
        height: 100vh !important;
        z-index: 99999 !important;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.5) !important;
        transition: left 0.25s ease !important;
    }

    .admin-wrapper.sidebar-open .admin-sidebar {
        left: 0 !important;
    }

    .admin-sidebar-backdrop {
        display: none;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(15, 23, 42, 0.6) !important;
        z-index: 99990 !important;
    }

    .admin-wrapper.sidebar-open .admin-sidebar-backdrop {
        display: block !important;
    }

    .sidebar-close-btn {
        display: inline-flex !important;
    }

    .admin-topbar {
        padding: 0 1rem;
    }

    .admin-content {
        padding: 1.25rem 1rem;
    }

    .topbar-text-hide {
        display: none;
    }
}

/* ==========================================================================
   LOGIN SCREEN SYSTEM - SPLIT FRAME EDITORIAL
   ========================================================================== */

.login-viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 1.5rem;
}

.login-split-card {
    width: 100%;
    max-width: 920px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
}

.login-aside-brand {
    background: #0f172a;
    color: #f8fafc;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid #1e293b;
}

.login-brand-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-brand-logo {
    width: 40px;
    height: 40px;
    background: var(--accent-indigo);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    letter-spacing: -0.02em;
}

.login-editorial-quote {
    margin: 2.5rem 0;
}

.login-editorial-quote h2 {
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.login-editorial-quote p {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.login-security-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
}

.login-form-pane {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header {
    margin-bottom: 2rem;
}

.login-form-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.login-form-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.input-password-wrapper {
    position: relative;
}

.toggle-password-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.toggle-password-btn:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .login-split-card {
        grid-template-columns: 1fr;
    }

    .login-aside-brand {
        display: none;
    }

    .login-form-pane {
        padding: 2.25rem 1.5rem;
    }
}
