/* =========================================================
   GolNet Futsal — Sistem Booking Lapangan Futsal
   Desain kustom: palet hijau lapangan + aksen limau & emas
   ========================================================= */

:root {
  --navy: #0b3d2e;
  --green: #0f7a4b;
  --green-light: #16a35f;
  --lime: #b7e778;
  --amber: #c99a2e;
  --red: #c0392b;
  --ink: #16211c;
  --muted: #6b7a72;
  --bg: #f6f8f6;
  --card: #ffffff;
  --border: #e3ebe5;
  --shadow: 0 10px 30px -12px rgba(11, 61, 46, 0.25);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.2;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 24px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 1.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #96281c; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 61, 46, 0.96); backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 4px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; }
.brand-mark { color: var(--lime); }
.brand-sub { color: #fff; font-weight: 500; font-size: 1rem; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: rgba(255,255,255,.88); font-weight: 500; }
.main-nav a:hover { color: var(--lime); }
.nav-user { color: rgba(255,255,255,.7); font-size: .9rem; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(11,61,46,.93), rgba(15,90,61,.82) 55%, rgba(15,122,75,.68)),
    var(--hero-img, none) center / cover no-repeat,
    linear-gradient(135deg, var(--navy), #0f5a3d 55%, var(--green));
  color: #fff; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px; padding: 72px 24px; }
.eyebrow { display: inline-block; background: rgba(183,231,120,.18); color: var(--lime); border: 1px solid rgba(183,231,120,.4); padding: 5px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: 2.5rem; font-weight: 800; }
.hero h1 span { color: var(--lime); }
.hero-text p { color: rgba(255,255,255,.85); max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin: 22px 0 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.25rem; color: var(--lime); font-family: 'Poppins', sans-serif; }
.hero-stats span { font-size: .8rem; color: rgba(255,255,255,.7); }

.hero-art { display: flex; justify-content: center; }
.pitch { position: relative; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #2ba86b, #0d5a3a 70%); border: 6px solid rgba(255,255,255,.25); }
.pitch-line.pitch-mid { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.4); }
.pitch-circle { position: absolute; top: 50%; left: 50%; width: 90px; height: 90px; border: 2px solid rgba(255,255,255,.4); border-radius: 50%; transform: translate(-50%, -50%); }
.ball { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.4rem; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(-50%, -55%); } 50% { transform: translate(-50%, -45%); } }

/* ---------- Card grid (lapangan) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.field-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .18s ease; }
.field-card:hover { transform: translateY(-4px); }
.field-thumb { height: 150px; display: flex; align-items: flex-end; padding: 16px; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.thumb-0 { background: linear-gradient(135deg, #146c43, #1f9d5c); }
.thumb-1 { background: linear-gradient(135deg, #0b3d2e, #147a4a); }
.thumb-2 { background: linear-gradient(135deg, #1c8c53, #b7e778 130%); }
.field-body { padding: 18px 20px 22px; }
.field-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.clamp-2 { display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.field-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy); }
.price small { font-weight: 400; color: var(--muted); font-size: .75rem; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--lime); font-weight: 700; font-family: 'Poppins', sans-serif; margin-bottom: 10px; }

/* ---------- Auth ---------- */
.auth-section { padding: 60px 24px; }
.auth-card { max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 32px; }
.auth-card h1 { font-size: 1.6rem; }
.form-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-grid input, .form-grid select, .form-grid textarea {
  font-family: inherit; font-size: .95rem; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: #fbfdfb;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--green-light); background: #fff; }
.hint { font-size: .8rem; }

/* ---------- Alerts & Badges ---------- */
.alert { padding: 13px 18px; border-radius: 12px; margin: 18px 0; font-size: .92rem; }
.alert ul { margin: 0; padding-left: 20px; }
.alert-success { background: #e6f7ec; color: #1a6c3a; border: 1px solid #b9e6c8; }
.alert-error { background: #fdecea; color: #a3352a; border: 1px solid #f6c4bd; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-pending { background: #fdf3e0; color: var(--amber); }
.badge-confirmed { background: #e6f7ec; color: var(--green); }
.badge-rejected { background: #fdecea; color: var(--red); }
.badge-done { background: #e6ecfd; color: #3452c4; }

/* ---------- Detail Lapangan / Jadwal ---------- */
.detail-hero { background: linear-gradient(135deg, var(--navy), var(--green)); color: #fff; padding: 46px 24px; }
.detail-hero h1 { color: #fff; margin-bottom: 6px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .hero-inner { grid-template-columns: 1fr; } .hero-art { order: -1; } }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin: 14px 0 20px; }
.slot { padding: 10px 6px; text-align: center; border-radius: 10px; font-size: .85rem; font-weight: 600; border: 1.5px solid var(--border); background: #fff; }
.slot.tersedia { color: var(--green); border-color: #bfe6cf; }
.slot.terisi { color: #9aa39d; background: #f1f3f1; text-decoration: line-through; }

.summary-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.summary-row:last-child { border-bottom: none; font-weight: 700; color: var(--navy); }

/* ---------- Tables (admin & riwayat) ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--navy); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f6faf7; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.proof-link img { max-width: 70px; border-radius: 8px; border: 1px solid var(--border); }

/* ---------- Admin layout ---------- */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - 72px); }
.admin-sidebar { background: var(--navy); padding: 26px 16px; }
.admin-sidebar a { display: block; color: rgba(255,255,255,.82); padding: 11px 14px; border-radius: 10px; font-weight: 500; margin-bottom: 4px; font-size: .93rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.1); color: var(--lime); }
.admin-content { padding: 32px; }
@media (max-width: 780px) { .admin-wrap { grid-template-columns: 1fr; } .admin-sidebar { display: flex; overflow-x: auto; gap: 4px; padding: 12px; } .admin-sidebar a { white-space: nowrap; margin-bottom: 0; } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px 22px; box-shadow: var(--shadow); }
.stat-card .stat-value { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.stat-card .stat-label { color: var(--muted); font-size: .85rem; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: end; }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.filter-bar input, .filter-bar select { padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--border); font-family: inherit; }

.page-title-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 36px 24px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-inner .brand-mark { color: var(--lime); }
.footer-inner .brand-sub { color: #fff; }
.footer-meta { font-size: .85rem; }

/* ---------- Responsive nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .hero h1 { font-size: 1.9rem; }
}

/* ---------- Foto lapangan & bukti bayar ---------- */
.field-thumb.has-photo { background-size: cover; background-position: center; }
.detail-hero.has-photo { background-size: cover; background-position: center; }
.thumb-sm { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.photo-field { display: flex; flex-direction: column; gap: 8px; }
.photo-label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.photo-preview { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: #eef3ef; }
.form-grid .check-row { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form-grid .check-row input { width: auto; }
.proof-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.proof-view img { width: 100%; max-height: 640px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.proof-pdf { width: 100%; height: 600px; border: 1px solid var(--border); border-radius: 10px; }
@media (max-width: 900px) { .proof-layout { grid-template-columns: 1fr; } }
