:root, :root.light-theme {
    --body-bg: linear-gradient(135deg, #e8eaf6, #c5cae9, #e8eaf6);
    --app-bg: rgba(255,255,255,0.85);
    --app-bg-img: url('bg-plant.svg');
    --text-color: #1a1a2e;
    --text-muted: rgba(0,0,0,0.55);
    --text-dim: rgba(0,0,0,0.35);
    --text-muted2: rgba(0,0,0,0.5);
    --text-muted3: rgba(0,0,0,0.55);
    --text-muted4: rgba(0,0,0,0.65);
    --text-muted5: rgba(0,0,0,0.85);
    --text-muted6: rgba(0,0,0,0.4);
    --text-muted7: rgba(0,0,0,0.7);
    --card-bg: rgba(0,0,0,0.04);
    --card-bg-hover: rgba(0,0,0,0.07);
    --card-bg2: rgba(0,0,0,0.03);
    --card-bg3: rgba(0,0,0,0.06);
    --border-color: rgba(0,0,0,0.08);
    --border-color2: rgba(0,0,0,0.12);
    --border-color3: rgba(0,0,0,0.06);
    --border-color4: rgba(0,0,0,0.04);
    --border-color5: rgba(0,0,0,0.15);
    --input-bg: rgba(0,0,0,0.05);
    --input-border: rgba(0,0,0,0.12);
    --input-color: #1a1a2e;
    --input-placeholder: rgba(0,0,0,0.4);
    --nav-bg: rgba(255,255,255,0.95);
    --nav-item-color: rgba(0,0,0,0.4);
    --modal-bg: #fff;
    --modal-border: rgba(0,0,0,0.08);
    --modal-text: rgba(0,0,0,0.55);
    --settings-hint: rgba(0,0,0,0.45);
    --settings-border: rgba(0,0,0,0.06);
    --user-role: rgba(0,0,0,0.45);
    --toggle-bg: rgba(0,0,0,0.15);
    --disc-btn-color: rgba(0,0,0,0.5);
    --disc-btn-border: rgba(0,0,0,0.15);
    --disc-btn-hover: rgba(0,0,0,0.06);
    --bar-bg: rgba(0,0,0,0.06);
    --result-list-border: rgba(0,0,0,0.06);
    --raisec-icon-bg: rgba(0,0,0,0.06);
    --raisec-icon-color: rgba(0,0,0,0.35);
    --settings-card-bg: rgba(0,0,0,0.03);
    --settings-card-border: rgba(0,0,0,0.06);
    --settings-row-border: rgba(0,0,0,0.06);
    --user-item-border: rgba(0,0,0,0.06);
    --btn-sm-settings-bg: rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 115, 232, 0.28) transparent;
}

/* Custom Seamless Theme Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(26, 115, 232, 0.28);
    border-radius: 999px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 169, 143, 0.55);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--body-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-color);
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    position: relative;
    background: var(--app-bg);
    background-image: var(--app-bg-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    backdrop-filter: blur(20px);
    padding-bottom: 72px;
}

@media (min-width: 769px) {
    #app {
        max-width: 100%;
    }
}

.page {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 24px 22px;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ======== THEME TOGGLE ======== */
.theme-toggle-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color2);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 200;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.theme-toggle-btn:hover {
    background: var(--card-bg-hover);
    transform: scale(1.1);
}

@media (min-width: 769px) {
    .theme-toggle-btn {
        top: 18px;
        right: 28px;
    }
}

/* ======== BOTTOM NAV ======== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 100;
}

.bottom-nav.visible {
    display: flex;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px 20px;
    cursor: pointer;
    color: var(--nav-item-color);
    transition: all 0.3s ease;
    border: none;
    background: none;
    font-family: inherit;
}

.nav-item.active {
    color: #1a73e8;
}

.nav-item svg {
    width: 26px;
    height: 26px;
}

.nav-item span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ======== SPLASH ======== */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.splash-icon {
    margin-bottom: 24px;
    opacity: 0.8;
}

.splash-logo {
    font-size: 4.5rem;
    opacity: 0.8;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.splash-badges span {
    background: var(--card-bg);
    border: 1px solid var(--border-color5);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-muted7);
}

/* ======== BUTTONS ======== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    color: #fff;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 115, 232, 0.5);
}

.btn-pulse {
    animation: pulse 2s infinite;
}

.btn-back {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color2);
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-back:hover {
    background: var(--card-bg-hover);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color2);
}

.btn-secondary:hover {
    background: var(--card-bg-hover);
}

/* ======== HOME (GOJEK-LIKE) ======== */
#home.active {
    padding-bottom: 20px;
}

.home-top {
    padding-bottom: 15px;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 18px;
}

.greeting {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.greeting-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.logo-small {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.logo-small span {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Saldo Card */
.saldo-card {
    background: linear-gradient(135deg, rgba(26,115,232,0.2), rgba(118,75,162,0.2));
    border: 1px solid rgba(26,115,232,0.25);
    border-radius: 18px;
    padding: 20px 22px;
}

.saldo-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.saldo-item {
    text-align: center;
    flex: 1;
}

.saldo-num {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.saldo-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.saldo-divider {
    width: 1px;
    height: 38px;
    background: var(--border-color5);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 10px 0;
}

.menu-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px 16px 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: var(--card-bg-hover);
    transform: translateY(-3px);
    border-color: var(--border-color5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.menu-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.menu-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 2px;
}

.home-footer-info {
    text-align: center;
    padding: 24px 0 12px;
}

.home-footer-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ======== RIWAYAT ======== */
.riwayat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 16px;
}

.riwayat-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 18px;
}

.filter-tab {
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

.tab-badge {
    display: inline-flex;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
}

.filter-tab.active .tab-badge {
    background: rgba(26,115,232,0.14);
    color: #4b6bd5;
}

.filter-tab.active {
    background: rgba(26,115,232,0.18);
    color: #3b5dde;
    border-color: rgba(26,115,232,0.35);
    box-shadow: 0 8px 18px rgba(26,115,232,0.08);
}

.riwayat-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.riwayat-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.riwayat-item:hover {
    background: var(--card-bg-hover);
}

.riwayat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.riwayat-icon.iq { background: rgba(26,115,232,0.2); }
.riwayat-icon.disc { background: rgba(240,147,251,0.2); }
.riwayat-icon.mbti { background: rgba(79,172,254,0.2); }
.riwayat-icon.raisec { background: rgba(230,126,34,0.2); }
.riwayat-icon.enneagram { background: rgba(139,92,246,0.2); }
.riwayat-icon.bigfive { background: rgba(6,182,212,0.2); }
.riwayat-icon.tempramen { background: rgba(236,72,153,0.2); }

.riwayat-body {
    flex: 1;
    min-width: 0;
}

.riwayat-type {
    font-weight: 600;
    font-size: 0.9rem;
}

.riwayat-result {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.riwayat-date {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.riwayat-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-dim);
}

.riwayat-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.4;
}

.riwayat-empty p {
    font-size: 0.9rem;
}

/* ======== TEST PAGE ======== */
.test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color3);
}

.test-info {
    text-align: center;
}

.test-info span:first-child {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
}

.test-info span:last-child {
    font-size: 0.78rem;
    color: var(--text-muted2);
}

.timer {
    font-size: 1rem;
    font-weight: 700;
    color: #f5576c;
    font-variant-numeric: tabular-nums;
    min-width: 48px;
    text-align: right;
}

.test-content {
    flex: 1;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
}

.test-footer {
    margin-top: auto;
}

.question-number {
    font-size: 0.82rem;
    color: var(--text-muted2);
    margin-bottom: 4px;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 18px;
    padding: 14px;
    background: var(--card-bg2);
    border-radius: 12px;
    border-left: 3px solid rgba(26,115,232,0.4);
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.93rem;
}

.option:hover {
    background: var(--card-bg-hover);
    border-color: rgba(26,115,232,0.3);
}

.option.selected {
    background: rgba(26,115,232,0.2);
    border-color: #1a73e8;
}

/* DISC */
.disc-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.disc-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.disc-option .disc-text {
    flex: 1;
    font-size: 0.88rem;
}

