/* Gratuity's Cosmic Course Accounts — black + hot pink/magenta + gold cosmic.
   Warm, playful, never corporate. Mobile-first. */

:root {
  --black: #0a0612;
  --deep: #140a24;
  --pink: #ff2e88;
  --pink-soft: #ff7ab8;
  --gold: #f2c14e;
  --gold-soft: #ffe08a;
  --white: #fff7fb;
  --muted: #cdb9d6;
  --ok: #3ddc97;
  --warn: #ffb84d;
  --bad: #ff6b81;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(2px 2px at 12% 22%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 68%, #ffd6ea 100%, transparent 100%),
    radial-gradient(2px 2px at 58% 12%, #fff 100%, transparent 100%),
    radial-gradient(1px 1px at 74% 44%, #ffe08a 100%, transparent 100%),
    radial-gradient(2px 2px at 86% 78%, #fff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 88%, #ff7ab8 100%, transparent 100%),
    radial-gradient(1px 1px at 8% 82%, #fff 100%, transparent 100%),
    radial-gradient(2px 2px at 94% 8%, #ffe08a 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 66% 58%, #fff 100%, transparent 100%),
    radial-gradient(ellipse 80% 45% at 50% -5%, #3d1050 0%, transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 110%, #2a0b40 0%, transparent 70%),
    var(--black);
}

h1, h2, h3 { color: var(--gold); line-height: 1.25; }
a { color: var(--gold-soft); }
button { font: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
.wrap.narrow { max-width: 560px; }

/* ---------- Hero / page headers ---------- */
.hero { text-align: center; padding: 4rem 1.1rem 2.2rem; }
.hero .moon { font-size: 2.6rem; display: block; margin-bottom: .5rem; }
.hero h1 { font-size: clamp(2rem, 6.5vw, 3.2rem); color: var(--gold); text-shadow: 0 0 26px rgba(242,193,78,.35); margin-bottom: .6rem; }
.hero h1 .pink { color: var(--pink-soft); text-shadow: 0 0 26px rgba(255,46,136,.45); }
.hero p.tag { font-size: clamp(1rem, 2.8vw, 1.2rem); color: var(--white); max-width: 620px; margin: 0 auto 1rem; }
.hero .sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: .95rem; }

/* ---------- Auth card + tabs ---------- */
.auth-card {
  background: linear-gradient(160deg, rgba(30,12,48,.95), rgba(16,7,28,.95));
  border: 2px solid rgba(255,46,136,.45);
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  margin: 0 auto 3rem;
  box-shadow: 0 12px 40px rgba(255,46,136,.15);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: rgba(10,6,18,.6); border-radius: 999px; padding: .35rem; margin-bottom: 1.4rem; }
.tabs button {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 999px; padding: .7rem; font-weight: 800; cursor: pointer;
}
.tabs button.active { background: linear-gradient(135deg, var(--pink), #c2145f); color: #fff; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-panel h2 { text-align: left; margin-bottom: .3rem; font-size: 1.4rem; }
.auth-panel .panel-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; color: var(--gold-soft); }
.field input {
  width: 100%; padding: .8rem .95rem; border-radius: 12px;
  border: 2px solid rgba(255,46,136,.35); background: rgba(10,6,18,.7);
  color: var(--white); font-size: 1rem; outline: none;
}
.field input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,136,.2); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

.btn {
  display: inline-block; width: 100%; padding: .9rem 1.6rem; border-radius: 999px;
  border: 0; font-weight: 800; font-size: 1.02rem; cursor: pointer; text-align: center;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: linear-gradient(135deg, var(--pink), #c2145f); color: #fff; box-shadow: 0 6px 22px rgba(255,46,136,.45); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d99a1f); color: #2a1500; box-shadow: 0 6px 22px rgba(242,193,78,.35); }
.btn-ghost { border: 2px solid var(--pink); color: var(--pink-soft); background: transparent; }
.btn.small { width: auto; padding: .5rem 1rem; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.form-error {
  display: none; background: rgba(255,107,129,.12); border: 1px solid var(--bad);
  color: #ffc9d2; border-radius: 12px; padding: .7rem .95rem; margin-bottom: 1rem; font-size: .92rem;
}
.form-error.show { display: block; }

.pending-screen { text-align: center; padding: 1rem 0; }
.pending-screen .big { font-size: 3rem; display: block; margin-bottom: .6rem; }
.pending-screen h2 { margin-bottom: .6rem; }
.pending-screen p { color: var(--muted); margin-bottom: .8rem; }
.pending-screen .pay-box {
  background: rgba(10,6,18,.6); border: 1px solid rgba(242,193,78,.5); border-radius: 14px;
  padding: 1rem; margin: 1.2rem 0; text-align: left; font-size: .95rem;
}
.pending-screen .pay-box p { margin: .3rem 0; color: var(--white); }
.pending-screen .pay-box strong { color: var(--gold-soft); }

/* ---------- Top bar (CEO pages) ---------- */
.topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem 1.1rem; max-width: 1080px; margin: 0 auto;
}
.topbar h1 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: .9rem; }

/* ---------- Status pills ---------- */
.pill {
  display: inline-block; padding: .22rem .8rem; border-radius: 999px;
  font-size: .8rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap;
}
.pill.pending { background: rgba(255,184,77,.15); color: var(--warn); border: 1px solid var(--warn); }
.pill.approved { background: rgba(61,220,151,.12); color: var(--ok); border: 1px solid var(--ok); }
.pill.suspended { background: rgba(255,107,129,.12); color: var(--bad); border: 1px solid var(--bad); }

/* ---------- Users table ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255,46,136,.35); margin-bottom: 1.6rem; }
table.users { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
table.users thead th {
  text-align: left; padding: .8rem .9rem; background: rgba(255,46,136,.14);
  color: var(--gold-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
}
table.users tbody td { padding: .75rem .9rem; border-top: 1px solid rgba(255,46,136,.18); vertical-align: middle; }
table.users tbody tr { cursor: pointer; }
table.users tbody tr:hover { background: rgba(255,46,136,.07); }
table.users tbody tr.selected { background: rgba(255,46,136,.12); }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.row-actions button {
  border: 1px solid; border-radius: 999px; padding: .32rem .8rem; font-size: .78rem;
  font-weight: 800; cursor: pointer; background: transparent;
}
.row-actions .approve { color: var(--ok); border-color: var(--ok); }
.row-actions .suspend { color: var(--warn); border-color: var(--warn); }
.row-actions .remove { color: var(--bad); border-color: var(--bad); }
.row-actions button:hover { background: rgba(255,255,255,.08); }

/* ---------- Detail panel ---------- */
.detail {
  background: linear-gradient(160deg, rgba(30,12,48,.95), rgba(16,7,28,.95));
  border: 2px solid rgba(242,193,78,.5); border-radius: 18px; padding: 1.6rem 1.4rem; margin-bottom: 3rem;
}
.detail h2 { text-align: left; margin-bottom: .2rem; }
.detail .d-email { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.detail-card { background: rgba(10,6,18,.6); border: 1px solid rgba(255,46,136,.3); border-radius: 14px; padding: 1rem 1.1rem; }
.detail-card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.detail-card ul { list-style: none; font-size: .9rem; color: var(--muted); }
.detail-card ul li { padding: .18rem 0; }
.detail-card ul li b { color: var(--white); }
.detail-card .big-type { font-size: 1.15rem; color: var(--gold-soft); font-weight: 800; }
.empty { color: var(--muted); font-style: italic; font-size: .9rem; }

/* ---------- Gate / loading / notices ---------- */
.gate { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.gate .spin { font-size: 3rem; display: block; animation: twinkle 1.2s ease-in-out infinite; margin-bottom: .8rem; }
@keyframes twinkle { 0%,100% { opacity: .4; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.12); } }
.notice {
  max-width: 560px; margin: 4rem auto; text-align: center; padding: 2.5rem 1.8rem;
  background: linear-gradient(160deg, rgba(30,12,48,.95), rgba(16,7,28,.95));
  border: 2px solid rgba(242,193,78,.5); border-radius: 20px;
}
.notice .big { font-size: 3rem; display: block; margin-bottom: .8rem; }
.notice h1 { margin-bottom: .6rem; }
.notice p { color: var(--muted); margin-bottom: 1.2rem; }

footer { text-align: center; padding: 2rem 1rem 2.6rem; color: var(--muted); font-size: .88rem; border-top: 1px solid rgba(255,46,136,.25); margin-top: 1rem; }
footer strong { color: var(--gold-soft); }

.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: min(90vw, 340px);
  background: #1c0f28; color: #fff; border: 1px solid var(--pink); border-radius: 12px;
  padding: .8rem 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: translateY(120px); opacity: 0; transition: .25s;
}
.toast.show { transform: none; opacity: 1; }

@media (max-width: 560px) {
  .auth-card { padding: 1.4rem 1.1rem; }
  .topbar { padding: 1rem; }
  .topbar .btn.small { width: 100%; }
}
