:root {
  --gc-green: #1a3a2a;
  --gc-green-mid: #2d5c3f;
  --gc-green-light: #4a8c5c;
  --gc-gold: #c9a84c;
  --gc-gold-light: #e8c97a;
  --gc-cream: #f5f0e8;
  --gc-cream-dark: #ede6d6;
  --gc-text: #1a1a18;
  --gc-text-muted: #50504b;
  --gc-white: #ffffff;
  --gc-surface: #fdfaf4;
  --gc-border: rgba(26,58,42,0.12);
  --gc-shadow: 0 2px 16px rgba(26,58,42,0.10);
  --radius: 16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gc-text);
  background: var(--gc-white);
  min-height: 100vh;
}
.text-center {
  text-align: center;
}
.login-error {
  color: #ff9797 !important;
}
.text-danger {
  color: #c00 !important;
}
.text-normal {
  color: var(--gc-text) !important;
}
.text-white {
	color: var(--gc-white);
}
.mb-4 {
  margin-bottom: 20px;
}
.select-event {
  height: 50vh;
  overflow: scroll;
}
/* -- LOGIN -- */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-hero {
  background: var(--gc-green);
  position: relative;
  overflow: hidden;
  padding: 40px 24px 32px;
  flex-shrink: 0;
  text-align: center;
}
.login-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(201,168,76,0.08);
}
.login-hero::after {
  content: '';
  position: absolute; bottom: -70px; left: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.logo-mark-lg {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gc-gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.logo-mark-lg i { color: var(--gc-green); font-size: 26px; }
.hero-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700;
  color: var(--gc-cream); letter-spacing: 0.02em; line-height: 1.1;
}
.hero-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700;
  color: var(--gc-cream); letter-spacing: 0.02em; line-height: 1.1;
}
.hero-tag {
  font-size: 10px; font-weight: 500; color: var(--gc-gold);
  letter-spacing: 0.16em; text-transform: uppercase; margin-top: 6px;
}
.hero-role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 6px 14px; border-radius: 20px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.35);
  font-size: 11px; font-weight: 600; color: var(--gc-gold);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-role-badge i { font-size: 12px; }
.hero-quote {
  margin-top: 32px; font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: rgba(245,240,232,0.75); line-height: 1.5;
  font-style: italic; max-width: 320px;
}
.hero-quote-attr { margin-top: 10px; font-size: 11px; color: var(--gc-gold); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; }
.login-panel {
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
  background: var(--gc-surface);
  flex: 1;
  border-radius: 28px 28px 0 0;
  padding: 32px 24px 40px;
  margin-top: -18px;
  position: relative; z-index: 2;

}
.login-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--gc-text); }
.login-sub { font-size: 12px; color: var(--gc-text-muted); margin-top: 4px; margin-bottom: 26px; line-height: 1.5; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gc-text-muted); margin-bottom: 8px;
}
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--gc-white); border: 1.5px solid var(--gc-border);
  border-radius: var(--radius-sm); padding: 0 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrap:focus-within { border-color: var(--gc-gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.input-wrap.error { border-color: #c84040; }
.input-wrap i { color: var(--gc-text-muted); font-size: 14px; flex-shrink: 0; }
.input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 13px 0; font-size: 14px; color: var(--gc-text); font-family: inherit;
  min-width: 0;
}
.input-wrap input::placeholder { color: rgba(107,107,94,0.55); }
.toggle-pass {
  background: none; border: none; color: var(--gc-text-muted);
  cursor: pointer; font-size: 14px; padding: 4px; flex-shrink: 0;
}
.field-error { font-size: 11px; color: #c84040; margin-top: 6px; display: none; }
.field-error.show { display: block; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember span { color: var(--gc-text-muted); }
.remember .form-label { padding-top: 8px; }
.checkbox {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--gc-border);
  display: flex; align-items: center; justify-content: center;
  background: var(--gc-white); cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.checkbox.checked { background: var(--gc-green); border-color: var(--gc-green); }
.checkbox i { font-size: 10px; color: var(--gc-cream); opacity: 0; }
.checkbox.checked i { opacity: 1; }
.login-error {
  color: #9a2020;
  font-size: 13px; font-weight: 500; z-index: 1000;
}
.primary-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gc-green); color: var(--gc-cream);
  border-radius: var(--radius-sm); padding: 14px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; width: calc(100% - 36px); margin: 4px 18px 20px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.primary-btn:active { opacity: 0.85; }
.primary-btn:disabled { opacity: 0.4; cursor: default; }
.primary-btn .spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(245,240,232,0.35); border-top-color: var(--gc-cream);
  animation: spin 0.7s linear infinite; display: none;
}
.primary-btn.loading .spinner { display: inline-block; }
.primary-btn.loading .btn-label { display: none; }
.divider-row { display: flex; align-items: center; gap: 12px; margin: 26px 0 20px; }
.divider-row .line { flex: 1; height: 1px; background: var(--gc-border); }
.divider-row span { font-size: 10px; color: var(--gc-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.help-text { text-align: center; font-size: 12px; color: var(--gc-text-muted); }
.help-text a { color: var(--gc-green-light); font-weight: 600; text-decoration: none; cursor: pointer; }
.footer-note {
  text-align: center; font-size: 10px; color: var(--gc-text-muted);
  margin-top: 28px; letter-spacing: 0.02em;
}
/* -- END OF LOGIN --*/

/* -- APP -- */
.mobileapp {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--gc-border);
}
.app-header {
  height: 60px;
  background: var(--gc-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  /*z-index: 99;*/
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.header-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gc-gold);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark i { color: var(--gc-green); font-size: 16px; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 700;
  color: var(--gc-cream); letter-spacing: 0.02em;
  line-height: 1;
}
.brand-tag { font-size: 9px; font-weight: 400; color: var(--gc-gold); letter-spacing: 0.12em; text-transform: uppercase; }
.desktop-nav { display: none; }
.header-right { display: flex; gap: 12px; align-items: center; }
.hdr-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gc-cream); font-size: 16px;
  position: relative;
}
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gc-gold); border: 1.5px solid var(--gc-green);
}