.disc-buttons {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.disc-btn {
    padding: 5px 10px;
    border: 1px solid var(--disc-btn-border);
    border-radius: 6px;
    background: transparent;
    color: var(--disc-btn-color);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    font-family: inherit;
}

.disc-btn:hover {
    background: var(--disc-btn-hover);
}

.disc-btn.active-most {
    background: #2ecc71;
    color: #fff;
    border-color: #2ecc71;
}

.disc-btn.active-least {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.disc-prompt {
    font-size: 0.82rem;
    color: var(--text-muted2);
    margin: 8px 0 4px;
    font-style: italic;
}

/* MBTI */
.mbti-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.mbti-option {
    display: flex;
    align-items: center;
    padding: 16px 16px;
    background: var(--card-bg2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mbti-option:hover {
    background: var(--card-bg-hover);
}

.mbti-option.selected {
    background: rgba(79,172,254,0.15);
    border-color: #4facfe;
}

.mbti-option .mbti-text {
    font-size: 0.88rem;
    line-height: 1.4;
}

/* RAISEC */
.raisec-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.raisec-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.raisec-btn:hover {
    background: var(--card-bg-hover);
}

.raisec-btn.active-yes {
    background: rgba(46,204,113,0.15);
    border-color: #2ecc71;
}

.raisec-btn.active-no {
    background: rgba(231,76,60,0.15);
    border-color: #e74c3c;
}

.raisec-icon {
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.raisec-btn.active-yes .raisec-icon {
    background: #2ecc71;
    color: #fff;
}

.raisec-btn.active-no .raisec-icon {
    background: #e74c3c;
    color: #fff;
}

.raisec-btn:not(.active-yes):not(.active-no) .raisec-icon {
    background: var(--raisec-icon-bg);
    color: var(--raisec-icon-color);
}

.btn-submit.raisec-submit {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

/* Test Nav */
.test-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 18px;
}

.btn-submit {
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto 0;
    display: block;
    font-family: inherit;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.5);
}

.btn-submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.disc-submit {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.btn-submit.mbti-submit {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--bar-bg);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #00a98f);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ======== RESULT ======== */
.result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 12px;
}

.result-content {
    flex: 1;
    padding: 6px 0 20px;
}

.result-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color3);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
}

.result-section h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-muted5);
}

.result-section p, .result-section li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-muted4);
}

.result-section ul {
    list-style: none;
    padding: 0;
}

.result-section ul li {
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
}

.result-section ul li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: #1a73e8;
}

.result-score {
    text-align: center;
    padding: 28px 18px;
}

.result-score .score-value {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-score .score-label {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 6px;
    color: var(--text-muted5);
}

.result-score .score-desc {
    font-size: 0.85rem;
    color: var(--text-muted2);
    margin-top: 4px;
}

.result-chart {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.chart-bar {
    text-align: center;
    width: 65px;
}

.chart-bar .bar {
    width: 36px;
    height: 100px;
    background: var(--bar-bg);
    border-radius: 5px;
    margin: 0 auto 6px;
    position: relative;
    overflow: hidden;
}

.chart-bar .bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 5px;
    transition: height 1s ease;
}

.chart-bar .bar-fill.D { background: #e74c3c; }
.chart-bar .bar-fill.I { background: #f39c12; }
.chart-bar .bar-fill.S { background: #2ecc71; }
.chart-bar .bar-fill.C { background: #3498db; }
.chart-bar .bar-fill.raisec-R { background: #e74c3c; }
.chart-bar .bar-fill.raisec-I { background: #3498db; }
.chart-bar .bar-fill.raisec-A { background: #e67e22; }
.chart-bar .bar-fill.raisec-S { background: #2ecc71; }
.chart-bar .bar-fill.raisec-E { background: #9b59b6; }
.chart-bar .bar-fill.raisec-C { background: #1abc9c; }

.chart-bar .bar-label {
    font-weight: 700;
    font-size: 0.85rem;
}

.chart-bar .bar-value {
    font-size: 0.75rem;
    color: var(--text-muted2);
}

.result-mbti-type {
    text-align: center;
    padding: 18px;
}

.result-mbti-type .mbti-big {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-mbti-type .mbti-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 8px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    padding-bottom: 20px;
}

.result-actions .btn {
    flex: 1;
    text-align: center;
}

/* ======== MODAL ======== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--modal-bg);
    border-radius: 16px;
    padding: 25px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--modal-border);
}

.modal h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.modal p {
    color: var(--modal-text);
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-profile input {
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-color);
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}
.form-input::placeholder {
    color: var(--input-placeholder);
}
.form-input:focus {
    border-color: #1a73e8;
}

/* Print Styles */
@media print {
    body { background: #fff !important; }
    #app { max-width: 100% !important; box-shadow: none !important; background-image: none !important; }
    .bottom-nav { display: none !important; }
    .theme-toggle-btn { display: none !important; }
    .print-hide { display: none !important; }
    .print-only { display: block !important; }
    .result-page { padding: 20px !important; }
    .result-page * { color: #222 !important; }
}

/* Share Actions */
.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}
.btn-share {
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}
.btn-share:hover { opacity: 0.85; }
.btn-share-pdf { background: #e74c3c; }
.btn-share-wa { background: #25d366; }
.btn-share-bt { background: #3498db; }

/* Login Page */
#login .login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 24px;
}

/* Settings Page */
.settings-content {
    padding: 20px 0 10px;
}
.settings-card {
    background: var(--settings-card-bg);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--settings-card-border);
    box-shadow: 0 12px 30px rgba(0,0,0,0.02);
}
.settings-card h4 {
    font-size: 1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b6bd5;
}
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--settings-row-border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row label { font-size: 0.85rem; }
.settings-hint { font-size: 0.75rem; color: var(--settings-hint); margin-top: 2px; }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--toggle-bg);
    border-radius: 24px;
    transition: 0.3s;
}
.toggle-slider:before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: #2ecc71; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* User List */
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--user-item-border);
    font-size: 0.85rem;
}
.user-item:last-child { border-bottom: none; }
.user-item .user-info { display: flex; flex-direction: column; }
.user-item .user-name { font-weight: 600; }
.user-item .user-role { font-size: 0.75rem; color: var(--user-role); }
.user-item .user-actions { display: flex; gap: 8px; }
.btn-danger {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    cursor: pointer;
}
.btn-sm-settings {
    background: var(--btn-sm-settings-bg);
    color: var(--text-color);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    cursor: pointer;
}

/* ============================================
   PROFESSIONAL SETTINGS STYLES
   ============================================ */

.settings-section {
    background: var(--settings-card-bg);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--settings-card-border);
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.settings-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.settings-section-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.settings-subtabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.settings-subtab {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.settings-subtab.active {
    background: rgba(26,115,232,0.12);
    color: #3b5dde;
    border-color: rgba(26,115,232,0.25);
}

.settings-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.settings-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.settings-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-option-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color);
}

.settings-option-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.settings-form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.settings-input-wrapper:focus-within {
    border-color: #1a73e8;
}

.settings-input-wrapper svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.settings-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.88rem;
    color: var(--text-color);
    font-family: inherit;
}

.settings-input::placeholder {
    color: var(--text-muted);
}

.settings-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.settings-select-wrapper svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.settings-select {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.88rem;
    color: var(--text-color);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
}

.settings-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.settings-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26,115,232,0.4);
}

.settings-btn-primary:active {
    transform: translateY(0);
}

.settings-msg {
    font-size: 0.82rem;
    min-height: 20px;
}

.settings-logout-section {
    padding: 10px 0;
}

.settings-btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-secondary);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn-logout:hover {
    background: rgba(231,76,60,0.1);
    border-color: #e74c3c;
}

/* User List Card */
.settings-user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.settings-user-card:hover {
    border-color: #1a73e844;
}

.settings-user-current {
    border-color: #1a73e8;
    background: rgba(26,115,232,0.08);
}

.settings-user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.settings-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.settings-user-info {
    flex: 1;
    min-width: 0;
}

.settings-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-user-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    color: white;
    border-radius: 6px;
}

.settings-user-role {
    margin-top: 4px;
}

.settings-role-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}

.settings-user-actions {
    flex-shrink: 0;
}

.settings-btn-icon-danger {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(231,76,60,0.3);
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn-icon-danger:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.settings-user-status {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   SETTINGS - ENTRANCE ANIMATION
   ============================================ */

@keyframes settingsFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-content .settings-section,
.settings-content .settings-logout-section {
    animation: settingsFadeIn 0.35s ease forwards;
}

.settings-content .settings-section:nth-child(2) {
    animation-delay: 0.06s;
}

.settings-content .settings-section:nth-child(3) {
    animation-delay: 0.12s;
}

.settings-content .settings-logout-section {
    animation-delay: 0.18s;
}

/* ============================================
   SETTINGS - OPTION CARD SPACING
   ============================================ */

.settings-section > .settings-option-card + .settings-option-card {
    margin-top: 10px;
}

/* ============================================
   SETTINGS - HELP LIST (Bantuan Tab)
   ============================================ */

.settings-help-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-help-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.2s;
}

.settings-help-item:hover {
    border-color: rgba(26,115,232,0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.settings-help-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-help-body {
    flex: 1;
    min-width: 0;
}

.settings-help-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.settings-help-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   SETTINGS - ABOUT SECTION (Bantuan Tab)
   ============================================ */

.settings-about-card {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-align: center;
}

.settings-about-version {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(26,115,232,0.15), rgba(118,75,162,0.15));
    color: #1a73e8;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.settings-about-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.settings-about-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.settings-about-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 0.04em;
}

/* ============================================
   SETTINGS - ACTIVATION TAB
   ============================================ */

.settings-activation-fingerprint {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 14px;
}

.settings-activation-fp-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.settings-activation-fp-code {
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a73e8;
    letter-spacing: 3px;
    word-break: break-all;
}

.settings-activation-fp-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 8px;
}

.settings-activation-status {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 0;
}

.settings-activation-active {
    background: rgba(46,204,113,0.08);
    border: 1px solid rgba(46,204,113,0.25);
}

.settings-activation-inactive {
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.25);
}

.settings-activation-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-activation-status-text {
    font-size: 0.95rem;
    font-weight: 700;
}

.settings-activation-status-detail {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(46,204,113,0.15);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-activation-actions {
    display: flex;
    gap: 10px;
}

.settings-activation-actions .settings-btn-primary,
.settings-activation-actions .settings-btn-logout {
    flex: 1;
}

/* ============================================
   SETTINGS - ADD USER HEADER (Manajemen)
   ============================================ */

.settings-add-user-header {
    margin-bottom: 16px;
}

.settings-add-user-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.settings-add-user-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* KPI Grid Cards (Feature Management) */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.2s;
}

.kpi-card:hover {
    border-color: #1a73e844;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.kpi-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.kpi-card-body {
    flex: 1;
    min-width: 0;
}

.kpi-card-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color);
}

