/* ================================================
   ICR 2026 — Main Stylesheet
   Colors: Blue #0077C8 | Red #D7002A | Dark bg
   ================================================ */

:root {
  --blue:      #0077C8;
  --blue-dk:   #005fa3;
  --red:       #D7002A;
  --red-dk:    #a8001f;
  --dark:      #0d0d0d;
  --dark2:     #141414;
  --card:      #1c1c1c;
  --white:     #ffffff;
  --light:     #f4f6f9;
  --grey:      #888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; }
.container { max-width: 960px; margin: 0 auto; padding: 0 1.2rem; }
.accent { color: var(--red); }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--dark);
  letter-spacing: 1px;
}
.section-title.light { color: #fff; }
.divider {
  width: 60px; height: 3px;
  background: var(--red);
  margin: .5rem auto 2.5rem;
  border-radius: 2px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  padding: .85rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all .25s;
  text-decoration: none;
}
.btn-blue  { background: var(--blue); color: #fff; }
.btn-blue:hover  { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,119,200,.35); }
.btn-red   { background: var(--red); color: #fff; }
.btn-red:hover   { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(215,0,42,.35); }
.btn-block { width: 100%; display: block; margin-top: 1.2rem; }
.btn:disabled { background: #444; color: #777; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,8,8,.97);
  border-bottom: 3px solid var(--blue);
  padding: .7rem 1.5rem;
}
.nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.05rem;
}
.nav-logo img { height: 36px; border-radius: 6px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: #ccc;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .9rem;
  letter-spacing: 1px; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.2rem 3rem;
  position: relative; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(2,14,26,0.72) 0%, rgba(2,14,26,0.60) 50%, rgba(2,14,26,0.80) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-bottom: 2rem;
}
.hero-logos img { height: 80px; border-radius: 10px; }
.hero-logos img:last-child { mix-blend-mode: screen; border-radius: 50%; }
.logo-sep { width: 2px; height: 60px; background: linear-gradient(to bottom, transparent, var(--blue), transparent); }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: 1; margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.hero-tagline {
  color: var(--blue);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: clamp(1rem, 3vw, 1.3rem);
  line-height: 1.4; margin-bottom: .5rem;
}
.hero-slogan {
  color: var(--red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: .8rem;
}
.hero-sub { color: #bbb; font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.6; }
.event-pill {
  display: inline-block;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(0,119,200,.5);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .85rem;
  padding: .7rem 1.5rem; border-radius: 50px;
  margin-bottom: 2rem;
}
.countdown { display: flex; justify-content: center; gap: .8rem; margin-bottom: 2rem; }
.cbox {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(0,119,200,.4);
  border-radius: 12px; padding: .8rem 1rem; min-width: 70px; text-align: center;
}
.cbox span { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--blue); line-height: 1; }
.cbox label { font-size: .65rem; color: #aaa; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---- ABOUT ---- */
.about { background: var(--light); padding: 5rem 1.2rem; }
.about-text { text-align: center; max-width: 680px; margin: 0 auto 3rem; color: #444; font-size: 1.05rem; line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.about-card {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 16px;
  padding: 2rem 1.5rem; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.about-card .ico { font-size: 2rem; margin-bottom: .8rem; }
.about-card h3 { font-family: 'Barlow Condensed', sans-serif; color: var(--dark); font-size: 1.2rem; margin-bottom: .4rem; }
.about-card p { color: #666; font-size: .9rem; }

/* ---- CATEGORIES ---- */
.categories { background: var(--dark2); padding: 5rem 1.2rem; }
.cat-sub { text-align: center; color: #aaa; margin-bottom: 2.5rem; }
.race-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.race-card {
  background: var(--card); border: 1px solid #262626;
  border-radius: 16px; padding: 1.5rem;
  position: relative; transition: transform .2s, border-color .2s;
}
.race-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.race-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .7rem; font-weight: 700; letter-spacing: 1px;
  padding: .3rem .7rem; border-radius: 20px;
}
.badge-team { background: rgba(0,119,200,.2); color: #60b4ff; border: 1px solid rgba(0,119,200,.4); }
.badge-exec { background: rgba(215,0,42,.15); color: #ff6b6b; border: 1px solid rgba(215,0,42,.4); }
.badge-expo { background: rgba(150,100,255,.15); color: #c4a0ff; border: 1px solid rgba(150,100,255,.4); }
.race-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.race-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; margin-bottom: .3rem; }
.race-price { color: var(--blue); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.5rem; margin-bottom: .5rem; }
.race-card p { color: #aaa; font-size: .9rem; margin-bottom: 1.2rem; }
.race-card .btn { display: block; text-align: center; }

/* ---- EVENT DETAILS ---- */
.event-details { background: var(--light); padding: 5rem 1.2rem; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.detail-card {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 12px;
  padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.detail-card.full { grid-column: 1 / -1; }
.detail-card .dico { font-size: 1.6rem; flex-shrink: 0; }
.detail-card label { display: block; color: #888; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }
.detail-card strong { color: var(--dark); font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; }
.map-wrap { position: relative; border-radius: 12px; overflow: hidden; }
.map-wrap iframe { display: block; }
.map-ext { position: absolute; top: 1rem; left: 1rem; background: #fff; color: var(--dark); padding: .4rem .9rem; border-radius: 8px; font-size: .85rem; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* ---- REGISTER ---- */
.register { background: #07192e; padding: 5rem 1.2rem; }
.register-sub { text-align: center; color: rgba(255,255,255,.75); margin-bottom: 2.5rem; }
.register-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.info-box {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 1.2rem 1.5rem; margin-bottom: 1rem;
}
.info-box h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; margin-bottom: .8rem; }
.info-box ul { list-style: none; }
.info-box ul li { padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .9rem; color: rgba(255,255,255,.85); }
.info-box ul li::before { content: '• '; color: var(--blue); }
.pay-opt { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.pay-opt .poi { font-size: 1.3rem; }
.pay-opt strong { display: block; font-size: .9rem; }
.pay-opt small { color: rgba(255,255,255,.6); font-size: .78rem; }

/* ---- FORM ---- */
.form-wrap { background: #fff; border-radius: 16px; padding: 2rem; color: var(--dark); }
.form-step { display: none; }
.form-step.active { display: block; }
.form-heading { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--dark); }
.fg { margin-bottom: 1rem; }
.fg label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: #333; }
.fg input, .fg select {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid #ddd; border-radius: 8px;
  font-family: 'Barlow', sans-serif; font-size: .95rem; color: var(--dark);
  background: #fafafa; transition: border-color .2s;
}
.fg input:focus, .fg select:focus { outline: none; border-color: var(--blue); background: #fff; }
.fg input.err, .fg select.err { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.price-box {
  background: #e8f4ff; border: 1.5px solid var(--blue); border-radius: 8px;
  padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center;
  margin: .5rem 0; display: none;
}
.price-box strong { color: var(--blue); font-size: 1.2rem; }
.summary-box { background: #f8f9fa; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; font-size: .9rem; color: #444; line-height: 1.8; }
.back-btn { background: none; border: none; color: var(--blue); cursor: pointer; font-size: .9rem; font-weight: 600; padding: 0; margin-bottom: 1rem; display: block; }
.back-btn:hover { text-decoration: underline; }
.hint { color: #888; font-size: .8rem; margin-top: .3rem; display: block; }

/* Payment choices */
.pay-choice { border: 2px solid #ddd; border-radius: 12px; margin-bottom: 1rem; overflow: hidden; transition: border-color .2s; }
.pay-choice.selected { border-color: var(--blue); }
.pay-choice-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; user-select: none; }
.pay-choice-head:hover { background: #f9f9f9; }
.pay-choice-head strong { display: block; font-size: 1rem; }
.pay-choice-head small { color: #888; font-size: .82rem; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #bbb; flex-shrink: 0; transition: all .2s; }
.radio.checked { border-color: var(--blue); background: var(--blue); }
.cbadge { margin-left: auto; padding: .25rem .7rem; border-radius: 20px; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.cbadge-green  { background: #d4edda; color: #155724; }
.cbadge-orange { background: #fff3cd; color: #856404; }
.pay-choice-body { padding: 1rem 1.2rem; border-top: 1px solid #eee; background: #fcfcfc; display: none; }
.later-info p { padding: .35rem 0; color: #555; font-size: .9rem; }
.later-info .note { color: #856404; font-size: .85rem; margin-top: .4rem; }

/* Success step */
.success-wrap { text-align: center; padding: 2rem 1rem; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-wrap h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; margin-bottom: .5rem; color: var(--dark); }
.success-wrap p { color: #555; font-size: 1rem; line-height: 1.6; }
.success-det { background: #e8f4ff; border-radius: 12px; padding: 1.2rem; margin-top: 1.5rem; text-align: left; font-size: .9rem; color: #333; line-height: 2; }

/* ---- CONTACT ---- */
.contact { background: var(--light); padding: 5rem 1.2rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.contact-card {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 16px;
  padding: 1.8rem 1rem; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.contact-card .cico { font-size: 2rem; margin-bottom: .7rem; }
.contact-card h3 { font-family: 'Barlow Condensed', sans-serif; color: var(--dark); font-size: 1.1rem; margin-bottom: .5rem; }
.contact-card a { display: block; color: var(--blue); font-size: .95rem; margin-bottom: .2rem; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { color: #666; font-size: .9rem; line-height: 1.6; }
.sponsor-box { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 1.5rem; text-align: center; margin-bottom: 1.5rem; }
.sponsor-box strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; color: var(--dark); margin-bottom: .4rem; }
.sponsor-box p { color: #555; font-size: .95rem; }
.sponsor-box a { color: var(--blue); font-weight: 600; }
.btn-wa {
  display: block; max-width: 300px; margin: 0 auto;
  background: #25D366; color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1rem; letter-spacing: 1px;
  padding: 1rem 2rem; border-radius: 50px; text-align: center;
  transition: all .25s;
}
.btn-wa:hover { background: #1db954; transform: translateY(-2px); }

/* ---- FOOTER ---- */
.footer { background: var(--dark); border-top: 1px solid #222; padding: 2rem 1.2rem; }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { height: 36px; border-radius: 6px; }
.footer-brand strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; }
.footer-brand small { color: #aaa; font-size: .85rem; }
.footer-copy { color: #555; font-size: .85rem; }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: #1c1c1c; color: #fff;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1rem;
  padding: .9rem 1.8rem; border-radius: 50px; border-left: 4px solid var(--blue);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .3s;
  white-space: nowrap;
}
.toast.show { opacity: 1; }
.toast.success { border-left-color: #25D366; }
.toast.error   { border-left-color: var(--red); }

/* ---- ADMIN OVERLAY ---- */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.9); z-index: 8000;
  overflow-y: auto; padding: 2rem 1rem;
}
.overlay.open { display: block; }
.overlay-box {
  background: #1a1a1a; border-radius: 16px;
  max-width: 1000px; margin: 0 auto; padding: 2rem; color: #fff;
}
.overlay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.overlay-head h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--blue); letter-spacing: 1px; }
.overlay-close { background: var(--red); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; flex-shrink: 0; }

/* Admin login */
.admin-login-wrap { max-width: 340px; margin: 2rem auto; text-align: center; }
.admin-login-wrap p { color: #aaa; margin-bottom: 1.2rem; }
.admin-login-wrap input {
  width: 100%; padding: .8rem 1rem; border-radius: 8px;
  border: 1.5px solid #333; background: #252525; color: #fff;
  font-size: 1rem; margin-bottom: 1rem; font-family: 'Barlow', sans-serif;
}
.admin-login-wrap input:focus { outline: none; border-color: var(--blue); }

/* Admin stats */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #242424; border-radius: 12px; padding: 1.2rem; text-align: center; }
.stat-card .num { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--blue); line-height: 1; }
.stat-card .num.green { color: #4caf50; }
.stat-card .num.yellow { color: #ffc107; }
.stat-card .lbl { color: #aaa; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin-top: .3rem; }

/* Admin table */
.admin-filters { display: flex; gap: .8rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
.filter-btn { background: #242424; border: 1px solid #333; color: #ccc; padding: .5rem 1.2rem; border-radius: 20px; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.export-btn { margin-left: auto; background: #242424; border: 1px solid var(--blue); color: var(--blue); padding: .5rem 1.2rem; border-radius: 20px; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 700; transition: all .2s; }
.export-btn:hover { background: var(--blue); color: #fff; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { background: #242424; color: #aaa; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: .5px; padding: .8rem 1rem; text-align: left; border-bottom: 1px solid #333; }
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid #222; color: #ddd; vertical-align: middle; }
.admin-table tr:hover td { background: #202020; }
.s-paid    { background: #1a3a1a; color: #4caf50; padding: .2rem .7rem; border-radius: 20px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.s-pending { background: #3a2a0a; color: #ffc107; padding: .2rem .7rem; border-radius: 20px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.s-failed  { background: #3a1a1a; color: #f44336; padding: .2rem .7rem; border-radius: 20px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.taction { background: none; border: 1px solid #333; color: #ccc; padding: .3rem .7rem; border-radius: 6px; cursor: pointer; font-size: .78rem; margin-right: .3rem; transition: all .2s; }
.taction:hover { background: #2a2a2a; }
.taction.pay:hover { border-color: #4caf50; color: #4caf50; }
.taction.del:hover { border-color: var(--red); color: var(--red); }
.table-empty { text-align: center; color: #555; padding: 3rem; font-size: 1rem; }

/* ---- EDIT OVERLAY ---- */
.edit-box { background: #fff; border-radius: 16px; max-width: 600px; margin: 0 auto; padding: 2rem; color: var(--dark); }
.edit-box .overlay-head h2 { color: var(--blue); }
.edit-hint { background: #e8f4ff; border-radius: 8px; padding: .8rem 1rem; font-size: .85rem; color: var(--blue); margin-bottom: 1.5rem; border-left: 3px solid var(--blue); }
.edit-section { background: #f8f9fa; border-radius: 10px; padding: 1.2rem; margin-bottom: 1.2rem; }
.edit-section h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; color: var(--dark); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid #e0e0e0; }
.edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.edit-group { margin-bottom: .8rem; }
.edit-group label { display: block; font-weight: 700; font-size: .8rem; color: #555; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .5px; }
.edit-group input { width: 100%; padding: .65rem .9rem; border: 1.5px solid #ddd; border-radius: 8px; font-size: .92rem; color: var(--dark); font-family: 'Barlow', sans-serif; }
.edit-group input:focus { outline: none; border-color: var(--blue); }
.edit-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.edit-save { flex: 1; background: var(--blue); color: #fff; border: none; padding: .9rem; border-radius: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1rem; cursor: pointer; transition: background .2s; }
.edit-save:hover { background: var(--blue-dk); }
.edit-cancel { background: #eee; color: var(--dark); border: none; padding: .9rem 1.5rem; border-radius: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,5,5,.98); padding: 1rem 1.5rem; gap: 1rem; border-bottom: 2px solid var(--blue); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .register-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid, .race-grid, .contact-grid, .details-grid { grid-template-columns: 1fr; }
  .edit-row { grid-template-columns: 1fr; }
  .countdown { gap: .4rem; }
  .cbox { min-width: 55px; }
  .cbox span { font-size: 1.8rem; }
}

/* ===================== GALLERY ===================== */
.gallery-section { background: #0a0f1e; padding: 80px 0; }
.gallery-section .section-sub { text-align:center; color:#aaa; margin-bottom:40px; font-size:1rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #111827;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
@media(max-width:600px){
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