.event-card.is-today{
    border-color: var(--gc-green-light);
  }

  .event-selected {
    background-color: var(--gc-cream-dark) !important
  }

  .player-choice {
    background: transparent;
    border: none;
    outline: none;
  }

  .player-error {
    color: #c84040;
    font-size: 10px;
    display: none;
  }

  .player-error.active {
    display: block !important;
  }

.mobileapp {
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}



.app-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding-bottom: var(--nav-h);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.app-body::-webkit-scrollbar { display: none; }
  /* HEADER */
.app-header {
  height: 60px;
  background: var(--gc-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  /*z-index: 99;*/
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.layout-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
  padding: 28px 4px 32px;
}

#player-setup {
  flex-direction: column !important;
}


.panel-scan { position: sticky; top: 28px; }
.panel-scan .setup-intro,
.panel-scan .scanner-wrap,
.panel-scan .scan-status,
.panel-scan .scanner-actions { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.scanner-wrap { max-height: 340px; }
.panel-events .section-label,
.panel-events .event-card,
.panel-events .or-divider { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.or-divider { display: none; }

.setup-intro { padding: 18px 18px 4px; }
.setup-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; color: var(--gc-text); }
.setup-sub { font-size: 12px; color: var(--gc-text-muted); margin-top: 4px; line-height: 1.5; }

.scanner-wrap {
  background: var(--gc-green);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 380px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto !important
}
#reader {
  width: 100% !important; height: 100% !important;
}
#reader video { object-fit: cover; width: 100% !important; height: 100% !important; }
#reader img { display: none !important; }
.scan-frame {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 5;
}
.scan-box {
  width: 62%; aspect-ratio: 1/1; position: relative;
}
.scan-corner {
  position: absolute; width: 26px; height: 26px;
  border: 3px solid var(--gc-gold);
}
.scan-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.scan-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.scan-line {
  position: absolute; left: 4%; right: 4%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gc-gold-light), transparent);
  box-shadow: 0 0 8px rgba(232,201,122,0.8);
  animation: scanMove 2.2s ease-in-out infinite;
}
@keyframes scanMove {
  0% { top: 4%; opacity: 0.2; }
  50% { top: 96%; opacity: 1; }
  100% { top: 4%; opacity: 0.2; }
}
.scanner-placeholder {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; text-align: center;
  background: var(--gc-green);
}
.scanner-placeholder.hidden { display: none; }
.placeholder-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--gc-gold); font-size: 26px;
}
.placeholder-title { font-size: 14px; font-weight: 600; color: var(--gc-cream); }
.placeholder-sub { font-size: 11px; color: rgba(245,240,232,0.6); max-width: 220px; line-height: 1.5; }
.placeholder-btn {
  margin-top: 4px; padding: 10px 20px; border-radius: 20px;
  background: var(--gc-gold); color: var(--gc-green); border: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.scan-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 12px 18px 6px; padding: 10px; font-size: 12px; font-weight: 500;
  color: var(--gc-text-muted);
}
.scan-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gc-text-muted);
}
.scan-status.live .dot { background: #2d7a3a; animation: pulseDot 1.4s ease-in-out infinite; }
.scan-status.live { color: var(--gc-green); }
@keyframes pulseDot { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }
.scanner-actions { display: flex; justify-content: center; gap: 10px; margin: 4px 18px 4px; }
.icon-btn-sm {
  display: flex; align-items: center; gap: 6px;
  background: var(--gc-white); border: 1px solid var(--gc-border);
  border-radius: 20px; padding: 7px 14px; font-size: 11px; font-weight: 600;
  color: var(--gc-text-muted); cursor: pointer;
}
.icon-btn-sm i { font-size: 12px; }
.scanner-actions { display: flex; justify-content: center; gap: 10px; margin: 4px 18px 4px; }


.event-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin-bottom:18px;
}

.search-box{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:8px;
  background:var(--gc-border);
  border:1px solid transparent;
  transition:border-color .15s ease, background .15s ease;
}

.search-box:focus-within{
  border-color:var(--gc-green-light);
}

.search-box svg{
  flex-shrink:0;
  color:var(--muted);
}

.search-box input{
  flex:1;
  min-width:0;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
}

.search-box input::placeholder{
  color:var(--muted);
}


  .empty-state{
  text-align:center;
  color:var(--muted);
  font-size:14px;
  padding:24px 0;
  display:none;
}

