/**
 * ================================================================
 * assets/css/artikel-kategori.css — Style Halaman Daftar Artikel
 * ================================================================
 * VERSION: 1.2
 *
 * CHANGELOG:
 *   v1.2 — Tambah CSS SweetAlert2 (modal login & konfirmasi)
 *        — Konsisten dengan style di artikel.css
 *   v1.1 — Layout 2 kolom (main + sidebar)
 *        — Badge NEW animasi
 *        — Top 5 Artikel & Top 5 Penulis
 *   v1.0 — Grid card artikel, search, pagination, filter chips
 * ================================================================
 */

/* ============================================================
   [1] CONTAINER
   ============================================================ */
.kategori-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================================
   [2] BREADCRUMB
   ============================================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
    color: var(--brand-2);
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--muted);
    padding: 0 0.4rem;
}

/* ============================================================
   [3] HEADER
   ============================================================ */
.kategori-header {
    margin-bottom: 1.5rem;
}

.kategori-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.kategori-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================================
   [4] SEARCH BAR
   ============================================================ */
.kategori-search-wrapper {
    margin-bottom: 1.25rem;
}

.kategori-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.kategori-search-box:focus-within {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(15, 23, 42, 0.08);
}

.kategori-search-box .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
}

.kategori-search-input {
    border: 0 !important;
    background: transparent !important;
    padding: 0.85rem 1rem 0.85rem 2.75rem !important;
    font-size: 0.95rem;
    border-radius: 12px 0 0 12px !important;
    flex: 1;
    box-shadow: none !important;
}

.kategori-search-input:focus {
    box-shadow: none !important;
}

.kategori-search-btn {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: #fff;
    border: 0;
    border-radius: 0 12px 12px 0;
    padding: 0.85rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    min-width: 52px;
}

.kategori-search-btn:hover {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    color: #fff;
}

.kategori-search-btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    outline: none;
}

.kategori-clear-btn {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.kategori-clear-btn:hover {
    background: #e2e8f0;
    color: var(--danger);
}

/* ============================================================
   [5] FILTER CHIPS (KATEGORI)
   ============================================================ */
.kategori-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--brand-2);
    color: var(--brand-2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.chip.active {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.chip.active:hover {
    color: #fff;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.3);
}

.chip-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.chip:not(.active) .chip-count {
    background: var(--blue-100);
    color: var(--brand-2);
}

/* ============================================================
   [6] GRID ARTIKEL
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================================================
   [7] CARD ARTIKEL
   ============================================================ */
.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border-color: var(--blue-200);
}

.card-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    z-index: 2;
}

.card-body {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.6rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.card-title a:hover {
    color: var(--brand-2);
}

.card-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card-meta i {
    color: var(--brand-2);
    font-size: 0.8rem;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.card-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.card-like-btn:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
    color: var(--brand-2);
}

.card-like-btn.liked {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    border-color: transparent;
    color: #fff;
}

.card-like-btn.liked:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.card-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.card-read-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    background: transparent;
    border: 1.5px solid var(--brand-2);
    border-radius: 8px;
    color: var(--brand-2);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.card-read-btn:hover {
    background: var(--brand-2);
    color: #fff;
    transform: translateX(2px);
}

/* ============================================================
   [8] EMPTY STATE
   ============================================================ */
.kategori-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed var(--border);
}

.kategori-empty h4 {
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kategori-empty a {
    color: var(--brand-2);
    font-weight: 600;
}

/* ============================================================
   [9] PAGINATION
   ============================================================ */
.kategori-pagination {
    margin-top: 2rem;
}

.kategori-pagination .pagination {
    gap: 0.35rem;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.kategori-pagination .page-link {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px !important;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    transition: all 0.15s ease;
}

.kategori-pagination .page-link:hover {
    background: var(--blue-50);
    border-color: var(--brand-2);
    color: var(--brand-2);
}

.kategori-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.kategori-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: var(--muted);
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   [10] RESPONSIVE — TABLET (≤ 991px) — GRID 2 KOLOM
   ============================================================ */
@media (max-width: 991.98px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* ============================================================
   [11] RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .kategori-title {
        font-size: 1.4rem;
    }

    .kategori-subtitle {
        font-size: 0.85rem;
    }

    .kategori-search-input {
        font-size: 0.88rem !important;
        padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    }

    .kategori-search-btn {
        padding: 0.75rem 1rem;
        min-width: 48px;
    }

    .kategori-clear-btn {
        right: 54px;
    }

    .kategori-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .kategori-chips::-webkit-scrollbar {
        height: 4px;
    }

    .kategori-chips::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 999px;
    }

    .chip {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
        flex-shrink: 0;
    }

    .articles-grid {
        gap: 1rem;
    }

    .card-body {
        padding: 0.85rem 1rem 1rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .card-meta {
        font-size: 0.7rem;
        gap: 0.6rem;
        margin-bottom: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .card-like-btn,
    .card-read-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
}

/* ============================================================
   [12] RESPONSIVE — MOBILE KECIL (≤ 576px) — GRID 1 KOLOM
   ============================================================ */
@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .kategori-title {
        font-size: 1.2rem;
    }

    .kategori-search-input {
        font-size: 0.85rem !important;
        padding: 0.7rem 0.85rem 0.7rem 2.25rem !important;
    }

    .kategori-search-box .search-icon {
        left: 0.85rem;
        font-size: 0.9rem;
    }

    .kategori-search-btn {
        padding: 0.7rem 0.85rem;
        min-width: 44px;
    }

    .kategori-clear-btn {
        right: 48px;
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .card-category-badge {
        font-size: 0.62rem;
        padding: 0.25rem 0.6rem;
        top: 0.6rem;
        left: 0.6rem;
    }

    .card-title {
        font-size: 0.92rem;
    }

    .kategori-pagination .page-link {
        font-size: 0.78rem;
        padding: 0.4rem 0.65rem;
        min-width: 36px;
    }
}

/* ============================================================
   [13] SAFETY
   ============================================================ */
.article-card,
.card-body,
.card-title,
.card-excerpt {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-card * {
    box-sizing: border-box;
}

/* ============================================================
   [14] LAYOUT 2 KOLOM (MAIN + SIDEBAR)
   ============================================================ */
.kategori-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}

.kategori-main {
    min-width: 0;
    width: 100%;
}

.kategori-sidebar {
    min-width: 0;
    width: 100%;
    position: sticky;
    top: calc(var(--navbar-height, 72px) + 1rem);
}

/* ============================================================
   [15] BADGE "NEW" DI CARD ARTIKEL
   ============================================================ */
.card-new-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    display: inline-flex;
    align-items: center;
    animation: pulseNew 2s infinite;
    z-index: 2;
}

@keyframes pulseNew {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.6);
    }
}

