*{box-sizing:border-box}
:root{
  --bg:#07080a;
  --panel:#111216;
  --panel2:#17191f;
  --panel3:#0d0e12;
  --line:#292c33;
  --line-soft:#1d1f24;
  --text:#f5f6f8;
  --muted:#9b9ea7;
  --muted2:#737781;
  --radius:18px;
  --shadow:0 18px 60px rgba(0,0,0,.35);
}

html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 85% -10%,rgba(239,17,17,.09),transparent 26%),
    var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
body.menu-open{overflow:hidden}

a{color:inherit}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}

.shell{
  width:min(1180px,calc(100% - 28px));
  margin-inline:auto;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(8,9,11,.88);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(16px);
}
.header-inner{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand-mark{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid #30323a;
  background:#111319;
  overflow:hidden;
  font-weight:900;
}
.brand-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:5px;
}
.brand-copy{
  min-width:0;
}
.brand-copy strong{
  display:block;
  max-width:220px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:12px;
  line-height:1.25;
  letter-spacing:.1px;
}
.brand-copy small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}

.desktop-nav{display:none}

.menu-toggle{
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #2a2c33;
  border-radius:12px;
  background:#111319;
  display:grid;
  place-content:center;
  gap:5px;
  cursor:pointer;
}
.menu-toggle span{
  width:20px;
  height:2px;
  border-radius:999px;
  background:#fff;
  transition:.2s ease;
}
.menu-toggle.is-active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.is-active span:nth-child(2){opacity:0}
.menu-toggle.is-active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-menu{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .25s ease,border-color .25s ease;
  border-top:1px solid transparent;
}
.mobile-menu.is-open{
  grid-template-rows:1fr;
  border-top-color:#23252b;
}
.mobile-menu-inner{
  overflow:hidden;
  display:grid;
  padding-top:0;
  padding-bottom:0;
  transition:.25s ease;
}
.mobile-menu.is-open .mobile-menu-inner{
  padding-top:10px;
  padding-bottom:14px;
}
.mobile-menu a{
  text-decoration:none;
  padding:12px 4px;
  border-bottom:1px solid #1e2025;
  color:#d8dae0;
  font-weight:700;
}

/* HERO */
.hero{
  position:relative;
  overflow:hidden;
  padding:46px 0 30px;
  background:
    radial-gradient(circle at 88% 18%,rgba(239,17,17,.17),transparent 29%),
    linear-gradient(180deg,#0d0f13 0%,#08090b 100%);
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto -10% -100px 40%;
  height:260px;
  transform:rotate(-8deg);
  background:linear-gradient(90deg,transparent,rgba(239,17,17,.05));
  pointer-events:none;
}
.hero-inner{position:relative;z-index:2}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#ff4a4a;
  font-size:11px;
  font-weight:900;
  letter-spacing:1.7px;
  text-transform:uppercase;
}
.eyebrow::before{
  content:"";
  width:20px;
  height:2px;
  background:var(--primary);
}
.hero h1{
  margin:12px 0 12px;
  max-width:900px;
  font-size:clamp(37px,11.8vw,78px);
  line-height:.93;
  letter-spacing:-1.8px;
  text-transform:uppercase;
}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:9px 16px;
  color:#c5c7cd;
  font-size:13px;
  margin-bottom:22px;
}
.hero-actions{
  display:grid;
  gap:10px;
}
.hero-badges{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:24px;
}
.hero-badge{
  background:rgba(16,17,21,.72);
  border:1px solid #282b32;
  border-radius:12px;
  padding:12px;
}
.hero-badge b{
  display:block;
  font-size:12px;
}
.hero-badge span{
  color:var(--muted);
  font-size:10px;
}

/* COMMON */
.section{padding:24px 0 42px}
.section-head{margin-bottom:16px}
.section-head h2{
  margin:7px 0 6px;
  font-size:28px;
  line-height:1.05;
}
.section-head p{margin:0;color:var(--muted);font-size:13px}

