/* =============================================
   STYLESHEET (MERGED V5.0 - FINAL)
   Combined style.css (Main) & admin-style.css (Blog System)
   ============================================= */

/* -----------------------------------------------------------
   1. GLOBAL RESET & VARIABLES
----------------------------------------------------------- */

/* --- Reset & Box Sizing --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    /* Mencegah scroll horizontal tanpa merusak sticky sidebar */
    overflow-x: clip; 
}

:root {
    /* Colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #eff6ff;
    --bg-light: #f8f9fa;
    --bg-main: #ffffff;
    --white: #ffffff;
    
    /* Text */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    
    /* Borders & Shadows */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* -----------------------------------------------------------
   2. UI COMPONENTS (Buttons, Forms, Badges)
----------------------------------------------------------- */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    box-sizing: border-box;
}

.btn-primary { background: var(--primary-color); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: var(--white); color: var(--text-dark); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--bg-light); }

.btn-secondary { background: var(--bg-light); color: var(--text-dark); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--border-color); }

.btn-danger { background: #dc3545; color: var(--white); }
.btn-danger:hover { background: #c82333; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 0.95em; }

.form-control, .filter-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95em;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-control { background: var(--bg-light); }
.form-control:focus, .filter-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light); }

.form-group textarea.form-control { min-height: 120px; resize: vertical; }
.form-group textarea.code-editor { font-family: monospace; font-size: 0.9em; background: #f9f9f9; }

.form-group-checkbox {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-light); padding: 12px;
    border-radius: var(--border-radius-sm); border: 1px solid var(--border-color);
}
.form-group-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.form-group-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
hr.form-divider { border: 0; border-top: 1px solid var(--border-color); margin: 30px 0; }

/* --- Badges & Pills (Tags) --- */
.link-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
    border-radius: 999px; font-size: 0.85rem; text-decoration: none; font-weight: 600; white-space: nowrap;
    background: #f9fafb; border: 1px solid rgba(15,23,42,0.06); color: #0f172a;
}
.link-pill:hover { background: #eef2ff; }

/* Service Pill (Updated Style) */
.service-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px; /* Modern rounded box */
    background-color: #f1f5f9;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}
.service-pill:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* --- Social Icons --- */
.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--white); color: var(--text-light);
    border: 1px solid var(--border-color); border-radius: 50%;
    text-decoration: none; transition: all 0.2s ease;
}
.social-icon:hover {
    background: var(--white); color: var(--text-dark);
    border-color: var(--text-dark); transform: translateY(-2px);
}
.social-icon svg { width: 16px; height: 16px; }

/* --- Pagination --- */
.hf-pagination, .pagination {
    display: flex; justify-content: center; align-items: center; gap: 10px; margin: 32px 0;
}
.hf-pagination a, .hf-pagination span, .pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 10px; background: #fff; border: 1px solid rgba(0,0,0,0.1);
    color: #333; text-decoration: none; font-weight: 500;
    transition: 0.2s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.hf-pagination a:hover, .pagination a:hover {
    background: #eef5ff; border-color: var(--primary-color);
    color: var(--primary-color); transform: translateY(-2px);
}
.hf-pagination .current, .hf-pagination .active, .pagination .current {
    background: var(--primary-color); color: #fff;
    border-color: var(--primary-color); box-shadow: 0 4px 14px rgba(40,116,255,0.3);
}
.hf-pagination .dots, .pagination .dots {
    border: none; background: none; color: #999; box-shadow: none;
}

/* -----------------------------------------------------------
   3. LAYOUT & STRUCTURE
----------------------------------------------------------- */