.kpi-card-status {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

/* Role Selection Dialog */
.modal-role-select {
    max-width: 380px;
}

.modal-role-select h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.modal-role-select p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.role-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.role-option:hover {
    border-color: #1a73e8;
    background: rgba(26,115,232,0.08);
}

.role-option[data-role="Admin"]:hover {
    border-color: #1a73e8;
}

.role-option[data-role="User"]:hover {
    border-color: #2ecc71;
}

.role-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    flex-shrink: 0;
}

.role-option[data-role="User"] .role-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.role-info {
    flex: 1;
}

.role-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-color);
}

.role-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Feature Select Dialog (per-user features) */
.modal-feature-select {
    max-width: 460px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-feature-select h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.modal-feature-select p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.feature-select-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-select-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted7);
    margin-bottom: 8px;
}

.feature-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 8px;
}

.feature-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-toggle-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.feature-toggle-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 520px) {
    #app {
        max-width: 100%;
    }
    .page {
        padding: 18px 16px;
    }
    .result-score .score-value {
        font-size: 2.6rem;
    }
    .menu-icon img {
        width: 60px;
        height: 60px;
    }
    .menu-item {
        padding: 22px 14px 18px;
    }
}

@media (min-width: 521px) and (max-width: 768px) {
    .menu-icon img {
        width: 76px;
        height: 76px;
    }
}

/* ======== DESKTOP LAYOUT ======== */
@media (min-width: 769px) {
    body {
        align-items: center;
        background: var(--body-bg);
    }

    #app {
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Desktop top nav */
    .bottom-nav {
        position: fixed;
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        transform: none;
        max-width: 100%;
        width: 100%;
        display: none;
        justify-content: center;
        gap: 8px;
        padding: 12px 24px;
        padding-bottom: 12px;
        border-top: none;
        border-bottom: 1px solid var(--border-color);
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        z-index: 100;
    }

    .bottom-nav.visible {
        display: flex;
    }

    .nav-item {
        flex-direction: row;
        gap: 8px;
        padding: 10px 24px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-item:hover {
        background: var(--card-bg-hover);
    }

    .nav-item.active {
        background: rgba(26,115,232,0.15);
        color: #1a73e8;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .nav-item span {
        font-size: 0.85rem;
    }

    /* Desktop pages offset for top nav */
    .page {
        padding: 80px 48px 40px;
    }

    #home.active {
        padding-top: 80px;
    }

    /* Desktop header */
    .home-header {
        padding: 20px 0 24px;
        max-width: 900px;
        margin: 0 auto;
    }

    .greeting {
        font-size: 1.8rem;
    }

    .greeting-sub {
        font-size: 0.95rem;
    }

    .logo-small {
        font-size: 1.8rem;
    }

    /* Desktop saldo card */
    .saldo-card {
        max-width: 900px;
        margin: 0 auto;
        padding: 24px 32px;
        border-radius: 20px;
    }

    .saldo-num {
        font-size: 2rem;
    }

    .saldo-label {
        font-size: 0.82rem;
    }

    /* Desktop menu grid 4 columns */
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        max-width: 900px;
        margin: 0 auto;
        padding: 16px 0;
    }

    .menu-item {
        padding: 36px 20px 28px;
        border-radius: 20px;
    }

    .menu-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }

    .menu-icon img {
        width: 84px;
        height: 84px;
    }

    .menu-text {
        font-size: 1rem;
        margin-top: 6px;
    }

    /* Desktop footer */
    .home-footer-info {
        max-width: 900px;
        margin: 0 auto;
        padding: 28px 0 16px;
    }

    .home-footer-info p {
        font-size: 0.9rem;
    }

    /* Desktop riwayat */
    .riwayat-header {
        max-width: 900px;
        margin: 0 auto;
    }

    .filter-tabs {
        max-width: 900px;
        margin: 0 auto;
    }

    .riwayat-list {
        max-width: 900px;
        margin: 0 auto;
    }

    .riwayat-item {
        padding: 18px 20px;
        border-radius: 16px;
    }

    /* Desktop test page */
    .test-header {
        max-width: 900px;
        margin: 0 auto;
    }

    #testContent {
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }

    /* Desktop result page */
    .result-top {
        max-width: 900px;
        margin: 0 auto;
    }

    #resultContent {
        max-width: 900px;
        margin: 0 auto;
    }

    .result-section {
        padding: 22px 26px;
        border-radius: 18px;
    }

    .result-section h3 {
        font-size: 1.1rem;
    }

    .result-score .score-value {
        font-size: 3.8rem;
    }

    .result-score .score-label {
        font-size: 1.15rem;
    }

    /* Desktop settings */
    .settings-content {
        max-width: 900px;
        margin: 0 auto;
    }

    .settings-card {
        padding: 22px 24px;
    }

    /* Desktop login */
    .login-container {
        max-width: 420px;
        margin: 0 auto;
        padding: 60px 24px;
    }

    /* Desktop modal */
    .modal {
        max-width: 400px;
        padding: 30px;
    }

    /* Desktop theme toggle */
    .theme-toggle-btn {
        top: 20px;
        right: 24px;
    }

    /* Desktop splash */
    .splash-logo {
        font-size: 5rem;
    }

    .splash-icon img {
        width: 140px;
        height: 140px;
    }

    .splash-badges span {
        padding: 10px 24px;
        font-size: 0.88rem;
    }
}

/* ============================================================
   PROFESSIONAL RESULT STYLES
   ============================================================ */

.result-hero {
    position: relative;
    overflow: hidden;
}

.result-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.result-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.result-section:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-color2);
    transform: translateY(-2px);
}

.result-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-section h3 .icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-container {
    background: var(--bar-bg);
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color4);
    transition: all 0.3s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--card-bg-hover);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 12px;
}

.list-item .item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.list-item .item-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 140px;
    justify-content: flex-end;
}

.chart-bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.chart-bar {
    width: 40px;
    height: 100%;
    background: var(--bar-bg);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.chart-bar-fill {
    width: 100%;
    border-radius: 10px;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.chart-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 10px 10px 0 0;
}

.chart-bar-label {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.chart-bar-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.answer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.answer-item:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-color2);
}

.answer-number {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.answer-content {
    flex: 1;
    min-width: 0;
}

.answer-question {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.answer-detail {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.answer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding: 0 4px;
}

.result-actions .btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.result-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.share-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 0 4px;
}

.btn-share {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.btn-share-pdf {
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    color: #fff;
}

.btn-share-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}

.btn-share-gmail {
    background: linear-gradient(135deg, #ea4335, #c5221f);
    color: #fff;
}

.btn-share-bt {
    background: linear-gradient(135deg, #0088cc, #005599);
    color: #fff;
}

.dimension-bar {
    margin-bottom: 16px;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dimension-label {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dimension-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.dimension-track {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-track .track {
    flex: 1;
    height: 10px;
    background: var(--bar-bg);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.dimension-track .track .fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dimension-track .track .fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.4);
    border-radius: 5px 5px 0 0;
}

.dimension-pct {
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
}

.profile-card .profile-type {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 6px;
    line-height: 1;
    margin: 16px 0 8px;
}

.profile-card .profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-card .profile-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================
   SETTINGS - ACCOUNT CARD
   ============================================ */

.settings-account-card {
    display: block;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.settings-account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.settings-account-info {
    flex: 1;
    min-width: 0;
}

.settings-account-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.settings-account-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    gap: 10px;
}

.settings-account-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.settings-account-stat {
    display: flex;
    flex-direction: column;
}

.settings-account-stat-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.settings-account-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Role badges */
.settings-role-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.settings-role-super {
    background: rgba(118,75,162,0.15);
    color: #a18cd1;
}

.settings-role-admin {
    background: rgba(26,115,232,0.15);
    color: #1a73e8;
}

.settings-role-user {
    background: rgba(46,204,113,0.15);
    color: #2ecc71;
}

.settings-role-guest {
    background: rgba(243,156,18,0.15);
    color: #f39c12;
}

/* ============================================
   SETTINGS - GLOBAL FEATURES LIST
   ============================================ */

.settings-feature-stats {
    margin-bottom: 14px;
}

.settings-feature-stat-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(26,115,232,0.12);
    color: #1a73e8;
    border-radius: 8px;
}

.settings-feature-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-feature-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
}

.settings-feature-group-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.settings-feature-group-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

.settings-feature-group-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.settings-feature-group .settings-option-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
}

.settings-feature-group .settings-option-card + .settings-option-card {
    margin-top: 8px;
}

/* ============================================
   SETTINGS - RESET PASSWORD (Manajemen)
   ============================================ */

.settings-resetpw-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.settings-resetpw-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-resetpw-form {
    display: flex;
    gap: 10px;
}

.settings-resetpw-form .settings-input-wrapper {
    flex: 1;
    padding: 10px 12px;
}

/* ============================================
   SETTINGS - DATA OVERVIEW (Data Tab)
   ============================================ */

.settings-data-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.settings-data-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.settings-data-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.08);
}