.btn{
  min-height:50px;
  padding:13px 18px;
  border:0;
  border-radius:13px;
  background:var(--primary);
  color:white;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:900;
  cursor:pointer;
  transition:transform .16s ease,filter .16s ease;
}
.btn:active{transform:scale(.98)}
.btn.secondary{background:#24262e}
.btn.outline{background:transparent;border:1px solid #3a3d45}
.btn.whatsapp{background:#16a34a}
.btn.sm{min-height:38px;padding:8px 11px;font-size:12px;border-radius:9px}

.card{
  background:linear-gradient(180deg,#121318,#0e0f13);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 1px 0 rgba(255,255,255,.02);
}

.form-card{padding:18px}
.form-section{
  padding:0 0 24px;
  margin:0 0 24px;
  border-bottom:1px solid var(--line-soft);
}
.form-section:last-of-type{
  border-bottom:0;
  padding-bottom:0;
  margin-bottom:0;
}
.step-title{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.step-no{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:var(--primary);
  color:white;
  font-weight:900;
  font-size:13px;
}
.step-title h3{
  margin:1px 0 3px;
  font-size:17px;
}
.step-title p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.form-grid{display:grid;gap:14px}
.field label{
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:850;
  letter-spacing:.2px;
  text-transform:uppercase;
  color:#e1e3e8;
}
.field small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:6px;
}
input,select,textarea{
  width:100%;
  min-height:50px;
  border:1px solid #333640;
  border-radius:12px;
  background:#090a0d;
  color:var(--text);
  padding:12px 13px;
  font-size:16px;
  outline:none;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(239,17,17,.12);
}
textarea{min-height:120px;resize:vertical}

.upload-box{
  border:1px dashed #3c3f48;
  border-radius:14px;
  background:#0a0b0e;
  padding:15px;
}
.check{
  display:flex;
  gap:11px;
  align-items:flex-start;
  font-size:13px;
  line-height:1.4;
}
.check input{
  width:19px;
  height:19px;
  min-height:auto;
  margin:1px 0 0;
  flex:0 0 19px;
}

.flow-card{
  padding:18px;
}
.flow-list{
  display:grid;
  gap:12px;
}
.flow-item{
  display:grid;
  grid-template-columns:36px 1fr;
  gap:12px;
  align-items:start;
}
.flow-icon{
  width:36px;height:36px;
  border-radius:10px;
  background:#171920;
  border:1px solid #2f323a;
  display:grid;place-items:center;
  font-weight:900;
  color:#ff4d4d;
}
.flow-item b{display:block;font-size:13px;margin-bottom:2px}
.flow-item span{display:block;font-size:11px;color:var(--muted)}

.info-card{
  padding:18px;
  background:linear-gradient(160deg,#17181d,#0d0e12);
  border:1px solid #2c2f36;
  border-radius:var(--radius);
}
.notice{
  padding:14px;
  border-radius:12px;
  background:#17191f;
  border-left:4px solid var(--primary);
  margin:14px 0;
}
.muted{color:var(--muted)}

.payment-box{
  padding:16px;
  border-radius:14px;
  border:1px solid #30333b;
  background:#0c0d10;
}
.payment-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-bottom:1px dashed #2c2f36;
}
.payment-row:last-child{border-bottom:0}
.payment-row span:first-child{color:var(--muted)}
.payment-row strong{text-align:right}

.status{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.status.pending{background:#4c3511;color:#ffd075}
.status.paid{background:#153d24;color:#92efb2}
.status.rejected{background:#4b1515;color:#ff9d9d}

/* PARTICIPANTS */
.searchbar{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin:16px 0;
}
.rider-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.rider-card{
  display:block;
  overflow:hidden;
  border:1px solid #272a31;
  border-radius:13px;
  background:#101115;
  text-decoration:none;
}
.rider-card .thumb{
  aspect-ratio:2/3;
  background:#191b20;
}
.rider-card .thumb img{
  width:100%;height:100%;object-fit:cover;
}
.rider-card .info{padding:11px}
.rider-card h3{margin:0 0 4px;font-size:14px;line-height:1.2}
.rider-card .info div{font-size:11px}

/* FOOTER */
.site-footer{
  margin-top:20px;
  border-top:1px solid #202229;
  padding:26px 0 32px;
  color:#8b8e97;
}
.footer-grid{
  display:grid;
  gap:14px;
}
.footer-brand{font-size:12px;font-weight:900;color:#d9dbe1}
.footer-muted{font-size:11px;margin-top:4px}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.footer-links a{
  font-size:11px;
  color:#a7aab2;
}

/* ADMIN */
.admin-shell{min-height:100vh;background:#07080a}
.sidebar{
  display:flex;
  gap:8px;
  overflow:auto;
  padding:12px 14px;
  background:#0c0d10;
  border-bottom:1px solid #24272e;
}
.sidebar h2{display:none}
.sidebar a{
  flex:0 0 auto;
  text-decoration:none;
  background:#16181e;
  border:1px solid #2b2e35;
  border-radius:9px;
  padding:9px 11px;
  font-size:12px;
}
.content{padding:18px 14px}
.topbar{margin-bottom:18px}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.statcard{
  background:#111216;
  border:1px solid #282b31;
  border-radius:14px;
  padding:15px;
}
.stat{font-size:28px;font-weight:1000}
.table-wrap{
  overflow:auto;
  border:1px solid #2a2d34;
  border-radius:14px;
}
table{width:100%;border-collapse:collapse;background:#101115}
th,td{
  padding:11px;
  border-bottom:1px solid #292c32;
  text-align:left;
  white-space:nowrap;
  font-size:12px;
}

/* TABLET */
@media(min-width:760px){
  .shell{width:min(1180px,calc(100% - 48px))}
  .brand-copy strong{max-width:440px;font-size:13px}
  .desktop-nav{
    display:flex;
    align-items:center;
    gap:24px;
  }
  .desktop-nav a{
    text-decoration:none;
    color:#c4c6cc;
    font-size:13px;
    font-weight:700;
  }
  .desktop-nav a:hover{color:#fff}
  .menu-toggle,.mobile-menu{display:none}

  .hero{padding:78px 0 54px}
  .hero h1{font-size:clamp(58px,7vw,92px)}
  .hero-meta{font-size:14px}
  .hero-actions{display:flex}
  .hero-badges{grid-template-columns:repeat(4,minmax(0,1fr));max-width:760px}

  .section{padding:38px 0 60px}
  .page-grid{
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);
    gap:24px;
    align-items:start;
  }
  .sticky{
    position:sticky;
    top:94px;
  }
  .form-card{padding:24px}
  .form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}

  .rider-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
  }

  .footer-grid{
    grid-template-columns:1fr auto;
    align-items:center;
  }

  .admin-shell{
    display:grid;
    grid-template-columns:230px 1fr;
  }
  .sidebar{
    display:block;
    padding:20px;
    border-right:1px solid #24272e;
    border-bottom:0;
    overflow:visible;
  }
  .sidebar h2{display:block}
  .sidebar a{
    display:block;
    background:transparent;
    border:0;
    margin:5px 0;
  }
  .content{padding:28px}
  .stats{grid-template-columns:repeat(4,1fr)}
}

/* DESKTOP LARGE */
@media(min-width:1100px){
  .rider-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hero h1{max-width:1080px}
}

/* TINY PHONE */
@media(max-width:360px){
  .shell{width:min(100% - 20px,1180px)}
  .brand-copy strong{max-width:180px}
  .hero h1{font-size:34px}
  .rider-grid{grid-template-columns:1fr}
}