/* --- Navbar Top --- */
.navbar-top {
    background: var(--white); padding: 16px 0;
    border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 100;
}
.navbar-top .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-top .logo {
    font-size: 1.25em; font-weight: 700; color: var(--text-dark);
    text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.navbar-top .logo-icon {
    display: inline-block; width: 32px; height: 32px; line-height: 32px;
    text-align: center; background: var(--primary-color); color: var(--white);
    border-radius: var(--border-radius-sm); font-weight: 600; font-size: 0.9em;
}
.navbar-top .nav-links { display: flex; align-items: center; gap: 10px; }
.navbar-top .nav-link {
    color: var(--text-light); text-decoration: none; font-weight: 500;
    padding: 8px 12px; border-radius: var(--border-radius-sm); transition: all 0.2s ease;
}
.navbar-top .nav-link:hover, .navbar-top .nav-link.active { background: var(--bg-light); color: var(--text-dark); }

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 15px 0; font-size: 0.9em; color: var(--text-light); }
.breadcrumbs ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li.active { color: var(--text-dark); font-weight: 500; }

/* --- Main Layout Wrapper --- */
.main-layout-wrapper {
    display: flex; flex-wrap: wrap; gap: 30px;
    margin-top: 5px; margin-bottom: 30px; align-items: flex-start;
}
.content-main { flex: 1; min-width: 0; }
.sidebar-left {
    width: 280px; flex-shrink: 0;
    position: -webkit-sticky; position: sticky;
    top: 90px; align-self: start; height: fit-content;
}

/* --- Footer Site --- */
.footer {
    background: var(--bg-main); border-top: 1px solid var(--border-color);
    padding-top: 40px; font-size: 0.95em;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-col .logo {
    font-size: 1.25em; font-weight: 700; color: var(--text-dark);
    text-decoration: none; display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
}
.footer-col p { color: var(--text-light); line-height: 1.6; max-width: 300px; }
.footer-col h5 { font-size: 1em; font-weight: 600; margin: 0 0 15px 0; color: var(--text-dark); }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-light); text-decoration: none; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--primary-color); }
.footer-bottom {
    border-top: 1px solid var(--border-color); margin-top: 30px; padding: 20px 0;
    text-align: center; font-size: 0.9em; color: var(--text-light);
}

/* -----------------------------------------------------------
   4. MODULES & PAGE SECTIONS
----------------------------------------------------------- */

/* --- Hero Section --- */
.hero-section {
    background: var(--primary-light); border-radius: var(--border-radius-lg);
    padding: 60px 40px; text-align: center; margin-bottom: 30px;
}
.hero-section h1 { font-size: 2.8em; font-weight: 700; margin: 0 0 15px 0; color: var(--text-dark); }
.hero-section h1 .highlight { color: var(--primary-color); }
.hero-section .hero-subheadline {
    font-size: 1.1em; color: var(--text-light);
    max-width: 650px; margin: 0 auto 30px auto; line-height: 1.7;
}
.hero-section .hero-actions { display: flex; justify-content: center; align-items: center; gap: 15px; }
.hero-actions .btn-secondary { background: none; border: none; color: var(--text-dark); box-shadow: none; }
.hero-actions .btn-secondary:hover { background: rgba(0,0,0,0.05); }

/* --- Stats Bar --- */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
    background: var(--white); border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color); padding: 20px; margin-bottom: 30px;
}
.stat-item { display: flex; align-items: center; gap: 15px; padding: 10px; }
.stat-item .icon { flex-shrink: 0; color: var(--primary-color); }
.stat-item .icon svg { width: 24px; height: 24px; display: block; }
.stat-item .stat-info strong { font-size: 1.4em; font-weight: 600; display: block; color: var(--text-dark); }
.stat-item .stat-info span { font-size: 0.9em; color: var(--text-light); }

/* --- Filters --- */
.filter-box {
    background: var(--white); border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color); padding: 20px; margin-bottom: 20px;
}
.filter-form {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 120px;
    gap: 15px; align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; }
.filter-group label { font-size: 0.85em; font-weight: 500; color: var(--text-light); margin-bottom: 5px; }
.filter-form .btn { width: 100%; padding: 11px; }
.filter-reset { text-align: center; margin-top: 15px; }
.filter-reset a { color: var(--text-light); font-size: 0.9em; text-decoration: none; }
.filter-reset a:hover { text-decoration: underline; }

