* {
  box-sizing: border-box
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  margin: 0;
  background: #0c1125;
  color: #e8eefc
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.hero {
  background: linear-gradient(120deg, #0e1a40, #0a2a6e);
  color: #fff;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  margin: 0 0 6px 0;
  font-size: 40px;
  letter-spacing: .4px;
  align-self: center;
}

.hero h1 span {
  color: #7fb3ff
}

.hero .sub {
  opacity: .85;
  margin: 0 0 16px 0
}

.hero-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.card {
  background: #0f1737;
  border: 1px solid #1d2a58;
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35)
}

h2 {
  margin: 0 0 10px 0
}

ul {
  margin: 6px 0 0 18px
}

.btn {
  background: #4f8cff;
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600
}

.btn-outline {
  background: transparent;
  border: 1px solid #4f8cff;
  color: #4f8cff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer
}

.link {
  color: #cfe5ff;
  text-decoration: underline
}

.field {
  margin-bottom: 12px
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #b9c6e4
}

.req {
  color: #f6b04f;
  margin-left: 4px
}

input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=password],
input[type=file],
section[id="teamSize"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #2a3a72;
  border-radius: 10px;
  background: #0b1430;
  color: #e8eefc
}

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

.status {
  min-height: 18px;
  margin-top: 8px
}

.table-wrapper {
  overflow: auto;
  border: 1px solid #1d2a58;
  border-radius: 12px
}

table {
  width: 100%;
  border-collapse: collapse
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #1d2a58;
  text-align: left;
  font-size: 14px
}

th {
  position: sticky;
  top: 0;
  background: #0b142e;
  z-index: 1
}

td button.link {
  background: none;
  border: none;
  color: #8ad0ff;
  text-decoration: underline;
  cursor: pointer
}

.stats {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap
}

.stat {
  background: #0b142e;
  border: 1px solid #1d2a58;
  border-radius: 12px;
  padding: 12px;
  min-width: 120px;
  text-align: center
}

.stat .n {
  font-size: 22px;
  font-weight: 700
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 12px 0;
  flex-wrap: wrap
}

.foot {
  opacity: .7;
  text-align: center
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .7)
}

.modal-content {
  position: relative;
  background: #0f1730;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #1e2a52;
  border-radius: 16px;
  max-width: 90%;
  max-height: 90%
}

.modal-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px
}

.close {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 28px;
  cursor: pointer
}

.upi-box {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: #0b142e;
  border: 1px dashed #274296;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px
}

.upi-box .qr img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px
}

.overlay-success {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 9999;
}

.success-box {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.reg-btn {
  display: inline-block;
  background: #4f8cff;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  margin-left: 20%;
  margin-right: 20%;
}

.stats .badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: bold;
  color: #fff;
  font-size: 1.2rem;
  min-width: 50px;
  text-align: center;
}

.stats .total {
  background: #4f9ef7;
}

.stats .verified {
  background: #9ad06b;
}

.stats .pending {
  background: #ff7b7b;
}


#membersModal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  /* dim background */
}

#membersModal .modal-content {
  background-color: #fff;
  /* white box for content */
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 70vh;
  /* limit modal height to 70% of viewport */
  overflow-y: auto;
  /* add vertical scroll when content exceeds height */
  color: #000;
  /* text color black */
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  /* ensures line breaks are visible */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


#membersModal .close {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

#membersList {
  color: #000;
  /* make text black */
  font-weight: 500;
  margin-top: 10px;
}