.btn-today{
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:6px;
  padding:9px 16px;
  border-radius:8px;
  background:var(--gc-green);
  color:var(--gc-white);
  border: 1px solid var(--gc-green);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.btn-today:hover{
  background:var(--gc-green-mid);
  color:var(--gc-white);
}

.btn-clr {
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:6px;
  padding:9px 16px;
  border-radius:8px;
  border:1px solid var(--gc-gold);
  background:var(--gc-gold-light);
  color:var(--gc-text);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.btn-clr:hover{
  background:var(--gc-gold);
  color:var(--gc-white);
}

.btn {
  /*background: var(--gc-green);
  color: var(--gc-cream);*/
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.event-card {
  margin: 0 18px 12px;
  background: var(--gc-white); border: 1px solid var(--gc-border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: stretch; gap: 0;
  cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}
.event-card:active { transform: scale(0.99); }
.event-card:hover { box-shadow: 0 6px 20px rgba(26,58,42,0.12); border-color: rgba(201,168,76,0.4); }
.event-thumb {
  width: 96px; flex-shrink: 0; background: var(--gc-cream);
  background-size: cover; background-position: center;
  position: relative;
}
.event-thumb-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(26,58,42,0.85); color: var(--gc-gold);
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 10px;
}
.event-body { padding: 14px 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.event-title { font-size: 14px; font-weight: 700; color: var(--gc-text); line-height: 1.25; }
.event-desc { font-size: 11px; color: var(--gc-text-muted); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.event-meta-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--gc-text-muted); font-weight: 500; }
.event-meta-item i { color: var(--gc-gold); font-size: 10px; }
.event-arrow { display: flex; align-items: center; padding: 0 14px; color: var(--gc-border); font-size: 16px; flex-shrink: 0; }


.select-field {
  margin: 0 18px 12px;
  background: var(--gc-white); border: 1px solid var(--gc-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select-field.filled { border-color: rgba(201,168,76,0.5); }
.select-field.open { box-shadow: 0 4px 16px rgba(26,58,42,0.10); }
.select-field.disabled { opacity: 0.5; }
.select-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer;
}
.select-field.disabled .select-header { cursor: default; }
.select-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
.select-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gc-text-muted);
}
.select-value {
  font-size: 15px; font-weight: 600; color: var(--gc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.select-value.placeholder { font-weight: 400; color: var(--gc-text-muted); background-color: transparent; }
.select-chevron {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--gc-cream); display: flex; align-items: center; justify-content: center;
  color: var(--gc-green); font-size: 12px;
  transition: transform 0.2s;
}
.select-field.open .select-chevron { transform: rotate(180deg); background: var(--gc-gold); color: var(--gc-green); }

.select-options {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid transparent;
}
.select-field.open .select-options { max-height: 400px; border-top: 1px solid var(--gc-border); }
.select-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-size: 13px; color: var(--gc-text);
  cursor: pointer; border-bottom: 1px solid var(--gc-border);
}
.select-option:last-child { border-bottom: none; }
.select-option:active, .select-option:hover { background: var(--gc-cream); }
.select-option.selected { background: rgba(201,168,76,0.10); color: var(--gc-green); font-weight: 600; }
.select-option i { color: var(--gc-gold); font-size: 13px; opacity: 0; }
.select-option.selected i { opacity: 1; }
.option-meta { font-size: 11px; color: var(--gc-text-muted); font-weight: 400; margin-top: 2px; }

/* Summary card */
.summary-card {
  margin: 4px 18px 16px; padding: 18px;
  background: var(--gc-green); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.summary-card::after {
  content: '⛳'; position: absolute; right: -6px; bottom: -14px;
  font-size: 70px; opacity: 0.08;
}
.summary-title { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gc-gold); margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 12px; }
.summary-row:last-child { border-bottom: none; }
.summary-row span:first-child { color: rgba(245,240,232,0.55); }
.summary-row span:last-child { color: var(--gc-cream); font-weight: 600; text-align: right; max-width: 60%; }
.panel-form .select-field,
.panel-form .setup-intro,
.panel-form .section-label { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.panel-summary {
  background: transparent; position: sticky; top: 28px;
}
.panel-summary {
  background: transparent; position: sticky; top: 28px;
}
.panel-summary .summary-card,
.panel-summary .primary-btn { margin-left: 0; margin-right: 0; width: 100%; }

.panel-scorecard .section-label,
.panel-scorecard .scorecard-wrap { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }

.panel-scorecard { padding: 4px; }

.scorecard-wrap { margin: 0 18px 14px; overflow-x: auto; }
.scorecard-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13px; }
.scorecard-table thead tr { background: var(--gc-green); height: 48px; }
.scorecard-table thead th { color: var(--gc-white); padding: 8px 4px; text-align: center; font-weight: 500; font-size: 12px; letter-spacing: 0.05em; }
.scorecard-table thead th:first-child { text-align: left; padding-left: 10px; }
.scorecard-table tbody tr { border-bottom: 1px solid var(--gc-border); height: 48px;}
.scorecard-table tbody tr:nth-child(even) { background: var(--gc-cream); }
.scorecard-table tbody td { padding: 7px 4px; text-align: center; color: var(--gc-text); font-weight: 400; font-size: 12px; }
.scorecard-table tbody td:first-child { text-align: left; padding-left: 10px; font-weight: 500; }
.score-under { color: #c00; font-weight: 700; }
.score-over { color: #2d7a3a; font-weight: 700; }
.score-par { color: var(--gc-text-muted); }
.scorecard-total { background: var(--gc-green) !important; }
.scorecard-total td { color: var(--gc-cream) !important; font-weight: 600 !important; }
.col-active { background: rgba(201,168,76,0.18) !important; box-shadow: inset 0 0 0 1px var(--gc-gold); }
.col-active td { color: var(--gc-green) !important; font-weight: 700 !important; }

.score-bogey {
  color: #5eaef0 !important;
  font-weight: 700 !important;
}

.score-par {
  color: #37be5c !important;
  font-weight: 700 !important;
}

.score-birdie {
  color: #c00 !important;
  font-weight: 700 !important;
}

.score-eagle {
  color: #979797 !important;
  font-weight: 700 !important;
}

  .hole-info-bar {
    /*margin: 0 18px 14px; */
    padding: 14px 16px;
    background: var(--gc-green); border-radius: var(--radius-sm);
    display: flex; justify-content: space-between;
  }
  .hi-item { text-align: center; flex: 1; }
  .hi-val { font-size: 20px; font-weight: 700; color: var(--gc-gold); font-family: 'Cormorant Garamond', serif; }
  .hi-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245,240,232,0.55); margin-top: 2px; }
  .hi-sep { width: 1px; background: rgba(255,255,255,0.1); }

  /* Score entry card */
  .entry-card-title { font-size: 15px; font-weight: 600; color: var(--gc-text); padding: 0 18px; margin-bottom: 4px; }
  .entry-card-sub { font-size: 11px; color: var(--gc-text-muted); padding: 0 18px; margin-bottom: 14px; }
  .score-card { padding: 10px 22px 4px; }
  .counter-group { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .counter-label { font-size: 14px; font-weight: 600; }
  .counter-controls { display: flex; align-items: center; gap: 15px; }
  .btn-step { width: 42px; height: 42px; border-radius: 12px; border: none; background: var(--light); font-size: 18px; font-weight: bold; color: var(--primary); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .btn-step:active { background: var(--gc-gold-light); }
  .counter-value { font-size: 16px; font-weight: bold; min-width: 30px; text-align: center; }

  
  .summary-bar {
    margin: 4px 18px 14px; padding: 6px 10px;
    background: var(--gc-cream); border: 0.5pt solid var(--gc-gold);
    border-radius: var(--radius-sm);
    display: flex; justify-content: space-around; align-items: center;
  }
  .summary-item { text-align: center; }
  .summary-val { font-size: 18px; font-weight: 700; color: var(--gc-green); font-family: 'Cormorant Garamond', serif; }
  .summary-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gc-text-muted); margin-top: 2px; }
  .summary-sep { width: 1px; height: 28px; background: var(--gc-border); }

  .modal-overlay {
    position: fixed; inset: 0; background: rgba(26,26,24,0.55);
    display: none; align-items: center; justify-content: center;
    z-index: 999; padding: 20px; backdrop-filter: blur(2px);
  }
  .modal-overlay.active { display: flex; }
  .modal-box {
    background: var(--gc-white); border-radius: var(--radius);
    max-width: 360px; width: 100%; padding: 24px 22px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    animation: modalPop 0.2s ease;
  }
  @keyframes modalPop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
  .modal-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: var(--gc-text); margin-bottom: 14px; }
  .modal-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gc-text); padding: 6px 0; border-bottom: 1px solid var(--gc-border); }
  .modal-row span:first-child { color: var(--gc-text-muted); }
  .modal-row span:last-child { font-weight: 600; }
  .modal-note { font-size: 11px; color: var(--gc-text-muted); margin-top: 14px; line-height: 1.5; }
  .modal-warn { font-size: 11px; color: #9a2020; margin-top: 6px; line-height: 1.5; font-weight: 500; }
  .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
  .modal-btn { flex: 1; padding: 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; border: none; text-align: center; }
  .modal-btn.cancel { background: var(--gc-cream); color: var(--gc-text); }
  .modal-btn.finish { background: var(--gc-green); color: var(--gc-cream); }

.input-none { width: 100%; border: none; font-size: 15px; font-weight: 600; color: var(--gc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.input-none:focus { border: none; outline: none; box-shadow: none;}


.bottom-nav {
  height: var(--nav-h);
  background: var(--gc-green);
  border-top: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 4px 4px;
  flex-shrink: 0; z-index: 100;
  position: relative;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; padding: 8px 10px; border-radius: 12px;
  transition: background 0.2s; flex: 1; max-width: 68px;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.06); }
.nav-item i { font-size: 20px; color: rgba(245,240,232,0.45); transition: color 0.2s; }
.nav-item span { font-size: 9px; font-weight: 500; color: rgba(245,240,232,0.40); letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
.nav-item.active i { color: var(--gc-gold); }
.nav-item.active span { color: var(--gc-gold); }
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #9a2020; color: #fff; padding: 12px 20px;
  border-radius: 20px; font-size: 13px; font-weight: 500; z-index: 1000;
  opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* -- END APP -- */

@media (min-width: 769px) {
  /* RESPONSIVE */
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100vh;
  }
  .login-shell {
    flex-direction: row;
    overflow: hidden;
  }
  .login-hero {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 44px 24px 40px; text-align: left;
  }
  .hero-content { text-align: left; }

  .logo-mark-lg { margin: 0 0 20px; }
  .hero-brand { font-size: 34px; }
  .hero-quote {
    margin-top: 32px; font-family: 'Cormorant Garamond', serif;
    font-size: 18px; color: rgba(245,240,232,0.75); line-height: 1.5;
    font-style: italic; max-width: 320px;
  }
  .hero-quote-attr { margin-top: 10px; font-size: 11px; color: var(--gc-gold); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; }

  .desktop-nav { display: flex; gap: 4px; align-items: center; }
  .desktop-nav a {
    display: flex; align-items: center; gap: 7px; padding: 8px 14px;
    border-radius: 20px; text-decoration: none; cursor: pointer;
    color: rgba(245,240,232,0.55); font-size: 12px; font-weight: 500;
    letter-spacing: 0.03em; text-transform: uppercase;
  }
  .desktop-nav a i { font-size: 14px; }
  .desktop-nav a.active { background: rgba(201,168,76,0.18); color: var(--gc-gold); }
  .bottom-nav { display: none; }

  .layout-grid {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: 30px; padding: 28px 32px 32px; align-items: start;
  }
  .select-event {
    height: 60vh;
  }


}

@media (min-width: 769px) and (max-width: 1200px) {
  /* RESPONSIVE: TABLET */
  .login-shell {
    width: 100%;
    height: 100vh;
  }
  .login-hero {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 44px 24px 40px; text-align: left;
  }
  .hero-content { text-align: left; }
  .mobileapp {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-height: none;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

@media (min-width: 1201px) {
  /* RESPONSIVE: DESKTOP */
  .login-shell {
    width: 1100px;
    min-height: 640px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
    border-radius: 24px;
  }
  .mobileapp {
    width: 1180px; height: 90vh; max-height: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26,58,42,0.25);
    border: 1px solid var(--gc-border);
    overflow: hidden;
  }
}

#map { height: 100vh; width: 100%; }
.info-panel { padding: 10px; background: #f8f9fa; font-family: sans-serif; }



/* ==========================================================================
   HOLE GUIDE v2 — file ini MENGGANTIKAN hole-guide.css versi sebelumnya.
   Layout: kiri atas (gambar hole + GPS/cuaca), kiri bawah (video + info
   hole), kanan (peta full height + overlay GPS/cuaca).
   Semua warna/radius memakai variabel dari :root di app.css, jadi cukup
   di-load setelah app.css.
   ========================================================================== */

/* --- Grid utama 2 kolom, tinggi mengikuti area konten --- */
.app-body {
  /*overflow: hidden; *//* kolom kiri & kanan yang scroll sendiri-sendiri */
}
.hg-grid {
  display: grid;
  grid-template-columns: 660px 1fr;
  gap: 20px;
  padding: 20px;
  height: 100%;
  min-height: 0; /* penting supaya child grid boleh scroll */
  background: url(/static/img/weather-bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
}
.hg-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.hg-col-right {
  min-height: 0;
  height: 100%;
}

@media (max-width: 1024px) {
  .app-body { overflow-y: auto; overflow-x: hidden; }
  .hg-grid {
    grid-template-columns: 1fr;
    height: auto;
    padding: 16px;
  }
  .hg-col-left { overflow: visible; }
  .hg-col-right { height: 480px; }

  .hwc-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gc-text-muted);
  margin: 0 0 10px;
}

/* ==========================================================================
   KARTU 1 — Gambar hole sebagai background + info GPS/cuaca
   Perbaikan kontras: seluruh teks/ikon duduk di atas scrim gradasi gelap
   dan/atau "chip" kaca buram (frosted) supaya tetap terbaca di atas foto
   terang (rumput, bunker putih, dsb).
   ========================================================================== */
.hole-weather-card {
  position: relative;
  /*flex: 1 1 320px;*/
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--gc-cream);
}
.hwc-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 15, 0.55) 0%,
    rgba(10, 22, 15, 0.15) 35%,
    rgba(10, 22, 15, 0.25) 60%,
    rgba(10, 22, 15, 0.65) 100%
  );
  z-index: 0;
}
.hole-weather-card > * { position: relative; z-index: 1; }