/* --- Sidebar Widgets --- */
.sidebar-title {
    font-size: 0.8em; font-weight: 600; text-transform: uppercase;
    color: var(--text-light); letter-spacing: 0.5px;
    margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 1px solid var(--border-color);
}
.featured-card {
    background: var(--white); border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    padding: 16px; margin-bottom: 20px; transition: box-shadow 0.2s ease; overflow: hidden;
}
.featured-card:hover { box-shadow: var(--shadow-md); }
.featured-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.featured-logo { display: block; max-width: 100px; max-height: 45px; object-fit: contain; object-position: left; }
.featured-badge {
    background: var(--primary-light); color: var(--primary-dark);
    padding: 4px 10px; border-radius: 20px; font-size: 0.75em;
    font-weight: 600; flex-shrink: 0; white-space: nowrap;
}
.featured-card p { font-size: 0.9em; color: var(--text-light); margin: 0 0 15px 0; line-height: 1.5; }
.featured-card .learn-more { font-size: 0.9em; font-weight: 600; color: var(--primary-color); text-decoration: none; display: inline-block; }
.featured-card .learn-more:hover { text-decoration: underline; }

/* --- Provider Cards Grid --- */
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.content-title { font-size: 1.5em; font-weight: 600; margin: 0; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.provider-card {
    background: var(--white); border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column;
}
.provider-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.provider-card:hover .card-screenshot { transform: scale(1.05); }

.card-screenshot-wrapper {
    width: 100%; height: 180px; overflow: hidden; position: relative;
    background-color: var(--bg-light); display: flex; align-items: center; justify-content: center;
}
.card-screenshot { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card-screenshot-wrapper .fallback { display: none; text-align: center; color: var(--text-light); font-weight: 500; font-size: 0.9em; padding: 20px; }

.card-badge-sponsor {
    position: absolute; top: 12px; right: 12px;
    background: #fef9c3; color: #a16207; padding: 4px 10px;
    border-radius: 20px; font-size: 0.75em; font-weight: 600;
}
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { margin: 0 0 8px 0; font-size: 1.2em; }
.card-content .price { font-weight: 600; color: #16a34a; margin-bottom: 12px; font-size: 0.95em; }
.card-content .btn { margin-top: auto; }

/* -----------------------------------------------------------
   5. DETAIL PAGE STYLES
----------------------------------------------------------- */
.detail-card {
    background: var(--bg-main); border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); overflow: hidden;
}

/* Detail Header */
.detail-header {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 25px; border-bottom: 1px solid var(--border-color);
}
.detail-header .logo {
    max-width: 180px; max-height: 60px; object-fit: contain;
    border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
    padding: 10px; background: var(--white); flex-shrink: 0;
}
.detail-header-info { flex-grow: 1; }
.detail-header-info h1 { margin: 0 0 5px 0; font-size: 1.8em; }
.detail-header-info .price { font-size: 1.1em; font-weight: 500; color: var(--text-dark); }
.detail-header-info .price strong { color: #16a34a; }
.detail-header-info .rating { font-size: 1em; color: var(--text-light); margin-top: 5px; }
.detail-header .btn-primary { margin-left: auto; }

/* Promo Box */
.promo-container {
    padding: 25px; border-bottom: 1px solid var(--border-color);
    background: var(--primary-light); display: flex; flex-direction: column; gap: 15px;
}
.promo-box-v2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white); border-radius: var(--border-radius-md); padding: 20px;
    display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-md);
    overflow: hidden; position: relative;
}
.promo-box-v2 .promo-tag { flex-shrink: 0; color: var(--white); opacity: 0.5; }
.promo-box-v2 .promo-tag svg { width: 40px; height: 40px; }
.promo-box-v2 .promo-info { flex-grow: 1; }
.promo-box-v2 .promo-info strong { font-size: 1.1em; font-weight: 600; display: block; }
.promo-box-v2 .promo-info p { font-size: 0.9em; margin: 0; opacity: 0.9; }