.settings-data-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.settings-data-stat:hover .settings-data-stat-icon {
    transform: scale(1.08);
}

.settings-data-stat-num {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
}

.settings-data-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Danger Zone Card */
.settings-danger-zone {
    background: rgba(231,76,60,0.06);
    border: 1px solid rgba(231,76,60,0.2);
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
}

.settings-danger-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #e74c3c;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.settings-danger-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.settings-btn-danger-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.settings-btn-danger-full:hover {
    background: #c0392b;
}

@media (max-width: 480px) {
    .settings-resetpw-form {
        flex-direction: column;
    }
    .settings-resetpw-form .settings-btn-primary {
        width: 100%;
    }
}

/* ============================================
   HOME - LOGOUT BUTTON
   ============================================ */

.btn-logout-home {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #e74c3c;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
}

.btn-logout-home:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.btn-logout-home:active {
    transform: translateY(0);
}

/* ============================================================
   PREMIUM LOGIN & SPLASH SCREEN STYLES
   ============================================================ */

#app.login-page-active {
    max-width: 960px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: max-width 0.3s ease;
}

#login.active {
    display: flex;
    flex-direction: row;
    gap: 32px;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.login-left-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08), rgba(0, 169, 143, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.light-theme .login-left-panel {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.04), rgba(0, 169, 143, 0.04));
}

.login-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
}

.login-feature-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

@keyframes spinRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive split */
@media (max-width: 768px) {
    #app.login-page-active {
        max-width: 600px;
    }
    #login.active {
        flex-direction: column;
        gap: 20px;
    }
    .login-left-panel {
        padding: 24px;
    }
    .login-right-panel {
        padding: 24px;
    }
}

/* ============================================================
   IQku DESIGN SYSTEM 2026
   ============================================================ */
:root, :root.light-theme {
    --iqku-primary: #1a73e8;
    --iqku-primary-strong: #0b57d0;
    --iqku-cyan: #06b6d4;
    --iqku-surface: rgba(255, 255, 255, 0.94);
    --iqku-surface-solid: #ffffff;
    --iqku-surface-soft: #f8fafc;
    --iqku-line: rgba(26, 115, 232, 0.18);
    --iqku-shadow: 0 20px 50px rgba(0, 169, 143, 0.08);
    --body-bg:
        radial-gradient(circle at 10% 12%, rgba(186, 230, 253, 0.55), transparent 32rem),
        radial-gradient(circle at 90% 15%, rgba(204, 251, 241, 0.50), transparent 28rem),
        radial-gradient(circle at 50% 90%, rgba(204, 251, 241, 0.45), transparent 30rem),
        linear-gradient(150deg, #f0f7ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    --app-bg: transparent;
    --app-bg-img: none;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --card-bg: #ffffff;
    --card-bg-hover: #f0f7ff;
    --border-color: rgba(26, 115, 232, 0.18);
    --border-color2: rgba(26, 115, 232, 0.26);
}

#themeToggle, .theme-toggle-btn {
    display: none !important;
}

html { scroll-behavior: smooth; }

body {
    font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

#app {
    backdrop-filter: none;
}

.page {
    animation: iqkuPageIn .35s cubic-bezier(.2,.75,.25,1);
}

@keyframes iqkuPageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.utility-actions {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 8px;
    align-items: center;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 1px solid var(--iqku-line);
    background: var(--iqku-surface);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    backdrop-filter: blur(18px);
}

.theme-toggle-btn svg { width: 20px; height: 20px; }

.brand-mark { display: block; object-fit: contain; }
.brand-mark-xl { width: 126px; height: 126px; }
.brand-mark-lg { width: 100px; height: 100px; }
.brand-mark-sm { width: 50px; height: 50px; }
.brand-mark-xs { width: 36px; height: 36px; }

.logo {
    letter-spacing: -2.5px;
    background: linear-gradient(135deg, #a69dfd, #6c7df2 55%, #3cd5dd);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo span,
.logo-small span {
    background: linear-gradient(135deg, #7f73f4, #31c9d5);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-small {
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-color), var(--text-muted5));
    -webkit-background-clip: text;
    background-clip: text;
}

.splash-content {
    position: relative;
    width: min(620px, 100%);
    margin: auto;
}

.splash-content::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(116,104,238,.18), transparent 68%);
    z-index: -1;
}

.splash-icon {
    margin-bottom: 12px;
    opacity: 1;
    animation: iqkuFloat 4s ease-in-out infinite;
}

@keyframes iqkuFloat {
    50% { transform: translateY(-8px); }
}

.splash-logo {
    font-size: clamp(3.8rem, 10vw, 5.5rem);
    opacity: 1;
    line-height: 1;
}

.splash-tagline {
    max-width: 430px;
    margin: 14px auto 24px;
    color: var(--text-muted);
    font-size: .98rem;
    line-height: 1.6;
}

.splash-badges { margin-bottom: 34px; }
.splash-badges span {
    padding: 8px 15px;
    border-color: var(--iqku-line);
    background: var(--iqku-surface-soft);
    font-size: .76rem;
    font-weight: 700;
}

.btn {
    border-radius: 13px;
    font-weight: 750;
}

