:root {
    --bg: #f5f3ff;
    --card: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #ddd6fe;
    --accent: #7c3aed;
    --accent-dark: #5b21b6;
    --accent-soft: #ede9fe;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 10px 30px rgba(91, 33, 182, 0.12);
    --radius: 22px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: linear-gradient(180deg, #faf5ff 0%, #f5f3ff 55%, #eef2ff 100%);
    color: var(--ink);
}
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 310px 1fr;
}
.sidebar {
    padding: 24px;
    border-right: 1px solid rgba(124, 58, 237, 0.15);
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.brand-card, .panel, .stat-card, .feature-card, .hero {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.brand-card {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    padding: 18px;
    margin-bottom: 22px;
}
.brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 55%, #c084fc 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
}
.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-dark);
    font-weight: 700;
}
.brand-card h1, .topbar h2, .hero h3, .panel h3, .feature-card h4 { margin: 6px 0; }
.brand-card p, .topbar p, .lead, .stack-item p, .stat-note { color: var(--muted); }
.nav-group { margin-bottom: 18px; }
.nav-group-title {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid rgba(124, 58, 237, 0.08);
}
.nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: rgba(124, 58, 237, 0.22);
}
.nav-badge, .badge, .pill, .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.nav-badge {
    min-width: 28px;
    padding: 4px 8px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.main-panel { padding: 26px; }
.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.topbar-actions, .hero-actions, .pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: #fff;
}
.btn-soft {
    background: #fff;
    color: var(--accent-dark);
    border-color: rgba(124, 58, 237, 0.18);
}
.hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(139,92,246,0.92));
    color: #fff;
}
.hero p { color: rgba(255,255,255,0.88); }
.chip {
    padding: 6px 10px;
    background: rgba(255,255,255,0.16);
    color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.stats-grid.compact { margin-top: 6px; }
.stat-card { padding: 18px; }
.stat-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}
.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin: 10px 0 6px;
    color: var(--accent-dark);
}
.panel-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}
.panel-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { padding: 20px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.link-action {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
}
.table-wrap {
    overflow: auto;
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 18px;
}
.berkah-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.berkah-table th {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    font-size: 13px;
}
.berkah-table td {
    padding: 12px 14px;
    border-top: 1px solid #ede9fe;
    border-right: 1px solid #ede9fe;
    vertical-align: top;
}
.berkah-table td:last-child, .berkah-table th:last-child { border-right: none; }
.stack-list { display: grid; gap: 12px; }
.stack-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
}
.stack-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 13px;
}
.badge { padding: 6px 10px; }
.badge-warning { background: #fff7ed; color: var(--warning); }
.badge-success { background: #ecfdf5; color: var(--success); }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.feature-card { padding: 18px; }
.feature-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}
.pill {
    padding: 8px 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}
@media (max-width: 1200px) {
    .app-shell, .panel-grid-2, .feature-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        height: auto;
    }
    .hero, .topbar, .stack-item {
        flex-direction: column;
    }
}


.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.mini-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-card, .preview-card, .trace-card, .subpanel {
    background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: 18px;
    padding: 16px;
}
.mini-card p, .trace-card p, .timeline-item p, .preview-card p, .form-field small {
    color: var(--muted);
    margin-bottom: 0;
}
.crud-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}
.form-field input {
    width: 100%;
    border: 2px solid rgba(124,58,237,0.18);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
}
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.timeline-list {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}
.timeline-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
    border: 1px solid rgba(124,58,237,0.12);
}
.timeline-time, .trace-step, .preview-subject, .subpanel-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-dark);
}
.trace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.preview-card ul {
    margin: 12px 0 0 18px;
    color: var(--muted);
}
.berkah-table-sm th,
.berkah-table-sm td {
    font-size: 12px;
    padding: 10px 12px;
}
.subpanel {
    margin-top: 14px;
}
@media (max-width: 1200px) {
    .mini-grid,
    .trace-grid,
    .crud-form {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        grid-template-columns: 1fr;
    }
}

