/* ═══════════════════════════════════════════════════
   DINUBA EMPERORS BAND & GUARD — styles.css
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@400;600;700&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --green:       #1a6b2a;
  --green-mid:   #2d9c42;
  --green-glow:  #4ecb67;
  --gold:        #c8a84b;
  --gold-light:  #e4c96e;
  --black:       #080a08;
  --dark:        #0e110e;
  --dark2:       #151815;
  --dark3:       #1e221e;
  --dark4:       #252925;
  --white:       #f0f4f0;
  --gray:        #8a938a;
  --gray-light:  #b0b8b0;
  --border:      rgba(200,168,75,0.22);
  --border-g:    rgba(26,107,42,0.3);
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Nunito', sans-serif;
  --radius:       8px;
  --shadow:       0 8px 40px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 100% 55% at 50% -5%, rgba(26,107,42,0.13) 0%, transparent 65%),
    repeating-linear-gradient(0deg,   transparent 0, transparent 59px, rgba(255,255,255,0.013) 59px, rgba(255,255,255,0.013) 60px),
    repeating-linear-gradient(90deg, transparent 0, transparent 59px, rgba(255,255,255,0.013) 59px, rgba(255,255,255,0.013) 60px);
}

/* ══════════════════════ NAV ══════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 70px;
  background: rgba(8,10,8,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.75rem;
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.8); }

.nav-brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-brand img { height: 46px; width: 46px; object-fit: contain; }
.nav-brand-text { line-height: 1.15; }
.nav-brand-text .nb-school {
  font-family: var(--font-heading); font-size: 0.58rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray);
}
.nav-brand-text .nb-name {
  font-family: var(--font-display); font-size: 0.78rem;
  color: var(--green-mid); letter-spacing: 0.04em;
}

.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links a {
  font-family: var(--font-heading); font-size: 0.66rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gray); text-decoration: none;
  padding: 0.45rem 0.7rem; border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(26,107,42,0.2); }
.nav-links a.active { color: var(--green-mid); background: rgba(26,107,42,0.15); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

#admin-btn {
  font-family: var(--font-heading); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--border);
  color: var(--gold); padding: 0.38rem 0.85rem; border-radius: 5px;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
#admin-btn:hover { background: rgba(200,168,75,0.1); border-color: var(--gold-light); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════ PAGES ══════════════════════ */
.page { display: none; min-height: 100vh; padding-top: 70px; position: relative; z-index: 1; }
.page.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ══════════════════════ HERO ══════════════════════ */
#hero-section {
  position: relative; min-height: calc(100vh - 70px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 3rem 2rem; overflow: hidden;
}
.hero-stripes {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0, transparent 38px, rgba(26,107,42,0.045) 38px, rgba(26,107,42,0.045) 76px);
}
.hero-logo {
  width: clamp(160px, 32vw, 320px);
  filter: drop-shadow(0 0 50px rgba(26,107,42,0.55)) drop-shadow(0 0 100px rgba(26,107,42,0.2));
  animation: float 7s ease-in-out infinite; position: relative; z-index: 2;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

.hero-content { position: relative; z-index: 2; margin-top: 2rem; }
.hero-school {
  font-family: var(--font-heading); font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.0;
  background: linear-gradient(140deg, var(--white) 0%, var(--green-glow) 45%, var(--white) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-family: var(--font-heading); font-size: clamp(0.9rem, 3vw, 1.5rem);
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 1.5rem;
}
.hero-gold-line { width: 100px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 1.25rem auto; }
.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem); color: rgba(240,244,240,0.68);
  max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════ BUTTONS ══════════════════════ */
.btn { display: inline-block; font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; padding: 0.8rem 1.8rem; border-radius: 5px; cursor: pointer; border: none; transition: all 0.3s; }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-mid)); color: var(--white); box-shadow: 0 4px 20px rgba(26,107,42,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,107,42,0.55); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid rgba(240,244,240,0.28); }
.btn-secondary:hover { border-color: var(--white); background: rgba(240,244,240,0.06); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--black); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200,168,75,0.4); }
.btn-sm { font-size: 0.62rem; padding: 0.5rem 1.1rem; }
.btn-danger { background: transparent; color: #e74c3c; border: 1px solid rgba(231,76,60,0.35); font-family: var(--font-heading); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius: 5px; cursor: pointer; transition: all 0.2s; }
.btn-danger:hover { background: rgba(231,76,60,0.1); border-color: #e74c3c; }

/* ══════════════════════ INFO STRIP ══════════════════════ */
.info-strip {
  display: flex; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(26,107,42,0.055);
}
.info-strip-item { display: flex; align-items: center; gap: 0.8rem; padding: 1.2rem 2.2rem; border-right: 1px solid var(--border); }
.info-strip-item:last-child { border-right: none; }
.isi-icon { font-size: 1.35rem; }
.isi-text { display: flex; flex-direction: column; }
.isi-label { font-family: var(--font-heading); font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.15rem; }
.isi-value { font-size: 0.85rem; color: var(--white); }

/* ══════════════════════ SECTION ══════════════════════ */
.section { padding: 4.5rem 2rem; max-width: 1180px; margin: 0 auto; }
.section-label { font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 2.8rem); line-height: 1.1;
  background: linear-gradient(135deg, var(--white), var(--green-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.9rem;
}
.section-divider { width: 56px; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-mid)); border-radius: 2px; margin-bottom: 1.8rem; }
.section-body { font-size: 1rem; line-height: 1.82; color: rgba(240,244,240,0.72); max-width: 740px; }

/* ══════════════════════ CARDS ══════════════════════ */
.card {
  background: var(--dark2); border: 1px solid var(--border-g); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s;
}
.card:hover { border-color: var(--green-mid); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(26,107,42,0.22); }
.card-img { width: 100%; height: 200px; object-fit: cover; display: block; background: linear-gradient(135deg, var(--dark3), var(--dark2)); }
.card-img-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, rgba(26,107,42,0.12), rgba(26,107,42,0.04)); }
.card-body { padding: 1.4rem 1.5rem; }
.card-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.45rem; }
.card-text { font-size: 0.87rem; color: var(--gray-light); line-height: 1.65; }
.card-tag { display: inline-block; margin-top: 1rem; font-family: var(--font-heading); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-mid); border: 1px solid rgba(45,156,66,0.38); padding: 0.22rem 0.6rem; border-radius: 3px; }