.card-new-badge i {
    animation: spinNew 3s linear infinite;
}

@keyframes spinNew {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   [16] SIDEBAR CARD UMUM
   ============================================================ */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    width: 100%;
    box-sizing: border-box;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

/* ============================================================
   [17] TOP 5 ARTIKEL
   ============================================================ */
.top-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toprank;
}

.top-article-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.top-article-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.top-article-item:first-child {
    padding-top: 0;
}

.rank-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.rank-badge.small {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    box-shadow: 0 3px 10px rgba(148, 163, 184, 0.4);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.4);
}

.top-article-content {
    flex: 1;
    min-width: 0;
}

.top-article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.35rem;
    transition: color 0.15s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.top-article-title:hover {
    color: var(--brand-2);
}

.top-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.68rem;
    color: var(--muted);
}

.top-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.top-article-meta i {
    color: var(--brand-2);
    font-size: 0.7rem;
}

/* ============================================================
   [18] TOP 5 PENULIS
   ============================================================ */
.top-authors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-author-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.top-author-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.top-author-item:first-child {
    padding-top: 0;
}

.top-author-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-author-content {
    flex: 1;
    min-width: 0;
}

.top-author-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.68rem;
    color: var(--muted);
}

.top-author-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.top-author-meta i {
    color: var(--brand-2);
    font-size: 0.7rem;
}

/* ============================================================
   [19] KATEGORI LIST DI SIDEBAR
   ============================================================ */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.35rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.category-link:hover {
    background: var(--blue-50);
    color: var(--brand-2);
}

.category-link.active {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.category-link.active:hover {
    color: #fff;
}

.category-link.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.category-count {
    background: var(--blue-100);
    color: var(--brand-2);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* ============================================================
   [20] RESPONSIVE — TABLET (≤ 991px) — SIDEBAR 2 KOLOM
   ============================================================ */
@media (max-width: 991.98px) {
    .kategori-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .kategori-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1rem;
    }

    .kategori-sidebar .sidebar-card {
        margin-bottom: 0;
    }
}

/* ============================================================
   [21] RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .card-new-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        top: 0.6rem;
        right: 0.6rem;
    }

    .card-new-badge i {
        font-size: 0.7rem;
    }

    .rank-badge {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .rank-badge.small {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .top-article-title {
        font-size: 0.78rem;
    }

    .top-article-meta,
    .top-author-meta {
        font-size: 0.65rem;
    }

    .top-author-name {
        font-size: 0.78rem;
    }
}

/* ============================================================
   [22] RESPONSIVE — HP (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {
    .kategori-sidebar {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-top: 0.85rem;
    }

    .sidebar-card {
        padding: 1rem;
    }

    .sidebar-title {
        font-size: 0.88rem;
    }

    .card-new-badge {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
    }

    .top-article-item {
        padding: 0.6rem 0;
        gap: 0.6rem;
    }

    .top-article-title {
        font-size: 0.75rem;
    }

    .top-author-item {
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .top-author-name {
        font-size: 0.75rem;
    }
}

/* ============================================================
   [23] RESPONSIVE — HP KECIL (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .kategori-title {
        font-size: 1.1rem;
    }

    .sidebar-card {
        padding: 0.85rem;
    }

    .rank-badge {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .top-article-title {
        font-size: 0.72rem;
    }

    .top-author-name {
        font-size: 0.72rem;
    }
}

/* ============================================================
   [24] SWEETALERT2 — MODAL LOGIN & KONFIRMASI
   ============================================================ */
.swal2-popup.tikom-swal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    border-radius: 20px !important;
    padding: 2rem 1.75rem 1.5rem !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    max-width: 440px !important;
    width: calc(100% - 2rem) !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.swal2-popup.tikom-swal .swal2-icon {
    margin: 0.5rem auto 1.25rem !important;
    width: 72px !important;
    height: 72px !important;
    border-width: 3px !important;
}

.swal2-popup.tikom-swal .swal2-icon .swal2-icon-content {
    font-size: 3rem !important;
}

.swal2-popup.tikom-swal .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    background: #fef3c7 !important;
}