.hwc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hwc-loc {
  font-size: 12px;
  font-weight: 700;
  color: var(--gc-cream);
}
.hwc-loc i { color: var(--gc-gold); margin-right: 5px; }
.hwc-updated {
  font-size: 10px;
  font-weight: 500;
  color: #666;
}

.hwc-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: absolute;
  top: 40px;
  left: 14px;
  z-index: 1000;
}

/* Chip kaca buram di belakang kompas supaya jarum & huruf U/T/S/B terbaca */
.weather-compass-chip {
  background: rgba(12, 26, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  padding: 8px;
  flex-shrink: 0;
}
.compass-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  position: relative;
}
.compass-pt {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: var(--gc-gold);
}
.compass-pt.n { top: 6px; left: 50%; transform: translateX(-50%); }
.compass-pt.s { bottom: 6px; left: 50%; transform: translateX(-50%); }
.compass-pt.e { right: 8px; top: 50%; transform: translateY(-50%); }
.compass-pt.w { left: 8px; top: 50%; transform: translateY(-50%); }
.wind-arrow {
  position: absolute;
  top: 50%; left: 50%;
  width: 2px; height: 32px;
  margin-left: -1px; margin-top: -32px;
  transform-origin: bottom center;
  transform: rotate(var(--wind-deg, 0deg));
  display: flex; justify-content: center;
}
.wind-arrow i { color: var(--gc-gold-light); font-size: 13px; transform: translateY(-2px); }
.compass-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 700; color: var(--gc-cream);
}
.compass-center span { font-size: 8px; font-weight: 500; color: rgba(245,240,232,0.65); text-transform: uppercase; }

