:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #121826;
  --muted: #5b6475;
  --border: #d7dbe6;
  --primary: #2b6cff;
  --primary-hover: #2157cf;
  --danger: #c62828;
  --shadow: 0 10px 30px rgba(18, 24, 38, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.header {
  margin-bottom: 16px;
  text-align: center;
}
.title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
}
.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 18px
}

.cardTitle {
  margin: 0 0 14px;
  text-align: center;
  font-size: 16px;
  color: var(--text);
}

.form { display: grid; gap: 14px; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 680px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 6px; }
.label {
  font-size: 13px;
  color: var(--muted);
}
input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 15px;
  background: #fff;
}
input:focus {
  border-color: rgba(43,108,255,0.6);
  box-shadow: 0 0 0 4px rgba(43,108,255,0.12);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.btnPrimary, .btnSecondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  user-select: none;
}

.btnPrimary {
  background: var(--primary);
  color: #fff;
}
.btnPrimary:hover { background: var(--primary-hover); }
.btnPrimary:active { transform: scale(0.99); }

.btnSecondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btnSecondary:hover { background: #f2f4f8; }
.btnSecondary:active { transform: scale(0.99); }

.fineprint {
  margin-top: 18px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

.status {
  margin-top: 14px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed var(--border);
  padding: 12px;
  background: #fbfcff;
}
.statusText {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: pre-line;
}

.infoBox {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  margin-top: 10px;
}
.infoRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.infoLabel { color: var(--muted); font-size: 13px; }
.infoValue { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 13px; }

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.bodyText {
  margin: 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  margin-top: 18px;
  text-align: center;
}
.footerText {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

#invitesTable {
  width:100%;
  border-collapse:collapse;
}
#invitesTable th, #invitesTable td {
  text-align:left;
  border-bottom:1px solid #d7dbe6;
  padding:8px;
}

#invitesTable button {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px;
  solid: #d7dbe6;
  background: #fff;
}

#invitesTable button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#invitesTable button {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d7dbe6;
  background: #fff;
}
#invitesTable button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Terms popup CSS start */
.terms-link {
  text-align: center;
  margin-top: 12px;
}
.terms-link a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: underline;
}
.modal {
  position: fixed;
  padding: 24px;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.modal:target {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 20px 22px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  position: relative;
  animation: pop 0.18s ease-out;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  text-decoration: none;
  color: #9ca3af;
}
.modal-close:hover {
  color: #111827;
}
.modal-body {
  font-size: 16px;
  color: #374151;
  line-height: 1.5;
}
.modal-body .small {
  font-size: 14px;
  color: #6b7280;
}
@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Terms popup CSS end */