/* Ruang Literasi Digital — helpers */

:root {
    --rld-primary: #1f7a7a;
    --rld-ink: #1a2f45;
    --rld-gold: #f0c14b;
    --rld-coral: #e85d4c;
    --rld-mint: #38a8a8;
    --rld-soft: #fff8f2;
    --rld-siswa: #1f7a7a;
    --rld-siswa-dark: #165e5e;
    --rld-siswa-gold: #f0c14b;
    --rld-editor: #2d8a72;
    --rld-editor-dark: #1f6b58;
    --rld-reader: #e85d4c;
    --rld-reader-dark: #d44c3c;
    --rld-admin: #1a2f45;
    --rld-admin-accent: #f0c14b;
    /* legacy aliases */
    --rld-siswa-green: var(--rld-siswa);
    --rld-siswa-navy: var(--rld-ink);
    --rld-editor-green: var(--rld-editor);
    --rld-editor-green-dark: var(--rld-editor-dark);
    --rld-reader-purple: var(--rld-reader);
    --rld-reader-purple-dark: var(--rld-reader-dark);
    --rld-admin-indigo: var(--rld-admin);
    --rld-admin-indigo-dark: #122233;
}

.literasi-public .content-wrapper {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.literasi-landing .content-wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.literasi-landing .app-content.content {
    padding: 0 !important;
}

.literasi-topnav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.literasi-topnav .btn-primary,
.literasi-topnav .btn-rld-daftar {
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: .55rem;
    box-shadow: none !important;
}

.literasi-topnav .btn-primary:hover,
.literasi-topnav .btn-primary:focus,
.literasi-topnav .btn-primary:active,
.literasi-topnav .btn-rld-daftar:hover,
.literasi-topnav .btn-rld-daftar:focus,
.literasi-topnav .btn-rld-daftar:active {
    background: #c2410c !important;
    border-color: #c2410c !important;
    color: #fff !important;
    box-shadow: 0 8px 20px -8px rgba(234, 88, 12, 0.55) !important;
}

.literasi-topnav .btn-rld-keluar,
.literasi-topnav .btn-outline-primary {
    background: #fff !important;
    border: 1px solid rgba(26, 47, 69, 0.22) !important;
    color: var(--rld-ink) !important;
    font-weight: 700;
    border-radius: .55rem;
    box-shadow: none !important;
}

.literasi-topnav .btn-rld-keluar:hover,
.literasi-topnav .btn-rld-keluar:focus,
.literasi-topnav .btn-rld-keluar:active,
.literasi-topnav .btn-outline-primary:hover,
.literasi-topnav .btn-outline-primary:focus,
.literasi-topnav .btn-outline-primary:active {
    background: #fff1ec !important;
    border-color: rgba(234, 88, 12, 0.4) !important;
    color: #c2410c !important;
}

.literasi-landing .literasi-topnav {
    background: rgba(255, 252, 248, 0.88);
    border-bottom: 1px solid rgba(30, 58, 95, 0.06);
}

.literasi-landing .literasi-topnav .navbar-brand strong,
.literasi-landing .literasi-topnav .nav-link {
    color: #1a2f45 !important;
}

.literasi-landing .literasi-topnav .navbar-brand small {
    color: #6d7f90 !important;
}

.literasi-landing .literasi-topnav .nav-link.active {
    color: #e85d4c !important;
}

.literasi-landing .literasi-topnav .btn-outline-primary {
    border-color: #1a2f45 !important;
    color: #1a2f45 !important;
    background: transparent !important;
}

.literasi-landing .literasi-topnav .navbar-toggler {
    border-color: rgba(26, 47, 69, 0.25);
}

.literasi-landing .literasi-topnav .navbar-toggler-icon {
    filter: none;
}

.literasi-topnav .nav-link.active {
    color: var(--rld-coral) !important;
    font-weight: 600;
}

/* Shared app shell — soft campus atmosphere */
body.rld-no-topnav {
    background: linear-gradient(180deg, #fff8f2 0%, #f4f8fb 40%, #eef5f3 100%);
}

body.rld-no-topnav .app-content {
    background: transparent;
}

body.rld-no-topnav .main-menu.menu-light {
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid rgba(26, 47, 69, 0.06);
}

body.rld-no-topnav .card {
    border: 1px solid rgba(26, 47, 69, 0.06);
    border-radius: .85rem;
    box-shadow: 0 8px 24px rgba(26, 47, 69, 0.04);
}

.rld-welcome {
    border: 1px solid rgba(31, 122, 122, 0.16);
    border-radius: 1rem;
    background: linear-gradient(105deg, #e6f5f2 0%, #f2faf8 42%, #fff8ec 100%);
    padding: 1.25rem 1.4rem;
    box-shadow: 0 8px 22px rgba(26, 47, 69, 0.05);
}

.rld-welcome-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.rld-welcome-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.rld-welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(31, 122, 122, 0.18);
}

.rld-welcome-avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rld-siswa);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.rld-welcome-copy { min-width: 0; }

.rld-welcome-label {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--rld-siswa);
    padding: .22rem .55rem;
    border-radius: .35rem;
    margin-bottom: .4rem;
}

.rld-welcome-title {
    color: var(--rld-ink);
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 .55rem;
    line-height: 1.25;
}

.rld-welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.rld-welcome-chip {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(31, 122, 122, 0.14);
    color: #3d5266;
    font-size: .78rem;
    font-weight: 600;
}

.rld-welcome-chip--info {
    background: rgba(31, 122, 122, 0.12);
    border-color: transparent;
    color: var(--rld-siswa);
}

.rld-welcome-chip--warn {
    background: rgba(255, 159, 67, 0.16);
    border-color: transparent;
    color: #c56a12;
}

.rld-welcome-chip--rep {
    background: rgba(240, 193, 75, 0.28);
    border-color: transparent;
    color: #8a6512;
}

.rld-welcome-cta {
    flex: none;
    white-space: nowrap;
}

.btn-rld-gold {
    background: var(--rld-gold);
    border-color: var(--rld-gold);
    color: var(--rld-ink);
    font-weight: 700;
    border-radius: .55rem;
    box-shadow: 0 6px 14px rgba(240, 193, 75, 0.35);
}

.btn-rld-gold:hover {
    background: #e5b33a;
    border-color: #e5b33a;
    color: var(--rld-ink);
}

.btn-rld-outline {
    background: transparent;
    border: 1.5px solid var(--rld-ink);
    color: var(--rld-ink);
    font-weight: 600;
    border-radius: .55rem;
}

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

@media (max-width: 575.98px) {
    .rld-welcome-cta { width: 100%; }
}

/* ===== Landing — siswa-friendly (campus soft) ===== */
.lp-hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #1a2f45;
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 88% 18%, rgba(232, 93, 76, 0.16), transparent 55%),
        radial-gradient(ellipse 55% 45% at 8% 80%, rgba(56, 168, 168, 0.18), transparent 50%),
        radial-gradient(ellipse 40% 35% at 45% 0%, rgba(255, 196, 110, 0.22), transparent 60%),
        linear-gradient(160deg, #fff8f2 0%, #eef6fb 42%, #e4f3f0 100%);
}

.lp-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 47, 69, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .7;
}

.lp-hero-bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(to top, #fff, transparent);
}

.lp-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 1.5rem 5rem;
    width: 100%;
}

.lp-brand {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.35rem, 4.8vw, 3.55rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #1a2f45;
    margin-bottom: .65rem;
    animation: lp-rise .7s ease both;
}

.lp-headline {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: #1f7a7a;
    margin-bottom: .85rem;
    animation: lp-rise .7s ease .08s both;
}

.lp-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4f6274;
    max-width: 36rem;
    margin-bottom: 1.75rem;
    animation: lp-rise .7s ease .16s both;
}

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    animation: lp-rise .7s ease .24s both;
}

.lp-btn-primary {
    background: #f0c14b;
    border-color: #f0c14b;
    color: #1a2f45;
    font-weight: 700;
    padding: .75rem 1.45rem;
    border-radius: .55rem;
    box-shadow: 0 8px 20px rgba(240, 193, 75, 0.35);
}

.lp-btn-primary:hover {
    background: #e5b33a;
    border-color: #e5b33a;
    color: #1a2f45;
    transform: translateY(-1px);
}

.lp-btn-ghost {
    background: transparent;
    border: 1.5px solid #1a2f45;
    color: #1a2f45;
    font-weight: 600;
    padding: .75rem 1.45rem;
    border-radius: .55rem;
}

