:root {
  --navy:        #1A1A2E;
  --navy-hover:  #16213E;
  --gold:        #E8B84B;
  --gold-bg:     #FFFBF0;
  --bg:          #F4F4F8;
  --white:       #FFFFFF;
  --text:        #2C2C3E;
  --muted:       #6B6B80;
  --border:      #E0E0EC;
  --success-bg:  #EAF9F1;
  --success-fg:  #1E8449;
  --success-br:  #A8E6C1;
  --error-bg:    #FDECEA;
  --error-fg:    #C0392B;
  --error-br:    #F5B7B1;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
header {
  background: var(--navy);
  padding: 1.1rem 2rem;
}

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.logo {
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.header-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  flex: 1;
}

.btn-logout {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  transition: color 0.15s, border-color 0.15s;
}

.btn-logout:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ── Main ────────────────────────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.07);
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.description {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ── Toggle options ──────────────────────────────────────────────────────── */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.toggle-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.toggle-option:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.toggle-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.option-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.option-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.option-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Button ──────────────────────────────────────────────────────────────── */
#btn-save {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

#btn-save:hover:not(:disabled) { background: var(--navy-hover); }

#btn-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Feedback ────────────────────────────────────────────────────────────── */
.feedback {
  margin-top: 0.8rem;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
}

.feedback.success {
  background: var(--success-bg);
  color: var(--success-fg);
  border: 1px solid var(--success-br);
}

.feedback.error {
  background: var(--error-bg);
  color: var(--error-fg);
  border: 1px solid var(--error-br);
}

.feedback.hidden { display: none; }

/* ── Dashboard placeholder ───────────────────────────────────────────────── */
.dashboard .coming-soon {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  margin-top: 0.4rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ── Login ───────────────────────────────────────────────────────────────── */
.login-body {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
}

.login-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.field-group input {
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}

.field-group input:focus {
  border-color: var(--navy);
}

.btn-login {
  margin-top: 0.5rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

.btn-login:hover { background: var(--navy-hover); }

.login-footer {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  margin-top: 2rem;
  background: transparent;
  border-top: none;
}
