:root {
  --navy: #08152b;
  --navy-soft: #132544;
  --blue: #719aff;
  --cream: #f4f0e8;
  --white: #ffffff;
  --ink: #15213a;
  --muted: #6e7788;
  --line: #d9dee7;
  --success: #147a55;
  --danger: #b23b42;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef1f6;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }

.admin-body { min-height: 100vh; background: #eef1f6; }
.admin-header {
  min-height: 74px;
  padding: 14px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: var(--white);
}
.admin-logo { color: inherit; text-decoration: none; font-weight: 750; display: flex; align-items: center; gap: 12px; }
.admin-logo span, .admin-brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--navy);
  background: var(--blue);
  font-weight: 900;
}
.admin-header-actions { display: flex; align-items: center; gap: 16px; }
.admin-header-actions form { margin: 0; }
.text-button { border: 0; padding: 8px 0; background: none; color: #cbd5e7; cursor: pointer; }
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.admin-button.primary { background: var(--blue); color: var(--navy); }
.admin-button.secondary { border-color: #435270; color: var(--white); background: transparent; }
.admin-button.wide { width: 100%; }

.admin-main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 120px; }
.admin-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.admin-intro h1 { margin: 5px 0 10px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.admin-intro p { margin: 0; color: var(--muted); max-width: 670px; line-height: 1.65; }
.admin-eyebrow { color: #5278d8 !important; font-size: .76rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.account-pill { padding: 9px 13px; border-radius: 999px; background: #dfe6f4; color: #465268; font-size: .8rem; white-space: nowrap; }
.language-tabs { display: inline-flex; padding: 5px; margin-bottom: 22px; border-radius: 14px; background: #dfe4ed; }
.language-tabs button { border: 0; padding: 10px 17px; border-radius: 10px; background: transparent; color: #5c6678; font-weight: 750; cursor: pointer; }
.language-tabs button.active { background: var(--white); color: var(--navy); box-shadow: 0 5px 18px rgba(20, 36, 67, .09); }

.editor-section { margin-bottom: 22px; padding: clamp(22px, 3vw, 34px); border: 1px solid #e1e4ea; border-radius: 22px; background: var(--white); box-shadow: 0 12px 35px rgba(26, 43, 74, .05); }
.editor-section h2 { margin: 0 0 24px; color: var(--navy); font-size: 1.25rem; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.editor-field { display: flex; flex-direction: column; gap: 8px; }
.editor-field > span { color: #4b5669; font-size: .83rem; font-weight: 750; }
.editor-field input, .editor-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfe;
  line-height: 1.5;
  resize: vertical;
}
.editor-field input:focus, .editor-field textarea:focus { outline: 3px solid rgba(113, 154, 255, .23); border-color: #7899e9; }
.save-bar {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 18px;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 14px 13px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  color: var(--white);
  background: rgba(8, 21, 43, .97);
  box-shadow: 0 18px 50px rgba(8, 21, 43, .3);
}
.save-bar p { margin: 0; font-size: .88rem; }
.save-bar .success { color: #82e0b8; }
.save-bar .error { color: #ff9da4; }
.save-bar .pending { color: #dce4f3; }

.login-body { display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #193765, var(--navy) 55%); }
.login-card { width: min(480px, 100%); padding: clamp(30px, 6vw, 54px); border-radius: 26px; background: var(--white); box-shadow: 0 35px 90px rgba(0,0,0,.28); }
.login-card .admin-brand { margin-bottom: 28px; }
.login-card h1 { margin: 7px 0 15px; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.03; letter-spacing: -.045em; color: var(--navy); }
.login-card > p:not(.admin-eyebrow) { color: var(--muted); line-height: 1.65; }
.login-card .admin-button { margin-top: 18px; }
.notice { padding: 13px 14px; border-radius: 11px; background: #e9edf5; }
.notice.error { color: var(--danger); background: #fae9ea; }
.privacy-note { margin: 18px 0 0; font-size: .78rem; }

@media (max-width: 740px) {
  .admin-header { align-items: flex-start; }
  .admin-header-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
  .admin-button.secondary { display: none; }
  .admin-intro { align-items: flex-start; flex-direction: column; }
  .editor-grid { grid-template-columns: 1fr; }
  .save-bar { align-items: stretch; flex-direction: column; }
  .save-bar .admin-button { width: 100%; }
}