.lp-btn-ghost:hover {
    border-color: #1a2f45;
    color: #fff;
    background: #1a2f45;
}

.lp-btn-outline {
    border: 1.5px solid #1f7a7a;
    color: #1f7a7a;
    font-weight: 600;
    border-radius: .55rem;
}

.lp-btn-outline:hover {
    background: #1f7a7a;
    color: #fff;
}

.lp-hero-visual {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lp-rise .9s ease .2s both;
}

.lp-desk {
    position: relative;
    width: 280px;
    height: 320px;
}

.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: lp-pulse 5.5s ease-in-out infinite;
}

.lp-blob-a {
    width: 180px;
    height: 180px;
    right: -20px;
    top: 20px;
    background: rgba(56, 168, 168, 0.28);
}

.lp-blob-b {
    width: 120px;
    height: 120px;
    left: -10px;
    bottom: 40px;
    background: rgba(255, 196, 110, 0.4);
    animation-delay: -2s;
}

.lp-page {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(26, 47, 69, 0.08);
    border-radius: .55rem;
    box-shadow: 0 14px 30px rgba(26, 47, 69, 0.1);
}

.lp-page-back {
    width: 200px;
    height: 250px;
    left: 40px;
    top: 28px;
    transform: rotate(8deg);
    background: #f7fbff;
}

.lp-page-mid {
    width: 205px;
    height: 255px;
    left: 28px;
    top: 22px;
    transform: rotate(3deg);
    background: #fffdf9;
}

.lp-page-front {
    width: 210px;
    height: 260px;
    left: 10px;
    top: 16px;
    padding: 1.35rem 1.2rem;
    z-index: 2;
    animation: lp-float 5.5s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

.lp-page-label {
    display: inline-block;
    align-self: flex-start;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1f7a7a;
    background: #e4f4f3;
    padding: .2rem .5rem;
    border-radius: .3rem;
    margin-bottom: .85rem;
}

.lp-page-front strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.25;
    color: #1a2f45;
    margin-bottom: 1rem;
}

.lp-page-lines {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: auto;
}

.lp-page-lines span {
    height: 7px;
    border-radius: 4px;
    background: #e8eef4;
    width: 100%;
}

.lp-page-lines span.short { width: 60%; }

.lp-sticky {
    position: absolute;
    right: -18px;
    top: 58px;
    width: 78px;
    height: 78px;
    background: #ffc46e;
    color: #5a3d12;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .4rem;
    transform: rotate(8deg);
    box-shadow: 0 6px 14px rgba(90, 61, 18, 0.15);
    animation: lp-wiggle 4.5s ease-in-out infinite;
}