.entity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.entity-grid-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.entity-card {
    display: block;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow);
}
.entity-card:hover, .entity-card.active {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.28);
    background: linear-gradient(180deg, #faf5ff 0%, #ede9fe 100%);
}
.entity-card p { color: var(--muted); margin-bottom: 0; }
.link-inline {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-dark);
    font-weight: 700;
}
.detail-form-stack { display: grid; gap: 14px; }
.form-section-card {
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
    padding: 16px;
}
.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent-dark);
    font-weight: 800;
    margin-bottom: 12px;
}
.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.checklist-list { display: grid; gap: 12px; }
.check-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 16px;
    background: #fff;
}
.check-item p { margin: 0; color: var(--ink); }
.check-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800;
    flex: 0 0 28px;
}
.audit-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.audit-card {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ede9fe 0%, #faf5ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.10);
}
.audit-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}
@media (max-width: 1200px) {
    .entity-grid, .entity-grid-compact, .form-grid-two, .audit-strip { grid-template-columns: 1fr; }
}


.entity-card-wrap { display: grid; gap: 8px; }
.entity-card-action {
    display: inline-flex;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    color: var(--accent-dark);
    background: #fff;
    border: 1px solid rgba(124, 58, 237, 0.18);
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-xs { padding: 8px 12px; border-radius: 12px; font-size: 12px; }
.info-tile {
    background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 6px;
}
.info-tile span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.top-gap { margin-top: 16px; }
.audit-strip-stack { display: grid; gap: 12px; }
textarea {
    width: 100%;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    resize: vertical;
    background: #fff;
    color: var(--ink);
}


.entity-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.entity-card-action-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: #fff;
}
.filter-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(245,243,255,0.94) 100%);
}
.filter-chip-grid,
.quick-action-grid {
    display: grid;
    gap: 14px;
}
.filter-chip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.filter-chip-card,
.quick-action-card {
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.07);
}
.filter-chip-card strong,
.quick-action-card strong {
    display: block;
    margin-top: 6px;
}
.filter-chip-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.08em;
}
.quick-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quick-action-card {
    text-decoration: none;
    color: var(--ink);
}
.quick-action-card p {
    margin: 8px 0 0;
    color: var(--muted);
}
@media (max-width: 1100px) {
    .filter-chip-grid,
    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .app-shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    }
    .stats-grid,
    .panel-grid-2,
    .filter-chip-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
}

.panel-head-tight {
    align-items: flex-start;
}
.master-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
    gap: 16px;
}
.master-form-main,
.master-form-side {
    display: grid;
    gap: 16px;
}
.form-entity-panel {
    padding: 22px;
}
.form-grid-entity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.form-field.span-2 {
    grid-column: span 2;
}
.form-field {
    display: grid;
    gap: 8px;
}
.form-field > span {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-dark);
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border-radius: 16px;
    border: 2px solid rgba(124, 58, 237, 0.16);
    background: #fff;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.04);
}
.form-field textarea {
    resize: vertical;
    min-height: 110px;
}
.form-field small {
    color: var(--muted);
    line-height: 1.45;
}
.choice-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 2px solid rgba(124, 58, 237, 0.12);
    background: #fff;
}
.choice-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    background: #f3f4f6;
    color: var(--muted);
}
.choice-pill.active {
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 14px;
    width: fit-content;
    background: #f3f4f6;
    color: var(--muted);
    border: 1px solid rgba(124, 58, 237, 0.12);
}
.toggle-row.active {
    background: #ecfdf5;
    color: var(--success);
    border-color: rgba(5, 150, 105, 0.2);
}
.toggle-knob {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.85;
}
.sticky-actions {
    position: sticky;
    bottom: 12px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    padding: 14px;
    backdrop-filter: blur(10px);
}
.aside-panel {
    padding: 20px;
}
.compact-item {
    padding: 14px 16px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}
.compact-item strong {
    line-height: 1.5;
}
@media (max-width: 1080px) {
    .master-form-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .form-grid-entity {
        grid-template-columns: 1fr;
    }
    .form-field.span-2 {
        grid-column: span 1;
    }
}


.subdata-table td,
.subdata-table th {
    white-space: nowrap;
}

.panel-grid .panel .table-wrap {
    overflow-x: auto;
}

@media (max-width: 1100px) {
    .subdata-table td,
    .subdata-table th {
        white-space: normal;
    }
}