/* Chip suhu + kondisi cuaca */
.hwc-readings {
  background: rgba(12, 26, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
}
.wr-temp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--gc-gold);
  line-height: 1;
}
.wr-cond {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gc-cream);
  margin-top: 6px;
}

/* Baris chip statistik cuaca bawah */
.hwc-stats {
  display: grid;
  gap: 10px;
  z-index: 90000;
}

.hwc-stats.left {
  position: absolute;
  bottom: 20px;
  left: 10px;
  grid-template-rows: repeat(5, 1fr);
}

.hwc-stats.right {
  position: absolute;
  bottom: 20px;
  right: 10px;
  grid-template-columns: repeat(1, 1fr);
}

.hwc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: rgba(12, 26, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}
.hwc-stat i { color: var(--gc-gold); font-size: 13px; }
.hwc-stat-val { font-size: 12px; font-weight: 700; color: var(--gc-cream); }
.hwc-stat-lbl {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 240, 232, 0.75);
}

/* ==========================================================================
   KARTU 2 — Video hole + info hole
   ========================================================================== */
.video-card {
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.video-card .hole-info-bar { margin: 16px 16px 12px; }
.video-card .hole-desc { margin: 0 16px 16px; }
.hole-info-bar {
  padding: 8px 4px;
  background: var(--gc-green);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
}
.hole-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gc-text-muted);
}