.lp-pen {
    position: absolute;
    width: 12px;
    height: 140px;
    right: 18px;
    bottom: 18px;
    border-radius: 6px;
    background: linear-gradient(180deg, #1a2f45 0%, #1a2f45 62%, #e85d4c 62%, #e85d4c 100%);
    transform: rotate(28deg);
    z-index: 3;
    box-shadow: 0 8px 16px rgba(26, 47, 69, 0.2);
    animation: lp-pen 6s ease-in-out infinite;
}

.lp-section {
    padding: 3.25rem 0 2.5rem;
}

.lp-section-muted {
    background: linear-gradient(180deg, #f6fafb 0%, #eef5f3 100%);
}

.lp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lp-section-head h2 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    color: #1a2f45;
    margin-bottom: .25rem;
}

.lp-section-head p {
    color: #5c6f80;
    margin: 0;
}

.lp-link {
    color: #e85d4c;
    font-weight: 700;
    white-space: nowrap;
}

.lp-link:hover { color: #d44c3c; }

.lp-stats {
    padding: 0;
    margin-top: -2.25rem;
    position: relative;
    z-index: 2;
}

.lp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #dce6ee;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #dce6ee;
    box-shadow: 0 14px 34px rgba(26, 47, 69, 0.08);
}

.lp-stat {
    background: #fff;
    padding: 1.35rem 1.25rem;
    text-align: center;
}

.lp-stat strong {
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.85rem;
    color: #1a2f45;
    line-height: 1.1;
}

.lp-stat span {
    color: #5c6f80;
    font-size: .85rem;
    font-weight: 500;
}

.lp-karya {
    background: #fff;
    border: 1px solid #e0e8ef;
    border-radius: .85rem;
    padding: 1.25rem;
    height: 100%;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.lp-karya:hover {
    transform: translateY(-4px);
    border-color: #e85d4c;
    box-shadow: 0 14px 30px rgba(26, 47, 69, 0.08);
}

.lp-karya-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.lp-type {
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: .35rem;
}

.lp-type.ilmiah { background: #e4f4f3; color: #1f7a7a; }
.lp-type.populer { background: #ffe8e3; color: #c24a3c; }

.lp-rating {
    color: #92400e;
    font-size: .8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}

.lp-karya h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .5rem;
}

.lp-karya h3 a { color: #1a2f45; }
.lp-karya h3 a:hover { color: #e85d4c; }

.lp-karya p {
    color: #5c6f80;
    font-size: .9rem;
    margin-bottom: .85rem;
}

.lp-karya-foot {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .8rem;
}

.lp-karya-foot a { color: #1f7a7a; font-weight: 600; }
.lp-karya-foot span { color: #8a97a5; }

.lp-kanal {
    display: block;
    background: #fff;
    border: 1px solid #e0e8ef;
    border-radius: .85rem;
    padding: 1.1rem;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.lp-kanal:hover {
    border-color: #38a8a8;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26, 47, 69, 0.06);
    color: inherit;
}

.lp-kanal i {
    color: #38a8a8;
    margin-bottom: .5rem;
}

.lp-kanal strong {
    display: block;
    color: #1a2f45;
    margin-bottom: .15rem;
}

.lp-kanal span {
    color: #8a97a5;
    font-size: .8rem;
}

.lp-leader {
    background: #fff;
    border: 1px solid #e0e8ef;
    border-radius: .85rem;
    padding: 1rem 1.15rem;
}

.lp-leader-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid #eef2f6;
}

.lp-leader-row:last-of-type { border-bottom: 0; }

.lp-leader-row a {
    display: block;
    font-weight: 700;
    color: #1a2f45;
}

.lp-leader-row small { color: #8a97a5; }

.lp-leader-row em {
    font-style: normal;
    font-weight: 700;
    color: #e85d4c;
}

.literasi-landing .literasi-footer {
    background: #1a2f45;
    color: rgba(255, 255, 255, 0.72);
    border-top: 0;
    margin-top: 0;
}

.literasi-landing .literasi-footer strong,
.literasi-landing .literasi-footer a {
    color: #ffb4a8;
}

@keyframes lp-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes lp-pulse {
    0%, 100% { transform: scale(1); opacity: .9; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes lp-wiggle {
    0%, 100% { transform: rotate(8deg); }
    50% { transform: rotate(12deg) translateY(-3px); }
}

@keyframes lp-pen {
    0%, 100% { transform: rotate(28deg) translateY(0); }
    50% { transform: rotate(26deg) translateY(-4px); }
}

@media (max-width: 991.98px) {
    .lp-hero-inner { grid-template-columns: 1fr; padding: 3rem 1.25rem 3.5rem; }
    .lp-hero-visual { display: none; }
    .lp-hero { min-height: auto; }
    .lp-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .lp-section-head { flex-direction: column; align-items: flex-start; }
}

.stat-soft {
    background: #fff;
    border-radius: .85rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 4px 18px rgba(115, 103, 240, 0.06);
}

.karya-card {
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.karya-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(115, 103, 240, 0.12);
}

.kanal-tile {
    border: 0;
    border-radius: 1rem;
    padding: 1.25rem;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

.leaderboard-rank {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

.leaderboard-rank.gold { background: #ffe8a3; color: #9a6b00; }
.leaderboard-rank.silver { background: #e7e9ee; color: #555; }
.leaderboard-rank.bronze { background: #f3d0b5; color: #8a4b1a; }

.status-pill {
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .75rem;
    font-weight: 600;
}

.reader-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #2f4254;
}

.reader-content p { margin-bottom: 1.1rem; }

.interaction-bar {
    background: #fff;
    border: 1px solid rgba(115, 103, 240, 0.12);
    border-radius: 1rem;
    padding: 1.25rem;
}

.literasi-footer {
    border-top: 1px solid rgba(0,0,0,.06);
    margin-top: 2rem;
}

.auth-brand-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--rld-ink) !important;
    letter-spacing: -0.02em;
}

/* ===== Auth (login / register / verify) — campus soft, no Vuexy purple ===== */
body.literasi-auth {
    background:
        radial-gradient(ellipse 55% 70% at 90% 5%, rgba(240, 193, 75, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 65% at 5% 95%, rgba(56, 168, 168, 0.22), transparent 55%),
        linear-gradient(165deg, #fff8f2 0%, #f4f8fb 48%, #eef5f3 100%) !important;
    min-height: 100vh;
}

body.literasi-auth .app-content,
body.literasi-auth .content-wrapper,
body.literasi-auth .content-body {
    background: transparent !important;
}

body.literasi-auth .auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

body.literasi-auth .auth-wrapper.auth-basic .auth-inner:before,
body.literasi-auth .auth-wrapper.auth-basic .auth-inner:after {
    display: none !important;
}

body.literasi-auth .auth-card {
    border: 1px solid rgba(26, 47, 69, 0.08);
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(26, 47, 69, 0.08);
    background: rgba(255, 252, 248, 0.96);
}

body.literasi-auth .auth-card .card-title,
body.literasi-auth .auth-page-title {
    color: var(--rld-ink);
    font-weight: 800;
}

body.literasi-auth .auth-card .card-text,
body.literasi-auth .auth-card .form-label {
    color: #3d5266;
}

body.literasi-auth .form-control,
body.literasi-auth .form-select,
body.literasi-auth .input-group-text {
    border-color: rgba(26, 47, 69, 0.14);
    border-radius: .55rem;
    background: #fff;
    color: var(--rld-ink);
}

body.literasi-auth .form-control:focus,
body.literasi-auth .form-select:focus {
    border-color: #38a8a8 !important;
    box-shadow: 0 0 0 0.2rem rgba(56, 168, 168, 0.2) !important;
}

body.literasi-auth .form-check-input:checked {
    background-color: #ea580c !important;
    border-color: #ea580c !important;
}

body.literasi-auth .form-check-input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.2);
}

.btn-rld-auth {
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: .55rem;
    box-shadow: none !important;
    padding: .65rem 1rem;
}

.btn-rld-auth:hover,
.btn-rld-auth:focus,
.btn-rld-auth:active {
    background: #c2410c !important;
    border-color: #c2410c !important;
    color: #fff !important;
    box-shadow: 0 8px 20px -8px rgba(234, 88, 12, 0.55) !important;
}

.btn-rld-auth-outline {
    background: #fff !important;
    border: 1px solid rgba(26, 47, 69, 0.18) !important;
    color: var(--rld-ink) !important;
    font-weight: 700;
    border-radius: .55rem;
}

.btn-rld-auth-outline:hover {
    background: #fff1ec !important;
    border-color: rgba(234, 88, 12, 0.35) !important;
    color: #c2410c !important;
}

body.literasi-auth .auth-switch a {
    color: #ea580c !important;
    font-weight: 700;
    text-decoration: none;
}

body.literasi-auth .auth-switch a:hover {
    color: #c2410c !important;
    text-decoration: underline;
}

body.literasi-auth .auth-hint {
    background: #eef8f6;
    border: 1px solid rgba(56, 168, 168, 0.28);
    border-left: 3px solid #1f7a7a;
    border-radius: .65rem;
    padding: .75rem .9rem;
    color: #1a2f45;
    font-size: .875rem;
}

body.literasi-auth .auth-email-chip {
    display: inline-block;
    background: #fff7ed;
    color: #92400e;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: .35rem .85rem;
    font-weight: 600;
    font-size: .85rem;
}

body.literasi-auth .divider .divider-text {
    background: transparent;
    color: #6d7f90;
}

body.literasi-auth .demo-accounts {
    background: #f8fafb;
    border: 1px solid rgba(26, 47, 69, 0.08);
    border-radius: .65rem;
    padding: .85rem 1rem;
    color: #3d5266;
}

body.literasi-auth .demo-accounts code {
    background: #fff7ed;
    color: #92400e;
    padding: .1rem .35rem;
    border-radius: .3rem;
}

body.literasi-auth .brand-logo:hover .auth-brand-title {
    color: #1f7a7a !important;
}

.blank-page .app-content {
    overflow: hidden;
}

/* Siswa dashboard (campus soft) */
.role-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(31, 122, 122, .12);
    color: var(--rld-siswa);
    border-radius: .65rem;
    padding: .45rem .75rem;
    font-size: .8rem;
    font-weight: 600;
}

.role-pill svg { width: 14px; height: 14px; }

.menu-siswa .navigation > li.active > a {
    background: var(--rld-siswa) !important;
    box-shadow: 0 6px 16px rgba(31, 122, 122, .28) !important;
    color: #fff !important;
    border-radius: .45rem;
}

.menu-siswa .navigation > li.active > a svg,
.menu-siswa .navigation > li.active > a i {
    color: #fff !important;
}

.btn-sidebar-logout {
    background: transparent;
    border: 0;
    color: #6e6b7b;
    padding: 10px 15px;
    text-align: left;
}

.btn-sidebar-logout:hover { color: var(--rld-coral); }

.siswa-welcome {
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(240, 193, 75, 0.2), transparent 55%),
        radial-gradient(ellipse 45% 70% at 0% 100%, rgba(56, 168, 168, 0.16), transparent 50%),
        linear-gradient(135deg, #fffdf9 0%, #eef8f6 100%);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 47, 69, 0.06);
    color: var(--rld-ink);
}

.siswa-welcome::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 47, 69, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.siswa-welcome-label {
    color: var(--rld-siswa);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: .35rem;
}

.btn-siswa-cta {
    font-weight: 700;
    border: 0;
    color: var(--rld-ink);
    background: var(--rld-gold);
}

.btn-siswa-cta:hover {
    background: #e5b33a;
    color: var(--rld-ink);
}

.siswa-stat-card {
    border: 0;
    box-shadow: 0 4px 18px rgba(26, 47, 69, 0.05);
}

.siswa-karya-table thead th {
    font-size: .72rem;
    letter-spacing: .04em;
    color: #9a9aad;
}

.status-dot {
    display: inline-block;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    margin-right: .35rem;
    vertical-align: middle;
}
.status-dot-success, .status-dot-primary { background: #28c76f; }
.status-dot-info { background: var(--rld-mint); }
.status-dot-warning { background: #ff9f43; }
.status-dot-danger { background: #ea5455; }
.status-dot-secondary { background: #b9b9c3; }

.siswa-action-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ebe9f1;
    color: inherit;
    text-decoration: none;
}
.siswa-action-item:last-child { border-bottom: 0; }
.siswa-action-item:hover { background: #f7faf9; color: inherit; }

.upload-dropzone {
    border: 2px dashed #c5d5d5;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    background: #fafdfc;
    transition: .15s ease;
}
.upload-dropzone.is-dragover,
.upload-dropzone:hover {
    border-color: var(--rld-siswa);
    background: rgba(31, 122, 122, 0.06);
}

.requirements-box {
    background: #f7faf9;
    border-radius: .85rem;
    padding: .85rem 1rem;
}

.tips-box {
    border: 0;
    border-radius: .85rem;
}

/* Compact circle stepper */
.compact-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 560px;
    margin: 0 auto .75rem;
    padding: .25rem 0;
}

.compact-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 96px;
    text-align: center;
}

.compact-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d8d6de;
    background: #fff;
    color: #6e6b7b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
}

.compact-step-label {
    margin-top: .35rem;
    font-size: .75rem;
    color: #6e6b7b;
    font-weight: 500;
    max-width: 110px;
    line-height: 1.2;
}

.compact-step-line {
    flex: 1;
    height: 2px;
    background: #d8d6de;
    margin-top: 15px;
    min-width: 40px;
    max-width: 80px;
}

.compact-step.active .compact-step-circle {
    border-color: var(--rld-siswa);
    background: var(--rld-siswa);
    color: #fff;
}

.compact-step.active .compact-step-label {
    color: var(--rld-ink);
    font-weight: 600;
}

.compact-step.done .compact-step-circle {
    border-color: #28c76f;
    background: #28c76f;
    color: #fff;
}

.compact-step-line.done {
    background: #28c76f;
}

/* ===== Jelajahi Karya ===== */
.jelajah-header .card-body { padding: 1rem 1.25rem; }

.jelajah-header-icon {
    width: 38px;
    height: 38px;
    border-radius: .65rem;
    background: rgba(47, 158, 68, .12);
    color: var(--rld-siswa-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jelajah-search { position: relative; }

.jelajah-search i {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b9b9c3;
}

.jelajah-search .form-control {
    padding-left: 2.4rem;
    height: 2.85rem;
    border-radius: .65rem;
}

.jelajah-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.jelajah-chip {
    display: inline-block;
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    color: #3d5266 !important;
    background: #eef5f3;
    border: 1px solid #d5e5e1;
    text-decoration: none;
    transition: all .15s ease;
}

.jelajah-chip:hover {
    background: #fff7ed;
    color: #c2410c !important;
    border-color: #fed7aa;
}

.jelajah-chip.active {
    background: #0f766e !important;
    color: #fff !important;
    border-color: #0f766e;
}

.jelajah-search .form-control {
    color: var(--rld-ink);
}

.jelajah-search .form-control::placeholder {
    color: #6b7c8c;
    opacity: 1;
}

.jelajah-sort {
    color: var(--rld-ink);
    border-color: #c5d5d2;
}

.jelajah-sort { min-width: 160px; }

.karya-list-card {
    transition: box-shadow .2s ease, transform .2s ease;
    margin-bottom: 1rem;
}

.karya-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 158, 68, .1);
}

.karya-list-title a {
    color: var(--rld-ink);
    font-weight: 600;
}

.karya-list-title a:hover { color: var(--rld-siswa-green); }

.kanal-chip {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: .4rem;
    font-size: .72rem;
    font-weight: 600;
    background: rgba(31, 122, 122, .12);
    color: var(--rld-siswa);
}

.btn-baca {
    background: rgba(31, 122, 122, .12);
    color: var(--rld-siswa);
    border: 0;
    font-weight: 600;
}

.btn-baca:hover {
    background: var(--rld-siswa);
    color: #fff;
}

.karya-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .8rem;
    color: #4a5d6e;
    align-items: center;
}

.karya-meta i,
.karya-stats i { margin-right: .25rem; }

.karya-stats-rating {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #92400e;
    font-weight: 800;
}

.karya-stats-star {
    color: #d97706;
    font-size: 1.1em;
    line-height: 1;
    text-shadow: 0 0 0.5px #b45309;
}

.karya-stats-rating i,
.karya-stats-rating svg {
    width: 16px;
    height: 16px;
    stroke: #b45309 !important;
    fill: #f59e0b !important;
    color: #b45309;
    stroke-width: 2;
}

.karya-excerpt {
    color: #3d5266;
    font-size: .95rem;
    line-height: 1.65;
    max-width: 52rem;
    margin-top: .15rem;
}

.karya-helper-text {
    color: #3d5266;
    font-size: .9rem;
    line-height: 1.55;
}

/* ===== Detail karya ===== */
.karya-detail-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.karya-detail-title {
    font-weight: 700;
    color: var(--rld-ink);
    line-height: 1.3;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.section-heading {
    font-weight: 700;
    color: var(--rld-ink);
    padding-bottom: .4rem;
    border-bottom: 2px solid rgba(31, 122, 122, .28);
    margin-bottom: .85rem;
    margin-top: 1.5rem;
    display: inline-block;
    min-width: 8rem;
    width: auto;
    max-width: 100%;
}

.card-body > .section-heading:first-child { margin-top: 0; }

.karya-abstract {
    color: #2f4254;
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.doi-box {
    background: rgba(31, 122, 122, .08);
    border: 1px solid rgba(31, 122, 122, .18);
    border-radius: .65rem;
    padding: .75rem 1rem;
}

.doi-box .small { color: #4a5d6e !important; }
.doi-box code { color: var(--rld-siswa); font-weight: 700; font-size: .95rem; }

.keyword-chip {
    display: inline-block;
    padding: .35rem .8rem;
    border-radius: .45rem;
    background: rgba(31, 122, 122, .1);
    color: var(--rld-siswa);
    font-size: .8rem;
    font-weight: 600;
}

.download-box {
    background: rgba(31, 122, 122, .08);
    border: 1px solid rgba(31, 122, 122, .18);
    border-radius: .75rem;
    padding: 1rem;
}

.ms-file-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(26, 47, 69, .12);
    border-radius: .85rem;
    background: #fffaf0;
    box-shadow: 0 6px 18px rgba(26, 47, 69, .06);
}

.ms-file-card.is-missing {
    background: #fff6f6;
    border-color: rgba(234, 84, 85, .28);
}

.ms-file-icon {
    width: 46px;
    height: 56px;
    border-radius: .4rem .4rem .35rem .35rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: .4rem;
    color: #fff;
    position: relative;
    flex: none;
    overflow: hidden;
}

.ms-file-icon--pdf {
    background: linear-gradient(180deg, #ff6b6b 0%, #c0392b 100%);
    box-shadow: 0 8px 16px rgba(192, 57, 43, .28);
}

.ms-file-icon--doc {
    background: linear-gradient(180deg, #5b9dff 0%, #2c6bed 100%);
    box-shadow: 0 8px 16px rgba(44, 107, 237, .28);
}

.ms-file-icon__fold {
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 14px 14px 0;
    border-color: transparent rgba(255,255,255,.55) transparent transparent;
}

.ms-file-icon__label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
}

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

.ms-file-name {
    display: block;
    font-size: .92rem;
    color: #1a2f45;
    word-break: break-word;
}

.ms-file-missing-text {
    color: #c0392b;
    font-weight: 600;
}

.ms-file-btn {
    flex: none;
    background: #1a2f45;
    border-color: #1a2f45;
    color: #fff;
    font-weight: 700;
}

.ms-file-btn:hover,
.ms-file-btn:focus {
    background: #122233;
    border-color: #122233;
    color: #fff;
}

.ms-preview-frame-card {
    overflow: hidden;
}

.ms-preview-frame {
    width: 100%;
    min-height: 75vh;
    border: 0;
    display: block;
    background: #f3f5f7;
}

.download-icon {
    width: 34px;
    height: 34px;
    border-radius: .5rem;
    background: rgba(31, 122, 122, .15);
    color: var(--rld-siswa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.star-display {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
}

.star-display i,
.star-display svg {
    width: 18px;
    height: 18px;
    color: #c8ced6;
    stroke: #c8ced6;
}

.star-display i.filled,
.star-display svg.filled {
    color: #e5b33a;
    stroke: #e5b33a;
    fill: #e5b33a;
}

.star-input { display: flex; gap: .25rem; margin-bottom: .5rem; }

.star-btn {
    background: none;
    border: 0;
    padding: .15rem;
    line-height: 1;
    color: #c8ced6;
    cursor: pointer;
}

.star-btn i { width: 26px !important; height: 26px !important; }

.star-btn.on,
.star-btn.hover {
    color: #e5b33a;
}

.star-btn.on i,
.star-btn.hover i,
.star-btn.on svg,
.star-btn.hover svg {
    fill: #e5b33a;
    stroke: #e5b33a;
}

.cite-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #4a5d6e;
    margin-bottom: .35rem;
}

.cite-box {
    background: #f4f8f7;
    border-radius: .5rem;
    padding: .75rem 1rem;
    font-family: "Courier New", monospace;
    font-size: .8rem;
    color: #2f4254;
    line-height: 1.6;
    word-break: break-word;
}

.related-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border: 1px solid #ebe9f1;
    border-radius: .65rem;
    margin-bottom: .65rem;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.related-item:last-child { margin-bottom: 0; }

.related-item:hover {
    border-color: rgba(47, 158, 68, .35);
    box-shadow: 0 4px 14px rgba(47, 158, 68, .08);
    color: inherit;
}

.related-title {
    font-weight: 600;
    color: var(--rld-ink);
    line-height: 1.35;
    margin-bottom: .35rem;
}

.related-item:hover .related-title { color: var(--rld-siswa-green); }

.related-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: #6e6b7b;
}

.related-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rld-siswa-green);
    margin-top: .5rem;
    flex: none;
}

/* ===== Profil penulis ===== */
.profile-hero {
    background:
        radial-gradient(ellipse 55% 90% at 95% 8%, rgba(240, 193, 75, 0.42), transparent 58%),
        radial-gradient(ellipse 50% 80% at 5% 95%, rgba(56, 168, 168, 0.3), transparent 55%),
        radial-gradient(ellipse 30% 45% at 50% 0%, rgba(232, 93, 76, 0.08), transparent 60%),
        linear-gradient(135deg, #fff6e8 0%, #e4f5f2 48%, #d8efe9 100%);
    border: 1px solid rgba(31, 122, 122, 0.14);
    border-left: 4px solid var(--rld-siswa);
    color: var(--rld-ink);
    box-shadow: 0 10px 28px rgba(26, 47, 69, 0.06);
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    right: -44px;
    top: -52px;
    border-radius: 50%;
    background: rgba(240, 193, 75, 0.28);
    pointer-events: none;
}

.profile-hero .card-body { padding: 1.5rem; position: relative; z-index: 1; }

.profile-role-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--rld-siswa);
    padding: .28rem .65rem;
    border-radius: .4rem;
    margin-bottom: .45rem;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .85);
    box-shadow: 0 6px 16px rgba(31, 122, 122, .2);
    flex: none;
}

.profile-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rld-siswa);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.profile-hero-text h3 {
    color: var(--rld-ink);
    font-weight: 700;
}

.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .85rem;
    color: #3d5266;
    margin-bottom: .65rem;
}

.profile-hero-meta i { margin-right: .25rem; color: var(--rld-siswa); }

.profile-bio {
    color: #3d5266;
    font-size: .9rem;
    max-width: 640px;
    line-height: 1.55;
}

.btn-edit-profile {
    font-weight: 700;
    color: var(--rld-ink) !important;
    background: var(--rld-gold) !important;
    border-color: var(--rld-gold) !important;
    box-shadow: 0 6px 14px rgba(240, 193, 75, 0.35);
}

.btn-edit-profile:hover {
    background: #e5b33a !important;
    border-color: #e5b33a !important;
    color: var(--rld-ink) !important;
}

.profile-settings-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(26, 47, 69, 0.2) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: var(--rld-ink) !important;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.profile-tag {
    display: inline-block;
    padding: .35rem .75rem;
    border-radius: .45rem;
    background: rgba(31, 122, 122, .1);
    color: var(--rld-siswa);
    font-size: .78rem;
    font-weight: 600;
}

.profile-stat-card {
    border: 1px solid rgba(26, 47, 69, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.profile-stats-row {
    margin-bottom: .75rem !important;
}

.profile-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26, 47, 69, 0.07);
}

.profile-stat-card .card-body { padding: 1rem 1.1rem; }

.profile-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: .75rem;
    flex: none;
}

.profile-stat-card .profile-stat-icon.bg-light-success {
    background: rgba(31, 122, 122, .14) !important;
    color: var(--rld-siswa) !important;
}

.profile-stat-card .profile-stat-icon.bg-light-info {
    background: rgba(56, 168, 168, .16) !important;
    color: #1f7a7a !important;
}

.profile-stat-card .profile-stat-icon.bg-light-primary {
    background: rgba(240, 193, 75, .22) !important;
    color: #9a6f10 !important;
}

.profile-stat-card h3 {
    color: var(--rld-ink);
    font-weight: 700;
}

.profile-section-title {
    font-weight: 700;
    color: var(--rld-ink);
    margin-bottom: .5rem;
}

.published-work-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid #eef2f0;
}

.published-work-item:first-of-type { padding-top: .25rem; }
.published-work-item:last-child { border-bottom: 0; padding-bottom: 0; }

.published-work-title {
    display: block;
    font-weight: 600;
    color: var(--rld-ink);
    margin-bottom: .45rem;
    line-height: 1.35;
}

.published-work-title:hover { color: var(--rld-siswa); }

.published-work-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    font-size: .78rem;
    color: #4a5d6e;
}

.achievement-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .55rem 0;
    border-bottom: 1px solid #eef2f0;
}

.achievement-item:first-of-type { padding-top: .25rem; }
.achievement-item:last-child { border-bottom: 0; padding-bottom: 0; }

.achievement-icon {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.achievement-item.earned .achievement-icon {
    background: rgba(245, 197, 66, .2);
    color: #c99200;
}

.achievement-item.locked .achievement-icon {
    background: #f3f2f7;
    color: #b9b9c3;
}

.achievement-item.locked .achievement-title,
.achievement-item.locked .achievement-desc { opacity: .55; }

.achievement-title {
    font-weight: 600;
    color: var(--rld-ink);
    margin-bottom: .15rem;
}

.achievement-desc {
    font-size: .78rem;
    color: #6e6b7b;
}

.profile-edit-tips {
    padding-left: 1.1rem;
    margin: 0;
    font-size: .85rem;
    color: #3d5266;
}

.profile-edit-tips li { margin-bottom: .35rem; }

.profile-edit-preview .profile-avatar {
    border-color: rgba(31, 122, 122, .25);
}

/* ===== Editor / Reviewer ===== */
.role-pill-editor {
    background: rgba(45, 138, 114, .12);
    color: var(--rld-editor);
}

.menu-editor .navigation > li.active > a {
    background: var(--rld-editor) !important;
    box-shadow: 0 6px 16px rgba(45, 138, 114, .28) !important;
    color: #fff !important;
    border-radius: .45rem;
}

.menu-editor .navigation > li.active > a svg,
.menu-editor .navigation > li.active > a i { color: #fff !important; }

.editor-profile-card .card-body { padding: 1.1rem 1.25rem; }

.editor-mini-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    background: #f3f2f7;
}

.editor-mini-avatar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rld-editor);
    background: rgba(45, 138, 114, .12);
}

.editor-role-badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: .35rem;
    background: rgba(45, 138, 114, .12);
    color: var(--rld-editor);
    font-size: .72rem;
    font-weight: 600;
}

.editor-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .8rem;
    color: #6e6b7b;
}

.editor-info-list li { margin-bottom: .35rem; }
.editor-info-list i { width: 14px; margin-right: .35rem; }

.editor-banner-card {
    background:
        radial-gradient(ellipse 55% 90% at 95% 8%, rgba(240, 193, 75, 0.4), transparent 58%),
        radial-gradient(ellipse 50% 80% at 5% 95%, rgba(45, 138, 114, 0.3), transparent 55%),
        linear-gradient(135deg, #fff6e8 0%, #e4f5ef 50%, #d5efe6 100%);
    border: 1px solid rgba(45, 138, 114, 0.16);
    border-left: 4px solid var(--rld-editor);
    color: var(--rld-ink);
    box-shadow: 0 10px 28px rgba(26, 47, 69, 0.05);
}

.editor-banner-card h4 { color: var(--rld-ink); }
.editor-banner-card .text-muted-soft { color: #5c6f80; }

.editor-validasi-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(45, 138, 114, 0.15);
    border-radius: .65rem;
    padding: .85rem 1rem;
}

.editor-profile-hero,
.editor-profile-page .profile-hero.editor-profile-hero {
    background:
        radial-gradient(ellipse 55% 90% at 95% 8%, rgba(240, 193, 75, 0.4), transparent 58%),
        radial-gradient(ellipse 50% 80% at 5% 95%, rgba(45, 138, 114, 0.3), transparent 55%),
        linear-gradient(135deg, #fff6e8 0%, #e4f5ef 50%, #d5efe6 100%);
    border-left-color: var(--rld-editor);
    color: var(--rld-ink);
}

.editor-inline-badge {
    display: inline-block;
    padding: .28rem .65rem;
    border-radius: .4rem;
    background: var(--rld-editor);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.editor-avatar-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.editor-activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid #f1f1f4;
}

.editor-activity-item:last-child { border-bottom: 0; }

.submission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.priority-chip {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: .35rem;
    font-size: .68rem;
    font-weight: 600;
}

.priority-chip.high { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.priority-chip.medium { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.editor-filter-tab.active {
    background: #0f766e;
    color: #fff;
}

.editor-page .btn-success {
    background: var(--rld-gold);
    border-color: var(--rld-gold);
    color: var(--rld-ink);
    font-weight: 700;
}

.editor-page .btn-success:hover {
    background: #e5b33a;
    border-color: #e5b33a;
    color: var(--rld-ink);
}

.editor-page .editor-header .card-body { padding: 1.1rem 1.25rem; }

.editor-stat-card {
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}

.editor-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 47, 69, .08);
}

.editor-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .5rem;
}

.editor-table thead th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #4a5d6e;
    background: #fff7ed !important;
    border-bottom: 1px solid #fed7aa;
}

.editor-table th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6e6b7b;
}