.panel-head-stack {
    align-items: flex-start;
    gap: 14px;
}
.section-note {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 68ch;
}
.subdata-actions,
.subdata-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.subdata-footer-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(124, 58, 237, 0.18);
}
.inline-link-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
}
.inline-link-action:hover {
    background: rgba(124, 58, 237, 0.14);
}
@media (max-width: 720px) {
    .subdata-actions,
    .subdata-footer-actions {
        width: 100%;
    }
    .subdata-actions .btn,
    .subdata-footer-actions .inline-link-action {
        justify-content: center;
        width: 100%;
    }
}

.compact-table-wrap {
    border-radius: 16px;
}

.compact-table td {
    font-size: 13px;
}

.master-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.master-form-main,
.master-form-side {
    display: grid;
    gap: 18px;
}

.detail-form-stack {
    display: grid;
    gap: 18px;
}

.form-grid-entity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field span {
    font-size: 13px;
    font-weight: 700;
    color: #4338ca;
}

.form-field small {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 2px solid #d8d5ff;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 14px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.form-field textarea {
    resize: vertical;
    min-height: 108px;
}

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

.choice-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    padding: 10px;
    border: 2px solid #d8d5ff;
    border-radius: 14px;
    background: #ffffff;
}

.choice-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f0ff;
    color: #5b21b6;
    font-size: 13px;
    font-weight: 700;
}

.choice-pill.active {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    color: #ffffff;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid #d8d5ff;
    border-radius: 14px;
    background: #ffffff;
    color: #374151;
}

.toggle-row.active {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #4c1d95;
}

.toggle-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c4b5fd;
    display: inline-block;
}

.toggle-row.active .toggle-knob {
    background: #7c3aed;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding-top: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 32%);
}

.aside-panel .checklist-list {
    display: grid;
    gap: 10px;
}

.check-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.check-dot {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.check-item p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.entity-grid-compact {
    margin-top: 14px;
}

@media (max-width: 1080px) {
    .master-form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .form-grid-entity {
        grid-template-columns: 1fr;
    }

    .form-field.span-2 {
        grid-column: span 1;
    }
}
.compact-card p { margin: 0; color: #4b5563; line-height: 1.5; }

/* TOP NAV */

.topnav{
display:flex;
align-items:center;
justify-content:space-between;
padding:12px 22px;
background:#fff;
border-bottom:1px solid rgba(124,58,237,0.15);
position:sticky;
top:0;
z-index:50;
}

.topnav-left{
display:flex;
align-items:center;
gap:28px;
}

.brand-mini{
display:flex;
align-items:center;
gap:10px;
}

.brand-meta strong{
display:block;
font-size:14px;
}

.topnav-menu{
display:flex;
gap:10px;
}

.topnav-group{
position:relative;
}

.topnav-group-btn{
border:none;
background:none;
font-weight:700;
cursor:pointer;
padding:10px 12px;
border-radius:12px;
}

.topnav-group-btn:hover{
background:#f5f3ff;
}

.topnav-dropdown{
display:none;
position:absolute;
top:40px;
left:0;
background:#fff;
border:1px solid rgba(124,58,237,0.15);
border-radius:14px;
padding:10px;
min-width:200px;
box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

.topnav-group:hover .topnav-dropdown{
display:block;
}

.topnav-link{
display:flex;
justify-content:space-between;
padding:10px 12px;
text-decoration:none;
color:#1f2937;
border-radius:10px;
}

.topnav-link:hover{
background:#f5f3ff;
}

.topnav-right{
display:flex;
gap:10px;
}

.page-header{
margin:22px 0;
}

.main-panel{
padding:26px;
}

/* =========================
   TOP NAV V2
========================= */

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

.sidebar {
    display: none !important;
}

.topnav {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 22px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 10px 24px rgba(91, 33, 182, 0.06);
}

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

.brand-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

.brand-mini .brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 24px;
    flex: 0 0 52px;
}

.brand-meta {
    display: grid;
    gap: 2px;
}

.brand-meta strong {
    font-size: 15px;
    line-height: 1.2;
}

.brand-meta small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

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

.topnav-group {
    position: relative;
}

.topnav-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.topnav-group-btn:hover {
    background: #f5f3ff;
    border-color: rgba(124, 58, 237, 0.22);
}

.topnav-caret {
    font-size: 11px;
    color: var(--accent-dark);
}

.topnav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 10px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 18px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 36px rgba(91, 33, 182, 0.12);
}

.topnav-group:hover .topnav-dropdown {
    display: grid;
    gap: 6px;
}

.topnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    transition: 0.18s ease;
}