/* ══════════════════════ GRID LAYOUTS ══════════════════════ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; margin-top: 2rem; }

/* ══════════════════════ GALLERY ══════════════════════ */
.gallery-item { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--dark3); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 1rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { font-size: 0.82rem; color: var(--white); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 3.5rem 2rem; color: var(--gray); border: 2px dashed rgba(255,255,255,0.09); border-radius: var(--radius); }
.empty-state .es-icon { font-size: 2.5rem; margin-bottom: 0.6rem; }
.empty-state p { font-size: 0.88rem; margin-top: 0.4rem; }

/* ══════════════════════ NEWS ══════════════════════ */
.news-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.news-item { background: var(--dark2); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem; transition: border-left-color 0.2s; }
.news-item:hover { border-left-color: var(--green-mid); }
.news-date { font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.news-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.45rem; }
.news-body { font-size: 0.88rem; line-height: 1.7; color: var(--gray-light); }

/* ══════════════════════ EVENTS ══════════════════════ */
.events-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.event-item {
  background: var(--dark2); border: 1px solid var(--border-g); border-radius: var(--radius);
  padding: 1.4rem 1.75rem; display: grid; grid-template-columns: 80px 1fr; gap: 1.4rem; align-items: center;
  transition: all 0.25s;
}
.event-item:hover { border-color: var(--green-mid); box-shadow: 0 6px 24px rgba(26,107,42,0.18); }
.event-date-block { text-align: center; background: rgba(26,107,42,0.18); border: 1px solid var(--border-g); border-radius: 6px; padding: 0.75rem 0.5rem; }
.edb-month { font-family: var(--font-heading); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.edb-day { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--white); }
.edb-year { font-size: 0.7rem; color: var(--gray); }
.event-info {}
.event-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.event-meta { font-size: 0.82rem; color: var(--gray-light); margin-bottom: 0.25rem; }
.event-desc { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }
.event-tag { display: inline-block; margin-top: 0.5rem; font-family: var(--font-heading); font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-mid); border: 1px solid rgba(45,156,66,0.35); padding: 0.2rem 0.55rem; border-radius: 3px; }