.editor-queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f1f1f4;
}

.editor-queue-item:last-child { border-bottom: 0; }

.editor-flow-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.flow-pill {
    display: inline-block;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}

.flow-accept { background: rgba(40, 199, 111, .12); color: #28c76f; }
.flow-revision { background: rgba(255, 159, 67, .15); color: #ff9f43; }
.flow-reject { background: rgba(234, 84, 85, .12); color: #ea5455; }

.editor-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.editor-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: #eef5f3;
    color: #3d5266;
    font-size: .82rem;
    font-weight: 600;
}

.editor-filter-tab.active {
    background: #0f766e;
    color: #fff;
}

.editor-filter-tab .badge {
    background: rgba(255, 255, 255, .2);
    color: inherit;
    font-size: .68rem;
}

.editor-filter-tab:not(.active) .badge {
    background: #fff;
    color: #6e6b7b;
}

.editor-decision-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.editor-decision {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem .85rem;
    border: 1px solid #ebe9f1;
    border-radius: .65rem;
    cursor: pointer;
    margin: 0;
}

.editor-decision input { margin-top: .2rem; }

.editor-decision:has(input:checked) {
    border-color: var(--rld-editor);
    background: rgba(45, 138, 114, .06);
}

.editor-decision.accept:has(input:checked) { border-color: #28c76f; background: rgba(40, 199, 111, .06); }
.editor-decision.revision:has(input:checked) { border-color: #ff9f43; background: rgba(255, 159, 67, .08); }
.editor-decision.reject:has(input:checked) { border-color: #ea5455; background: rgba(234, 84, 85, .06); }

.editor-review-item {
    padding: .85rem 0;
    border-bottom: 1px solid #f1f1f4;
}

.editor-review-item:last-child { border-bottom: 0; padding-bottom: 0; }

/* ===== Pembaca Umum ===== */
.literasi-reader {
    background: linear-gradient(180deg, #fff8f2 0%, #f4f8fb 45%, #eef5f3 100%);
}

.literasi-reader .reader-topnav {
    background: rgba(255, 252, 248, 0.9);
    border-bottom: 1px solid rgba(26, 47, 69, 0.06);
}

.literasi-reader .reader-topnav .nav-link.active {
    color: #ea580c !important;
    font-weight: 700;
}

.reader-avatar-sm {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ea580c;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    margin-right: .35rem;
}

.reader-nav-user {
    color: var(--rld-ink);
    font-weight: 600;
    font-size: .9rem;
}

.btn-reader-logout {
    background: #fff;
    border: 1px solid rgba(26, 47, 69, 0.18);
    color: var(--rld-ink);
    font-weight: 700;
    border-radius: .55rem;
}

.btn-reader-logout:hover {
    background: #fff1ec;
    border-color: rgba(234, 88, 12, 0.35);
    color: #c2410c;
}

.reader-hero {
    background:
        radial-gradient(ellipse 55% 90% at 95% 8%, rgba(232, 93, 76, 0.28), transparent 58%),
        radial-gradient(ellipse 50% 80% at 5% 95%, rgba(56, 168, 168, 0.26), transparent 55%),
        linear-gradient(135deg, #fff4ef 0%, #ffe8e1 45%, #e8f5f2 100%);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    color: var(--rld-ink);
    border: 1px solid rgba(232, 93, 76, 0.16);
    border-left: 4px solid var(--rld-reader);
    box-shadow: 0 10px 28px rgba(26, 47, 69, 0.05);
}

.reader-hero h2 { color: var(--rld-ink); font-weight: 700; }
.reader-hero-lead { color: #3d5266; font-size: 1.02rem; line-height: 1.6; max-width: 36rem; }

.reader-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #ea580c;
    color: #fff;
    border-radius: 999px;
    padding: .3rem .75rem;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.reader-hero-stats {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
}

.reader-stat-chip {
    min-width: 7.5rem;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(26, 47, 69, 0.1);
    border-radius: .75rem;
    padding: .85rem .9rem;
    box-shadow: 0 8px 18px rgba(26, 47, 69, 0.06);
}

.reader-stat-chip strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1.1;
    color: var(--rld-ink);
    font-weight: 800;
}

.reader-stat-chip span {
    display: block;
    margin-top: .25rem;
    font-size: .75rem;
    font-weight: 600;
    color: #3d5266;
}

.btn-reader-primary {
    background: var(--rld-gold);
    border-color: var(--rld-gold);
    color: var(--rld-ink);
    font-weight: 700;
    border-radius: .55rem;
}

.btn-reader-primary:hover {
    background: #e5b33a;
    border-color: #e5b33a;
    color: var(--rld-ink);
}

.reader-quick-card {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none;
    border: 1px solid rgba(26, 47, 69, 0.08);
    background: #fff;
}

.reader-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(26, 47, 69, .08);
    border-color: rgba(234, 88, 12, .35);
    color: inherit;
}

.reader-quick-card h5 {
    color: var(--rld-ink);
    font-weight: 700;
}

.reader-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .65rem;
    color: #fff;
}

.reader-quick-icon--coral { background: #ea580c; }
.reader-quick-icon--amber { background: #d97706; }
.reader-quick-icon--teal { background: #0f766e; }

.reader-karya-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f1f1f4;
}

.reader-karya-item:last-child { border-bottom: 0; }
.reader-karya-title { color: var(--rld-ink) !important; text-decoration: none; }
.reader-karya-title:hover { color: #ea580c !important; }

.reader-karya-meta {
    color: #3d5266;
    font-size: .85rem;
    font-weight: 500;
}

.reader-karya-rating {
    color: #92400e;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}

.reader-karya-rating i,
.reader-karya-rating svg {
    width: 13px;
    height: 13px;
    stroke: #b45309 !important;
    fill: #f59e0b !important;
}

.reader-activity-item {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid #f1f1f4;
}

.reader-activity-item:last-child { border-bottom: 0; }

.reader-activity-link {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--rld-ink) !important;
    text-decoration: none;
}

.reader-activity-link:hover { color: #ea580c !important; }

.reader-comment-snippet {
    color: #3d5266;
    font-size: .82rem;
    line-height: 1.45;
    margin-top: .2rem;
}

.literasi-reader .card-title,
.literasi-reader .content-header-title {
    color: var(--rld-ink) !important;
}

.literasi-reader a:not(.btn):not(.nav-link):not(.navbar-brand):not(.jelajah-chip) {
    color: var(--rld-ink);
}

.literasi-reader a:not(.btn):not(.nav-link):not(.navbar-brand):not(.jelajah-chip):hover {
    color: #ea580c;
}

.literasi-reader .btn-outline-primary {
    border-color: var(--rld-ink);
    color: var(--rld-ink);
}

.literasi-reader .btn-outline-primary:hover {
    background: var(--rld-ink);
    color: #fff;
}

.reader-table {
    color: #2f4254;
}

.reader-table thead th {
    background: #fff7ed !important;
    color: #4a5d6e;
    border-bottom: 1px solid #fed7aa;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.reader-table tbody td {
    color: #2f4254;
    vertical-align: middle;
}

.reader-badge {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a;
}

.reader-header-card .card-body { padding: 1rem 1.25rem; }

.reader-header-icon {
    width: 38px;
    height: 38px;
    border-radius: .65rem;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reader-kanal-chip {
    background: rgba(31, 122, 122, .12);
    color: var(--rld-siswa);
}

.reader-section-heading {
    border-bottom-color: rgba(31, 122, 122, .28);
}

.reader-doi-box {
    background: rgba(31, 122, 122, .07);
    border-color: rgba(31, 122, 122, .2);
}

.reader-doi-box code { color: var(--rld-siswa); }

.reader-related-dot { background: var(--rld-reader); }

.reader-interaction-box {
    background: #fffdf9;
    border-radius: .75rem;
    padding: 1rem;
    height: 100%;
    border: 1px solid rgba(26, 47, 69, 0.06);
}

.reader-interaction-icon {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    background: rgba(232, 93, 76, .12);
    color: var(--rld-reader);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .5rem;
}

.reader-comment-item {
    padding: .75rem 0;
    border-bottom: 1px solid #f1f1f4;
}

.reader-comment-item:last-child { border-bottom: 0; }

.reader-author-hero {
    background: linear-gradient(135deg, #fffdf9 0%, #fff1ec 100%);
    border: 1px solid rgba(232, 93, 76, .12);
}

.reader-reputation-score {
    color: #b45309 !important;
    font-weight: 800;
}

.reader-reputation-label {
    color: #92400e;
    font-weight: 600;
}

.reader-karya-stats {
    color: #4a5d6e;
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    flex-wrap: wrap;
}

.reader-avatar-icon {
    background: rgba(232, 93, 76, .12) !important;
    color: var(--rld-reader) !important;
}

.reader-badge { background: #fffbeb !important; color: #b45309 !important; border: 1px solid #fde68a; }

/* ===== Super Admin ===== */
.role-pill-admin {
    background: rgba(26, 47, 69, .1);
    color: var(--rld-admin);
    border: 1px solid rgba(26, 47, 69, 0.12);
}

.menu-admin .navigation > li.active > a {
    background: var(--rld-admin) !important;
    box-shadow: 0 6px 16px rgba(26, 47, 69, .25) !important;
    color: #fff !important;
    border-radius: .45rem;
}

.menu-admin .navigation > li.active > a svg,
.menu-admin .navigation > li.active > a i { color: #fff !important; }

/* Sticky Keluar di paling bawah sidebar */
.main-menu.menu-siswa,
.main-menu.menu-editor,
.main-menu.menu-admin {
    display: flex;
    flex-direction: column;
}

.main-menu.menu-siswa .main-menu-content,
.main-menu.menu-editor .main-menu-content,
.main-menu.menu-admin .main-menu-content {
    flex: 1 1 auto;
    overflow-y: auto;
}

.sidebar-logout {
    flex: 0 0 auto;
    margin-top: auto;
    border-top: 1px solid rgba(26, 47, 69, 0.1);
    padding: .65rem .75rem 1rem;
    background: #fff;
}

.sidebar-logout .btn-sidebar-logout {
    border-radius: .45rem;
    color: #5a6b7b;
    font-weight: 600;
}

.sidebar-logout .btn-sidebar-logout:hover {
    background: #fff1ec;
    color: #c2410c;
}

body.rld-admin {
    background: linear-gradient(180deg, #fff8f2 0%, #f4f8fb 40%, #eef5f3 100%);
}

body.rld-admin .app-content {
    background: transparent;
}

body.rld-admin .brand-text { color: var(--rld-ink) !important; }

.admin-header {
    background:
        radial-gradient(ellipse 55% 90% at 95% 8%, rgba(240, 193, 75, 0.38), transparent 58%),
        radial-gradient(ellipse 45% 70% at 5% 95%, rgba(56, 168, 168, 0.2), transparent 55%),
        linear-gradient(135deg, #fff6e8 0%, #eef3f8 55%, #e4edf4 100%);
    border: 1px solid rgba(26, 47, 69, 0.1);
    border-left: 4px solid var(--rld-admin);
    box-shadow: 0 10px 28px rgba(26, 47, 69, 0.05);
}

.admin-header .card-body { padding: 1.1rem 1.25rem; }
.admin-header h4 { color: var(--rld-ink); font-weight: 800; }

/* Gold CTA — beat Vuexy purple !important */
.btn-rld-admin,
.admin-page .btn-primary,
body.rld-admin .app-content .btn-primary {
    background: var(--rld-gold) !important;
    border-color: var(--rld-gold) !important;
    color: var(--rld-ink) !important;
    font-weight: 700;
    border-radius: .55rem;
    box-shadow: 0 6px 14px rgba(240, 193, 75, 0.28) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-rld-admin:hover,
.btn-rld-admin:focus,
.btn-rld-admin:active,
.admin-page .btn-primary:hover,
body.rld-admin .app-content .btn-primary:hover {
    background: #e5b33a !important;
    border-color: #e5b33a !important;
    color: var(--rld-ink) !important;
}

.btn-rld-admin-outline,
.admin-page .btn-outline-primary,
body.rld-admin .app-content .btn-outline-primary {
    background: #fff !important;
    border: 1px solid rgba(26, 47, 69, 0.22) !important;
    color: var(--rld-ink) !important;
    font-weight: 700;
    border-radius: .55rem;
    box-shadow: none !important;
}

.btn-rld-admin-outline:hover,
.admin-page .btn-outline-primary:hover,
body.rld-admin .app-content .btn-outline-primary:hover {
    background: var(--rld-ink) !important;
    border-color: var(--rld-ink) !important;
    color: #fff !important;
}

.btn-rld-admin-amber,
.admin-page .btn-warning {
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: .55rem;
    box-shadow: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-rld-admin-amber:hover,
.admin-page .btn-warning:hover {
    background: #c2410c !important;
    border-color: #c2410c !important;
    color: #fff !important;
}

.btn-rld-admin-amber-outline,
.admin-page .btn-outline-warning {
    background: #fff !important;
    border: 1px solid #ea580c !important;
    color: #c2410c !important;
    font-weight: 700;
    border-radius: .55rem;
}

.btn-rld-admin-amber-outline:hover,
.admin-page .btn-outline-warning:hover {
    background: #fff7ed !important;
    color: #9a3412 !important;
}

.admin-link-muted {
    color: #0f766e !important;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
}

.admin-link-muted:hover {
    color: #115e59 !important;
    text-decoration: underline;
}

.admin-stat-card {
    border: 1px solid rgba(26, 47, 69, 0.1);
    box-shadow: 0 8px 18px rgba(26, 47, 69, 0.04);
}

.admin-stat-card--active {
    border-color: var(--rld-admin) !important;
    box-shadow: 0 0 0 2px rgba(26, 47, 69, 0.12);
}

.admin-stat-card .card-body { padding: 1rem; }

.admin-stat-card .rld-stat-icon,
.admin-stat-icon.rld-stat-icon {
    width: 36px;
    height: 36px;
    margin-right: 0;
    margin-bottom: .45rem;
}

.admin-stat-card .d-flex .rld-stat-icon {
    margin-bottom: 0;
    margin-right: .75rem;
}

.admin-action-card {
    border-width: 2px !important;
    box-shadow: 0 10px 22px rgba(26, 47, 69, 0.05);
}

.admin-action-card--danger {
    border-color: #f87171 !important;
    background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
}

.admin-action-card--amber {
    border-color: #fbbf24 !important;
    background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.admin-invite-card {
    border: 2px solid rgba(26, 47, 69, 0.12);
    overflow: hidden;
}

.admin-invite-card__head {
    background: linear-gradient(135deg, #fff6e8 0%, #eef3f8 100%) !important;
    border-bottom: 1px solid rgba(26, 47, 69, 0.08);
    color: var(--rld-ink);
}

.ms-cat-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.ms-cat-check {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    padding: .4rem .7rem;
    border: 1px solid rgba(26, 47, 69, .14);
    border-radius: .55rem;
    background: #fff;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    color: #1a2f45;
}

.ms-cat-check:has(input:checked) {
    border-color: #1a2f45;
    background: #fff6e8;
}

.ms-cat-check input {
    margin: 0;
}

.admin-queue-item,
.admin-workload-item,
.admin-audit-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(26, 47, 69, 0.08);
}

.admin-queue-item > .btn,
.admin-queue-item > form {
    flex-shrink: 0;
}

.admin-assign-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .5rem;
    min-width: 260px;
}

.admin-assign-form .form-select {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-assign-form .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admin-queue-item:last-child,
.admin-workload-item:last-child,
.admin-audit-item:last-child { border-bottom: 0; }

.admin-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

@media (max-width: 991.98px) {
    .admin-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

.admin-feature-tile {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem;
    border-radius: .75rem;
    background: #fffdf9;
    color: var(--rld-ink);
    text-decoration: none;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
    border: 1px solid rgba(26, 47, 69, 0.1);
}

.admin-feature-tile:hover {
    background: rgba(240, 193, 75, .18);
    color: var(--rld-ink);
    transform: translateY(-1px);
    border-color: rgba(240, 193, 75, 0.45);
}

.admin-feature-tile i { color: #0f766e; margin-bottom: .25rem; }
.admin-feature-tile span { font-weight: 700; font-size: .9rem; }
.admin-feature-tile small { color: #3d5266; font-size: .75rem; }

.admin-table th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #3d5266;
    background: #fff7ed;
    border-bottom: 1px solid rgba(26, 47, 69, 0.08);
}

.admin-flow-steps {
    padding-left: 1.1rem;
}

.admin-flow-steps li { margin-bottom: .35rem; }

.admin-report-metric {
    display: flex;
    justify-content: space-between;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(26, 47, 69, 0.08);
}

.admin-report-metric:last-child { border-bottom: 0; }
.admin-report-metric strong { color: var(--rld-ink); font-weight: 800; }

.admin-progress-value {
    color: var(--rld-ink);
    font-weight: 800;
}

.admin-reputation {
    color: #92400e;
    font-weight: 800;
}

.admin-action-code {
    font-size: .75rem;
    background: #fff7ed;
    color: #92400e;
    padding: .15rem .4rem;
    border-radius: .3rem;
    border: 1px solid #fed7aa;
}

.admin-page .editor-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.admin-page .editor-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: .4rem .85rem;
    border-radius: .5rem;
    background: #fff;
    border: 1px solid rgba(26, 47, 69, 0.12);
    color: #3d5266;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
}

.admin-page .editor-filter-tab:hover {
    border-color: rgba(26, 47, 69, 0.28);
    color: var(--rld-ink);
}

.admin-page .editor-filter-tab.active {
    background: var(--rld-admin) !important;
    border-color: var(--rld-admin) !important;
    color: #fff !important;
}

body.rld-admin .card-header a.admin-link-muted,
body.rld-admin .card-header a.small {
    color: #0f766e !important;
    font-weight: 700;
}

body.rld-admin .pagination .page-item.active .page-link {
    background-color: var(--rld-admin) !important;
    border-color: var(--rld-admin) !important;
}

body.rld-admin .pagination .page-link {
    color: var(--rld-ink);
}

body.rld-admin .form-control:focus,
body.rld-admin .form-select:focus {
    border-color: #38a8a8 !important;
    box-shadow: 0 0 0 0.2rem rgba(56, 168, 168, 0.2) !important;
}

/* Sidebar sudah memuat seluruh menu, jadi navbar atas hanya dipakai di layar kecil */
@media (min-width: 1200px) {
    html body.rld-no-topnav .header-navbar,
    html body.rld-no-topnav .header-navbar-shadow { display: none !important; }
    html body.rld-no-topnav .content.app-content { padding: 2rem 2rem 0 !important; }
}

@media (max-width: 767.98px) {
    .literasi-hero { padding: 1.75rem 1.25rem; }
    .siswa-welcome { padding: 1.25rem; }
    .compact-step-label { font-size: .65rem; max-width: 72px; }
    .compact-step { min-width: 72px; }
}

/* ===== Siswa polish utilities ===== */
.rld-helper {
    color: #3d5266 !important;
}

.rld-back-link {
    color: #3d5266;
    font-weight: 600;
    text-decoration: none;
}

.rld-back-link:hover { color: var(--rld-siswa); }

.rld-tips-box {
    background: rgba(31, 122, 122, 0.08);
    border: 1px solid rgba(31, 122, 122, 0.16);
    border-radius: .65rem;
    padding: .85rem 1rem;
    color: #2f4254;
}

.rld-avatar-teal {
    background: rgba(31, 122, 122, 0.14) !important;
    color: var(--rld-siswa) !important;
}

.rld-file-name { color: var(--rld-siswa); }

body.rld-siswa .app-content .btn-primary {
    background: var(--rld-gold);
    border-color: var(--rld-gold);
    color: var(--rld-ink);
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(240, 193, 75, 0.3);
}

body.rld-siswa .app-content .btn-primary:hover {
    background: #e5b33a;
    border-color: #e5b33a;
    color: var(--rld-ink);
}

body.rld-siswa .app-content .btn-outline-primary {
    border-color: var(--rld-ink);
    color: var(--rld-ink);
}

body.rld-siswa .app-content .btn-outline-primary:hover {
    background: var(--rld-ink);
    color: #fff;
}

body.rld-siswa .brand-text { color: var(--rld-ink) !important; }

body.rld-editor .brand-text { color: var(--rld-ink) !important; }

body.rld-editor .app-content .btn-primary,
body.rld-editor .app-content .btn-success {
    background: var(--rld-gold);
    border-color: var(--rld-gold);
    color: var(--rld-ink);
    font-weight: 700;
}

body.rld-editor .app-content .btn-primary:hover,
body.rld-editor .app-content .btn-success:hover {
    background: #e5b33a;
    border-color: #e5b33a;
    color: var(--rld-ink);
}

.rld-toggle-icon { color: var(--rld-siswa) !important; }

.menu-siswa .btn-sidebar-logout { color: #4a5d6e; }
.menu-siswa .btn-sidebar-logout:hover { color: var(--rld-coral); }

.jelajah-header-icon {
    background: rgba(31, 122, 122, .12) !important;
    color: var(--rld-siswa) !important;
}

.jelajah-chip {
    color: #3d5266 !important;
    background: #eef5f3;
    border: 1px solid #d5e5e1;
    font-weight: 600;
}

.jelajah-chip:hover {
    background: #fff7ed;
    color: #c2410c !important;
    border-color: #fed7aa;
}

.jelajah-chip.active {
    background: #0f766e !important;
    color: #fff !important;
    border-color: #0f766e;
}

.profile-edit-tips {
    padding-left: 1.1rem;
    margin: 0;
    color: #3d5266;
    font-size: .85rem;
}

.profile-edit-tips li { margin-bottom: .35rem; }

.profile-edit-preview .profile-avatar {
    border-color: rgba(31, 122, 122, .25);
}

.ms-step {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: .45rem;
    font-size: .75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.ms-step--done.ms-step--blue,
.ms-step--current.ms-step--blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.ms-step--current.ms-step--blue {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.ms-step--done.ms-step--amber,
.ms-step--current.ms-step--amber {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}
.ms-step--current.ms-step--amber {
    background: #d97706;
    color: #fff;
    border-color: #d97706;
}

.ms-step--done.ms-step--orange,
.ms-step--current.ms-step--orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}
.ms-step--current.ms-step--orange {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}

.ms-step--done.ms-step--teal,
.ms-step--current.ms-step--teal {
    background: #f0fdfa;
    color: #0f766e;
    border-color: #99f6e4;
}
.ms-step--current.ms-step--teal {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

/* Stat cards — colorful & firm */
.rld-stats-row {
    margin-bottom: .75rem;
}

.rld-stat-card .card-body {
    padding: 1rem 1.1rem;
}

.rld-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: .75rem;
    flex: none;
    color: #fff;
}

.rld-stat-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.rld-stat-icon--blue { background: #2563eb; }
.rld-stat-icon--amber { background: #d97706; }
.rld-stat-icon--teal { background: #0f766e; }
.rld-stat-icon--orange { background: #ea580c; }
.rld-stat-icon--coral { background: #e85d4c; }
.rld-stat-icon--red { background: #dc2626; }

.rld-stat-card h3 {
    color: var(--rld-ink);
    font-weight: 700;
}

/* Status chips — soft tint, firm text, distinct hues */
.rld-status {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: .45rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}

.rld-status--blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.rld-status--amber {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.rld-status--orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.rld-status--teal {
    background: #f0fdfa;
    color: #0f766e;
    border-color: #99f6e4;
}

.rld-status--red {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.rld-status--soft.rld-status--blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.rld-status--soft.rld-status--amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.rld-status--soft.rld-status--orange { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.rld-status--soft.rld-status--teal { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }
.rld-status--soft.rld-status--red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.ms-published-card {
    border: 1px solid rgba(31, 122, 122, .2);
}

.ms-published-card .card-header {
    background: linear-gradient(105deg, #e6f5f2, #fff8ec);
    border-bottom: 1px solid rgba(31, 122, 122, .12);
}

.ms-published-card code { color: var(--rld-siswa); font-weight: 700; }

.ms-revision-card {
    border: 1px solid rgba(255, 159, 67, .35);
}

.ms-revision-card .card-header {
    background: rgba(255, 159, 67, .12);
}

.ms-review-item {
    border: 1px solid #eef2f0;
    border-radius: .65rem;
    padding: .85rem 1rem;
}

.rld-certificate {
    border: 2px dashed rgba(31, 122, 122, .45);
    border-radius: .85rem;
    margin: 1rem;
    background: linear-gradient(160deg, #fffdf9 0%, #eef8f6 100%);
}

.rld-certificate-title {
    color: var(--rld-siswa);
    font-weight: 700;
}

.compact-step-circle {
    border-color: #c5d5d2;
    color: #4a5d6e;
}

.compact-step-label { color: #4a5d6e; }

.compact-step.active .compact-step-circle {
    border-color: var(--rld-siswa);
    background: var(--rld-siswa);
}

.compact-step.done .compact-step-circle {
    border-color: var(--rld-siswa);
    background: var(--rld-siswa);
}

.compact-step-line.done { background: var(--rld-siswa); }