.topnav-link:hover,
.topnav-link.active {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: var(--accent-dark);
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
}

.main-panel {
    padding: 22px 24px 28px;
}

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

.page-header-compact {
    padding: 2px 2px 4px;
}

.page-header-copy h2 {
    margin: 6px 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.page-header-copy p {
    margin: 0;
    color: var(--muted);
    max-width: 78ch;
}

.page-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.page-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.page-chip.soft {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

@media (max-width: 1180px) {
    .topnav {
        flex-direction: column;
        align-items: stretch;
    }

    .topnav-left,
    .topnav-right {
        width: 100%;
    }

    .topnav-left {
        flex-direction: column;
        align-items: stretch;
    }

    .topnav-menu {
        width: 100%;
    }

    .topnav-group {
        flex: 1 1 auto;
    }

    .topnav-group-btn {
        width: 100%;
        justify-content: space-between;
    }

    .topnav-dropdown {
        position: static;
        margin-top: 8px;
        min-width: 100%;
    }

    .topnav-right {
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .main-panel {
        padding: 18px 16px 24px;
    }

    .page-header {
        flex-direction: column;
    }

    .page-header-copy h2 {
        font-size: 24px;
    }

    .topnav-right {
        justify-content: stretch;
    }

    .topnav-right .btn {
        flex: 1 1 auto;
    }
}

/* =========================
   MEGA MENU NAVIGATION
========================= */

.mega-group {
    position: relative;
}

.mega-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 620px;
    max-width: 760px;
    padding: 16px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 38px rgba(91, 33, 182, 0.14);
}

.mega-group:hover .mega-dropdown {
    display: block;
}

.mega-dropdown-head {
    padding: 4px 4px 12px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.10);
    margin-bottom: 14px;
}

.mega-dropdown-head strong {
    display: block;
    font-size: 18px;
    color: var(--accent-dark);
    margin-top: 4px;
}

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

.mega-link {
    display: block;
    padding: 14px 14px 12px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid rgba(124, 58, 237, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    transition: 0.18s ease;
}

.mega-link:hover,
.mega-link.active {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.22);
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
}

.mega-link-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mega-link-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-dark);
}

.mega-link-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .mega-dropdown {
        position: static;
        min-width: 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    .mega-dropdown-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MEGA MENU HOVER STABILITY
========================= */

.topnav-menu {
    overflow: visible;
}

.mega-group {
    position: relative;
    padding-bottom: 14px; /* membuat jembatan hover ke dropdown */
    margin-bottom: -14px;
}

.mega-group::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px; /* hover bridge */
    background: transparent;
}

.mega-dropdown {
    display: block;              /* jangan pakai display none agar transisi halus */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s linear 0.18s;
}

/* tampil saat hover parent ATAU saat hover dropdown itu sendiri */
.mega-group:hover .mega-dropdown,
.mega-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s linear 0s;
}

/* tombol grup juga dibuat lebih stabil */
.topnav-group-btn {
    position: relative;
    z-index: 2;
}

/* sedikit delay visual agar terasa lebih tenang */
.mega-link,
.topnav-group-btn {
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

/* versi mobile/tablet: dropdown tetap statis dan tidak pakai hover bridge */
@media (max-width: 1180px) {
    .mega-group {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .mega-group::after {
        display: none;
    }

    .mega-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: none;
        transition: none;
    }

    .mega-group:hover .mega-dropdown {
        display: block;
    }
}

/* =========================
   MEGA MENU CLICK TO OPEN
========================= */

.topnav-menu {
    overflow: visible;
}

.mega-group {
    position: relative;
}

.topnav-group-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.topnav-group-btn:hover,
.mega-group.open .topnav-group-btn {
    background: #f5f3ff;
    border-color: rgba(124, 58, 237, 0.22);
    color: var(--accent-dark);
}

.topnav-caret {
    font-size: 11px;
    color: var(--accent-dark);
    transition: transform 0.18s ease;
}

.mega-group.open .topnav-caret {
    transform: rotate(180deg);
}

.mega-dropdown {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 620px;
    max-width: 760px;
    padding: 16px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 38px rgba(91, 33, 182, 0.14);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s linear 0.18s;
}

.mega-group.open .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s linear 0s;
}