.promo-code-area { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.promo-code-dashed {
    background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.5);
    border-radius: var(--border-radius-sm); padding: 8px 12px; font-weight: 700;
    font-family: monospace; font-size: 1.1em; color: var(--white);
    cursor: pointer; transition: background 0.2s ease;
}
.promo-code-dashed:hover { background: rgba(255,255,255,0.2); }
.promo-box-v2 .btn-outline {
    background: var(--white); color: var(--primary-dark);
    border-color: var(--white); font-weight: 600; padding: 8px 12px; font-size: 0.9em;
}
.promo-box-v2 .btn-outline:hover { background: #f0f0f0; }

/* Detail Content & Screenshots */
.detail-screenshot-wrapper {
    position: relative; background: var(--bg-light); min-height: 200px;
    display: flex; align-items: center; justify-content: center;
}
.detail-screenshot { width: 100%; display: block; }
.detail-screenshot-wrapper .fallback { display: none; text-align: center; color: var(--text-light); font-weight: 500; font-size: 1em; padding: 40px; }

.detail-description { padding: 25px; font-size: 1.05em; line-height: 1.7; }
.detail-description h3 { margin: 0 0 15px 0; font-size: 1.3em; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.detail-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 0 25px 25px 25px; }
.meta-item { display: flex; align-items: flex-start; gap: 15px; background: var(--bg-light); padding: 15px; border-radius: var(--border-radius-md); }
.meta-item .icon-wrapper {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--border-radius-sm);
    background: var(--white); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center; color: var(--primary-color);
}
.meta-item .icon-wrapper svg { width: 20px; height: 20px; }
.meta-item .info strong { display: block; margin-bottom: 3px; color: var(--text-dark); font-size: 0.95em; font-weight: 600; }
.meta-item .info p { margin: 0; font-size: 0.95em; color: var(--text-light); word-break: break-word; }
.meta-item .info p a { color: var(--primary-color); font-weight: 500; }

/* --- Detail Info Rows (Updated for Layanan/Tags) --- */
.info-row {
    display: flex; align-items: flex-start; /* Aligned top */
    gap: 16px; padding: 16px 0; border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}
.info-row:last-child { border-bottom: none; }
.info-label {
    width: 140px; flex-shrink: 0; font-weight: 600;
    color: #334155; font-size: 0.95rem; display: flex; align-items: center; gap: 8px;
    padding-top: 6px;
}
.info-value { flex-grow: 1; min-width: 0; color:#1f2933; font-size:0.95rem; }
.info-value strong { font-weight:700; }
.services-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }

/* =============================================
   FIX: DETAIL FOOTER & SHARE SECTION
   ============================================= */

.detail-footer {
    background: #f8fafc; /* Latar belakang abu sangat muda */
    border-top: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Baris Informasi (Dibuat, Looking Glass, Update) --- */
.info-row {
    display: flex;
    align-items: center; /* PENTING: Agar Label & Isi sejajar vertikal (tengah) */
    justify-content: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
    gap: 20px; /* Jarak antara Label dan Titik Dua/Isi */
}

.info-row:last-child {
    border-bottom: none;
}

/* Label (Kiri) */
.info-label {
    width: 160px; /* Lebar diperluas agar teks "Looking Glass" tidak turun baris */
    flex-shrink: 0; /* Mencegah label menyusut */
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Isi (Kanan) */
.info-value {
    flex-grow: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #1e293b;
    font-weight: 500;
}

/* Link Pill (Untuk Looking Glass) */
.link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.link-pill:hover {
    background: #eff6ff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

/* --- Share Section (Bagian Bawah) --- */
.share-section-wrapper {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Bagikan di kiri, Copy di kanan */
    flex-wrap: wrap;
    gap: 15px;
}

.share-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 700;
    color: #1e293b;
    margin-right: 5px;
}

/* Tombol Sosmed (Facebook, Twitter, WA) */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    line-height: 1;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Warna Spesifik */
.share-btn.fb { background-color: #1877F2; }
.share-btn.tw { background-color: #1da1f2; } /* Update warna X/Twitter baru jika perlu: #000 */
.share-btn.wa { background-color: #25D366; }

/* Tombol Copy Link */
.btn-copy {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-copy:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* --- Responsive Mobile --- */
@media (max-width: 640px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-label {
        width: 100%;
        color: #64748b;
        font-size: 0.85rem;
    }

    .share-section-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-left {
        width: 100%;
    }
    
    .share-btn, .btn-copy {
        flex: 1; /* Tombol full width di HP */
        text-align: center;
    }
    
    .btn-copy {
        width: 100%;
    }
}

/* Jump Top Button */
#hf-jump-top {
    position: fixed; right: 20px; bottom: 22px; width: 46px; height: 46px;
    border-radius: 999px; background: linear-gradient(180deg,#0b67ff,#1366ff);
    color: #fff; display: none; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(11,103,255,0.18); z-index: 9999; cursor: pointer; border: 0;
}
#hf-jump-top svg { width:20px; height:20px; display:block; }

/* -----------------------------------------------------------
   6. STATIC PAGE CONTENT
----------------------------------------------------------- */
.page-content-wrapper { line-height: 1.7; font-size: 1.05em; padding: 25px; }

.page-content-wrapper h1, .page-content-wrapper h2, .page-content-wrapper h3 {
    margin: 24px 0 16px 0; font-weight: 600; line-height: 1.3; color: #1f2937;
}
.page-content-wrapper h1 { font-size: 1.8em; }
.page-content-wrapper h2 { font-size: 1.5em; }
.page-content-wrapper h3 { font-size: 1.3em; }

.page-content-wrapper p { margin-bottom: 16px; color: #374151; }
.page-content-wrapper ul, .page-content-wrapper ol { margin-bottom: 16px; padding-left: 24px; }
.page-content-wrapper li { margin-bottom: 8px; color: #374151; }
.page-content-wrapper a { color: #3b82f6; text-decoration: none; transition: color 0.2s ease; }
.page-content-wrapper a:hover { color: #2563eb; text-decoration: underline; }

.page-content-wrapper blockquote {
    border-left: 4px solid #3b82f6; padding-left: 16px; margin: 16px 0;
    font-style: italic; color: #6b7280;
}
.page-content-wrapper code {
    background: #f3f4f6; padding: 2px 6px; border-radius: 4px;
    font-family: 'Courier New', monospace; font-size: 0.9em;
}
.page-content-wrapper pre {
    background: #f3f4f6; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0;
}
.page-content-wrapper pre code { background: none; padding: 0; }
.page-content-wrapper table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.page-content-wrapper th, .page-content-wrapper td { border: 1px solid #e5e7eb; padding: 12px; text-align: left; }
.page-content-wrapper th { background: #f9fafb; font-weight: 600; }
.page-content-wrapper hr { border: none; border-top: 1px solid #e5e7eb; margin: 24px 0; }

.page-content-wrapper img {
    max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: opacity 0.3s ease-in-out;
}
.page-content-wrapper img.lazy { opacity: 0; }
.page-content-wrapper img.loaded { opacity: 1; }

.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%; animation: loading 1.5s infinite;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #999; font-size: 14px; font-weight: 500;
}
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.btn-404-back:hover { background-color: #1d4ed8 !important; color: #ffffff !important; }

/* -----------------------------------------------------------
   7. ADMIN & LOGIN PAGES
----------------------------------------------------------- */
.login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-light); }
.login-form {
    background: var(--white); padding: 30px; border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-md); width: 100%; max-width: 400px; text-align: center;
}
.login-error {
    background: #ffebeB; color: #c00; padding: 10px; border-radius: var(--border-radius-sm);
    margin-bottom: 15px; text-align: left; font-size: 0.9em;
}

.admin-container {
    max-width: 1100px; margin: 30px auto; padding: 30px; background: var(--white);
    border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.admin-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color); padding-bottom: 20px;
}
.admin-header h2 { margin: 0; }

.admin-table {
    width: 100%; border-collapse: collapse; border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md); overflow: hidden;
}
.admin-table th, .admin-table td {
    border-bottom: 1px solid var(--border-color); padding: 12px 15px; text-align: left; vertical-align: middle; font-size: 0.95em;
}
.admin-table th {
    background: var(--bg-light); font-weight: 600; color: var(--text-light); font-size: 0.85em; text-transform: uppercase;
}
.admin-table td strong { color: var(--text-dark); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: var(--bg-light); }
.admin-table .actions { display: flex; gap: 8px; flex-wrap: nowrap; }
.admin-table .actions .btn { padding: 6px 12px; font-size: 0.9em; white-space: nowrap; }
.admin-table .page-slug { font-family: monospace; font-size: 0.95em; background: var(--bg-light); padding: 2px 5px; border-radius: 4px; }
.admin-table .status-published { background: #e6ffed; color: #006633; padding: 4px 8px; border-radius: 20px; font-size: 0.85em; font-weight: 600; }
.admin-table .status-draft { background: #f0f0f0; color: #555; padding: 4px 8px; border-radius: 20px; font-size: 0.85em; font-weight: 600; }

/* -----------------------------------------------------------
   8. RESPONSIVE DESIGN (Consolidated)
----------------------------------------------------------- */

/* Tablet & Smaller (Max 900px) */
@media (max-width: 900px) {
    /* Layout */
    .main-layout-wrapper { flex-direction: column; gap: 20px; }
    .content-main { order: 1; }
    .sidebar-left {
        order: 2; width: 100%; position: static; height: auto;
        display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    }
    .sidebar-title { grid-column: 1 / -1; }

    /* Filter Form */
    .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
    .filter-form > div:last-child { grid-column: 1 / -1; }

    /* Footer Detail */
    .detail-footer .footer-top { flex-direction: column; align-items: stretch; gap: 12px; }
    .info-grid, .social-icons { justify-content: flex-start; }
    .detail-footer .share-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .share-row .share-copy-wrap { margin-left: 0; }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
    .navbar-top .nav-links .nav-link { display: none; }
    
    /* 1. Reset Container & Layout */
    .container { padding-left: 20px; padding-right: 20px; width: 100%; }

    /* 2. Hero Section */
    .hero-section { padding: 30px 20px; width: 100%; text-align: left; }
    .hero-section h1 { font-size: 1.8em; line-height: 1.3; word-wrap: break-word; }
    
    /* 3. Stats & Header */
    .stats-bar { grid-template-columns: 1fr; }
    .content-header { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* 4. Grid Provider (FIXED: 1 Column) */
    .provider-grid { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; }
    .provider-card { width: 100%; margin: 0; }

    /* 5. Detail Page */
    .detail-header { flex-direction: column; align-items: stretch; }
    .detail-header-info { text-align: center; }
    .detail-header .btn { width: 100%; justify-content: center; }
    .detail-header .btn-primary { margin-left: 0 !important; }
    
    .detail-footer { flex-direction: column; align-items: flex-start; }
    .info-panel-grid { grid-template-columns: 1fr; }

    /* 6. Footer & Admin */
    .footer-grid { grid-template-columns: 1fr; }
    .form-group-split { grid-template-columns: 1fr; }
    .admin-table { display: block; overflow-x: auto; }

    /* 7. Filter & Sidebar */
    .filter-form { grid-template-columns: 1fr; width: 100%; }
    .sidebar-left { grid-template-columns: 1fr; }
    
    /* 8. Promo Box */
    .promo-box-v2 { flex-direction: column; padding: 20px; }
    .promo-box-v2 .promo-info { width: 100%; }
}

/* Small Screens (Max 640px) */
@media (max-width: 640px) {
    /* Detail Info Rows (Layanan) - Stack vertically */
    .info-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .info-label { width: 100%; padding-top: 0; margin-bottom: 4px; color: #64748b; font-size: 0.9rem; }
    .services-list { width: 100%; }
    
    /* Bigger pills for touch */
    .service-pill { padding: 8px 14px; font-size: 0.9rem; background-color: #f8fafc; }

    .detail-meta-grid .meta-item { padding: 12px; }
    .detail-meta-grid .meta-item .icon-wrapper { flex: 0 0 40px; min-width: 40px; }
}

/* Very Small Screens (Max 500px) */
@media (max-width: 500px) {
    .sidebar-left { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    
    .promo-box-v2 { align-items: flex-start; gap: 15px; }
    .promo-box-v2 .promo-code-area { margin-left: 0; width: 100%; }
    .promo-box-v2 .btn-outline { width: 100%; text-align: center; }
    
    .hero-section { padding: 24px 16px; }
    .card-screenshot-wrapper { height: 160px; }
    .featured-card { padding: 12px; }
    
    .hf-pagination .hf-page, .pagination a { min-width: 35px; height: 35px; font-size: 0.9rem; }
}

/* -----------------------------------------------------------
   9. BLOG SYSTEM STYLES (From admin-style.css)
   ----------------------------------------------------------- */

/* --- Shared Container for Blog --- */
body.blog-post .container,
body.blog-index .container {
    width: 90%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BLOG INDEX (LISTING) - dari index.php --- */

body.blog-index {
    --bg: #f7f9fc;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #0f172a;
    --primary: #2563eb;

    background: var(--bg);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--accent);
}

/* container khusus halaman index blog */
body.blog-index .blog-index-container {
    padding: 30px 0;
}

body.blog-index .container-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* card list post */
body.blog-index .list-card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.04);
    border: 1px solid #eef2f6;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

body.blog-index .list-card-body {
    flex: 1;
}

body.blog-index .thumb {
    width: 140px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 140px;
}

body.blog-index .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.blog-index .post-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

body.blog-index .post-title {
    font-size: 18px;
    margin: 0 0 6px;
}

body.blog-index .post-excerpt {
    color: var(--muted);
    line-height: 1.5;
}

body.blog-index .read-more {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

/* link tanpa dekorasi */
body.blog-index .unstyled-link {
    color: inherit;
    text-decoration: none;
}

/* sidebar */
body.blog-index .sidebar {
    position: relative;
}

body.blog-index .partner-card {
    background: var(--card);
    border: 1px solid #eef2f6;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

body.blog-index .partner-card-sticky {
    position: sticky;
    top: 20px;
}

body.blog-index .partner-hero {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

body.blog-index .partner-hero img {
    width: 100%;
    height: auto;
    display: block;
}

body.blog-index .partner-title {
    font-weight: 700;
    margin-top: 8px;
}

body.blog-index .partner-desc {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

/* pagination */
body.blog-index .pager {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

body.blog-index .pager a {
    padding: 8px 12px;
    background: var(--card);
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e6edf8;
    color: var(--accent);
}

body.blog-index .pager .current {
    background: var(--primary);
    color: #fff;
}

/* responsive index */
@media (max-width: 980px) {
    body.blog-index .container-grid {
        grid-template-columns: 1fr;
    }

    body.blog-index .sidebar {
        display: none;
    }

    body.blog-index .thumb {
        display: none;
    }
}

/* --- BLOG POST DETAIL - dari post.php --- */

body.blog-post {
    --bg: #ffffff;
    --muted: #6b7280;
    --card: #fcfcfd;
    --border: #e6e9ee;
    --shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    --accent: #0f172a;
    --primary: #2563eb;

    margin: 0;
    padding: 0;
    background: var(--bg);
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

/* layout utama detail */
body.blog-post .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 16px;
}

body.blog-post .container-flex {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* sidebar kiri promo */
body.blog-post .sidebar-promos {
    flex: 0 0 320px;
    max-width: 320px;
    position: sticky;
    top: 130px; /* sesuaikan tinggi header */
    z-index: 90;
    align-self: flex-start;
}

/* konten utama */
body.blog-post .main-content {
    flex: 1 1 auto;
    min-width: 0;
}

body.blog-post .detail-card {
    box-shadow: var(--shadow);
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
}

/* header artikel */
body.blog-post .detail-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

body.blog-post .detail-header h1 {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.3;
}

body.blog-post .detail-header time {
    font-size: 13px;
    color: var(--muted);
}

/* konten artikel */
body.blog-post .detail-description {
    padding: 20px;
    font-size: 15px;
}

/* konten di dalam artikel dibuat responsive */
body.blog-post .detail-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
}

body.blog-post .detail-description iframe {
    max-width: 100%;
}

body.blog-post .detail-description table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

body.blog-post .detail-description pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 12px;
    border-radius: 8px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* sidebar promo cards */
body.blog-post .promo-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.04);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* link flex di dalam promo */
body.blog-post .promo-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
}

/* utilitas warna */
body.blog-post .text-inherit {
    color: inherit;
}

body.blog-post .promo-media {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.blog-post .promo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.blog-post .promo-body {
    flex: 1;
    min-width: 0;
}

body.blog-post .promo-meta {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.blog-post .promo-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 6px;
    color: var(--accent);
    line-height: 1.3;
}

body.blog-post .promo-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* info card di bawah artikel */
body.blog-post .info-card {
    margin-top: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.blog-post .info-card h3 {
    margin: 0;
    font-size: 16px;
}

/* header info card (judul + action) */
body.blog-post .info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

body.blog-post .info-grid {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

body.blog-post .info-item {
    flex: 1;
    min-width: 220px;
    display: flex;
    gap: 12px;
    align-items: center;
}

body.blog-post .info-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f7ff;
    color: var(--primary);
    font-size: 18px;
}

body.blog-post .info-label {
    font-size: 13px;
    color: var(--muted);
}

body.blog-post .info-value {
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}

body.blog-post .info-url {
    font-size: 13px;
    color: var(--muted);
    word-break: break-all;
}

/* border & share section di bawah info card */
body.blog-post .info-card-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

/* share row */
body.blog-post .share-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

body.blog-post .share-label {
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}

body.blog-post .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

body.blog-post .share-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 13px;
    white-space: nowrap;
}

body.blog-post .share-facebook {
    background: #1877F2;
}

body.blog-post .share-twitter {
    background: #1DA1F2;
}

body.blog-post .share-wa {
    background: #25D366;
}

body.blog-post .share-copy {
    background: #6b7280;
    color: #fff;
}

/* responsive detail */

/* tablet & bawah */
@media (max-width: 1024px) {
    body.blog-post .container {
        padding: 24px 12px;
    }
}

/* ≤880px: sidebar turun */
@media (max-width: 880px) {
    body.blog-post .container-flex {
        flex-direction: column-reverse;
    }

    body.blog-post .sidebar-promos {
        position: static;
        max-width: 100%;
        width: 100%;
        flex: 0 0 auto;
        margin-top: 8px;
        display: block;
    }
}

/* HP kecil */
@media (max-width: 600px) {
    body.blog-post .detail-header {
        padding: 16px;
    }

    body.blog-post .detail-description {
        padding: 16px;
    }

    body.blog-post .info-card {
        padding: 16px;
    }

    body.blog-post .info-grid {
        flex-direction: column;
        align-items: stretch;
    }

    body.blog-post .info-item {
        min-width: 0;
    }

    body.blog-post .share-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* HP sangat kecil */
@media (max-width: 420px) {
    body.blog-post .promo-panel {
        padding: 10px;
    }

    body.blog-post .promo-media {
        width: 60px;
        height: 60px;
    }

    body.blog-post .share-small {
        flex: 1 1 45%;
        justify-content: center;
    }
}