@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;800;900&display=swap');

:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18312a;
  background: #f8faf8;
  line-height: 1.5;
  font-synthesis: none;
  --forest-950: #052e24;
  --forest-900: #073b2e;
  --forest-800: #0b4f3c;
  --emerald: #059669;
  --lime: #a3e635;
  --mint: #ecfdf5;
  --line: #dbe9e1;
  --slate: #53665f;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f8faf8; }
a { color: inherit; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: var(--forest-950); color: white; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em; }
.brand img { border-radius: 13px; box-shadow: 0 0 0 2px rgba(163,230,53,.16); }
.brand-accent { color: var(--lime); }
.main-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-link { color: #d5eee2; text-decoration: none; border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; font: inherit; cursor: pointer; }
.nav-link:hover, .nav-link:focus-visible { background: rgba(255,255,255,.1); color: white; }
.nav-link-accent { color: var(--lime); }
.inline-form { display: inline; }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--forest-950), var(--forest-800)); color: white; padding: 76px 0 88px; }
.hero::before { content: ""; position: absolute; inset: -3%; z-index: 0; background: url('/static/images/hero-bg.webp') center/cover no-repeat; animation: bgDrift 28s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(5,46,36,.72), rgba(5,46,36,.55)); }
.hero > * { position: relative; z-index: 2; }
@keyframes bgDrift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, 1%); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .catalog-section::before { animation: none; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.01; letter-spacing: -.07em; margin: 12px 0 24px; max-width: 700px; background: linear-gradient(92deg, #ffffff 5%, #7dd3fc 48%, #f472b6 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero h1 span { -webkit-text-fill-color: transparent; color: transparent; }
.hero h1 .hero-title-line { display: block; white-space: nowrap; }
.hero-copy { font-size: 1.15rem; color: #c9e5d9; max-width: 580px; margin: 0; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(340px, 75%); border-radius: 30px; box-shadow: 30px 30px 0 rgba(163,230,53,.08), 0 25px 60px rgba(0,0,0,.25); }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 17px; text-decoration: none; font-weight: 750; cursor: pointer; font-size: .94rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--emerald); color: white; box-shadow: 0 8px 16px rgba(5,150,105,.18); }
.button-primary:hover { background: #047857; }
.hero .button-primary { background: var(--lime); color: var(--forest-950); }
.button-secondary { background: white; color: var(--forest-800); border: 1px solid var(--line); }
.button-secondary:hover { border-color: var(--emerald); }
.button-quiet { background: #f1f6f3; color: var(--forest-800); }
.button-small { padding: 8px 11px; font-size: .82rem; }
.catalog-section { position: relative; overflow: hidden; padding: 64px 0 90px; background: linear-gradient(135deg, var(--forest-950), var(--forest-800)); }
.catalog-section::before { content: ""; position: absolute; inset: -3%; z-index: 0; background: url('/static/images/catalog-bg-2.webp') center/cover no-repeat; animation: bgDrift 36s ease-in-out infinite alternate-reverse; }
.catalog-section::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(5,46,36,.8), rgba(5,46,36,.62)); }
.catalog-section > * { position: relative; z-index: 2; }
.catalog-section .section-heading h2 { color: #fff; }
.catalog-section .eyebrow { color: var(--lime); }
.catalog-section .result-count { color: #b7d7c9; }
.section-heading, .admin-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading h2, .admin-page-heading h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.1; letter-spacing: -.05em; margin: 5px 0 0; color: var(--forest-950); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--emerald); margin: 0; }
.result-count { color: var(--slate); font-size: .9rem; }
.catalog-filters { display: flex; gap: 12px; margin: 0 0 26px; flex-wrap: wrap; }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1 1 420px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; box-shadow: 0 4px 18px rgba(5,46,36,.04); }
.search-field:focus-within, .select-field:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(5,150,105,.13); }
.search-field input, .select-field select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--forest-950); font: inherit; padding: 13px 0; }
.search-icon { color: var(--emerald); font-size: 1.3rem; }
.select-field { min-width: 190px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 0 13px; }
.select-field select { cursor: pointer; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-card { display: flex; flex-direction: column; min-height: 280px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 19px; box-shadow: 0 10px 30px rgba(5,46,36,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.app-card:hover { transform: translateY(-4px); border-color: #a9d7c2; box-shadow: 0 16px 38px rgba(5,46,36,.1); }
.app-card.is-featured { background: linear-gradient(180deg, #f4ffe0, #fff 60%); border-color: #cae894; }
.app-card-top { display: flex; justify-content: space-between; align-items: start; }
.app-icon { width: 58px; height: 58px; border-radius: 16px; overflow: hidden; background: var(--mint); display: flex; align-items: center; justify-content: center; color: var(--forest-800); font-size: 1.4rem; font-weight: 850; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--forest-800), var(--emerald)); color: var(--lime); }
.featured-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; color: #507900; background: #e7f9ae; padding: 5px 8px; border-radius: 999px; }
.app-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 2px; }
.app-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 7px; font-size: 6pt; font-weight: 800; line-height: 1.1; }
.app-badge-access { background: #e7f9ee; color: #166534; }
.app-badge-login_required { background: #fff4d6; color: #92400e; }
.app-badge-pricing { background: #eef2ff; color: #3730a3; }
.app-badge-paid { background: #f3e8ff; color: #7e22ce; }
.app-badge-freemium { background: #e0f2fe; color: #075985; }
.app-card-content { flex: 1; }
.app-card h3 { margin: 5px 0 8px; font-size: 1.28rem; letter-spacing: -.035em; color: var(--forest-950); }
.app-card-content > p:last-child { margin: 0; color: var(--slate); font-size: .92rem; }
.app-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.app-card-actions .button { width: 100%; }
.empty-state { text-align: center; background: white; border: 1px dashed #b9d6c7; border-radius: 18px; padding: 54px 20px; color: var(--slate); }
.empty-state h3 { color: var(--forest-950); margin: 12px 0 4px; }
.empty-state p { margin: 0 0 20px; }
.empty-state.compact { padding: 38px; }
.empty-icon { margin: auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--emerald); font-size: 1.8rem; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--forest-800); font-weight: 700; text-decoration: none; }
.detail-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 15px 40px rgba(5,46,36,.06); }
.detail-icon { width: 84px; height: 84px; margin-bottom: 22px; }
.detail-card h1 { color: var(--forest-950); font-size: clamp(2rem,5vw,3.5rem); line-height: 1.05; letter-spacing: -.06em; margin: 7px 0 16px; }
.detail-description { max-width: 680px; color: var(--slate); font-size: 1.08rem; margin: 0 0 26px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.screenshot-section { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.screenshot-section .section-heading { margin-bottom: 18px; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.screenshot-gallery figure { margin: 0; overflow: hidden; background: #f1f6f3; border: 1px solid var(--line); border-radius: 14px; }
.screenshot-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.screenshot-gallery figcaption { padding: 9px 11px; color: var(--slate); font-size: .78rem; }
.screenshot-empty-public { background: #f8fbf9; border: 1px dashed #b9d6c7; border-radius: 14px; padding: 22px; color: var(--slate); }
.screenshot-empty-public p:last-child { margin: 5px 0 0; }
.about-points { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.about-points div { min-width: 130px; background: var(--mint); border-radius: 12px; padding: 14px; }
.about-points strong, .about-points span { display: block; }
.about-points strong { color: var(--forest-950); font-size: 1.5rem; }
.about-points span, .muted { color: var(--slate); }
.site-footer { background: var(--forest-950); color: #b7d7c9; padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: .83rem; }
.footer-inner p { margin: 0; }
.version-badge { color: #dbf6e8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-main { padding: 48px 0 80px; }
.admin-page-heading p:not(.eyebrow) { color: var(--slate); margin: 8px 0 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 32px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.stat-card strong { display: block; font-size: 2rem; line-height: 1; color: var(--forest-950); margin-top: 7px; }
.stat-card span { font-size: .8rem; color: var(--slate); }
.panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.admin-filters { display: flex; gap: 10px; margin: 0 0 18px; flex-wrap: wrap; }
.admin-filters input, .admin-filters select, .form-control { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: white; font: inherit; color: var(--forest-950); width: 100%; }
.admin-filters input { max-width: 350px; }
.admin-filters select { max-width: 170px; }
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.data-table th, .data-table td { text-align: left; padding: 13px 10px; border-bottom: 1px solid #e7f0eb; vertical-align: middle; }
.data-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.table-app { display: flex; align-items: center; gap: 10px; min-width: 250px; }
.table-app small { display: block; color: var(--slate); font-size: .76rem; overflow: hidden; max-width: 260px; text-overflow: ellipsis; }
.mini-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--mint); display: grid; place-items: center; font-weight: 800; color: var(--forest-800); overflow: hidden; }
.mini-icon img { width: 100%; height: 100%; object-fit: cover; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: .7rem; font-weight: 800; }
.status-published { background: #dcfce7; color: #166534; }
.status-draft { background: #fef3c7; color: #92400e; }
.status-archived { background: #e2e8f0; color: #475569; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.form-shell { max-width: 780px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .82rem; font-weight: 750; color: var(--forest-950); }
.form-label { font-size: .82rem; font-weight: 750; color: var(--forest-950); }
.form-field small { color: var(--slate); font-size: .76rem; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { width: 18px; height: 18px; accent-color: var(--emerald); }
.form-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-main { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 50px 20px; }
.auth-card { width: min(440px, 100%); background: white; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 20px 60px rgba(5,46,36,.08); }
.auth-card h1 { margin: 7px 0 8px; color: var(--forest-950); letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 22px; color: var(--slate); }
.auth-card .form-field { margin-bottom: 15px; }
.category-list { display: grid; gap: 12px; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e7f0eb; padding: 12px 0; }
.category-row small { display: block; color: var(--slate); }
.category-edit-form { display: grid; grid-template-columns: 1fr 1fr 1.3fr 90px auto; gap: 8px; align-items: center; flex: 1; }
.order-input { min-width: 70px; }
.screenshot-admin-list { display: grid; gap: 8px; margin-top: 12px; }
.screenshot-admin-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbf9; }
.screenshot-admin-row img { width: 84px; height: 52px; object-fit: cover; border-radius: 7px; }
.screenshot-admin-row span { flex: 1; color: var(--slate); font-size: .8rem; }
.screenshot-empty { margin: 10px 0 0; font-size: .8rem; }
.screenshot-delete-preview { display: block; width: min(420px, 100%); max-height: 260px; object-fit: contain; background: #f1f6f3; border-radius: 12px; margin: 18px 0; }
@media (max-width: 850px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-art { justify-content: start; } .hero-art img { width: 180px; } .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .container { width: min(100% - 28px, 1120px); } .header-inner { align-items: flex-start; padding: 14px 0; flex-direction: column; gap: 8px; } .main-nav { width: 100%; overflow: auto; } .hero { padding: 52px 0 62px; } .hero h1 { font-size: 2.9rem; } .hero-copy { font-size: 1rem; } .catalog-section { padding: 44px 0 64px; } .section-heading, .admin-page-heading { align-items: flex-start; flex-direction: column; } .app-grid { grid-template-columns: 1fr; } .screenshot-gallery { grid-template-columns: 1fr; } .footer-inner { align-items: flex-start; flex-direction: column; gap: 5px; } .form-grid { grid-template-columns: 1fr; } .form-field.full { grid-column: auto; } .admin-main { padding: 34px 0 60px; } .data-table th, .data-table td { padding: 11px 8px; } .auth-card { padding: 23px; } .category-edit-form { grid-template-columns: 1fr 1fr; } .category-edit-form .form-control:nth-of-type(3) { grid-column: 1 / -1; } .screenshot-admin-row { align-items: flex-start; flex-wrap: wrap; } .screenshot-admin-row span { min-width: calc(100% - 96px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Kartu katalog: aksen, label, dan ikon */

.app-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, color-mix(in srgb, var(--ac1, var(--emerald)) 21%, white), color-mix(in srgb, var(--ac2, var(--lime)) 16%, white));
  border-color: color-mix(in srgb, var(--ac1, var(--emerald)) 37%, white);
}
.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ac1, var(--emerald)), var(--ac2, var(--lime)));
}
.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--ac1, #a9d7c2);
  box-shadow: 0 22px 46px color-mix(in srgb, var(--ac1, var(--emerald)) 33%, transparent);
}

.app-card .eyebrow {
  display: inline-block;
  background: var(--ac1, var(--forest-800));
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
}

.app-icon {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac1, var(--emerald)) 24%, #eef5ee), 0 6px 14px rgba(5, 46, 36, .12);
}