.mega-dropdown-head {
    padding: 4px 4px 12px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.10);
    margin-bottom: 14px;
}

.mega-dropdown-head strong {
    display: block;
    font-size: 18px;
    color: var(--accent-dark);
    margin-top: 4px;
}

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

.mega-link {
    display: block;
    padding: 14px 14px 12px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid rgba(124, 58, 237, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    transition: 0.18s ease;
}

.mega-link:hover,
.mega-link.active {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.22);
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
}

.mega-link-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mega-link-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-dark);
}

.mega-link-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .mega-dropdown {
        position: static;
        min-width: 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    .mega-dropdown-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topnav-menu {
        width: 100%;
    }

    .mega-group {
        width: 100%;
    }

    .topnav-group-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================
   BREADCRUMB + CONTEXT BAR
========================= */

.page-header {
    display: grid;
    gap: 14px;
}

.page-breadcrumb-wrap {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-link:hover {
    color: var(--accent-dark);
}

.breadcrumb-current {
    color: var(--accent-dark);
    font-weight: 800;
}

.breadcrumb-sep {
    color: #a78bfa;
    font-weight: 700;
}

.page-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

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

.context-item {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    box-shadow: 0 8px 18px rgba(91, 33, 182, 0.05);
}

.context-item span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
}

.context-item strong {
    display: block;
    font-size: 14px;
    color: var(--accent-dark);
    line-height: 1.3;
}

@media (max-width: 980px) {
    .page-header-main {
        flex-direction: column;
    }

    .context-bar {
        grid-template-columns: 1fr;
    }
}
/* =========================
   AUTH PAGE
========================= */

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 30%),
        linear-gradient(180deg, #faf5ff 0%, #f5f3ff 55%, #eef2ff 100%);
}

.auth-shell {
    min-height: 100vh;
    padding: 36px;
    display: grid;
    place-items: center;
}

.auth-stage {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
    gap: 28px;
    align-items: stretch;
}

.auth-copy-card,
.auth-form-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 28px;
    box-shadow: 0 22px 48px rgba(91, 33, 182, 0.12);
    backdrop-filter: blur(12px);
}

.auth-copy-card {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-copy-card h1 {
    margin: 10px 0 14px;
    font-size: 40px;
    line-height: 1.08;
    color: var(--accent-dark);
}

.auth-copy-text {
    margin: 0;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
}

.auth-pill-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}

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

.auth-stat-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.auth-stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 26px;
    color: var(--accent-dark);
}

.auth-stat-card span {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.auth-form-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-head h2 {
    margin: 8px 0 10px;
    font-size: 28px;
    color: var(--ink);
}

.auth-form-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: rgba(254, 242, 242, 0.92);
    color: #991b1b;
    font-size: 14px;
    font-weight: 600;
}

.auth-form {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field span {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-field input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 2px solid rgba(124, 58, 237, 0.16);
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-field input:focus {
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
    transform: translateY(-1px);
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    border: 0;
    cursor: pointer;
}

.auth-footnote {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(237, 233, 254, 0.65);
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: var(--muted);
    line-height: 1.6;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(124, 58, 237, 0.14);
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.08);
}

.account-chip-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.account-chip-meta {
    display: grid;
    gap: 2px;
}

.account-chip-meta strong {
    font-size: 12px;
    color: var(--ink);
    line-height: 1.2;
}

.account-chip-meta span {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.2;
}

.logout-form {
    margin: 0;
}

.logout-form .btn {
    cursor: pointer;
    background: #fff;
}

@media (max-width: 980px) {
    .auth-stage {
        grid-template-columns: 1fr;
    }

    .auth-copy-card h1 {
        font-size: 32px;
    }

    .auth-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 18px;
    }

    .auth-copy-card,
    .auth-form-card {
        padding: 22px;
        border-radius: 22px;
    }

    .auth-copy-card h1 {
        font-size: 28px;
    }
}


/* =========================
   HEADER COMPACT TUNING
========================= */