.btn-primary,
.settings-btn-primary {
    background: linear-gradient(135deg, var(--iqku-primary), #5f75ed 58%, #37bdcd);
    box-shadow: 0 10px 26px rgba(93, 82, 217, .28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(93, 82, 217, .36);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #1a73e8;
    font-size: .88rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.home-header {
    padding: 7px 0 20px;
}

.greeting {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.greeting-sub {
    margin-top: 5px;
    font-size: .9rem;
    line-height: 1.45;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dashboard-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(26, 115, 232, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 86% 30%, rgba(254, 243, 199, 0.75), transparent 22rem),
        radial-gradient(circle at 14% 20%, rgba(186, 230, 253, 0.75), transparent 24rem),
        linear-gradient(125deg, #f0f7ff 0%, #e0f2fe 45%, #f0fdf4 100%);
    box-shadow: 0 20px 48px rgba(26, 115, 232, 0.14);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 169, 143, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .35;
    mask-image: linear-gradient(90deg, transparent 38%, black);
}

.dashboard-hero-copy {
    position: relative;
    z-index: 2;
    width: min(640px, 70%);
}

.hero-pill {
    display: inline-flex;
    padding: 7px 13px;
    border: 1px solid rgba(0, 169, 143, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #1a73e8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}

.dashboard-hero h1 {
    margin: 17px 0 12px;
    color: #1e1b4b;
    font-size: clamp(1.8rem, 4vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -.05em;
    font-weight: 900;
}

.dashboard-hero h1 span {
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-hero p {
    max-width: 590px;
    color: #475569;
    font-size: .94rem;
    line-height: 1.65;
    font-weight: 500;
}

.hero-visual {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: clamp(26px, 8vw, 90px);
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
}

.hero-visual img {
    width: 155px;
    filter: drop-shadow(0 18px 30px rgba(0, 169, 143, 0.25));
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 169, 143, 0.25);
    border-radius: 50%;
}

.orbit-one { inset: 4px; animation: orbitSpin 14s linear infinite; }
.orbit-two { inset: 25px; border-style: dashed; animation: orbitSpin 10s linear infinite reverse; }
.orbit::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ec4899;
    box-shadow: 0 0 14px #ec4899;
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }

.dashboard-stats {
    position: relative;
    z-index: 3;
    width: calc(100% - 56px);
    margin: -27px auto 28px;
    padding: 18px 22px;
    border: 1px solid rgba(26, 115, 232, 0.22);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 169, 143, 0.10);
    backdrop-filter: blur(24px);
}

.dashboard-stats .saldo-num {
    font-size: 1.55rem;
    background: linear-gradient(135deg, #1a73e8, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.dashboard-stats .saldo-label {
    font-size: .66rem;
    font-weight: 750;
    color: #64748b;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 6px 0 16px;
}

.section-heading h2 {
    font-size: clamp(1.28rem, 3vw, 1.65rem);
    letter-spacing: -.035em;
    color: #1e1b4b;
    font-weight: 800;
}

.section-count {
    padding: 7px 13px;
    border: 1px solid rgba(26, 115, 232, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #1a73e8;
    font-size: .7rem;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.06);
}

.assessment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0 0 26px;
}

.assessment-card {
    position: relative;
    min-height: 170px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow: hidden;
    padding: 22px;
    text-align: left;
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(26, 115, 232, 0.05);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.assessment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 100% 0%, var(--card-glow), transparent 56%);
    opacity: .45;
}

.assessment-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--card-accent) 20%, transparent);
}

.card-iq { --card-accent: #1a73e8; --card-glow: rgba(26, 115, 232, 0.18); }
.card-disc { --card-accent: #f59e0b; --card-glow: rgba(245, 158, 11, 0.18); }
.card-mbti { --card-accent: #06b6d4; --card-glow: rgba(6, 182, 212, 0.18); }
.card-raisec { --card-accent: #10b981; --card-glow: rgba(16, 185, 129, 0.18); }
.card-enneagram { --card-accent: #3b82f6; --card-glow: rgba(59, 130, 246, 0.18); }
.card-bigfive { --card-accent: #00a98f; --card-glow: rgba(0, 169, 143, 0.18); }
.card-tempramen { --card-accent: #f43f5e; --card-glow: rgba(244, 63, 94, 0.18); }

.assessment-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--card-accent) 34%, transparent);
    border-radius: 15px;
    background: color-mix(in srgb, var(--card-accent) 14%, transparent);
    color: var(--card-accent);
}

.assessment-icon svg { width: 27px; height: 27px; }
.assessment-content { position: relative; z-index: 1; min-width: 0; }
.assessment-kicker {
    color: var(--card-accent);
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.assessment-card .menu-text {
    margin: 5px 0 7px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.assessment-card p {
    max-width: 250px;
    color: var(--text-muted);
    font-size: .77rem;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    z-index: 2;
    right: 17px;
    bottom: 15px;
    color: var(--card-accent);
    font-size: 1rem;
    transition: transform .2s ease;
}

.assessment-card:hover .card-arrow { transform: translate(2px,-2px); }

.nav-brand,
.nav-caption { display: none; }

.login-left-panel,
.login-right-panel,
.settings-section,
.settings-card,
.result-section,
.riwayat-item,
.question-card {
    border: 1px solid rgba(26, 115, 232, 0.18);
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 169, 143, 0.06);
}

.login-left-panel {
    background:
        radial-gradient(circle at 15% 15%, rgba(0, 169, 143, 0.14), transparent 20rem),
        linear-gradient(145deg, #f8faff 0%, #ede9fe 55%, #fce7f3 100%);
    border-right: 1px solid rgba(26, 115, 232, 0.18);
}

.login-feature-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 169, 143, 0.25);
    border-radius: 9px;
    background: #ffffff;
    color: #1a73e8;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .04em;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.08);
}

.login-right-panel {
    background: #ffffff;
    backdrop-filter: blur(22px);
}

.form-input,
.settings-input-wrapper {
    border-radius: 13px;
}

@media (min-width: 769px) {
    .bottom-nav {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 232px;
        max-width: 232px;
        min-height: 100vh;
        transform: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 7px;
        padding: 24px 16px;
        border: 0;
        border-right: 1px solid var(--iqku-line);
        background: var(--nav-bg);
        box-shadow: 16px 0 42px rgba(3,5,15,.08);
        backdrop-filter: blur(24px);
        transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .nav-brand {
        display: flex;
        align-items: center;
        gap: 11px;
        margin: 0 3px 28px;
        transition: gap 0.28s ease, margin 0.28s ease, justify-content 0.28s ease;
    }

    .nav-brand img {
        width: 42px;
        height: 42px;
        transition: transform 0.25s ease;
    }
    
    .nav-brand:hover img {
        transform: scale(1.08);
    }
    
    .nav-brand div {
        display: flex;
        flex-direction: column;
        gap: 2px;
        transition: opacity 0.25s ease, width 0.25s ease;
    }
    .nav-brand strong { font-size: 1.15rem; letter-spacing: -.04em; }
    .nav-brand span { color: var(--text-muted); font-size: .64rem; }

    .nav-caption {
        display: block;
        margin: 0 11px 4px;
        color: var(--text-dim);
        font-size: .59rem;
        font-weight: 850;
        letter-spacing: .14em;
        transition: opacity 0.25s ease;
    }

    .nav-item {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 14px;
        border: 1px solid transparent;
        border-radius: 13px;
        transition: width 0.28s ease, padding 0.28s ease, justify-content 0.28s ease;
    }

    .nav-item.active {
        color: #988ff8;
        border-color: rgba(116,104,238,.18);
        background: rgba(116,104,238,.13);
    }

    .nav-item svg { width: 21px; height: 21px; }
    .nav-item span { font-size: .82rem; font-weight: 700; transition: opacity 0.25s ease; }

    .page:not(#splash):not(#login) {
        width: calc(100% - 232px);
        margin-left: 232px;
        padding: 38px clamp(32px, 5vw, 74px) 50px;
        transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), margin-left 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    /* COLLAPSED SIDEBAR (ICON ONLY) */
    body.sidebar-collapsed .bottom-nav {
        width: 78px;
        max-width: 78px;
        padding: 24px 10px;
        align-items: center;
    }

    body.sidebar-collapsed .nav-brand {
        margin: 0 0 28px;
        justify-content: center;
        gap: 0;
    }

    body.sidebar-collapsed .nav-brand div {
        display: none;
    }

    body.sidebar-collapsed .nav-caption {
        display: none;
    }

    body.sidebar-collapsed .nav-item {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 14px;
        margin: 0 auto;
    }

    body.sidebar-collapsed .nav-item span {
        display: none;
    }

    body.sidebar-collapsed .sidebar-utilities {
        padding-top: 12px;
        align-items: center;
        display: flex;
        justify-content: center;
    }

    body.sidebar-collapsed .sidebar-utility-btn {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
        border-radius: 14px;
        justify-content: center;
    }

    body.sidebar-collapsed .sidebar-utility-label {
        display: none;
    }

    body.sidebar-collapsed .page:not(#splash):not(#login) {
        width: calc(100% - 78px);
        margin-left: 78px;
    }

    #home.active { padding-top: 34px; }

    .home-top,
    .section-heading,
    .assessment-grid,
    #activationBanner {
        width: min(1120px, 100%);
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-header {
        max-width: 1120px;
        padding: 0 0 24px;
    }

    .dashboard-hero { min-height: 310px; }
    .assessment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .assessment-card { min-height: 178px; padding: 25px; }

    .riwayat-header,
    .filter-tabs,
    .riwayat-list,
    .test-header,
    #testContent,
    .result-top,
    #resultContent,
    .settings-content {
        max-width: 1120px;
    }

    .utility-actions {
        top: 20px;
        right: 24px;
    }

    #login.active {
        max-width: 1080px;
        min-height: min(720px, calc(100vh - 48px));
    }
}

@media (max-width: 768px) {
    .utility-actions { top: 12px; right: 12px; }
    .theme-toggle-btn { width: 39px; height: 39px; border-radius: 12px; }
    .header-brand .logo-small { display: none; }
    .dashboard-hero { min-height: 230px; padding: 26px 24px; border-radius: 23px; }
    .dashboard-hero-copy { width: 76%; }
    .dashboard-hero h1 { font-size: clamp(1.55rem, 7vw, 2.15rem); }
    .dashboard-hero p { font-size: .8rem; line-height: 1.55; }
    .hero-pill { font-size: .57rem; }
    .hero-visual { right: -26px; width: 165px; height: 165px; opacity: .72; }
    .hero-visual img { width: 135px; }
    .dashboard-stats { width: calc(100% - 28px); margin-top: -22px; padding: 16px 9px; }
    .dashboard-stats .saldo-num { font-size: 1.3rem; }
    .dashboard-stats .saldo-label { font-size: .55rem; letter-spacing: .05em; }
    .assessment-card { min-height: 190px; flex-direction: column; gap: 12px; padding: 18px; }
    .assessment-icon { width: 48px; height: 48px; flex-basis: 48px; }
    .assessment-card p { font-size: .72rem; }

    .bottom-nav {
        max-width: calc(100% - 24px);
        bottom: 10px;
        padding: 7px;
        border: 1px solid var(--iqku-line);
        border-radius: 18px;
        box-shadow: 0 18px 45px rgba(3,5,15,.28);
    }

    .nav-item {
        flex: 1;
        gap: 3px;
        padding: 7px 8px;
        border-radius: 12px;
    }

    .nav-item.active { background: rgba(116,104,238,.14); color: #958cf7; }
    .nav-item svg { width: 21px; height: 21px; }
    .nav-item span { font-size: .62rem; }
    #app { padding-bottom: 88px; }
}

@media (max-width: 430px) {
    .page { padding-left: 15px; padding-right: 15px; }
    .home-header { padding-right: 40px; }
    .dashboard-hero-copy { width: 82%; }
    .dashboard-hero h1 br { display: none; }
    .hero-visual { right: -55px; opacity: .5; }
    .assessment-grid { gap: 10px; }
    .assessment-card { min-height: 198px; padding: 16px; border-radius: 17px; }
    .assessment-card .menu-text { font-size: .96rem; }
    .section-heading h2 { font-size: 1.2rem; }
}

/* ============================================================
   ASSESSMENT PREPARATION MODAL (PASTEL THEME)
   ============================================================ */
#profileModal {
    padding: 18px;
    background: rgba(30, 27, 75, 0.32);
    backdrop-filter: blur(12px);
}

.assessment-prep-modal {
    position: relative;
    width: min(920px, 100%);
    max-width: 920px;
    max-height: calc(100vh - 36px);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    overflow: auto;
    padding: 0;
    border: 1px solid rgba(26, 115, 232, 0.22);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 32px 80px rgba(0, 169, 143, 0.18);
    text-align: left;
    scrollbar-width: thin;
}

.prep-close {
    position: absolute;
    z-index: 4;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(26, 115, 232, 0.22);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    cursor: pointer;
    transition: .2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prep-close:hover {
    color: #1e1b4b;
    background: #ffffff;
    transform: rotate(4deg);
    border-color: rgba(0, 169, 143, 0.38);
}

.prep-close svg { width: 18px; height: 18px; }

.prep-overview {
    --prep-accent: #1a73e8;
    --prep-soft: rgba(26, 115, 232, 0.12);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 610px;
    padding: 32px;
    color: #1e1b4b;
    background:
        radial-gradient(circle at 90% 10%, var(--prep-soft), transparent 19rem),
        linear-gradient(150deg, #f3f0ff 0%, #ede9fe 48%, #fce7f3 100%);
    border-right: 1px solid rgba(26, 115, 232, 0.18);
}

.prep-overview::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .25;
    background-image:
        linear-gradient(rgba(0, 169, 143, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 169, 143, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.prep-overview::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -85px;
    bottom: -95px;
    width: 260px;
    height: 260px;
    border: 1.5px solid color-mix(in srgb, var(--prep-accent) 25%, transparent);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px color-mix(in srgb, var(--prep-accent) 8%, transparent),
        0 0 0 70px color-mix(in srgb, var(--prep-accent) 4%, transparent);
}

.prep-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    color: #64748b;
    font-size: .67rem;
    font-weight: 750;
    letter-spacing: .04em;
}

.prep-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.prep-test-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 1px solid color-mix(in srgb, var(--prep-accent) 32%, transparent);
    border-radius: 17px;
    background: #ffffff;
    color: var(--prep-accent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--prep-accent) 18%, transparent);
}

.prep-test-icon svg { width: 30px; height: 30px; }

.prep-kicker {
    color: var(--prep-accent);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.assessment-prep-modal .prep-overview h3 {
    margin: 7px 0 12px;
    color: #1e1b4b;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.1;
    letter-spacing: -.045em;
    font-weight: 800;
}

.assessment-prep-modal .prep-overview > p {
    margin: 0;
    color: #475569;
    font-size: .82rem;
    line-height: 1.65;
}

.prep-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
}

.prep-metrics > div {
    padding: 12px 8px;
    border: 1px solid rgba(26, 115, 232, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.08);
    text-align: center;
}

.prep-metrics strong {
    display: block;
    color: #1e1b4b;
    font-size: .98rem;
    line-height: 1.1;
    font-weight: 800;
}

.prep-metrics span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.prep-measures { margin-top: 22px; }

.prep-measures-label {
    display: block;
    margin-bottom: 9px;
    color: #64748b;
    font-size: .57rem;
    font-weight: 850;
    letter-spacing: .13em;
}

#profileTestMeasures {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#profileTestMeasures span {
    padding: 6px 11px;
    border: 1px solid color-mix(in srgb, var(--prep-accent) 25%, transparent);
    border-radius: 999px;
    background: #ffffff;
    color: var(--prep-accent);
    font-size: .64rem;
    font-weight: 700;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--prep-accent) 10%, transparent);
}

.prep-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: auto;
    padding-top: 22px;
    color: #64748b;
    font-size: .62rem;
    line-height: 1.45;
}

.prep-note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--prep-accent);
}