/* ══════════════════════ SCORES ══════════════════════ */
.scores-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.score-card {
  background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.25s;
}
.score-card:hover { border-color: var(--gold); box-shadow: 0 6px 28px rgba(200,168,75,0.12); }
.score-card-header {
  padding: 1.25rem 1.75rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(200,168,75,0.04);
}
.sc-competition { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--white); }
.sc-date { font-family: var(--font-heading); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.score-table { width: 100%; border-collapse: collapse; }
.score-table th { font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); padding: 0.8rem 1.75rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(26,107,42,0.06); }
.score-table td { padding: 0.75rem 1.75rem; font-size: 0.9rem; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.04); }
.score-table tr:last-child td { border-bottom: none; }
.score-table tr:hover td { background: rgba(26,107,42,0.08); }
.score-placement { font-family: var(--font-display); font-size: 1.1rem; }
.score-placement.gold { color: var(--gold-light); }
.score-placement.silver { color: #c0c0c0; }
.score-placement.bronze { color: #cd7f32; }
.score-sheet-link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-heading); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-mid); text-decoration: none; border: 1px solid rgba(45,156,66,0.3); padding: 0.3rem 0.65rem; border-radius: 4px; transition: all 0.2s; cursor: pointer; background: none; }
.score-sheet-link:hover { background: rgba(26,107,42,0.15); border-color: var(--green-mid); }

/* ══════════════════════ CONTACT ══════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.ci-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.ci-text { display: flex; flex-direction: column; }
.ci-label { font-family: var(--font-heading); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.ci-value { font-size: 0.9rem; color: var(--white); }
.ci-value a { color: var(--green-mid); text-decoration: none; }
.ci-value a:hover { text-decoration: underline; }
.map-box { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 320px; }
.map-box iframe { width: 100%; height: 100%; border: none; }

/* ══════════════════════ FOOTER ══════════════════════ */
#footer {
  background: var(--dark2); border-top: 1px solid var(--border);
  padding: 2.8rem 2rem 2rem; text-align: center; position: relative; z-index: 1;
}
.footer-logo { height: 60px; margin-bottom: 0.9rem; }
.footer-name { font-family: var(--font-display); font-size: 1rem; color: var(--green-mid); margin-bottom: 0.2rem; }
.footer-school { font-family: var(--font-heading); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); margin-bottom: 1.4rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.footer-links a { font-family: var(--font-heading); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-mid); }
.footer-copy { font-size: 0.72rem; color: rgba(138,147,138,0.45); }

/* ══════════════════════ MODAL / OVERLAY ══════════════════════ */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(8px);
  align-items: flex-start; justify-content: center; overflow-y: auto; padding: 2rem 1rem;
}
.overlay.open { display: flex; }

.modal {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 12px; width: 100%; max-width: 880px; overflow: hidden;
}
.modal-sm { max-width: 440px; }
.modal-header {
  background: linear-gradient(135deg, rgba(26,107,42,0.28), rgba(26,107,42,0.08));
  border-bottom: 1px solid var(--border); padding: 1.4rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: 0.08em; color: var(--white); }
