:root { --bg:#0b0f14; --card:#121823; --muted:#7a8aa0; --text:#e6edf3; --accent:#5b9cff; --accent2:#ff6b6b; }
* { box-sizing: border-box; }
body { margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; background: radial-gradient(1200px 800px at 20% 0%, #0f1723 0%, var(--bg) 60%), linear-gradient(180deg, #0b0f14 0%, #0b0f14 100%); color: var(--text); min-height:100vh; }
.center { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100vh; padding:24px; gap: 20px; }
.card { width:100%; max-width:420px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border:1px solid rgba(255,255,255,0.08); border-radius:16px; padding:24px; box-shadow: 0 10px 35px rgba(0,0,0,0.45); backdrop-filter: blur(6px); }
.card.wide { max-width:720px; }
h1 { margin:0 0 8px; font-size:28px; letter-spacing:.2px; font-weight:800; }
.muted { margin:0 0 20px; color: var(--muted); font-size:14px; }
label { display:block; font-size:13px; color:var(--muted); margin:12px 0 6px; }
input[type="email"], input[type="password"], input[type="text"] { width:100%; background:#0e1420; border:1px solid rgba(255,255,255,0.08); color:var(--text); padding:12px 14px; border-radius:10px; outline:none; transition:border-color .2s; }
input:focus { border-color: var(--accent); }
.row { display:flex; gap:10px; }
.btn { width:100%; display:inline-flex; align-items:center; justify-content:center; gap:8px; background: var(--accent); color:white; border:none; padding:12px 14px; border-radius:10px; cursor:pointer; font-weight:600; transition: transform .04s ease, box-shadow .2s; box-shadow: 0 6px 18px rgba(91,156,255,.25); }
.btn:hover { transform: translateY(-1px); }
.btn.secondary { background:#1b2533; box-shadow:none; }
.btn.danger { background: var(--accent2); box-shadow: 0 6px 18px rgba(255,107,107,.25); }
.hr { height:1px; background: rgba(255,255,255,0.08); margin:18px 0; }
.tone { display:flex; gap:12px; }
.tone label { display:flex; gap:8px; align-items:center; margin:0; color:var(--text); font-size:14px; }
.hidden { display:none !important; }
pre { white-space: pre-wrap; background:#0e1420; border:1px solid rgba(255,255,255,0.08); padding:12px; border-radius:10px; min-height:120px; }
.topbar { position:fixed; inset:0 auto auto 0; height:56px; width:100%; display:flex; align-items:center; justify-content:space-between; padding:0 16px; background: rgba(10,14,22,0.6); border-bottom: 1px solid rgba(255,255,255,0.06); backdrop-filter: blur(6px); z-index: 100; }
.brand { font-weight:800; letter-spacing:.3px; }
.link { color: var(--accent); text-decoration: none; }

/* Main title */
.main-title { 
  font-size: 48px; 
  font-weight: 900; 
  letter-spacing: -0.5px; 
  margin: 0 0 32px; 
  text-align: center;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dropdown menu */
.dropdown { position: relative; }
.dropdown-btn { 
  background: transparent; 
  border: 1px solid rgba(255,255,255,0.1); 
  color: var(--muted); 
  width: 32px; 
  height: 32px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-size: 20px; 
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.dropdown-btn:hover { 
  background: rgba(255,255,255,0.05); 
  color: var(--text); 
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
}
.dropdown-content.show { display: block; }
.dropdown-content button {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.dropdown-content button:hover {
  background: rgba(255,255,255,0.05);
}

/* Loading overlay */
.loading-overlay { position:fixed; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); z-index: 1000; color: var(--text); font-weight:600; }
.spinner { width:42px; height:42px; border-radius:50%; border:4px solid rgba(255,255,255,0.25); border-top-color: var(--accent); animation:spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }