/* DAGANK.COM - Stylesheet Utama Responsif */
:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #ccfbf1;
    --secondary: #f59e0b;
    --bg-page: #f4f6f8;
    --bg-surface: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --danger: #dc2626;
    --success: #15803d;
    --warning: #b45309;
    --info: #1d4ed8;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px; line-height: 1.55; color: var(--text-main); background-color: var(--bg-page);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-muted { color: var(--text-muted); }
.danger-text { color: var(--danger); }
.link-primary { font-weight: 600; font-size: 0.92rem; }
.link-muted { color: var(--text-muted); font-size: 0.88rem; }
.empty-state { color: var(--text-muted); padding: 16px 0; margin: 0; }
.inline-form { display: inline-block; margin: 0; }

.topbar {
    background: var(--bg-surface); border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-sm);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand-logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-dark); text-decoration: none !important; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: var(--text-main); font-weight: 500; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-greeting { font-size: 0.9rem; color: var(--text-muted); margin-right: 4px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.92rem; cursor: pointer; text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #111827; }
.btn-outline { background: var(--bg-surface); color: var(--text-main); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-sm { padding: 7px 13px; font-size: 0.85rem; }
.btn-xs { padding: 5px 10px; font-size: 0.78rem; border-radius: 6px; }
.btn-block { width: 100%; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 0.92rem; border: 1px solid transparent; }
.alert-success { background: #dcfce7; color: var(--success); border-color: #86efac; }
.alert-error { background: #fee2e2; color: var(--danger); border-color: #fca5a5; }
.alert-warning { background: #fef3c7; color: var(--warning); border-color: #fcd34d; }
.alert-info { background: #dbeafe; color: var(--info); border-color: #93c5fd; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: capitalize; background: #e5e7eb; color: #374151; }
.badge-published, .badge-berhasil { background: #dcfce7; color: var(--success); }
.badge-featured { background: #fef3c7; color: #92400e; }
.badge-menunggu_pembayaran, .badge-menunggu_verifikasi, .badge-draft { background: #e0f2fe; color: #0369a1; }
.badge-ditolak, .badge-banned, .badge-kedaluwarsa { background: #fee2e2; color: var(--danger); }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }

.hero-search { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #ffffff; padding: 40px 0; }
.hero-search h1 { margin: 0 0 8px; font-size: 1.8rem; }
.hero-subtitle { margin: 0 0 20px; color: #e6fffa; }
.search-bar-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; background: var(--bg-surface); padding: 8px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.search-bar-form input { border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 12px; font-size: 0.95rem; width: 100%; }

.home-main { padding: 28px 0 40px; }
.home-section { margin-bottom: 32px; }
.section-head, .page-header, .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2, .page-header h1, .panel-header h2 { margin: 0; }
.panel-box { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.category-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px; text-align: center; font-weight: 600; color: var(--text-main); box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, transform 0.15s ease; }
.category-card:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; transform: translateY(-2px); }

.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ad-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.ad-card-featured { border-color: var(--secondary); }
.ad-thumb-link { position: relative; display: block; aspect-ratio: 4 / 3; background: #e5e7eb; overflow: hidden; }
.ad-thumb-link img { width: 100%; height: 100%; object-fit: cover; }
.ad-badge-overlay { position: absolute; top: 10px; left: 10px; }
.ad-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ad-cat { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.ad-title { margin: 0; font-size: 1rem; line-height: 1.35; }
.ad-title a { color: var(--text-main); }
.ad-price { font-weight: 700; font-size: 1.05rem; color: var(--primary-dark); }
.ad-meta { margin-top: auto; padding-top: 8px; border-top: 1px solid #f3f4f6; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }

.guide-grid, .package-grid, .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.guide-item, .stat-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; }
.stat-label { display: block; font-size: 0.82rem; color: var(--text-muted); }
.stat-value { display: block; font-size: 1.6rem; margin: 4px 0; color: var(--text-main); }
.stat-note { color: var(--text-muted); }
.package-card { display: flex; flex-direction: column; gap: 10px; }
.package-price { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); }

.dashboard-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 16px 40px; align-items: start; }
.member-sidebar { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.sidebar-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); padding: 4px 10px 10px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link { padding: 9px 12px; border-radius: 7px; color: var(--text-main); font-size: 0.9rem; font-weight: 500; }
.sidebar-link:hover, .sidebar-link.active { background: var(--primary-light); color: var(--primary-dark); text-decoration: none; font-weight: 600; }

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.94rem; font-family: inherit; background: #ffffff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.form-actions, .action-buttons, .share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.data-table th { background: #f9fafb; font-weight: 700; }
.thumb-sm { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.row-highlight { background: #f0fdfa; }

.detail-page, .category-page { padding: 20px 0 40px; }
.breadcrumb { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.detail-main-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 8px; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb-btn { border: 2px solid transparent; border-radius: 6px; padding: 0; width: 76px; height: 58px; overflow: hidden; cursor: pointer; background: #f3f4f6; }
.thumb-btn.active { border-color: var(--primary); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { margin: 6px 0 10px; font-size: 1.45rem; }
.detail-price { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 14px; }
.detail-meta { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; }
.share-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 8px; }

.qris-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: center; }
.qris-img { max-width: 220px; border: 1px solid var(--border-color); border-radius: 8px; padding: 6px; background: #ffffff; }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-container { width: 100%; max-width: 440px; }
.auth-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md); }
.auth-header h1 { margin: 8px 0 4px; font-size: 1.4rem; }
.auth-header p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.9rem; }
.auth-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-color); font-size: 0.88rem; text-align: center; color: var(--text-muted); }

.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-color); padding: 28px 0 18px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 6px 0 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 14px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

@media (max-width: 900px) {
    .dashboard-shell { grid-template-columns: 1fr; }
    .detail-grid, .qris-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .search-bar-form, .form-grid-2 { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .hero-search h1 { font-size: 1.4rem; }
}


/* =========================================================
   DAGANK Marketplace Refresh — warm orange, mobile-first UI
   Inspirasi visual marketplace modern; bukan aset Shopee.
   ========================================================= */
:root {
    --primary: #ee4d2d;
    --primary-dark: #d73211;
    --primary-light: #fff0eb;
    --secondary: #ffb02e;
    --bg-page: #f5f5f5;
    --bg-surface: #ffffff;
    --text-main: #252525;
    --text-muted: #757575;
    --border-color: #eeeeee;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.045);
    --shadow-md: 0 8px 24px rgba(0,0,0,.075);
}
html, body { font-size: 16px; }
body { -webkit-text-size-adjust: 100%; }
h1 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.25; }
h2 { font-size: clamp(1.18rem, 2.4vw, 1.5rem); line-height: 1.3; }
h3 { font-size: 1.08rem; }
.topbar { background: #fff; }
.brand-logo { color: var(--primary); font-size: 1.55rem; }
.btn { min-height: 44px; font-size: .98rem; border-radius: 10px; }
.btn-primary { background: var(--primary); box-shadow: 0 3px 8px rgba(238,77,45,.15); }
.btn-primary:hover { background: var(--primary-dark); }
.hero-search { background: linear-gradient(120deg,#f05a36 0%,#ee4d2d 60%,#ff8a36 100%); }
.hero-search h1 { font-size: clamp(1.7rem,4vw,2.35rem); }
.search-bar-form { border-radius: 14px; }
.search-bar-form input { min-height: 48px; font-size: 1rem; }
.panel-box, .stat-card, .category-card, .ad-card, .member-sidebar {
    border-radius: 14px; box-shadow: var(--shadow-sm);
}
.panel-box { padding: clamp(15px,2.5vw,22px); }
.category-card { padding: 17px 12px; font-size: .98rem; }
.ad-card { border-color: #f0f0f0; transition: transform .16s ease, box-shadow .16s ease; }
.ad-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ad-card-featured { border: 1px solid #ffc76d; }
.ad-card-body { padding: 13px; gap: 7px; }
.ad-title { font-size: 1rem; line-height: 1.4; }
.ad-price, .detail-price { color: var(--primary); font-size: 1.18rem; }
.stat-value { color: var(--primary); }
.dashboard-body { background: #f6f6f6; }
.dashboard-shell { gap: 18px; }
.member-sidebar { padding: 13px; }
.sidebar-title { color: #888; font-size: .78rem; letter-spacing: .06em; }
.sidebar-link { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; font-size: .96rem; border-radius: 9px; }
.sidebar-link:hover, .sidebar-link.active { color: var(--primary-dark); background: var(--primary-light); }
.sidebar-quick-action { display:flex; align-items:center; justify-content:center; min-height:46px; margin:0 0 12px; padding:10px; border-radius:10px; background:var(--primary); color:#fff; font-weight:800; text-align:center; }
.sidebar-quick-action:hover { background:var(--primary-dark); color:#fff; text-decoration:none; }
.form-group { gap: 7px; }
.form-group label { font-size: 1rem; }
.form-group input, .form-group select, .form-group textarea,
input, select, textarea { font-size: 16px; }
.form-group input, .form-group select, .form-group textarea {
    min-height: 48px; padding: 12px 13px; border-radius: 10px; border-color: #dedede;
}
.form-group textarea { min-height: 132px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(238,77,45,.10);
}
.photo-upload-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.photo-pick-btn {
    min-height:52px; display:flex; align-items:center; justify-content:center;
    padding:12px; border:1px dashed var(--primary); border-radius:12px;
    color:var(--primary); background:#fff8f5; font-weight:750; text-align:center;
    cursor:pointer;
}
.photo-camera-btn { background:#fff; border-style:solid; }
#images, #images_camera { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.upload-preview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:12px; }
.upload-preview-item { position:relative; aspect-ratio:1; overflow:hidden; border-radius:10px; background:#f1f1f1; border:1px solid #eee; }
.upload-preview-item img { width:100%; height:100%; object-fit:cover; }
.upload-preview-item span { position:absolute; left:5px; bottom:5px; padding:3px 6px; border-radius:5px; background:rgba(0,0,0,.65); color:white; font-size:.72rem; }
.form-actions { gap:10px; }
.form-actions .btn { min-height:50px; }
.admin-body .container { max-width: 1240px; }
.admin-body .card { border:1px solid #eee; border-radius:13px; box-shadow:var(--shadow-sm); overflow:hidden; }
.admin-body .card-header { background:#fff; padding:15px 18px; }
.admin-body .table { font-size:.94rem; }
.admin-body .table td, .admin-body .table th { padding:12px; }
.admin-body h3 { font-weight:800; }
.admin-body .btn { min-height:40px; }
.detail-title { font-size:clamp(1.35rem,3vw,1.8rem); }
.detail-price { font-size:1.65rem; }
@media (max-width: 900px) {
    .dashboard-shell { grid-template-columns:1fr; padding-top:14px; }
    .member-sidebar { position:relative; padding:10px; overflow:hidden; }
    .sidebar-title { padding:2px 6px 8px; }
    .sidebar-nav { flex-direction:row; overflow-x:auto; gap:7px; padding-bottom:4px; scrollbar-width:thin; }
    .sidebar-link { flex:0 0 auto; white-space:nowrap; border:1px solid #eee; background:#fff; }
    .sidebar-quick-action { margin-bottom:9px; }
    .dashboard-main { min-width:0; }
}
@media (max-width: 640px) {
    html, body { font-size:16px; }
    .container { padding-left:12px; padding-right:12px; }
    .topbar-inner { min-height:58px; }
    .brand-logo { font-size:1.35rem; }
    .topbar-right { gap:6px; }
    .user-greeting { display:none; }
    .hero-search { padding:28px 0; }
    .hero-search h1 { font-size:1.65rem; }
    .home-main { padding-top:18px; }
    .ads-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
    .ad-card-body { padding:10px; }
    .ad-title { font-size:.91rem; }
    .ad-price { font-size:1rem; }
    .ad-meta { font-size:.73rem; flex-wrap:wrap; gap:4px; }
    .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
    .category-card { padding:13px 8px; font-size:.9rem; }
    .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
    .stat-card { padding:12px; }
    .stat-value { font-size:1.35rem; }
    .page-header { align-items:flex-start; }
    .page-header > a { width:100%; }
    .panel-box { padding:14px; }
    .form-grid-2 { grid-template-columns:1fr; }
    .form-actions { display:grid; grid-template-columns:1fr; }
    .form-actions .btn { width:100%; }
    .photo-upload-actions { grid-template-columns:1fr; }
    .upload-preview-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .detail-grid { gap:14px; }
    .detail-main-img { max-height:340px; }
    .qris-grid { grid-template-columns:1fr; }
    .admin-body .container.py-4 { padding-top:16px !important; }
    .admin-body .table-responsive { margin:0 -5px; }
    .admin-body .card-body { padding:14px; }
}

.pagination-bar { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin:24px 0 8px; }
.pagination-bar span { color:var(--text-muted); font-weight:650; }
@media(max-width:640px) { .pagination-bar { gap:8px; } .pagination-bar .btn { flex:1 1 42%; } }
