.card-box.xl .img-card img {
    height: 200px;
    object-fit: cover;
}

.editor_pick .card-box:not(.first_card) .img-card img {
    height: 200px !important;
    object-fit: cover !important;
}

.detail-in.no-dropcap p:first-child::first-letter {
  float: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  padding-right: 0 !important;
}

.toast-success-bg {
    background-color: #28a745 !important;  /* hijau */
    color: white !important;
}

.toast-error-bg {
    background-color: #dc3545 !important;  /* merah */
    color: white !important;
}

.footer_nl {
    grid-column: span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 3;
}

.aeo-block {
    background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
    border: 1px solid #f1e3bd;
    border-radius: 18px;
    padding: 24px 26px;
    margin-top: 28px;
    box-shadow: 0 10px 30px rgba(130, 102, 33, 0.08);
}

.aeo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aeo-title {
    margin-top: 14px;
    font-size: 28px;
    line-height: 1.25;
    color: #111827;
}

.aeo-snippet {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 600;
    color: #8a5a00;
}

.aeo-points {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.aeo-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #374151;
    line-height: 1.7;
}

.aeo-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d97706;
}

.aeo-content {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eadfca;
}

.aeo-content p:first-child::first-letter {
    float: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
    padding-right: 0 !important;
}

.aeo-faq-list {
    margin-top: 24px;
}

.aeo-faq-title {
    margin-bottom: 14px;
    font-size: 20px;
    color: #111827;
}

.aeo-faq-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eadfca;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.aeo-faq-question {
    display: block;
    color: #111827;
    line-height: 1.5;
}

.aeo-faq-answer {
    margin-top: 8px;
    color: #4b5563;
    line-height: 1.7;
}

/* Accessibility: Increase touch target sizes */
.footer .link {
    display: block;
    padding: 8px 0;
    min-height: 44px;
}

.footer .sosmed li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Wrapper */
.comment-section {
    margin-top: 36px;
    padding-top: 0;
}

/* ---- Input Box ---- */
.cmt-input-box {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 14px 16px 12px;
    margin-bottom: 24px;
}

.cmt-textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    font-family: "Poppins", Arial, sans-serif;
    outline: none;
    padding: 8px 0;
    display: block;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}
.cmt-textarea::placeholder { color: #9ca3af; }
.cmt-textarea:disabled { color: #bbb; cursor: not-allowed; }

.cmt-input-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.cmt-submit-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
}
.cmt-submit-btn:hover {
    background: var(--pri700);
    transform: translateY(-1px);
}

/* Reply badge inside input box */
.cmt-reply-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4b5563;
    background: #e5e7eb;
    border-radius: 6px;
    padding: 5px 10px;
    margin-bottom: 8px;
}
.cmt-cancel-reply {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    padding: 0 2px;
}
.cmt-locked .cmt-textarea { cursor: not-allowed; }

/* Alert */
.cmt-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.cmt-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* ---- Header (Comments + count + sort) ---- */
.cmt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.cmt-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cmt-title {
    font-size: 17px;
    font-weight: 800;
    color: #111;
}
.cmt-count-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50px;
    padding: 2px 10px;
    min-width: 28px;
    text-align: center;
    line-height: 1.6;
}
.cmt-header-right {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}

/* ---- Comment List ---- */
.cmt-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Empty */
.cmt-empty {
    text-align: center;
    padding: 32px 0;
    color: #9ca3af;
    font-size: 14px;
}

/* ---- Single Comment Item ---- */
.cmt-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}
.cmt-item:last-child { border-bottom: none; }

/* Avatar */
.cmt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cmt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cmt-avatar span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.cmt-avatar.sm {
    width: 32px;
    height: 32px;
    background: #6b7280;
}
.cmt-avatar.sm span { font-size: 13px; }

/* Content */
.cmt-content { flex: 1; min-width: 0; }

.cmt-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.cmt-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.cmt-time {
    font-size: 12px;
    color: #9ca3af;
}