.topnav {
    gap: 14px;
}

.topnav-left {
    flex: 1 1 auto;
}

.topnav-menu {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    row-gap: 8px;
}

.topnav-right {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.topnav-group-btn,
.btn-sm {
    white-space: nowrap;
}

@media (max-width: 1440px) {
    .topnav {
        padding: 10px 14px;
        gap: 12px;
    }

    .topnav-left {
        gap: 14px;
    }

    .brand-mini .brand-logo {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border-radius: 14px;
        font-size: 22px;
    }

    .brand-meta strong {
        font-size: 14px;
    }

    .brand-meta small {
        max-width: 180px;
        font-size: 11px;
    }

    .eyebrow {
        font-size: 11px;
    }

    .topnav-group-btn,
    .btn-sm {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 12px;
        border-radius: 12px;
    }

    .topnav-caret {
        font-size: 10px;
    }

    .account-chip {
        gap: 8px;
        padding: 6px 8px;
        border-radius: 14px;
    }

    .account-chip-avatar {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 11px;
    }

    .account-chip-meta strong {
        font-size: 11px;
    }

    .account-chip-meta span {
        display: none;
    }

    .nav-badge {
        min-width: 24px;
        padding: 3px 7px;
        font-size: 11px;
    }
}

@media (max-width: 1366px) {
    .brand-meta small {
        display: none;
    }

    .topnav-group-btn,
    .btn-sm {
        padding: 8px 10px;
        font-size: 11.5px;
    }

    .account-chip-meta {
        display: none;
    }

    .topnav-right {
        gap: 8px;
    }
}

/* =========================
   AUTH OPTIONS + TOGGLE
========================= */

.auth-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-password-wrap input {
    padding-right: 118px;
}

.auth-toggle-inline {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.auth-toggle-inline:hover {
    background: rgba(124, 58, 237, 0.16);
}

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

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.auth-hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

@media (max-width: 640px) {
    .auth-password-wrap input {
        padding-right: 102px;
    }

    .auth-toggle-inline {
        min-height: 34px;
        padding: 0 10px;
        font-size: 11px;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================
   PUBLIC LANDING + FEATURE MAP
========================= */

.public-landing {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 22px 44px;
    display: grid;
    gap: 20px;
}

.public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: stretch;
}

.public-hero-copy,
.public-hero-card {
    border-radius: 26px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
    padding: 26px 26px 24px;
}

.public-hero-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    color: var(--ink-strong);
}

.public-hero-copy p {
    margin: 0;
    max-width: 840px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 15px;
}

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

.public-stat-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.public-stat-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    background: rgba(124, 58, 237, 0.04);
    display: grid;
    gap: 4px;
}

.public-stat-item strong {
    font-size: 24px;
    line-height: 1;
    color: var(--ink-strong);
}

.public-stat-item span {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}

.public-stat-item small {
    color: var(--muted);
    line-height: 1.5;
}

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

.family-card,
.feature-map-card {
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.family-card h4,
.feature-map-card h4 {
    margin: 0 0 8px;
    color: var(--ink-strong);
    font-size: 16px;
}

.family-card p,
.feature-map-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.feature-map-head,
.family-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.feature-range,
.family-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.10);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.placeholder-banner {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(79, 70, 229, 0.22);
    background: rgba(79, 70, 229, 0.05);
    color: var(--ink);
}

.action-band {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.section-stack {
    display: grid;
    gap: 14px;
}

.mini-section h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--ink-strong);
}

.mini-section p,
.muted-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.clean-list,
.checklist {
    margin: 10px 0 0 18px;
    display: grid;
    gap: 8px;
    color: var(--ink);
    line-height: 1.7;
}

.table-wrap.compact table th,
.table-wrap.compact table td,
.berkah-table-compact th,
.berkah-table-compact td {
    font-size: 12px;
    line-height: 1.55;
}

.pill-row.compact {
    margin-top: 12px;
}

@media (max-width: 920px) {
    .public-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .public-landing {
        padding: 18px 14px 28px;
    }

    .public-hero-copy,
    .public-hero-card,
    .family-card,
    .feature-map-card {
        border-radius: 20px;
        padding: 18px 16px;
    }

    .public-hero-copy h1 {
        font-size: 26px;
    }
}
