/* connectR portal — neon dark theme (teal / pink) */

:root {
  --bg: #0a0e1a;
  --panel: #121830;
  --panel-2: #1a2242;
  --text: #e8edf7;
  --muted: #93a0c0;
  --teal: #00e5c7;
  --teal-dim: #0a8f7c;
  --pink: #ff2d95;
  --pink-dim: #b3125f;
  --err: #ff5c7a;
  --ok: #00e5c7;
  --border: rgba(0, 229, 199, 0.25);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 45, 149, 0.18), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(0, 229, 199, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 42px rgba(0, 229, 199, 0.12),
    0 18px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

h1 {
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  background: rgba(10, 14, 26, 0.85);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 229, 199, 0.18);
}

button {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #04110e;
  background: linear-gradient(90deg, var(--teal), var(--teal-dim));
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s;
}

button:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 22px rgba(0, 229, 199, 0.45);
}

button:disabled { opacity: 0.5; cursor: default; box-shadow: none; }

button.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

button.pink {
  background: linear-gradient(90deg, var(--pink), var(--pink-dim));
  color: #fff;
}

button.pink:hover { box-shadow: 0 0 22px rgba(255, 45, 149, 0.45); }

.status {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.status.error { color: var(--err); }
.status.ok { color: var(--ok); }
.status.info { color: var(--muted); }

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--pink);
}

#session-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#session-info {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ok);
  word-break: break-all;
}

footer { margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
code { background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 4px; }

/* corner "share / create your own" */
.share-corner {
  position: fixed;
  bottom: 16px;
  right: 16px;
}

.share-corner button {
  width: auto;
  margin: 0;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 45, 149, 0.4);
  border-radius: 999px;
}

.share-corner button:hover {
  color: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255, 45, 149, 0.3);
}

/* modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal {
  width: min(92vw, 480px);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 0 40px rgba(0, 229, 199, 0.15);
  position: relative;
}

.modal-x {
  position: absolute;
  top: 10px;
  right: 14px;
  width: auto;
  margin: 0;
  padding: 4px 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.modal-x:hover {
  color: var(--pink);
  box-shadow: none;
}

.modal h2 {
  margin: 0 0 12px;
  font-size: 19px;
  color: var(--teal);
}

.modal p, .modal li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.modal ol { padding-left: 20px; margin: 8px 0 14px; }
.modal code { color: var(--pink); }
.modal .actions { display: flex; gap: 10px; margin-top: 8px; }
.modal .actions button { flex: 1; margin: 0; }