.cmt-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.65;
    margin: 0 0 8px;
}

/* Action bar */
.cmt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmt-action-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.cmt-action-btn:hover { color: var(--primary); }
.cmt-action-btn.reply-btn { color: #6b7280; }
.cmt-action-btn.reply-btn:hover { color: var(--primary); }

/* ---- Replies (nested) ---- */
.cmt-replies {
    margin-top: 12px;
    padding-left: 8px;
    border-left: 2px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cmt-replies .cmt-item {
    padding: 10px 0;
    border-bottom: none;
}

/* ---- Login button in navbar ---- */
.btn-login-nav {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
    aspect-ratio: 1/1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50% !important;
    flex: 0 0 32px;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    margin-right: 15px;
    padding: 0 !important;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-login-nav:hover {
    opacity: 0.9;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.btn-login-nav i {
    color: #fff !important;
    margin: 0 !important;
    display: block;
}
.btn-login-nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/* Remove the default border-left on box_lang when login button is present */
.box_lang .btn-login-nav + a {
    /* first lang button after login — no extra spacing needed */
}

/* READING PROGRESS FLOATING WIDGET

/* Progress bar di atas halaman */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary, #1ba731);
    z-index: 9999;
    transition: width 0.15s ease;
    border-radius: 0 2px 2px 0;
}

/* Badge sudah terbaca — muncul di bawah judul artikel */
#rpw-read-badge {
    display: none;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0 16px;
}

.rpw-badge-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Floating widget pojok kanan bawah */
#reading-progress-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#reading-progress-widget.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Lingkaran progress */
.rpw-circle {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: default;
}

.rpw-circle svg {
    transform: rotate(-90deg);
}

.rpw-circle-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 4;
}

.rpw-circle-fill {
    fill: none;
    stroke: var(--primary, #1ba731);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 163.36;
    transition: stroke-dashoffset 0.4s ease;
}

.rpw-circle-bg-white {
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.rpw-percent {
    font-size: 13px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.rpw-label {
    font-size: 8px;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 1px;
}

/* Toast notifikasi poin */
.rpw-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #111827;
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 9999;
}

.rpw-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rpw-toast-icon {
    font-size: 16px;
}

/* Animasi coin saat dapat poin */
@keyframes rpw-coin-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35) rotate(-8deg); }
    70%  { transform: scale(0.9) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.rpw-circle.earned .rpw-circle-fill {
    stroke: #f59e0b;
}

.rpw-circle.earned .rpw-percent {
    color: #d97706;
}

.rpw-circle.coin-pop {
    animation: rpw-coin-pop 0.5s ease;
}

/* Selesai baca — warna hijau penuh */
.rpw-circle.done .rpw-circle-fill {
    stroke: #10b981;
}

.rpw-circle.done .rpw-percent {
    color: #059669;
}

@media (max-width: 600px) {
    #reading-progress-widget {
        bottom: 90px;
        right: 16px;
    }
    .rpw-circle {
        width: 52px;
        height: 52px;
    }
    .rpw-circle-bg-white {
        inset: 5px;
    }
    .rpw-percent {
        font-size: 11px;
    }
    .rpw-toast {
        font-size: 12px;
        padding: 8px 16px;
        bottom: 20px;
    }
}
/* ============================================
   LEADERBOARD WIDGET — 3D Golden Podium + Glow
   ============================================ */
.lb-widget {
    padding: 0 !important;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 24px;
}

.lb-widget .kanal {
    padding: 0 0 12px;
    margin: 0;
    border-bottom: none;
    font-size: 16px;
    font-weight: 800;
}

/* — Arena background — putih bersih — */
.lb-arena {
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 36px 6px 0;
    position: relative;
    overflow: visible;
    min-height: 270px;
}

/* Soft transparent fade — no visible blocks */
.lb-arena::before {
    display: none;
}

/* — Column — */
.lb-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* — Profile info above pedestal — */
.lb-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 6px;
}