/* ==========================================================================
   KOLOM KANAN — Peta full height + overlay GPS/cuaca
   ========================================================================== */
.map-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  /*border-radius: var(--radius);*/
  overflow: hidden;
  /*border: 1px solid var(--gc-border);*/
}
.map-wrap #map {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-overlay {
  position: absolute;
  top: 12px;
  /*left: 53px;*/
  right: 12px;
  z-index: 1000; /* di atas pane/kontrol peta */
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 26, 19, 0.29);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(119, 119, 119, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  pointer-events: none;
}
.ov-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ov-item i { color: var(--gc-gold); font-size: 15px; flex-shrink: 0; }
.ov-text { display: flex; flex-direction: column; min-width: 0; }
.ov-val {
  font-size: 12px; font-weight: 700; color: var(--gc-cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-lbl {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.6);
}
.ov-sep { width: 1px; height: 26px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

@media (max-width: 380px) {
  .map-overlay { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ov-sep { display: none; }
  .hwc-stats {
    grid-template-columns: 1fr 1fr;
  }
}



/* @tomickigrzegorz/leaflet-rotate — control theme. Import only if you use the controls. */
:root {
  --lrc-control-bg: #fff;
  --lrc-control-hover: #f4f4f4;
  --lrc-control-size: 30px;
}
.leaflet-control-rotate { background: var(--lrc-control-bg); }
.leaflet-control-rotate a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--lrc-control-size);
  height: var(--lrc-control-size);
  cursor: pointer;
}
.leaflet-control-rotate a:hover { background: var(--lrc-control-hover); }
.leaflet-control-rotate--inactive a svg { filter: grayscale(1); }


.distance-label {
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.icon-red {
  color: #c84040 !important;
}
.icon-yellow {
  color: var(--gc-gold) !important;
}
.icon-green {
  color: var(--gc-green-light) !important;
}

.custom-segment-label {
  background: transparent;
  border: none;
  white-space: nowrap;
}

.custom-segment-label span {
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

.hole-distance {
  color: #ffffff !important;
}
.player-distance {
  color: #fbff2c !important;
}

.hole-info {
  left: 68px !important;
  top: 12px !important;
}




/* ==========================================================================
   SCORE ENTRY — CSS tambahan untuk halaman entry skor per hole.
   Tempel di bawah app.css atau load sebagai file terpisah (seperti di sini).
   Beberapa class skor (score-par/score-bogey/score-birdie/score-eagle)
   sudah ada di app.css — di sini hanya ditambah score-double + styling
   input skor.
   ========================================================================== */

.se-wrap {
  /*max-width: 640px;*/
  margin: 0 auto;
  padding: 18px;
}

.entry-card-title { padding: 0; margin-top: 4px; }
.entry-card-sub { padding: 0; }

.hole-info-bar { margin: 0 0 18px; }

/* --- Daftar pemain --- */
.se-player-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.se-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.se-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}
.se-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gc-green);
  color: var(--gc-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.se-player-text { display: flex; flex-direction: column; gap: 2px; }
.se-player-name { font-size: 14px; font-weight: 700; color: var(--gc-text); }
.se-player-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gc-text-muted);
}
.se-stroke-badge {
  display: none; /* diaktifkan lewat JS kalau strokes > 0 */
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid var(--gc-gold);
  color: var(--gc-green-mid);
  font-size: 10px;
  font-weight: 700;
}

/* --- Kontrol input skor: tombol -/+  dan kotak angka --- */
.se-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-step {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--gc-border);
  background: var(--gc-cream);
  color: var(--gc-green);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-step:active { background: var(--gc-gold-light); }