.prep-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 42px 40px 36px;
    background: #ffffff;
}

.prep-form-heading { margin-bottom: 24px; }

.prep-form-heading h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.38rem;
    letter-spacing: -.035em;
    font-weight: 800;
}

.assessment-prep-modal .prep-form-heading p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: .76rem;
    line-height: 1.5;
}

.prep-form-grid {
    display: grid;
    grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
    gap: 15px 12px;
}

.prep-field {
    display: block;
    min-width: 0;
}

.prep-field-full { grid-column: 1 / -1; }

.prep-field > span {
    display: block;
    margin: 0 0 7px 2px;
    color: #334155;
    font-size: .68rem;
    font-weight: 750;
}

.prep-input-wrap {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.prep-input-wrap:focus-within {
    border-color: #818cf8;
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(129, 140, 248, 0.18);
}

.prep-field.invalid .prep-input-wrap {
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.prep-input-wrap > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #94a3b8;
}

.assessment-prep-modal .prep-input-wrap .form-input {
    height: 46px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1e1b4b;
    font-size: .85rem;
    box-shadow: none;
}

.assessment-prep-modal .prep-input-wrap select.form-input {
    cursor: pointer;
    appearance: auto;
}

.assessment-prep-modal .prep-input-wrap select.form-input option {
    color: #1e1b4b;
    background: #fff;
}

.prep-form-error {
    min-height: 20px;
    margin: 12px 2px 2px;
    color: #f43f5e;
    font-size: .68rem;
    font-weight: 650;
}

.prep-actions {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 10px;
    margin-top: 8px;
}

.prep-actions .btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 13px;
    font-size: .82rem;
    font-weight: 700;
}

.prep-secondary {
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.prep-secondary:hover {
    background: #f1f5f9;
    color: #1e1b4b;
    border-color: #cbd5e1;
}

.prep-primary {
    background: linear-gradient(135deg, #1a73e8 0%, #8b5cf6 50%, #ec4899 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.32);
}

.prep-primary:hover {
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.42);
    transform: translateY(-1px);
}
.prep-primary svg { width: 17px; height: 17px; }

@media (max-width: 768px) {
    #profileModal {
        align-items: flex-start;
        padding: 8px;
        overflow-y: auto;
    }

    .assessment-prep-modal {
        max-height: none;
        grid-template-columns: 1fr;
        margin: auto 0;
        border-radius: 22px;
    }

    .prep-overview {
        min-height: auto;
        padding: 24px 22px 22px;
    }

    .prep-brand { margin-bottom: 18px; }
    .prep-test-icon { width: 50px; height: 50px; margin-bottom: 14px; border-radius: 14px; }
    .prep-test-icon svg { width: 26px; height: 26px; }
    .assessment-prep-modal .prep-overview h3 { font-size: 1.55rem; margin-bottom: 8px; }
    .assessment-prep-modal .prep-overview > p { max-width: 92%; font-size: .75rem; line-height: 1.55; }
    .prep-metrics { margin-top: 15px; }
    .prep-metrics > div { padding: 9px 7px; }
    .prep-measures { margin-top: 15px; }
    .prep-note { margin-top: 17px; padding-top: 0; }

    .prep-form-panel { padding: 25px 22px 22px; }
    .prep-form-heading { margin-bottom: 19px; padding-right: 30px; }
    .prep-form-heading h4 { font-size: 1.18rem; }
}

@media (max-width: 420px) {
    .prep-overview { padding: 21px 18px 19px; }
    .prep-brand { margin-bottom: 14px; }
    .prep-test-icon { width: 44px; height: 44px; margin-bottom: 11px; }
    .assessment-prep-modal .prep-overview h3 { font-size: 1.38rem; }
    .prep-metrics { gap: 5px; }
    .prep-measures { margin-top: 12px; }
    #profileTestMeasures span { padding: 5px 7px; font-size: .56rem; }
    .prep-note { font-size: .58rem; }
    .prep-form-panel { padding: 22px 18px 18px; }
    .prep-form-grid { grid-template-columns: 1fr 1.35fr; gap: 12px 8px; }
    .prep-actions { grid-template-columns: .75fr 1.25fr; }
}

/* ============================================================
   PROFESSIONAL HISTORY & SETTINGS WORKSPACES
   ============================================================ */
#riwayat,
#pengaturan {
    position: relative;
}

.workspace-header {
    width: min(1120px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto 24px;
    padding: 4px 0;
}

.workspace-heading-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.workspace-back {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--iqku-line);
    border-radius: 13px;
    background: var(--iqku-surface-soft);
    color: var(--text-muted5);
    cursor: pointer;
    transition: .2s ease;
}

.workspace-back:hover {
    transform: translateX(-2px);
    color: #938af7;
    border-color: rgba(116,104,238,.3);
    background: rgba(116,104,238,.1);
}

