:root { --bg:#0f172a; --card:#111827; --accent:#f59e0b; --text:#e5e7eb; --muted:#9ca3af; }
*{box-sizing:border-box}
body{margin:0;font-family:'Outfit',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:radial-gradient(1200px 600px at 20% -10%,#1f2937 0,#0f172a 60%);color:var(--text);min-height:100svh;display:grid;place-items:center;padding:24px}
a{color:#fbbf24;text-decoration:none}
a:hover{text-decoration:underline}
.card{width:100%;max-width:720px;background:linear-gradient(180deg,rgba(255,255,255,.02),transparent 60%),var(--card);border:1px solid rgba(255,255,255,.06);border-radius:24px;padding:24px;box-shadow:0 20px 70px rgba(0,0,0,.5)}
.header{display:flex;gap:16px;align-items:center;justify-content:center;margin-bottom:12px}
h1{margin:0;font-size:1.6rem;font-weight:800;letter-spacing:.3px}
.sub{text-align:center;color:var(--muted);margin-bottom:20px}
.form-row{display:grid;gap:10px;margin-bottom:14px}
label{font-weight:600;font-size:.95rem;color:#f3f4f6}
select,input[type=password],input[type=text],input[type=tel]{width:100%;background:#0b1220;color:var(--text);border:1px solid #233047;border-radius:12px;padding:12px 14px;font-size:1rem;outline:none}
select:focus,input[type=password]:focus,input[type=text]:focus,input[type=tel]:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(245,158,11,.15)}
.button-wrap{display:flex;gap:10px;justify-content:center;margin-top:8px;flex-wrap:wrap}
.btn{display:inline-grid;place-items:center;border:none;border-radius:999px;padding:12px 20px;font-weight:800;font-size:1rem;color:#111827;background:linear-gradient(135deg,var(--accent) 0%,#fbbf24 60%,#fde68a 100%);cursor:pointer;transition:transform .06s ease}
.btn:active{transform:translateY(1px) scale(.99)}
.btn-secondary{background:#0b1220;color:var(--text);border:1px solid #233047}
.footer-muted{margin-top:14px;text-align:center;color:var(--muted);font-size:.85rem}
.alert{margin-top:14px;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(34,197,94,.12)}
.alert.error{background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.35)}
.alert pre{margin:8px 0 0;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92rem;color:#e7eaf1}
hr.sep{border:none;border-top:1px solid rgba(255,255,255,.06);margin:16px 0}
.small{font-size:.9rem;color:var(--muted)}
.table{width:100%;border-collapse:separate;border-spacing:0 8px;margin-top:8px}
.table th,.table td{padding:10px 12px;text-align:left;background:#0b1220;border:1px solid #233047}
.table th{background:#0f1a2b;font-weight:700}
.badge{display:inline-block;padding:2px 8px;border-radius:8px;border:1px solid #233047;background:#0b1220;font-size:.8rem}
.phone-input {
  display: flex;
  align-items: center;
  background: #0b1220;
  border: 1px solid #233047;
  border-radius: 12px;
  overflow: hidden;
}

.phone-input .prefix {
  background: #0f1a2b;
  color: var(--text);
  padding: 0 10px;
  font-size: 0.95rem;
  white-space: nowrap;
  border-right: 1px solid #233047;
}

.phone-input input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
}


/* help.php: remove theme card on this page only */
.help-page .g-content,
.help-page .component,
.help-page .component-content,
.help-page .content,
.help-page .card,
.help-page .uk-card,
.help-page .tiab-card,
.help-page article,
.help-page .box,
.help-page .platform-content {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* optional: tone down the rule line */
.help-page hr {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .25;
}



/* ===== Ring Confirm Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.modal.open { display: block; }
.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  max-width: 560px;
  margin: 10svh auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  padding: 22px 24px;
  border: 3px solid #d71920; /* brand red */
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #0054a6; /* brand blue */
}
.confirm-text {
  margin: 8px 0 0;
  font-size: 1rem;
  color: #222;
  word-break: break-word;
}
.modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn.secondary {
  background: #eef2f7 !important;
  color: #1b2a3a !important;
  border: 1px solid #cdd6e1 !important;
}
.btn.secondary:hover { filter: brightness(0.98); }


/* ---------------- Roster Styles ---------------- */

.roster-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

.roster-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.roster-summary {
  color: var(--muted);
  margin-bottom: 20px;
}

.roster-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.roster-controls input[type="search"] {
  flex: 1 1 240px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #233047;
  background: #0b1220;
  color: var(--text);
}

.roster-controls input[type="search"]::placeholder {
  color: var(--muted);
}

.roster-az {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.roster-az a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  background: #0b1220;
  color: var(--muted);
  border: 1px solid #233047;
  transition: background .15s ease, color .15s ease, border .15s ease;
}

.roster-az a.active,
.roster-az a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111827; /* dark text on gold */
}

.roster-empty {
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
}

.roster-group {
  margin-bottom: 32px;
}

.roster-group-head {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 0 0 12px;
  position: sticky;
  top: 64px; /* adjust if you have a fixed header */
  z-index: 5;
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 12px;
}

.roster-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform .08s ease, box-shadow .08s ease;
}

.roster-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}

.roster-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.copy-btn {
  appearance: none;
  background: #0b1220;
  border: 1px solid #233047;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111827; /* dark text for contrast */
}


/* --- Sticky letter headers --- */
.roster-group-head {
  position: sticky;
  top: 64px;              /* adjust if you have a fixed top bar; try 0, 48px, 64px, etc. */
  z-index: 5;             /* above cards */
  background: rgba(15, 23, 42, 0.9);  /* #0f172a with slight transparency */
  backdrop-filter: saturate(140%) blur(4px);
  -webkit-backdrop-filter: saturate(140%) blur(4px);
  padding: 8px 10px;
  border-left: 4px solid #2563eb;
  margin: 0 0 12px;
  border-radius: 6px;
}