.modal-header p { font-size: 0.78rem; color: var(--gray); margin-top: 0.18rem; }
.modal-close { background: none; border: none; color: var(--gray); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0.25rem 0.4rem; transition: color 0.2s; }
.modal-close:hover { color: var(--white); }
.modal-tabs { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; }
.modal-tab { font-family: var(--font-heading); font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; padding: 0.9rem 1.4rem; border: none; background: none; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.modal-tab.active { color: var(--green-mid); border-bottom-color: var(--green-mid); }
.modal-tab:hover { color: var(--white); }
.modal-body { padding: 1.75rem 2rem; }
.modal-section { display: none; }
.modal-section.active { display: block; }

/* ══════════════════════ ADMIN FORM ELEMENTS ══════════════════════ */
.field { margin-bottom: 1.4rem; }
.field-label { font-family: var(--font-heading); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.45rem; display: block; }
.field-input, .field-textarea, .field-select {
  width: 100%; background: var(--dark3); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: var(--white); font-family: var(--font-body); font-size: 0.93rem;
  padding: 0.7rem 0.95rem; transition: border-color 0.2s; outline: none;
}
.field-input:focus, .field-textarea:focus, .field-select:focus { border-color: var(--green-mid); }
.field-textarea { min-height: 110px; resize: vertical; }
.field-select option { background: var(--dark3); }

.upload-zone {
  border: 2px dashed rgba(255,255,255,0.13); border-radius: 8px;
  padding: 2.5rem 1.5rem; text-align: center; cursor: pointer;
  transition: border-color 0.2s; margin-top: 0.45rem;
}
.upload-zone:hover { border-color: var(--green-mid); }
.upload-zone input[type=file] { display: none; }
.upload-zone .uz-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.upload-zone p { font-size: 0.82rem; color: var(--gray); margin-top: 0.3rem; }

.photo-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 0.6rem; margin-top: 1.2rem; }
.photo-thumb { position: relative; aspect-ratio: 4/3; border-radius: 5px; overflow: hidden; background: var(--dark3); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-del { position: absolute; top: 3px; right: 3px; background: rgba(231,76,60,0.85); border: none; color: white; border-radius: 50%; width: 22px; height: 22px; font-size: 0.65rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.admin-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }
.admin-list-item { background: var(--dark3); border: 1px solid rgba(255,255,255,0.07); border-radius: 7px; padding: 1.1rem 1.3rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ali-title { font-family: var(--font-heading); font-size: 0.88rem; color: var(--white); margin-bottom: 0.25rem; }
.ali-sub { font-size: 0.78rem; color: var(--gray); }
.ali-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.add-form { background: rgba(26,107,42,0.06); border: 1px solid rgba(26,107,42,0.2); border-radius: 8px; padding: 1.5rem; margin-top: 0.75rem; }
.add-form h4 { font-family: var(--font-heading); font-size: 0.82rem; letter-spacing: 0.1em; color: var(--green-mid); margin-bottom: 1.2rem; }

.email-chip { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(26,107,42,0.15); border: 1px solid rgba(26,107,42,0.3); padding: 0.28rem 0.72rem; border-radius: 20px; font-size: 0.8rem; color: var(--green-mid); margin: 0.22rem; }
.email-chip button { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 0.7rem; line-height: 1; transition: color 0.2s; }
.email-chip button:hover { color: #e74c3c; }
.chips-wrap { display: flex; flex-wrap: wrap; margin-bottom: 0.75rem; }

/* ══════════════════════ LOGIN ══════════════════════ */
.login-card { background: var(--dark2); border: 1px solid var(--border); border-radius: 12px; padding: 2.8rem 2.5rem; max-width: 420px; width: 100%; text-align: center; }
.login-card img { height: 76px; margin-bottom: 1.4rem; }
.login-card h2 { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 0.4rem; }
.login-card p { font-size: 0.86rem; color: var(--gray); margin-bottom: 1.75rem; }
.login-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; }
.login-divider span { font-size: 0.72rem; color: var(--gray); white-space: nowrap; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.pin-input-row { display: flex; gap: 0.5rem; }
.pin-input-row .field-input { flex: 1; text-align: center; letter-spacing: 0.3em; font-size: 1.1rem; }
.login-error { font-size: 0.78rem; color: #e74c3c; margin-top: 0.75rem; min-height: 1.2em; }
.login-cancel { background: none; border: none; color: var(--gray); font-size: 0.78rem; cursor: pointer; margin-top: 1.25rem; text-decoration: underline; font-family: var(--font-body); }
.google-btn-wrap { display: flex; justify-content: center; }

/* ══════════════════════ LIGHTBOX ══════════════════════ */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.96); z-index: 9000; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 93vw; max-height: 88vh; border-radius: 6px; }
#lightbox-close { position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }

/* ══════════════════════ TOAST ══════════════════════ */
#toast { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 99999; display: flex; flex-direction: column; gap: 0.45rem; pointer-events: none; }
.toast-msg { background: var(--dark3); border: 1px solid var(--border); border-left: 4px solid var(--green); padding: 0.8rem 1.15rem; border-radius: 6px; font-size: 0.86rem; color: var(--white); animation: tIn 0.3s ease, tOut 0.3s 2.8s ease forwards; max-width: 290px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.toast-msg.error { border-left-color: #e74c3c; }
.toast-msg.success { border-left-color: var(--green-mid); }
@keyframes tIn { from{opacity:0;transform:translateX(18px)} to{opacity:1;transform:none} }
@keyframes tOut { to{opacity:0;transform:translateX(18px)} }

/* ══════════════════════ SCORE SHEET VIEWER ══════════════════════ */
.sheet-viewer { width: 100%; min-height: 400px; background: var(--dark3); border-radius: 8px; overflow: hidden; }
.sheet-viewer img { width: 100%; display: block; }
.sheet-viewer embed, .sheet-viewer iframe { width: 100%; height: 600px; border: none; }

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 820px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(8,10,8,0.99); border-bottom: 1px solid var(--border); padding: 0.75rem 0; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 1.75rem; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-strip-item { border-right: none; border-bottom: 1px solid var(--border); }
  .info-strip-item:last-child { border-bottom: none; }
  .overlay { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; }
  .event-item { grid-template-columns: 60px 1fr; gap: 1rem; }
  .score-table th, .score-table td { padding: 0.65rem 1rem; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 1.25rem; }
  .modal-body { padding: 1.25rem; }
  .modal-header { padding: 1.2rem 1.25rem; }
}