.workspace-back svg { width: 20px; height: 20px; }

.workspace-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #1a73e8;
    font-size: .88rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.workspace-header h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -.05em;
}

.workspace-header p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.workspace-primary-action {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(116,104,238,.2);
    border-radius: 13px;
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(93,82,217,.23);
    cursor: pointer;
    white-space: nowrap;
}

.workspace-primary-action:hover { transform: translateY(-2px); }
.workspace-primary-action svg { width: 18px; height: 18px; }

/* History */
.history-summary {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto 18px;
}

.history-summary-card {
    --summary-color: #7c72f3;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    padding: 17px;
    border: 1px solid var(--iqku-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--summary-color) 14%, transparent), transparent 70%),
        var(--iqku-surface-soft);
    box-shadow: 0 12px 30px rgba(4,6,18,.07);
}

.summary-iq { --summary-color: #7b70f2; }
.summary-personality { --summary-color: #e76f9d; }
.summary-career { --summary-color: #f0a458; }

.history-summary-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--summary-color) 28%, transparent);
    border-radius: 13px;
    background: color-mix(in srgb, var(--summary-color) 11%, transparent);
    color: var(--summary-color);
}

.history-summary-icon svg { width: 22px; height: 22px; }
.history-summary-card > div { display: flex; flex-direction: column-reverse; gap: 3px; }
.history-summary-card span:not(.history-summary-icon) { color: var(--text-muted); font-size: .65rem; font-weight: 650; }
.history-summary-card strong { color: var(--text-color); font-size: 1.45rem; line-height: 1; letter-spacing: -.04em; }

.history-panel {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--iqku-line);
    border-radius: 24px;
    background: var(--iqku-surface);
    box-shadow: 0 18px 48px rgba(4,6,18,.11);
    backdrop-filter: blur(20px);
}

.history-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.history-toolbar h2 {
    margin: 0;
    font-size: 1.22rem;
    letter-spacing: -.035em;
}

.history-result-count {
    padding: 6px 10px;
    border: 1px solid var(--iqku-line);
    border-radius: 999px;
    background: var(--iqku-surface-soft);
    color: var(--text-muted);
    font-size: .65rem;
    font-weight: 750;
}

.history-filters {
    width: 100%;
    max-width: none;
    display: flex;
    gap: 6px;
    margin: 16px 0 18px;
    padding: 5px;
    border: 1px solid var(--iqku-line);
    border-radius: 14px;
    background: var(--iqku-surface-soft);
    overflow-x: auto;
    scrollbar-width: none; /* Hide Firefox scrollbar */
    flex-wrap: nowrap; /* Prevent wrapping onto multiple lines */
}

/* Hide scrollbar for Chrome/Safari/Webkit */
.history-filters::-webkit-scrollbar {
    display: none;
}

.history-filters .filter-tab {
    flex: 0 0 auto; /* Prevent tabs from shrinking */
    min-width: max-content;
    padding: 8px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-filters .filter-tab:hover {
    color: var(--iqku-primary);
    background: rgba(26, 115, 232, 0.04);
}

.history-filters .filter-tab.active {
    background: var(--iqku-surface-solid);
    color: var(--iqku-primary);
    font-weight: 750;
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.08);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
}

.history-result-card {
    --history-color: #7b70f2;
    min-height: 194px;
    display: block;
    padding: 19px;
    border: 1px solid var(--iqku-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--history-color) 13%, transparent), transparent 64%),
        var(--iqku-surface-soft);
    box-shadow: none;
}

.history-result-card.disc { --history-color: #e76f9d; }
.history-result-card.mbti { --history-color: #2fbfca; }
.history-result-card.raisec { --history-color: #f0a458; }
.history-result-card.enneagram { --history-color: #8b5cf6; }
.history-result-card.bigfive { --history-color: #06b6d4; }
.history-result-card.tempramen { --history-color: #ec4899; }

.history-result-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--history-color) 28%, transparent);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--history-color) 18%, transparent), transparent 68%),
        var(--card-bg-hover);
    box-shadow: 0 15px 34px rgba(4,6,18,.12);
}

.history-card-top {
    display: flex;
    align-items: center;
}

.history-result-card .riwayat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin-right: 10px;
    border: 1px solid color-mix(in srgb, var(--history-color) 28%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--history-color) 11%, transparent);
    color: var(--history-color);
}

.history-result-card .riwayat-icon svg { width: 22px; height: 22px; }

.history-card-kicker {
    color: var(--history-color);
    font-size: .59rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.history-card-open {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border: 1px solid var(--iqku-line);
    border-radius: 9px;
    color: var(--text-muted);
    transition: .2s ease;
}

.history-card-open svg { width: 16px; height: 16px; }
.history-result-card:hover .history-card-open { color: var(--history-color); transform: translateX(2px); }

.history-result-card .riwayat-body { margin-top: 15px; }
.history-result-card .riwayat-type { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.history-result-card .riwayat-result { min-height: 20px; margin-top: 4px; color: var(--text-muted5); font-size: .76rem; }
.history-card-divider { height: 1px; margin: 14px 0 10px; background: var(--iqku-line); }

.history-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px 12px;
}

.history-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: .61rem;
}

.history-card-meta svg { width: 13px; height: 13px; color: var(--history-color); }

.history-empty-state {
    grid-column: 1 / -1;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    border: 1px dashed var(--iqku-line);
    border-radius: 18px;
    background: var(--iqku-surface-soft);
}

.history-empty-state .riwayat-empty-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 0 14px;
    border-radius: 18px;
    background: rgba(116,104,238,.12);
    color: #8d84f6;
    opacity: 1;
}

.history-empty-state .riwayat-empty-icon svg { width: 29px; height: 29px; }
.history-empty-state h3 { font-size: 1rem; }
.history-empty-state p { max-width: 380px; margin: 7px 0 17px; color: var(--text-muted); font-size: .73rem; line-height: 1.55; text-align: center; }
.history-empty-state .btn { padding: 10px 17px; font-size: .72rem; }

/* Settings */
.settings-workspace-header {
    align-items: flex-end;
}

.settings-overview-strip {
    min-width: 390px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 11px 13px;
    border: 1px solid var(--iqku-line);
    border-radius: 17px;
    background: var(--iqku-surface);
    box-shadow: 0 12px 30px rgba(4,6,18,.08);
}

.settings-overview-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
    border-right: 1px solid var(--iqku-line);
}

.settings-overview-brand img { width: 37px; height: 37px; object-fit: contain; }
.settings-overview-brand div { display: flex; flex-direction: column; gap: 2px; }
.settings-overview-brand strong { max-width: 110px; overflow: hidden; color: var(--text-color); font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.settings-overview-brand span { color: #8d84f6; font-size: .59rem; font-weight: 750; }

.settings-overview-metrics {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.settings-overview-metrics > div { display: flex; flex-direction: column; gap: 3px; }
.settings-overview-metrics span { color: var(--text-muted); font-size: .55rem; }
.settings-overview-metrics strong { color: #54d99a; font-size: .72rem; }
.settings-overview-metrics #settingsHistoryCount { color: var(--text-color); font-size: 1rem; }
.settings-overview-metrics strong.inactive { color: #eb6f88; }

.settings-control-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin: 0 auto;
}

#settingsTabs.settings-nav {
    position: sticky;
    top: 24px;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 9px;
    border: 1px solid var(--iqku-line);
    border-radius: 18px;
    background: var(--iqku-surface);
    box-shadow: 0 16px 40px rgba(4,6,18,.09);
}

#settingsTabs .filter-tab {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    text-align: left;
}

#settingsTabs .filter-tab:hover {
    background: var(--iqku-surface-soft);
    color: var(--text-muted5);
}

#settingsTabs .filter-tab.active {
    border-color: rgba(116,104,238,.2);
    background: rgba(116,104,238,.11);
    color: #9188f7;
}

.settings-nav-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border: 1px solid var(--iqku-line);
    border-radius: 10px;
    background: var(--iqku-surface-soft);
}

.settings-nav-icon svg { width: 18px; height: 18px; }
.settings-nav-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.settings-nav-copy strong { color: inherit; font-size: .73rem; }
.settings-nav-copy small { color: var(--text-muted); font-size: .56rem; font-weight: 500; }
.settings-nav-arrow { margin-left: auto; color: var(--text-dim); font-size: 1rem; }

#pengaturan .settings-content {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    margin: 0;
}

#pengaturan .settings-content > .settings-section,
#pengaturan .settings-content > .settings-logout-section {
    margin: 0 !important;
}

#pengaturan .settings-section,
#pengaturan .settings-card {
    padding: 20px;
    border: 1px solid var(--iqku-line);
    border-radius: 19px;
    background: var(--iqku-surface);
    box-shadow: 0 12px 34px rgba(4,6,18,.075);
}

#pengaturan .settings-section-header { gap: 12px; margin-bottom: 16px; }

