:root {
  --green: #10b04a;
  --green-2: #34d26d;
  --green-dark: #0a7f34;
  --green-deep: #074a21;
  --white: #ffffff;
  --bg: #f4fbf6;
  --bg-soft: #edf8f0;
  --panel: rgba(255,255,255,0.86);
  --panel-strong: rgba(255,255,255,0.94);
  --line: rgba(16, 98, 47, 0.12);
  --line-strong: rgba(16, 98, 47, 0.22);
  --text: #102217;
  --muted: #5e7767;
  --shadow: 0 18px 45px rgba(16, 120, 58, 0.10);
  --shadow-soft: 0 10px 26px rgba(16, 120, 58, 0.08);
  --radius: 20px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(52,210,109,.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(16,176,74,.10), transparent 28%),
    linear-gradient(180deg, #f9fffb 0%, #eef7f0 100%);
}
a { text-decoration: none; color: inherit; }
button,input,select,textarea{font:inherit}

.admin-shell { display:flex; min-height:100vh; position:relative; }
.admin-shell::before{
  content:''; position:fixed; inset:0; pointer-events:none;
  background-image: linear-gradient(rgba(16,176,74,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(16,176,74,.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 35%, transparent 90%);
}

.sidebar {
  width: 280px;
  padding: 22px 18px;
  color:#fff;
  background: linear-gradient(180deg, #0f9c40 0%, #0a7431 100%);
  position:relative;
  overflow:hidden;
  box-shadow: 18px 0 40px rgba(8, 74, 31, 0.16);
}
.sidebar::before,
.sidebar::after{
  content:''; position:absolute; border-radius:999px; filter: blur(10px); opacity:.28;
}
.sidebar::before{ width:180px; height:180px; background:rgba(255,255,255,.18); top:-45px; right:-60px; }
.sidebar::after{ width:140px; height:140px; background:rgba(255,255,255,.10); bottom:35px; left:-50px; }

.sidebar-brand {
  min-height:88px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  display:flex; align-items:center; gap:14px;
  padding:16px 18px; margin-bottom:18px;
  position:relative; z-index:1;
}
.brand-circle {
  width:52px; height:52px; border-radius:18px;
  background: linear-gradient(135deg, #fff 0%, #dfffe7 100%);
  color:var(--green-dark); display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:700; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 25px rgba(0,0,0,.12);
}
.brand-copy{line-height:1.1}
.brand-title{font-size:15px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.brand-sub{font-size:11px;opacity:.8;margin-top:4px}

.sidebar-nav { display:flex; flex-direction:column; gap:9px; position:relative; z-index:1; }
.sidebar-link {
  color:#effff3; padding:13px 14px; border-radius:16px; display:flex; align-items:center; gap:12px;
  font-size:13px; font-weight:700; border:1px solid transparent;
  transition:.22s ease; backdrop-filter: blur(8px);
}
.sidebar-link .menu-icon{
  width:34px;height:34px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);font-size:14px;
}
.sidebar-link:hover {
  background: rgba(255,255,255,.11); transform: translateX(3px); border-color:rgba(255,255,255,.14);
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.sidebar-link.logout{ margin-top:8px; color:#ffeaea; }
.sidebar-link.logout .menu-icon{ background:rgba(255,77,77,.14); border-color:rgba(255,255,255,.12); }

.main-panel { flex:1; min-width:0; padding:18px; }
.topbar {
  min-height:82px; padding:16px 22px; display:flex; align-items:center; justify-content:space-between;
  background: var(--panel); border:1px solid rgba(255,255,255,.6); border-radius: 24px;
  box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
.search-wrap {
  width:min(520px, 56vw); background:#fff; border-radius:16px; border:1px solid var(--line);
  min-height:48px; display:flex; align-items:center; padding:0 16px; color:#78a087; gap:10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.search-wrap input { border:none; outline:none; width:100%; font-size:14px; background:transparent; color:var(--text); }
.topbar-right { display:flex; align-items:center; gap:16px; }
.topbar-chip{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#ffffff,#ebfff1);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--green-dark);box-shadow:var(--shadow-soft)}
.avatar {
  width:46px; height:46px; border-radius:16px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; box-shadow: var(--shadow-soft);
}
.user-meta { font-size:11px; line-height:1.35; font-weight:700; color:var(--muted); }
.user-meta strong{display:block;color:var(--text);font-size:13px}

.content { padding:20px 4px 30px; }
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:2px 0 18px}
.page-title-wrap{display:flex;flex-direction:column;gap:6px}
.page-title { font-size:28px; color:#0c5d2a; font-weight:800; letter-spacing:-.02em; margin:0; }
.page-subtitle{font-size:13px;color:var(--muted)}

.surface, .panel-card, .data-table, .review-card, .form-card, .center-box, .reward-card, .stat-card, .court-card, .login-card, .helper-box {
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.surface { border-radius: 24px; padding:20px; }
.stats-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; margin-bottom:18px; }
.stat-card {
  min-height:130px; padding:20px 22px; border-radius:22px; text-align:left; position:relative; overflow:hidden;
}
.stat-card::before{
  content:''; position:absolute; top:-35px; right:-35px; width:110px; height:110px; border-radius:28px;
  background:linear-gradient(135deg, rgba(52,210,109,.20), rgba(16,176,74,.03)); transform:rotate(25deg);
}
.stat-card .label { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.stat-card .value { margin-top:14px; color:#0a7f34; font-size:34px; font-weight:800; letter-spacing:-.03em; }
.card-grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; }
.panel-card { border-radius:22px; padding:18px; min-height:260px; }
.panel-card.highlight { border-color:rgba(16,176,74,.28); box-shadow: 0 18px 42px rgba(16,120,58,.14); }
.panel-title { font-size:13px; color:#1d4e2d; margin-bottom:12px; font-weight:800; letter-spacing:.01em; }
.chart-box { width:100%; height:190px; }

.data-table { border-radius:22px; overflow:hidden; }
.data-table table { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; }
.data-table th, .data-table td { border-bottom:1px solid rgba(16,98,47,.08); padding:14px 14px; vertical-align:middle; }
.data-table th { background:linear-gradient(180deg,#f8fffa,#eef9f1); font-weight:800; color:#205735; font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.data-table tbody tr{transition:.16s ease}
.data-table tbody tr:hover{background:rgba(16,176,74,.035)}
.status-active,.status-paid { color:#119c44; font-weight:800; }
.status-inactive { color:#d62020; font-weight:800; }

.btn-ui {
  border:none; border-radius:14px; padding:10px 16px; font-size:12px; font-weight:800; display:inline-flex; align-items:center; justify-content:center;
  transition:.18s ease; cursor:pointer; box-shadow: var(--shadow-soft);
}
.btn-ui:hover{transform:translateY(-1px)}
.btn-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color:#fff; }
.btn-red { background: linear-gradient(135deg, #ff6363 0%, #db2f2f 100%); color:#fff; }
.btn-gray { background:#fff; color:#245434; border:1px solid rgba(16,98,47,.15); }
.btn-row { display:flex; gap:8px; }
.section-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }

.court-list { display:flex; flex-direction:column; gap:18px; }
.court-card { border-radius:24px; padding:16px; display:flex; gap:18px; align-items:center; }
.court-card.featured { border-color:rgba(16,176,74,.24); }
.court-image-wrap{width:240px;flex:0 0 240px}
.court-photo,.reward-photo,.preview-img{width:100%;height:auto;border-radius:18px;border:1px solid rgba(16,98,47,.1);display:block;box-shadow:var(--shadow-soft)}
.court-photo{aspect-ratio:16/9;object-fit:cover}
.court-info h3 { font-size:26px; margin:0 0 10px; letter-spacing:-.02em; }
.court-meta { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.court-meta span{padding:7px 10px;border-radius:999px;background:rgba(16,176,74,.06);border:1px solid rgba(16,176,74,.09)}

.reward-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.reward-card { border-radius:22px; padding:14px; }
.reward-banner { height:94px; border-radius:18px; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:800; color:#fff; text-transform:uppercase; margin-bottom:10px; background:linear-gradient(135deg,#31c162,#0d7d34); box-shadow:var(--shadow-soft) }
.reward-banner.alt { background:linear-gradient(135deg,#7fd857,#2c9f28); }
.reward-banner.green { background:linear-gradient(135deg,#12c2a2,#0f8c75); }
.reward-photo{height:140px;object-fit:cover;margin-bottom:10px}
.muted { color:var(--muted); font-size:12px; }

.review-card { max-width:500px; border-radius:22px; padding:18px; }
.review-header { display:flex; gap:12px; align-items:flex-start; }
.review-avatar { width:46px; height:46px; border-radius:16px; background:linear-gradient(135deg,#0fa741,#0a7f34); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; box-shadow:var(--shadow-soft) }
.stars { color:#0fa741; letter-spacing:2px; font-size:20px; }
.review-message { background:#f4fbf6; border:1px solid rgba(16,98,47,.10); border-radius:14px; padding:12px 14px; margin-top:12px; font-size:13px; }
.reply-box{background:#edf8f0;border:1px solid rgba(16,176,74,.18);border-radius:14px;padding:12px 14px;margin-top:10px;font-size:13px}

.form-card { max-width:700px; margin:0 auto; border-radius:26px; padding:28px; }
.form-group { margin-bottom:16px; }
.form-group label { font-size:12px; font-weight:800; margin-bottom:7px; display:block; color:#205735; text-transform:uppercase; letter-spacing:.05em; }
.input-ui, .select-ui, .textarea-ui {
  width:100%; background:#fcfffd; border:1px solid rgba(16,98,47,.12); border-radius:16px; padding:13px 15px; font-size:14px; color:var(--text);
  outline:none; transition:.16s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.input-ui:focus, .select-ui:focus, .textarea-ui:focus{border-color:rgba(16,176,74,.40); box-shadow:0 0 0 4px rgba(16,176,74,.10)}
.textarea-ui { min-height:120px; }

.login-page {
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;
  background:
    radial-gradient(circle at top left, rgba(16,176,74,.16), transparent 22%),
    radial-gradient(circle at bottom right, rgba(16,176,74,.10), transparent 25%),
    linear-gradient(180deg,#f8fffa 0%,#eef7f0 100%);
}
.login-wrap { width:min(1040px, 100%); text-align:center; display:grid; grid-template-columns:1.05fr .95fr; gap:26px; align-items:center; }
.login-hero{text-align:left;padding:28px}
.login-logo { color:#0f6e31; font-weight:800; font-size:44px; line-height:1.05; letter-spacing:-.03em; margin-bottom:18px; }
.login-caption{font-size:15px;color:var(--muted);max-width:520px;line-height:1.7}
.login-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.login-pill{padding:10px 14px;border-radius:999px;background:rgba(16,176,74,.08);border:1px solid rgba(16,176,74,.12);font-size:12px;font-weight:800;color:#1c6636}
.login-card { width:min(470px, 100%); margin-left:auto; padding:34px 30px; border-radius:30px; text-align:left; }
.login-card .input-ui { border-radius:18px; }
.login-btn { width:100%; min-height:48px; border-radius:16px; margin-top:8px; }
.helper-box { border-radius:18px; padding:14px; font-size:13px; color:#466455; }
.center-box { border-radius:30px; padding:48px 28px; text-align:center; }
.center-box.highlight { border-color:rgba(16,176,74,.24); }
.center-box h2 { color:#0f6e31; font-size:38px; font-weight:800; margin-bottom:16px; letter-spacing:-.03em; }
.profile-card { max-width:760px; margin:0 auto; }
.profile-top { text-align:center; margin-bottom:18px; }
.profile-photo { width:84px; height:84px; border-radius:24px; background:linear-gradient(135deg,#0fa741,#0a7f34); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:30px; margin-bottom:10px; box-shadow:var(--shadow-soft) }
.inline-form-icon { display:flex; align-items:center; gap:10px; }
.inline-icon { width:40px; height:40px; border-radius:14px; border:1px solid rgba(16,98,47,.12); background:#f8fffa; display:flex; align-items:center; justify-content:center; font-size:13px; color:#0f6e31; }
.flash{padding:14px 16px;border-radius:18px;margin:0 0 16px;font-size:13px;font-weight:700;box-shadow:var(--shadow-soft)}
.flash-success{background:#e8fff0;border:1px solid #58b874;color:#10652b}
.flash-error{background:#fff1f1;border:1px solid #db6b6b;color:#9d1111}
.btn-col{display:flex;flex-direction:column;gap:8px}
.wrap{flex-wrap:wrap}
.stretch{display:flex;width:100%}
.stretch .input-ui{flex:1}
.compact-form{max-width:none;margin-bottom:16px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.mt-12{margin-top:12px}.mt-16{margin-top:16px}
.reply-box{background:#e9f7ec;border:1px solid #8ad09f;border-radius:14px;padding:10px 12px;margin-top:10px;font-size:12px}
.stack-list{display:flex;flex-direction:column;gap:16px}.review-card.wide{max-width:none}.center-box p{margin-bottom:16px}
.divider-soft{height:1px;background:linear-gradient(90deg,transparent,rgba(16,176,74,.14),transparent);margin:10px 0 0}

@media (max-width: 1200px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.login-wrap{grid-template-columns:1fr}.login-card{margin:0 auto}}
@media (max-width: 992px) {
  .sidebar { width: 96px; padding:18px 12px; }
  .brand-copy, .sidebar-link span.label { display:none; }
  .sidebar-brand{justify-content:center;padding:12px}
  .stats-grid, .card-grid-2, .reward-grid { grid-template-columns:1fr; }
  .court-card { flex-direction:column; align-items:flex-start; }
  .court-image-wrap { width:100%; flex:auto; }
  .page-title{font-size:24px}
}
@media (max-width: 768px){
  .main-panel{padding:12px}
  .topbar{padding:14px;flex-direction:column;align-items:stretch;gap:14px}
  .search-wrap{width:100%}
  .grid-4{grid-template-columns:1fr}
  .page-head{flex-direction:column;align-items:flex-start}
  .login-logo{font-size:36px}
}

.menu-badge{
  margin-left:auto; min-width:24px; height:24px; padding:0 8px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.2); color:#fff; font-size:11px; font-weight:800;
}
.topbar-profile{display:flex;align-items:center;gap:12px}
.avatar-photo{overflow:hidden;position:relative}
.avatar-photo img,.profile-photo img{width:100%;height:100%;object-fit:cover;display:block}
.notification-wrap{position:relative}
.bell-chip{position:relative}
.notif-badge{
  position:absolute; top:-5px; right:-5px; min-width:22px; height:22px; padding:0 6px; border-radius:999px;
  background:linear-gradient(135deg,#ff6f61,#e23a3a); color:#fff; font-size:11px; font-weight:800;
  display:flex; align-items:center; justify-content:center; box-shadow:0 10px 20px rgba(226,58,58,.24); animation:pulseBadge 1.8s infinite;
}
.notification-panel{
  position:absolute; top:58px; right:0; width:min(420px, calc(100vw - 48px)); opacity:0; visibility:hidden; transform:translateY(8px);
  background:rgba(255,255,255,.96); border:1px solid rgba(16,98,47,.10); border-radius:22px; box-shadow:var(--shadow); backdrop-filter:blur(16px);
  padding:16px; transition:.22s ease; z-index:20;
}
.notification-wrap:hover .notification-panel,
.notification-wrap:focus-within .notification-panel{opacity:1;visibility:visible;transform:translateY(0)}
.notification-title{font-size:14px;font-weight:800;color:#134e28}
.notification-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;margin-bottom:12px}
.notification-summary span{padding:8px 10px;border-radius:999px;background:#eef9f1;border:1px solid rgba(16,176,74,.12);font-size:11px;font-weight:700;color:#1d6838}
.notification-list{display:flex;flex-direction:column;gap:10px;max-height:360px;overflow:auto}
.notification-item{
  display:grid; grid-template-columns:44px 1fr auto; gap:12px; align-items:flex-start; padding:12px; border-radius:16px;
  background:#fbfffc; border:1px solid rgba(16,98,47,.08); transition:.18s ease;
}
.notification-item:hover{background:#f2fbf5; transform:translateY(-1px)}
.notification-icon{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8fff0,#dff8e7);color:#0e8f3b}
.notification-copy{display:flex;flex-direction:column;gap:4px}
.notification-copy strong{font-size:13px;color:#163e24}
.notification-copy span,.notification-item small,.notification-empty{font-size:12px;color:var(--muted)}
.notification-empty{padding:12px;border-radius:14px;background:#fbfffc;border:1px dashed rgba(16,98,47,.12)}
.preview-shell{background:#fbfffc;border:1px dashed rgba(16,98,47,.18);padding:12px;border-radius:18px}
.preview-shell label{margin-bottom:10px}
.preview-shell .preview-img{max-height:260px;object-fit:cover}
.profile-photo{overflow:hidden;position:relative}
.profile-photo.preview-shell{width:96px;height:96px;padding:0;border-style:solid;display:inline-flex;align-items:center;justify-content:center}
.clicked{animation:clickPulse .26s ease}
.btn-ui,.sidebar-link,.court-card,.panel-card,.stat-card,.reward-card,.review-card,.topbar-chip,.topbar-profile{transition:transform .18s ease, box-shadow .18s ease, background .18s ease}
.btn-ui:active,.sidebar-link:active,.topbar-chip:active,.topbar-profile:active{transform:scale(.98)}
@keyframes clickPulse{0%{transform:scale(1)}50%{transform:scale(.985)}100%{transform:scale(1)}}
@keyframes pulseBadge{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}

/* === FINAL MODERN UI/UX FIX PACK === */
body { overflow-x: hidden; }
.main-panel { position: relative; z-index: 1; }
.topbar { position: sticky; top: 18px; z-index: 9000; overflow: visible !important; }
.topbar-right, .notification-wrap { position: relative; z-index: 10000; }
.content { position: relative; z-index: 1; }

.dashboard-hero {
  display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px;
  background:
    radial-gradient(circle at 85% 10%, rgba(16,176,74,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(239,255,244,.92));
  border-radius:28px; overflow:hidden; position:relative;
}
.dashboard-hero::before{
  content:''; position:absolute; inset:auto -60px -80px auto; width:240px; height:240px; border-radius:50%;
  background:rgba(16,176,74,.09); pointer-events:none;
}
.dashboard-hero h2{margin:6px 0 8px;color:#075b27;font-size:28px;line-height:1.12;letter-spacing:-.035em}
.dashboard-hero p{margin:0;color:var(--muted);font-size:14px;max-width:680px;line-height:1.65}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(16,176,74,.08);border:1px solid rgba(16,176,74,.12);color:#0b7d34;font-weight:900;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.eyebrow::before{content:'';width:8px;height:8px;border-radius:50%;background:#10b04a;box-shadow:0 0 0 6px rgba(16,176,74,.12)}
.dashboard-hero .btn-ui{gap:8px;white-space:nowrap;position:relative;z-index:1}

.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.stat-card{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.stat-card:hover{transform:translateY(-4px);box-shadow:0 24px 58px rgba(16,120,58,.15);border-color:rgba(16,176,74,.18)}
.stat-icon{width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eaffef,#d8f7e2);color:#0d8338;margin-bottom:10px;box-shadow:var(--shadow-soft)}

.dashboard-charts .panel-card{min-height:340px;display:flex;flex-direction:column;}
.dashboard-charts .panel-card:hover{transform:translateY(-3px);box-shadow:0 24px 58px rgba(16,120,58,.14);border-color:rgba(16,176,74,.20)}
.panel-title{display:flex;align-items:center;gap:8px;font-size:14px;}
.panel-title i{color:#0f9c40}
.chart-wrap{position:relative;width:100%;height:260px;min-height:260px;max-height:260px;flex:1;}
.chart-wrap canvas{width:100% !important;height:260px !important;display:block;}
.chart-box{width:100% !important;height:260px !important;max-height:260px !important;}
.panel-card{overflow:hidden;}

.notification-panel{
  position:absolute !important; top:58px !important; right:0 !important; width:min(430px, calc(100vw - 34px)) !important;
  z-index:99999 !important; opacity:0; visibility:hidden; transform:translateY(10px) scale(.98);
  pointer-events:none;
}
.notification-wrap:hover .notification-panel{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(10px) scale(.98)}
.notification-wrap.is-open .notification-panel,
.notification-wrap:focus-within .notification-panel{opacity:1 !important;visibility:visible !important;pointer-events:auto !important;transform:translateY(0) scale(1) !important;}
.notification-panel::before{content:'';position:absolute;top:-8px;right:18px;width:18px;height:18px;background:rgba(255,255,255,.96);border-left:1px solid rgba(16,98,47,.10);border-top:1px solid rgba(16,98,47,.10);transform:rotate(45deg)}
.notification-item{position:relative;overflow:hidden;}
.notification-item::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(16,176,74,.06),transparent);transform:translateX(-100%);transition:.38s ease}
.notification-item:hover::after{transform:translateX(100%)}

.btn-ui{gap:7px;position:relative;overflow:hidden;}
.btn-ui::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);transform:translateX(-120%);transition:.36s ease;}
.btn-ui:hover::after{transform:translateX(120%)}
.btn-ui:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(16,120,58,.16)}
.btn-red:hover{box-shadow:0 16px 34px rgba(219,47,47,.18)}
.sidebar-link{position:relative;overflow:hidden;}
.sidebar-link::after{content:'';position:absolute;left:0;top:50%;width:4px;height:0;background:#fff;border-radius:99px;transform:translateY(-50%);transition:.2s ease;}
.sidebar-link:hover::after,.sidebar-link.active::after{height:44%;}
.data-table{overflow:auto;}
.data-table table{min-width:760px;}
.data-table tbody tr{cursor:default;}
.data-table tbody tr:hover{background:rgba(16,176,74,.055);box-shadow:inset 4px 0 0 rgba(16,176,74,.55)}
.court-card,.reward-card,.review-card{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.court-card:hover,.reward-card:hover,.review-card:hover{transform:translateY(-3px);box-shadow:0 22px 50px rgba(16,120,58,.14);border-color:rgba(16,176,74,.20)}
.input-ui:hover,.select-ui:hover,.textarea-ui:hover{border-color:rgba(16,176,74,.24)}
.flash{animation:slideFade .28s ease both}
@keyframes slideFade{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}

@media (max-width: 992px){
  .dashboard-hero{flex-direction:column;align-items:flex-start}
  .stats-grid{grid-template-columns:1fr}
  .dashboard-charts .panel-card{min-height:320px}
}
@media (max-width: 768px){
  .topbar{top:8px}
  .chart-wrap,.chart-wrap canvas,.chart-box{height:230px !important;min-height:230px;max-height:230px !important}
  .notification-panel{right:auto !important;left:50% !important;transform:translate(-50%,10px) scale(.98) !important;width:calc(100vw - 28px) !important}
  .notification-wrap.is-open .notification-panel,.notification-wrap:focus-within .notification-panel{transform:translate(-50%,0) scale(1) !important}
  .dashboard-hero h2{font-size:23px}
}

/* FINAL CLEAN UI PATCH */
.topbar {
  min-height: 74px;
  padding: 12px 16px;
  gap: 14px;
  border-radius: 22px;
}
.search-clean {
  width: min(500px, 46vw);
  min-height: 48px;
  border-radius: 999px;
  padding: 0 8px 0 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(16,98,47,.10);
}
.search-clean input::placeholder { color:#7c9183; }
.search-clean button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg,#10b04a,#08752f);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(16,120,58,.18);
}
.topbar-right { gap: 10px; }
.topbar-chip {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  border-color: rgba(16,98,47,.11);
}
.notif-badge {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ff5757;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 900;
  border: 3px solid #fff;
}
.notification-wrap { position: relative; }
.notification-panel {
  max-height: 420px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(16,98,47,.12) !important;
  box-shadow: 0 28px 70px rgba(6,78,32,.22) !important;
  padding: 14px !important;
}
.notification-title {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px 4px 12px;
  margin-bottom: 4px;
  color:#075b27;
  font-size: 14px;
  font-weight: 900;
  background: rgba(255,255,255,.98);
}
.notification-list {
  max-height: 345px;
  overflow-y: auto;
  padding-right: 4px;
}
.notification-list::-webkit-scrollbar{width:6px}
.notification-list::-webkit-scrollbar-thumb{background:rgba(16,176,74,.35);border-radius:999px}
.notification-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 10px;
  background: linear-gradient(135deg,#f8fffa,#eefaf2);
  border: 1px solid rgba(16,98,47,.08);
}
.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #e8fff0;
  color:#08752f;
}
.notification-copy strong { color:#143c22; font-size:13px; }
.notification-copy span { color:#668071; font-size:12px; }
.notification-item small { color:#7d8d84; font-size:11px; white-space:nowrap; }
.topbar-profile {
  min-height: 56px;
  padding: 7px 12px 7px 7px;
  display:flex;
  align-items:center;
  gap: 11px;
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(16,98,47,.10);
  box-shadow: var(--shadow-soft);
}
.avatar-photo,
.avatar-photo img {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
}
.page-head { margin-top: 8px; margin-bottom: 16px; }
.page-subtitle, .dashboard-hero p, .login-caption, .helper-box { display: none !important; }
.dashboard-hero-clean {
  min-height: 116px;
  padding: 24px 28px;
  align-items: center;
}
.dashboard-hero-clean h2 { margin-bottom: 0; }
.login-clean-wrap { grid-template-columns: 1fr 1fr; }
.login-clean-hero { display:flex; flex-direction:column; align-items:flex-start; gap:20px; }
.login-accent-card {
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,98,47,.12);
  box-shadow: var(--shadow-soft);
}
.login-accent-card span {
  display:block;
  color:#0a7f34;
  font-size: 12px;
  letter-spacing:.12em;
  font-weight:900;
  margin-bottom: 8px;
}
.login-accent-card strong {
  display:block;
  color:#0b3d20;
  font-size: 20px;
  line-height:1.25;
}
.login-clean-card { min-height: auto; }
@media (max-width: 992px){
  .search-clean { width: 100%; }
  .login-clean-wrap { grid-template-columns: 1fr; }
}

/* === FINAL SCROLL + NOTIFICATION BEHAVIOR FIX === */
html,
body {
  height: 100%;
  overflow: hidden !important;
}

.admin-shell {
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
}

.sidebar {
  height: 100vh !important;
  min-height: 100vh !important;
  flex: 0 0 300px;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
}

.sidebar::-webkit-scrollbar {
  width: 0;
}

.main-panel {
  height: 100vh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
}

.topbar {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto !important;
  z-index: 99999 !important;
  overflow: visible !important;
}

.content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 12px !important;
  scroll-behavior: smooth;
}

.content::-webkit-scrollbar {
  width: 10px;
}

.content::-webkit-scrollbar-track {
  background: rgba(255,255,255,.35);
  border-radius: 999px;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(16,176,74,.45);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.7);
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(10,127,52,.72);
}

.notification-wrap {
  position: relative !important;
  z-index: 100000 !important;
}

.notification-panel {
  position: absolute !important;
  top: 64px !important;
  right: 0 !important;
  width: min(460px, calc(100vw - 42px)) !important;
  max-height: min(68vh, 470px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 100001 !important;
}

.notification-wrap.is-open .notification-panel,
.notification-wrap:focus-within .notification-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.notification-title {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
}

.notification-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 8px !important;
  overscroll-behavior: contain;
}

.notification-list::-webkit-scrollbar {
  width: 8px;
}

.notification-list::-webkit-scrollbar-track {
  background: rgba(16,176,74,.08);
  border-radius: 999px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(16,176,74,.55);
  border-radius: 999px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: rgba(10,127,52,.78);
}

.notification-item {
  min-height: 68px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .sidebar {
    flex-basis: 96px;
  }
}

@media (max-width: 768px) {
  html,
  body,
  .admin-shell,
  .main-panel {
    overflow: auto !important;
    height: auto !important;
  }

  .sidebar {
    height: auto !important;
    min-height: auto !important;
  }

  .content {
    overflow: visible !important;
  }

  .notification-panel {
    position: fixed !important;
    top: 90px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-height: 70vh !important;
    transform: translateY(10px) scale(.98) !important;
  }

  .notification-wrap.is-open .notification-panel,
  .notification-wrap:focus-within .notification-panel {
    transform: translateY(0) scale(1) !important;
  }
}

/* === OPEN MATCH + NOTIFICATION SCROLL UPDATE === */
.sidebar { flex-basis: 300px; }
.openmatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.openmatch-card {
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.openmatch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(16,120,58,.15);
  border-color: rgba(16,176,74,.20);
}
.openmatch-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.openmatch-card h3 {
  margin: 6px 0 0;
  color: #0b3d20;
  font-size: 20px;
  line-height: 1.2;
}
.openmatch-sport {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(16,176,74,.08);
  border: 1px solid rgba(16,176,74,.12);
  color: #0b7d34;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.openmatch-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #075b27;
  background: #e8fff0;
  border: 1px solid rgba(16,176,74,.16);
}
.openmatch-status.status-penuh { background: #fff7e6; color: #9a5a00; border-color: rgba(245,158,11,.25); }
.openmatch-status.status-selesai { background: #eaf2ff; color: #1d4ed8; border-color: rgba(37,99,235,.20); }
.openmatch-status.status-dibatalkan { background: #fff1f1; color: #b91c1c; border-color: rgba(239,68,68,.22); }
.openmatch-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.openmatch-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(16,176,74,.055);
  border: 1px solid rgba(16,176,74,.09);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.openmatch-progress { margin: 12px 0; }
.openmatch-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.openmatch-progress-text strong { color: #0b7d34; font-size: 15px; }
.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(16,176,74,.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: inherit;
}
.openmatch-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  background: #fbfffc;
  border: 1px solid rgba(16,98,47,.08);
  border-radius: 16px;
  padding: 12px;
  margin: 12px 0;
}
.openmatch-edit {
  border: 1px solid rgba(16,98,47,.10);
  border-radius: 18px;
  background: #fbfffc;
  padding: 12px;
  margin-top: 12px;
}
.openmatch-edit summary {
  cursor: pointer;
  color: #0b7d34;
  font-size: 13px;
  font-weight: 900;
}
.openmatch-inline-form { margin-top: 12px; }
.openmatch-actions { margin-top: 12px; justify-content: flex-end; }

.notification-panel {
  height: auto !important;
  max-height: min(72vh, 540px) !important;
  overflow: hidden !important;
}
.notification-list {
  max-height: min(58vh, 430px) !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  padding-right: 10px !important;
}
.notification-list::-webkit-scrollbar { width: 9px !important; }
.notification-list::-webkit-scrollbar-track { background: rgba(16,176,74,.08) !important; border-radius: 999px !important; }
.notification-list::-webkit-scrollbar-thumb { background: rgba(16,176,74,.62) !important; border-radius: 999px !important; border: 2px solid rgba(255,255,255,.8); }
.notification-list::-webkit-scrollbar-thumb:hover { background: rgba(10,127,52,.82) !important; }
.notification-item { flex-shrink: 0 !important; }

@media (max-width: 1200px) {
  .openmatch-grid { grid-template-columns: 1fr; }
}

/* === UPDATE: SEARCH, LAPANGAN SLIDER/FASILITAS, OPEN MATCH MOBILE STYLE, NOTIF SCROLL === */
.search-wrap input[name="q"] { min-width: 0; }
.no-search-result { display:none; }

.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wide-form { max-width: 960px; }
.facility-checkboxes { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facility-checkboxes label { text-transform:none; letter-spacing:0; display:flex; align-items:center; gap:8px; padding:11px 12px; border-radius:14px; background:#f7fff9; border:1px solid rgba(16,98,47,.10); color:#214b31; }
.facility-checkboxes input { accent-color:#10b04a; }
.gallery-preview-row { display:flex; gap:10px; flex-wrap:wrap; }
.gallery-preview-row img { width:120px; height:80px; border-radius:14px; object-fit:cover; border:1px solid rgba(16,98,47,.12); box-shadow:var(--shadow-soft); }

.court-card-modern { align-items: stretch; }
.court-slider { width:260px; flex:0 0 260px; position:relative; border-radius:22px; overflow:hidden; background:#e9f7ec; min-height:170px; box-shadow:var(--shadow-soft); }
.court-slide-track { position:relative; width:100%; height:100%; min-height:170px; }
.slide-photo { position:absolute; inset:0; width:100%; height:100% !important; object-fit:cover; opacity:0; pointer-events:none; transition:opacity .25s ease; border-radius:0 !important; }
.slide-photo.active { opacity:1; pointer-events:auto; }
.court-empty-icon { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:46px; z-index:2; }
.slider-btn { position:absolute; top:50%; transform:translateY(-50%); width:32px; height:32px; border:0; border-radius:999px; background:rgba(255,255,255,.9); color:#08752f; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,.12); z-index:4; }
.slider-btn.prev { left:10px; }
.slider-btn.next { right:10px; }
.slider-count { position:absolute; right:10px; bottom:10px; padding:5px 9px; border-radius:999px; background:rgba(255,255,255,.92); color:#0b3d20; font-weight:900; font-size:11px; z-index:4; }
.facility-list { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.facility-chip { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:999px; background:rgba(16,176,74,.08); border:1px solid rgba(16,176,74,.12); color:#15592f; font-size:12px; font-weight:800; }
.facility-chip.muted-chip { color:var(--muted); background:#f7fff9; }

.openmatch-admin-shell { display:flex; flex-direction:column; gap:16px; }
.openmatch-mobile-head { min-height:120px; padding:26px 28px; border-radius:28px; display:flex; justify-content:space-between; align-items:center; background:linear-gradient(135deg,#0fac45,#078031); color:#fff; box-shadow:0 20px 50px rgba(9,110,48,.18); }
.openmatch-mobile-head h2 { margin:0; font-size:34px; font-weight:900; letter-spacing:-.03em; }
.openmatch-filter-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.mini-search, .mini-select { min-height:42px; border-radius:14px; border:1px solid rgba(16,98,47,.13); background:#fff; box-shadow:var(--shadow-soft); }
.mini-search { display:flex; align-items:center; gap:8px; padding:0 13px; min-width:240px; }
.mini-search input { border:0; outline:0; background:transparent; width:100%; }
.mini-select { padding:0 12px; color:#19482a; font-weight:700; }
.openmatch-form-mobile { border-radius:26px; }
.openmatch-form-mobile h3 { margin:0 0 18px; color:#0a7f34; font-size:26px; font-weight:900; letter-spacing:-.03em; }
.openmatch-form-section { font-size:13px; color:#214b31; font-weight:900; margin-bottom:12px; }
.openmatch-grid.mobile-inspired { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-match-card { position:relative; padding-top:58px; border:1px solid rgba(16,98,47,.15); }
.match-avatar { position:absolute; left:18px; top:18px; width:46px; height:46px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#e9fff0,#d8f7e2); color:#0a7f34; font-size:18px; }
.mobile-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px !important; }
.mobile-meta span { background:#f7fff9; padding:9px 10px; border-radius:13px; border:1px solid rgba(16,98,47,.08); }
.progress-track { width:100%; height:10px; border-radius:999px; background:#e7f5eb; overflow:hidden; margin-top:8px; }
.progress-track span { display:block; height:100%; background:linear-gradient(135deg,#10b04a,#08752f); border-radius:999px; }
.openmatch-progress-text { display:flex; gap:6px; align-items:baseline; color:#164125; }
.openmatch-desc { margin-top:12px; padding:12px; border-radius:14px; background:#f7fff9; color:#436653; font-size:13px; }

.notification-panel { max-height: min(74vh, 560px) !important; }
.notification-list { max-height: min(58vh, 440px) !important; overflow-y: scroll !important; overflow-x: hidden !important; overscroll-behavior: contain !important; scroll-behavior:smooth; }
.notification-list::-webkit-scrollbar { width: 9px !important; }
.notification-list::-webkit-scrollbar-track { background: rgba(16,176,74,.08) !important; border-radius:999px; }
.notification-list::-webkit-scrollbar-thumb { background: rgba(16,176,74,.72) !important; border-radius:999px; border:2px solid rgba(255,255,255,.85); }
.notification-item { flex-shrink:0 !important; }

@media (max-width: 992px){
  .grid-2, .openmatch-grid.mobile-inspired { grid-template-columns:1fr; }
  .facility-checkboxes { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .court-card-modern { flex-direction:column; }
  .court-slider { width:100%; flex-basis:auto; }
}
@media (max-width: 640px){
  .facility-checkboxes, .mobile-meta { grid-template-columns:1fr; }
  .openmatch-mobile-head { flex-direction:column; align-items:flex-start; }
}
/* CARD FLEX */
.court-card{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

/* MOBILE */
@media (max-width: 768px){
    .court-card{
        flex-direction:column;
    }

    .venue-image-wrap{
        width:100%;
        flex:auto;
    }

    .venue-image,
    .venue-empty{
        height:220px;
    }
}
/* =========================
   VENUE / COURT CARD FIX
========================= */

.panel-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(420px,1fr));
    gap:20px;
}

.court-card{
    display:flex;
    gap:20px;
    align-items:flex-start;
    padding:16px;
    border-radius:24px;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(16,98,47,.10);
    box-shadow:0 18px 45px rgba(16,120,58,.10);
    overflow:hidden;
    transition:.2s ease;
}

.court-card:hover{
    transform:translateY(-3px);
    box-shadow:0 22px 55px rgba(16,120,58,.14);
}

.court-slider{
    width:260px;
    min-width:260px;
    height:180px;
    border-radius:20px;
    overflow:hidden;
    background:#eef7f0;
    flex-shrink:0;
    position:relative;
}

.court-photo,
.court-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:20px;
    background:#eef7f0;
}

.court-copy{
    flex:1;
    display:flex;
    flex-direction:column;
    min-width:0;
}

.court-top{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px;
}

.court-top h3{
    margin:0 0 10px;
    font-size:24px;
    font-weight:800;
    color:#0b3d20;
    line-height:1.2;
}

.court-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.court-meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(16,176,74,.08);
    border:1px solid rgba(16,176,74,.12);
    color:#15592f;
    font-size:12px;
    font-weight:700;
}

.court-description{
    margin:10px 0 16px;
    color:#5e7767;
    line-height:1.7;
    font-size:14px;
}

.court-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:auto;
}

.court-tags span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 12px;
    border-radius:999px;
    background:#f7fff9;
    border:1px solid rgba(16,98,47,.10);
    color:#205735;
    font-size:12px;
    font-weight:700;
}

.court-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:flex-start;
}

.court-actions form{
    margin:0;
}

.btn-ui.success{
    background:linear-gradient(135deg,#10b04a,#08752f);
    color:#fff;
}

.btn-ui.warning{
    background:linear-gradient(135deg,#ffcc4d,#e6a700);
    color:#fff;
}

.btn-ui.danger{
    background:linear-gradient(135deg,#ff5f5f,#d62828);
    color:#fff;
}

/* IMAGE FALLBACK */

.court-slider::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,#dff5e5,#b8ebc8);
    z-index:0;
}

.court-photo,
.court-image{
    position:relative;
    z-index:2;
}

/* MOBILE */

@media (max-width:992px){

    .panel-grid{
        grid-template-columns:1fr;
    }

    .court-card{
        flex-direction:column;
    }

    .court-slider{
        width:100%;
        min-width:100%;
        height:240px;
    }

    .court-top{
        flex-direction:column;
    }

    .court-actions{
        width:100%;
    }

    .court-actions .btn-ui{
        flex:1;
    }
}
/* =========================
   VENUE DETAIL
========================= */

.venue-detail-card{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.venue-detail-image{
    width:100%;
    border-radius:24px;
    overflow:hidden;
    background:#eef7f0;
    border:1px solid rgba(16,98,47,.10);
    box-shadow:var(--shadow-soft);
}

.venue-detail-image img{
    width:100%;
    height:420px;
    object-fit:cover;
    display:block;
}

.venue-detail-content{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.venue-detail-title{
    font-size:34px;
    font-weight:800;
    color:#0b3d20;
    margin:0;
    line-height:1.2;
}

.venue-detail-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.venue-detail-meta span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 14px;
    border-radius:999px;
    background:rgba(16,176,74,.08);
    border:1px solid rgba(16,176,74,.12);
    color:#15592f;
    font-size:12px;
    font-weight:700;
}

.venue-detail-description{
    padding:18px;
    border-radius:20px;
    background:#fbfffc;
    border:1px solid rgba(16,98,47,.08);
    color:#5e7767;
    line-height:1.8;
    font-size:14px;
}

.map-wrapper{
    width:100%;
    overflow:hidden;
    border-radius:24px;
    border:1px solid rgba(16,98,47,.10);
    box-shadow:var(--shadow-soft);
    background:#fff;
}

.map-wrapper iframe{
    width:100%;
    height:420px;
    border:0;
    display:block;
}

.venue-action-row{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

/* MOBILE */

@media (max-width:768px){

    .venue-detail-image img{
        height:240px;
    }

    .venue-detail-title{
        font-size:26px;
    }

    .map-wrapper iframe{
        height:300px;
    }
}
.btn-yellow{
    background: #facc15;
    color: #fff;
}

.btn-yellow:hover{
    background: #eab308;
    color: #fff;
}
.court-show-wrapper{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.show-slider-card{
    background:#fff;
    padding:20px;
    border-radius:24px;
}

.show-detail-card{
    padding:30px;
    border-radius:24px;
}

.show-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:20px;
}

.show-header h1{
    font-size:38px;
    margin-bottom:10px;
}

.show-price{
    font-size:28px;
    font-weight:700;
    color:#119c41;
    margin-bottom:20px;
}

.show-description{
    color:#555;
    line-height:1.8;
    margin-bottom:24px;
}

.venue-box{
    margin-top:30px;
    padding:24px;
    background:#f5fbf6;
    border-radius:20px;
}

.venue-box h3{
    margin-bottom:16px;
}

.venue-info{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:20px;
}

.map-wrapper{
    margin-top:30px;
    overflow:hidden;
    border-radius:20px;
}

.map-wrapper iframe{
    width:100%;
    height:400px;
    border:none;
}
/* =========================
   OPEN MATCH
========================= */

.openmatch-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
    gap:20px;
}

.openmatch-card{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:20px;
    border-radius:28px;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(16,98,47,.10);
    box-shadow:0 14px 35px rgba(16,120,58,.10);
    overflow:hidden;
    transition:.2s ease;
}

.openmatch-card:hover{
    transform:translateY(-4px);
    box-shadow:0 22px 55px rgba(16,120,58,.14);
}

.openmatch-card::before{
    content:'';
    position:absolute;
    top:-60px;
    right:-60px;
    width:160px;
    height:160px;
    border-radius:50%;
    background:rgba(16,176,74,.08);
}

/* HEADER */

.openmatch-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    position:relative;
    z-index:2;
}

.openmatch-left{
    display:flex;
    gap:14px;
    align-items:flex-start;
}

.openmatch-avatar{
    width:54px;
    height:54px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#eaffef,#d7f6e0);
    color:#0a7f34;
    font-size:22px;
    flex-shrink:0;
}

.openmatch-title{
    margin:0;
    font-size:22px;
    font-weight:800;
    color:#0b3d20;
    line-height:1.2;
}

.openmatch-sport{
    display:inline-flex;
    align-items:center;
    margin-top:8px;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(16,176,74,.08);
    border:1px solid rgba(16,176,74,.12);
    color:#0b7d34;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.08em;
}

/* STATUS */

.openmatch-status{
    padding:8px 14px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    border:1px solid transparent;
    white-space:nowrap;
}

.status-open{
    background:#e8fff0;
    color:#08752f;
    border-color:rgba(16,176,74,.18);
}

.status-full{
    background:#fff6e7;
    color:#9a5a00;
    border-color:rgba(245,158,11,.24);
}

.status-finish{
    background:#edf4ff;
    color:#1d4ed8;
    border-color:rgba(37,99,235,.20);
}

/* META */

.openmatch-meta{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    position:relative;
    z-index:2;
}

.openmatch-meta-item{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:12px;
    border-radius:16px;
    background:#f8fffa;
    border:1px solid rgba(16,98,47,.08);
}

.openmatch-meta-item i{
    color:#0b7d34;
    margin-top:2px;
}

.openmatch-meta-item strong{
    display:block;
    color:#1a4328;
    font-size:12px;
    margin-bottom:3px;
}

.openmatch-meta-item span{
    color:#5e7767;
    font-size:13px;
}

/* DESCRIPTION */

.openmatch-description{
    position:relative;
    z-index:2;
    padding:14px;
    border-radius:18px;
    background:#fbfffc;
    border:1px solid rgba(16,98,47,.08);
    color:#557061;
    line-height:1.7;
    font-size:13px;
}

/* PLAYER PROGRESS */

.openmatch-progress{
    position:relative;
    z-index:2;
}

.openmatch-progress-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.openmatch-progress-top span{
    color:#5e7767;
    font-size:12px;
    font-weight:700;
}

.openmatch-progress-top strong{
    color:#0b7d34;
    font-size:18px;
}

.progress-bar{
    width:100%;
    height:12px;
    background:#e7f5eb;
    border-radius:999px;
    overflow:hidden;
}

.progress-bar div{
    height:100%;
    border-radius:999px;
    background:linear-gradient(135deg,#10b04a,#08752f);
}

/* ACTION */

.openmatch-actions{
    display:flex;
    gap:10px;
    margin-top:auto;
    position:relative;
    z-index:2;
}

.openmatch-actions .btn-ui{
    flex:1;
    min-height:44px;
    border-radius:14px;
}

/* MOBILE */

@media (max-width:768px){

    .openmatch-grid{
        grid-template-columns:1fr;
    }

    .openmatch-card{
        padding:18px;
        border-radius:24px;
    }

    .openmatch-head{
        flex-direction:column;
    }

    .openmatch-status{
        align-self:flex-start;
    }

    .openmatch-meta{
        grid-template-columns:1fr;
    }

    .openmatch-actions{
        flex-direction:column;
    }

    .openmatch-title{
        font-size:20px;
    }
}
/* =========================
   OPEN MATCH HEADER FIX
========================= */

.openmatch-mobile-head{
    min-height:110px;
    padding:26px 30px;
    border-radius:28px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    background:linear-gradient(135deg,#0fac45,#078031);
    box-shadow:0 20px 50px rgba(9,110,48,.18);
}

.openmatch-create-btn{
    min-height:48px;
    padding:0 22px;
    border-radius:16px;
    font-size:13px;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
    box-shadow:0 14px 30px rgba(0,0,0,.12);
}

.openmatch-create-btn i{
    font-size:13px;
}
/* SLIDER LAPANGAN */
.court-slider{
    position: relative;
    width: 320px;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
}

.court-slide-track{
    width:100%;
    height:100%;
    position:relative;
}

.slide-photo{
    width:100%;
    height:100%;
    object-fit:cover;

    position:absolute;
    top:0;
    left:0;

    opacity:0;
    transition:opacity .4s ease;
}

.slide-photo.active{
    opacity:1;
    z-index:2;
}

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:5;
}

.slider-btn.prev{
    left:10px;
}

.slider-btn.next{
    right:10px;
}

.slider-count{
    position:absolute;
    bottom:10px;
    right:10px;
    z-index:5;
}
.reward-photo{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:12px;
    display:block;
}

.reward-card{
    overflow:hidden;
}

.preview-img{
    width:100%;
    max-height:180px;
    object-fit:cover;
    border-radius:12px;
}

.preview-shell.has-image .preview-img{
    display:block !important;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}