/* ----------------- base.css ----------------- */
/* =============================================================================
   GOTHWAD DESIGN SYSTEM — BASE, LAYOUT & COMMON COMPONENTS
   ============================================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Blue glow at top of every page */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 280px;
  background: radial-gradient(ellipse 80% 100% at 50% -30%, rgba(4, 148, 244, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img { max-width: 100%; }

::selection { background: rgba(4, 148, 244, 0.35); }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* --------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main { flex: 1; padding: 40px 0 64px; }

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(4, 148, 244, 0.35);
  flex-shrink: 0;
}
.brand-logo.sm { width: 32px; height: 32px; border-radius: 10px; }

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #4da3ff, #0494f4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.brand-center .brand-logo { width: 52px; height: 52px; border-radius: 15px; }
.brand-center .brand-name { font-size: 22px; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; }

.nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* --------------------------------------------------------------- forms */
.field { margin-bottom: 16px; }

.label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.input::placeholder { color: var(--text-faint); }

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input.mono { font-family: var(--mono); font-size: 13.5px; }

.input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-input);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-group .input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}
.input-group .suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12.5px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 42px; }
.input-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
}
.input-eye:hover { color: var(--text); background: var(--bg-hover); }

.hint { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }
.hint.ok { color: var(--success); }
.hint.bad { color: var(--danger); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
}

/* Checkbox */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