#pengaturan .settings-account-card {
    border: 1px solid var(--iqku-line);
    border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0%, rgba(116,104,238,.12), transparent 62%),
        var(--iqku-surface-soft);
}

#pengaturan .settings-account-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#pengaturan .settings-account-meta svg {
    width: 13px;
    height: 13px;
    color: #8f86f5;
}

#pengaturan .settings-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(4,6,18,.12);
}

#pengaturan .settings-section-icon svg { width: 18px; height: 18px; }
#pengaturan .settings-section-title { font-size: .88rem; font-weight: 800; letter-spacing: -.015em; }
#pengaturan .settings-section-desc { font-size: .67rem; }

#pengaturan .settings-option-card,
#pengaturan .settings-help-item,
#pengaturan .settings-user-item {
    border-color: var(--iqku-line);
    border-radius: 13px;
    background: var(--iqku-surface-soft);
    transition: .2s ease;
}

#pengaturan .settings-option-card:hover,
#pengaturan .settings-help-item:hover {
    border-color: rgba(116,104,238,.22);
    background: var(--card-bg-hover);
    transform: translateY(-1px);
}

#pengaturan .settings-input-wrapper {
    border-color: var(--iqku-line);
    background: var(--iqku-surface-soft);
}

#pengaturan .settings-subtabs {
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--iqku-line);
    border-radius: 13px;
    background: var(--iqku-surface-soft);
}

#pengaturan .settings-subtab {
    flex: 1 1 auto;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: .65rem;
}

#pengaturan .settings-subtab.active {
    background: var(--iqku-surface-solid);
    color: #8f86f5;
    box-shadow: 0 5px 14px rgba(4,6,18,.1);
}

@media (min-width: 1280px) {
    #pengaturan .settings-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #pengaturan .settings-content > .settings-section:only-child,
    #pengaturan .settings-content > .settings-logout-section,
    #pengaturan .settings-content > .settings-section:has(#manajemenContent) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .settings-workspace-header { align-items: flex-start; }
    .settings-overview-strip { min-width: 0; width: 100%; }
}

@media (max-width: 768px) {
    .workspace-header {
        align-items: flex-start;
        margin-bottom: 18px;
        padding-right: 42px;
    }

    .workspace-heading-row { gap: 10px; }
    .workspace-back { width: 37px; height: 37px; flex-basis: 37px; border-radius: 11px; }
    .workspace-header h1 { font-size: 1.55rem; }
    .workspace-header p { font-size: .72rem; }
    .workspace-primary-action { min-height: 39px; padding: 8px 11px; }
    .workspace-primary-action span { display: none; }

    .history-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    .history-summary-card { min-height: 76px; padding: 12px; border-radius: 15px; }
    .history-summary-icon { width: 37px; height: 37px; flex-basis: 37px; border-radius: 11px; }
    .history-summary-card strong { font-size: 1.2rem; }
    .history-panel { padding: 15px; border-radius: 19px; }
    .history-filters { overflow-x: auto; }
    .history-filters .filter-tab { min-width: max-content; padding: 7px 12px; }
    .history-grid { grid-template-columns: 1fr; }
    .history-result-card { min-height: 180px; padding: 16px; }

    .settings-workspace-header { display: block; padding-right: 0; }
    .settings-overview-strip { margin-top: 16px; }
    .settings-control-shell { grid-template-columns: 1fr; gap: 12px; }

    #settingsTabs.settings-nav {
        position: static;
        flex-direction: row;
        gap: 5px;
        overflow-x: auto;
        padding: 6px;
        border-radius: 15px;
        scrollbar-width: none;
    }

    #settingsTabs.settings-nav::-webkit-scrollbar { display: none; }

    #settingsTabs .filter-tab {
        min-width: max-content;
        width: auto;
        flex: 0 0 auto;
        padding: 8px 10px;
    }

    .settings-nav-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .settings-nav-icon svg { width: 16px; height: 16px; }
    .settings-nav-copy small,
    .settings-nav-arrow { display: none; }
    #pengaturan .settings-section,
    #pengaturan .settings-card { padding: 16px; border-radius: 16px; }
}

@media (max-width: 430px) {
    .settings-overview-strip { gap: 11px; padding: 9px; }
    .settings-overview-brand { padding-right: 10px; }
    .settings-overview-brand img { width: 32px; height: 32px; }
    .settings-overview-brand strong { max-width: 72px; }
    .settings-overview-metrics { gap: 10px; }
    .history-card-meta { display: grid; grid-template-columns: 1fr; }
}

/* Sidebar utilities */
.sidebar-utilities {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--iqku-line);
}

.sidebar-utility-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--iqku-line);
    border-radius: 12px;
    background: var(--iqku-surface-soft);
    color: var(--text-muted5);
    font: inherit;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.sidebar-utility-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(116,104,238,.3);
    background: var(--card-bg-hover);
    color: var(--text);
}

.sidebar-utility-btn:focus-visible {
    outline: 2px solid rgba(116,104,238,.55);
    outline-offset: 2px;
}

.sidebar-utility-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.sidebar-utility-label {
    overflow: hidden;
    font-size: .65rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-logout-btn {
    color: #eb6f88;
}

.sidebar-logout-btn:hover {
    border-color: rgba(235,111,136,.32);
    background: rgba(235,111,136,.1);
    color: #f08096;
}

@media (max-width: 768px) {
    .sidebar-utilities {
        width: auto;
        margin: 0;
        padding: 0;
        gap: 4px;
        border: 0;
    }

    .sidebar-utility-btn {
        width: 39px;
        min-width: 39px;
        height: 39px;
        min-height: 39px;
        flex: 0 0 39px;
        padding: 0;
        border-radius: 11px;
    }

    .sidebar-utility-label {
        display: none;
    }
}

/* ============================================================
   ENNEAGRAM, BIG FIVE, & TEMPARAMEN CUSTOM STYLES
   ============================================================ */

/* Big Five Likert Scale */
.likert-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.likert-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.likert-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 8px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    user-select: none;
}

.likert-btn:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-2px);
}

.likert-btn.selected {
    border-color: #06b6d4;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.22);
}

.likert-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    background: var(--card-bg2);
    border: 1px solid var(--border-color);
    color: var(--text-muted5);
    transition: all 0.2s ease;
}

.likert-btn.selected .likert-num {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border-color: #06b6d4;
    transform: scale(1.1);
}

.likert-text {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.3;
}

.likert-btn.selected .likert-text {
    color: #06b6d4;
    font-weight: 750;
}

@media (max-width: 640px) {
    .likert-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .likert-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 14px;
    }
    .likert-text {
        font-size: 0.88rem;
        text-align: left;
    }
}

/* Enneagram & Tempramen Interactive Cards */
.ennea-option-card, .temper-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    position: relative;
    user-select: none;
}

.ennea-option-card:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    transform: translateX(4px);
}

.ennea-option-card.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(168, 85, 247, 0.1));
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
}

.temper-option-card:hover {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.08);
    transform: translateX(4px);
}

.temper-option-card.selected {
    border-color: #ec4899;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(244, 63, 94, 0.1));
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.2);
}

.option-badge {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg2);
    color: var(--text-muted5);
    transition: all 0.2s ease;
}

.ennea-option-card.selected .option-badge {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    border-color: #8b5cf6;
}

.temper-option-card.selected .option-badge {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #fff;
    border-color: #ec4899;
}

.option-text-wrap {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted7);
    font-weight: 500;
}

/* Callout cards for Motivation & Fears */
.motivation-fear-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.callout-box {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid;
    line-height: 1.6;
}

.callout-box.desire {
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.25);
}

.callout-box.fear {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.25);
}

.callout-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 600px) {
    .motivation-fear-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GLOBAL SELECT & OPTION CUSTOM STYLING
   ============================================ */
/* ============================================
   GLOBAL SELECT & OPTION CUSTOM STYLING
   ============================================ */
select {
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

/* Custom Select Dropdown Widgets */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: 40px;
    background: var(--card-bg2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s ease;
    user-select: none;
    width: 100%;
}

.custom-select-trigger:hover {
    border-color: rgba(26, 115, 232, 0.35);
    background: var(--card-bg);
}

.custom-select-trigger.active {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
    color: #1a73e8;
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 5px;
}
.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(26, 115, 232, 0.25);
    border-radius: 10px;
}
.custom-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-item {
    padding: 9px 12px;
    font-size: 0.85rem;
    color: var(--text-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.custom-select-item.disabled {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    cursor: default;
    background: transparent !important;
}

.custom-select-item:not(.disabled):hover {
    background: rgba(26, 115, 232, 0.08);
    color: #1a73e8;
}

.custom-select-item.selected {
    background: linear-gradient(135deg, #1a73e8, #00a98f);
    color: #ffffff !important;
    font-weight: 600;
}

/* Inline wrapper select overrides */
.prep-input-wrap .custom-select-wrapper,
.settings-input-wrapper .custom-select-wrapper {
    flex: 1;
}

.prep-input-wrap .custom-select-trigger,
.settings-input-wrapper .custom-select-trigger {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}