.swal2-popup.tikom-swal .swal2-icon.swal2-error {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    background: #fee2e2 !important;
}

.swal2-popup.tikom-swal .swal2-icon.swal2-success {
    border-color: #22c55e !important;
    color: #22c55e !important;
    background: #dcfce7 !important;
}

.swal2-popup.tikom-swal .swal2-icon.swal2-info {
    border-color: #0ea5e9 !important;
    color: #0ea5e9 !important;
    background: #e0f2fe !important;
}

.swal2-popup.tikom-swal .swal2-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.swal2-popup.tikom-swal .swal2-html-container {
    font-size: 0.9rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
}

.swal2-popup.tikom-swal .swal2-html-container p {
    margin-bottom: 0.5rem !important;
}

.swal2-popup.tikom-swal .swal2-html-container p:last-child {
    margin-bottom: 0 !important;
}

.swal2-popup.tikom-swal .swal2-html-container .text-muted {
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
}

.swal2-popup.tikom-swal .swal2-html-container .small {
    font-size: 0.8rem !important;
}

.swal2-popup.tikom-swal .swal2-actions {
    gap: 0.6rem !important;
    margin: 1.25rem 0 0 !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.swal2-popup.tikom-swal .swal2-actions button {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
    padding: 0.7rem 1.5rem !important;
    border: 0 !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    min-width: 120px;
}

.swal2-popup.tikom-swal .swal2-confirm {
    background: linear-gradient(135deg, #1e40af, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
}

.swal2-popup.tikom-swal .swal2-confirm:hover {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.35) !important;
}

.swal2-popup.tikom-swal .swal2-confirm:active {
    transform: translateY(0) !important;
}

.swal2-popup.tikom-swal .swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35) !important;
    outline: none !important;
}

.swal2-popup.tikom-swal .swal2-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.swal2-popup.tikom-swal .swal2-cancel:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    transform: translateY(-1px) !important;
}

.swal2-popup.tikom-swal .swal2-cancel:active {
    transform: translateY(0) !important;
}

.swal2-popup.tikom-swal .swal2-cancel:focus {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.35) !important;
    outline: none !important;
}

.swal2-popup.tikom-swal .swal2-close {
    color: #94a3b8 !important;
    font-size: 2rem !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    transition: all 0.15s ease !important;
}

.swal2-popup.tikom-swal .swal2-close:hover {
    color: #1e3a8a !important;
    transform: rotate(90deg) !important;
}

.swal2-popup.tikom-swal .swal2-close:focus {
    box-shadow: none !important;
    outline: 2px solid #2563eb !important;
    border-radius: 8px !important;
}

.swal2-popup.tikom-swal .swal2-loader {
    border-color: #2563eb transparent #2563eb transparent !important;
}

/* Toast (success/error pojok) */
.swal2-popup.swal2-toast {
    font-family: 'Inter', sans-serif !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid #e2e8f0 !important;
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    margin: 0 0.5rem 0 0 !important;
    width: 32px !important;
    height: 32px !important;
    border-width: 2px !important;
}

.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
    font-size: 1.2rem !important;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    background: #2563eb !important;
}

/* ============================================================
   [25] SWEETALERT2 — RESPONSIVE MOBILE (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {
    .swal2-popup.tikom-swal {
        padding: 1.5rem 1.15rem 1.15rem !important;
        border-radius: 16px !important;
        max-width: calc(100% - 1.5rem) !important;
        width: calc(100% - 1.5rem) !important;
    }

    .swal2-popup.tikom-swal .swal2-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 0.25rem auto 1rem !important;
    }

    .swal2-popup.tikom-swal .swal2-icon .swal2-icon-content {
        font-size: 2.4rem !important;
    }

    .swal2-popup.tikom-swal .swal2-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }

    .swal2-popup.tikom-swal .swal2-html-container {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    .swal2-popup.tikom-swal .swal2-actions {
        flex-direction: column-reverse !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .swal2-popup.tikom-swal .swal2-actions button {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .swal2-popup.tikom-swal .swal2-close {
        font-size: 1.75rem !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
    }

    .swal2-popup.swal2-toast {
        padding: 0.6rem 0.85rem !important;
        font-size: 0.8rem !important;
    }

    .swal2-popup.swal2-toast .swal2-title {
        font-size: 0.78rem !important;
    }
}