/* ==============================
   AVATAR RINGS — clean, no outer glow
   ============================== */
.lb-avatar-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    background: #e5e7eb;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.lb-avatar-ring.gold {
    width: 68px;
    height: 68px;
    border: 4px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.lb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* ==============================
   NAME & POINTS BADGE
   ============================== */
.lb-uname {
    font-size: 11px;
    font-weight: 800;
    color: #1f2937;
    margin-top: 6px;
    text-align: center;
    max-width: 88px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Points pill — dark grey like the image */
.lb-pts {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #3d3d3d;
    padding: 3px 9px;
    border-radius: 99px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
}
/* Star icon stays yellow */
.lb-pts i { color: #fbbf24; font-size: 9px; }

/* ==============================
   3D GOLDEN PEDESTAL
   ============================== */
.lb-pedestal {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Top face — hidden */
.lb-ped-top {
    display: none;
}

/* Front face — golden trapezoid */
.lb-ped-front {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 8px rgba(120,60,0,0.35);
    position: relative;
    clip-path: polygon(4% 0%, 96% 0%, 100% 100%, 0% 100%);
}

/* Glossy highlight */
.lb-ped-front::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
    pointer-events: none;
}

/* — 1st Place — tallest — */
.lb-first .lb-ped-front {
    height: 110px;
    font-size: 48px;
    background: linear-gradient(180deg,
        rgba(27,167,49,0) 0%,
        rgba(27,167,49,0.20) 30%,
        rgba(27,167,49,0.55) 55%,
        #3dba55 78%,
        #2a9e40 100%);
    box-shadow:
        0 6px 24px rgba(27,167,49,0.30),
        0 14px 40px rgba(14,107,29,0.15);
}

/* — 2nd Place — medium — */
.lb-second .lb-ped-front {
    height: 78px;
    font-size: 38px;
    background: linear-gradient(180deg,
        rgba(27,167,49,0) 0%,
        rgba(27,167,49,0.20) 34%,
        rgba(27,167,49,0.55) 58%,
        #3dba55 80%,
        #2a9e40 100%);
    box-shadow:
        0 6px 22px rgba(27,167,49,0.28),
        0 12px 36px rgba(14,107,29,0.14);
}

/* — 3rd Place — short — */
.lb-third .lb-ped-front {
    height: 58px;
    font-size: 30px;
    background: linear-gradient(180deg,
        rgba(27,167,49,0) 0%,
        rgba(27,167,49,0.20) 38%,
        rgba(27,167,49,0.55) 62%,
        #3dba55 82%,
        #2a9e40 100%);
    box-shadow:
        0 6px 20px rgba(27,167,49,0.26),
        0 12px 34px rgba(14,107,29,0.13);
}

/* ==============================
   GROUND FLOOR GLOW UNDER PODIUMS
   ============================== */

/* Shared base for ground glow pseudo-element */
.lb-col::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(8px);
}

.lb-first::after {
    background: radial-gradient(ellipse, rgba(27,167,49,0.35) 0%, transparent 70%);
    width: 90%;
    height: 22px;
}
.lb-second::after {
    background: radial-gradient(ellipse, rgba(27,167,49,0.28) 0%, transparent 70%);
}
.lb-third::after {
    background: radial-gradient(ellipse, rgba(27,167,49,0.25) 0%, transparent 70%);
}

/* ==============================
   LIST  (ranks 4-5)
   ============================== */
.lb-list {
    background: transparent;
    padding: 6px 0;
}
.lb-row {
    display: flex;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid #f3f4f6;
}
.lb-row:last-child { border-bottom: none; }

.lb-row-rank {
    font-size: 14px;
    font-weight: 800;
    color: #6b7280;
    width: 22px;
    text-align: center;
}
.lb-row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 12px 0 8px;
    background: #e5e7eb;
    border: 2px solid #f3f4f6;
}
.lb-row-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}
.lb-row-pts {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #3d3d3d;
    padding: 5px 12px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.lb-row-pts i { color: #fbbf24; }