.se-score-input {
  width: 52px;
  height: 40px;
  border: 1.5px solid var(--gc-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gc-text);
  font-family: 'Inter', sans-serif;
  background: var(--gc-surface);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.se-score-input:focus {
  outline: none;
  border-color: var(--gc-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
/* Hilangkan spinner default number input di beberapa browser */
.se-score-input::-webkit-outer-spin-button,
.se-score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.se-score-input[type=number] { -moz-appearance: textfield; }

/* Warna kotak skor mengikuti hasil relatif terhadap par.
   score-par / score-bogey / score-birdie / score-eagle sudah didefinisikan
   di app.css; score-double ditambahkan di sini untuk skor >= par+2. */
.se-score-input.score-double {
  color: #7a4a1e !important;
  font-weight: 700 !important;
  background: rgba(122, 74, 30, 0.08);
  border-color: rgba(122, 74, 30, 0.4);
}
.se-score-input.score-eagle { background: rgba(151,151,151,0.10); border-color: #979797; }
.se-score-input.score-birdie { background: rgba(204,0,0,0.08); border-color: #c00; }
.se-score-input.score-par { background: rgba(55,190,92,0.08); border-color: #37be5c; }
.se-score-input.score-bogey { background: rgba(94,174,240,0.10); border-color: #5eaef0; }

.se-net {
  flex-basis: 100%;
  text-align: right;
  font-size: 11px;
  color: var(--gc-text-muted);
}
.se-net-val { font-weight: 700; color: var(--gc-green); }

/* --- Legenda warna --- */
.se-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 11px;
  color: var(--gc-text-muted);
}
.se-legend span { display: flex; align-items: center; gap: 6px; }
.se-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.se-dot-eagle { background: #979797; }
.se-dot-birdie { background: #c00; }
.se-dot-par { background: #37be5c; }
.se-dot-bogey { background: #5eaef0; }
.se-dot-double { background: #7a4a1e; }

/* --- Aksi bawah --- */
.se-actions {
  display: flex;
  gap: 10px;
}
.se-actions .modal-btn { flex: 1; }

@media (min-width: 640px) {
  .se-player-row { flex-wrap: nowrap; }
  .se-net { flex-basis: auto; margin-left: 8px; }
}

/* ==========================================================================
   LANDING PAGE — latar foto lapangan golf + info cuaca + CTA Start Playing.
   Memakai variabel warna dari :root di app.css, load setelah app.css.
   ========================================================================== */

.landing-shell {
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Scrim gradasi gelap supaya semua teks tetap terbaca di atas foto */
.landing-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 15, 0.75) 0%,
    rgba(10, 22, 15, 0.35) 30%,
    rgba(10, 22, 15, 0.45) 60%,
    rgba(10, 22, 15, 0.85) 100%
  );
  z-index: 0;
}

.landing-shell > * { position: relative; z-index: 1; }

/* --- Header --- */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 22px;
}
.landing-header .header-logo { display: flex; align-items: center; gap: 8px; }

.landing-weather-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 26, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
}
.landing-weather-chip i { color: var(--gc-gold); font-size: 16px; flex-shrink: 0; }
.lwc-text { display: flex; flex-direction: column; }
.lwc-val { font-size: 12px; font-weight: 700; color: var(--gc-cream); }
.lwc-lbl { font-size: 10px; color: rgba(245, 240, 232, 0.7); margin-top: 1px; }

/* --- Konten utama: jadi 2 blok (hero text + kartu login) --- */
.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 20px 24px;
  max-width: 1080px;
}
.landing-hero-text { max-width: 480px; }
.landing-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--gc-cream);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.landing-sub {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.85);
  max-width: 420px;
  margin-top: 16px;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--gc-gold);
  color: var(--gc-green);
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.landing-cta i { font-size: 15px; }
.landing-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201, 168, 76, 0.45); }
.landing-cta:active { transform: translateY(0); }

/* --- Kartu login (frosted glass) --- */
.landing-login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(15, 30, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.llc-panel .form-group { margin-bottom: 14px; }
.llc-panel .form-label {
  color: rgba(245, 240, 232, 0.7);
}
.llc-panel .input-wrap {
  background: rgba(255, 255, 255, 0.92);
}

.llc-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 14px;
}

/* --- Footer kecil --- */
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px 22px;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.55);
}
.landing-footer a { color: rgba(245, 240, 232, 0.75); text-decoration: none; }
.landing-footer-sep { opacity: 0.5; }
.landing-footer span {
  color: #fff;
}

/* --- Responsif --- */
@media (max-width: 480px) {
  .landing-title { font-size: 28px; }
  .landing-header { flex-direction: column; align-items: flex-start; }
  .landing-weather-chip { width: 100%; }
  .landing-login-card { max-width: 100%; }
  .pin-box { font-size: 18px; }
}

@media (min-width: 769px) {
  .landing-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    gap: 40px;
  }
  .landing-header { padding: 24px 60px; }
  .landing-footer { padding: 16px 60px 26px; justify-content: flex-start; }
  .landing-title { font-size: 46px; }
  .landing-hero-text { flex: 1; max-width: 460px; }
  .landing-login-card { flex-shrink: 0; }
}

/* ==========================================================================
   PLAYER ENTRY — CSS tambahan untuk halaman entry pemain.
   Memakai select-field, checkbox, scorecard-table, modal-btn yang sudah
   ada di app.css. Load file ini setelah app.css.
   ========================================================================== */

.pe-wrap {
  /*max-width: 640px;*/
  margin: 0 auto;
  padding: 18px;
}

.entry-card-title { padding: 0; margin-top: 4px; }
.entry-card-sub { padding: 0; margin-bottom: 20px; }

/* select-field bawaan app.css punya margin: 0 18px 12px -> di dalam
   .pe-wrap kita nolkan margin kiri-kanannya supaya rapi mengikuti padding wrap */
.pe-wrap .select-field { margin-left: 0; margin-right: 0; }

/* --- Layer mode Regular / Tournament + checkbox "Hari ini" --- */
.pe-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--gc-cream);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.pe-mode-buttons {
  display: flex;
  gap: 8px;
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: 999px;
  padding: 4px;
}
.pe-mode-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  color: var(--gc-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pe-mode-btn i { font-size: 12px; }
.pe-mode-btn.active {
  background: var(--gc-green);
  color: var(--gc-cream);
}
.pe-mode-btn:not(.active):hover { color: var(--gc-text); }

.pe-mode-card .pe-checkbox-row { margin: 0; }

@media (max-width: 420px) {
  .pe-mode-card { flex-direction: column; align-items: stretch; }
  .pe-mode-buttons { width: 100%; }
  .pe-mode-btn { flex: 1; justify-content: center; }
}

/* --- Checkbox "Hari ini" --- */
.pe-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: -4px 0 18px 4px;
}
.pe-checkbox-row span { font-size: 13px; font-weight: 500; color: var(--gc-text); }

/* --- Header daftar pemain: judul + jumlah terpilih --- */
.pe-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 10px;
}
.pe-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--gc-green-mid);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

/* --- Tabel pemain (reuse scorecard-table) --- */
.pe-table-wrap {
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.pe-table { min-width: 0; width: 100%; }
.pe-table thead th { font-size: 11px; }
.pe-col-chk { width: 40px; text-align: center !important; padding-left: 14px !important; }
.pe-col-no { width: 44px; }
.pe-col-name { text-align: left; }
.pe-table tbody td:first-child { text-align: center; padding-left: 14px; }
.pe-table tbody td { font-size: 13px; }

/* checkbox di dalam tabel dibuat lebih kecil & center */
.pe-table .checkbox { width: 20px; height: 20px; margin: 0 auto; }

/* --- Aksi bawah (Simpan / Batal), reuse modal-btn --- */
.se-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.se-actions .modal-btn { flex: 1; }

@media (min-width: 640px) {
  .pe-list-head { align-items: baseline; }
}

.pe-input, .pe-del-btn {
  padding: 10px 6px;
  border: none;
  border-radius: 4px;
  background-color: transparent;
}

.pe-input:focus, .pe-del-btn:focus {
  outline: 2px solid var(--gc-green-light);
  outline-offset: 2px;
  border-radius: 4px;
}


.fi {
  border: 0.5px solid #c5c5c5 !important;
}

/* ==========================================================================
   ERROR PAGE — halaman standalone tanpa header/nav.
   Memakai variabel warna dari :root di app.css, load setelah app.css.
   ========================================================================== */

.err-shell {
  min-height: 100vh;
  width: 100%;
  background: var(--gc-green);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  text-align: center;
}

/* Ikon besar transparan di belakang sebagai dekorasi */
.err-icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 620px;
  line-height: 1;
  color: rgba(201, 168, 76, 0.06);
  pointer-events: none;
  z-index: 0;
}

.err-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.err-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 96px;
  font-weight: 700;
  color: var(--gc-gold);
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.err-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gc-cream);
  margin-top: 10px;
}

.err-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.7);
  margin-top: 14px;
}

.err-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 14px 28px;
  background: var(--gc-gold);
  color: var(--gc-green);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.err-back-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201, 168, 76, 0.4); }
.err-back-btn:active { transform: translateY(0); }

@media (max-width: 480px) {
  .err-icon-bg { font-size: 380px; }
  .err-code { font-size: 72px; }
  .err-title { font-size: 21px; }
}

.advice {
  color: #666;
  font-size: 12px;
  text-align: justify;
}

/* ==========================================================================
   SETUP PAGE — kartu aksi (reset/sync) + panel log aktivitas berbasis teks.
   Memakai variabel warna dari :root di app.css, load setelah app.css.
   ========================================================================== */

.setup-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px;
}
.entry-card-title { padding: 0; margin-top: 4px; }
.entry-card-sub { padding: 0; margin-bottom: 20px; }

/* --- Grid kartu aksi --- */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .setup-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .setup-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.setup-card {
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.setup-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(45, 92, 63, 0.10);
  color: var(--gc-green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.setup-card-icon.warn { background: rgba(201, 168, 76, 0.15); color: #a3801f; }
.setup-card-icon.danger { background: rgba(200, 64, 64, 0.10); color: #c84040; }

.setup-card-title { font-size: 14px; font-weight: 700; color: var(--gc-text); }
.setup-card-desc { font-size: 12px; line-height: 1.55; color: var(--gc-text-muted); flex: 1; }

/* --- Badge status (progress berupa teks) --- */
.setup-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gc-cream);
  color: var(--gc-text-muted);
  white-space: nowrap;
}
.setup-status-running {
  background: rgba(201, 168, 76, 0.18);
  color: #8a6c1d;
}
.setup-status-success {
  background: rgba(55, 190, 92, 0.14);
  color: #1f9d4a;
}
.setup-status-error {
  background: rgba(200, 64, 64, 0.12);
  color: #c84040;
}

/* --- Tombol aksi kartu --- */
.setup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gc-green);
  color: var(--gc-cream);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.setup-btn:hover { opacity: 0.9; }
.setup-btn.warn { background: #a3801f; }
.setup-btn.danger { background: #c84040; }
.setup-btn:disabled,
.setup-btn.is-busy {
  opacity: 0.6;
  cursor: default;
}
.setup-btn.is-busy i { animation: spin 0.8s linear infinite; }




.list-group-item.active {
  color: var(--bs-list-group-active-color);
  background-color: var(--gc-green-light) !important;
  border-color: var(--gc-border);
}
