:root {
  --bg: #0d1117;
  --surface: rgba(255, 255, 255, 0.92);
  --text: #111827;
  --muted: #5b6472;
  --line: rgba(17, 24, 39, 0.08);
  --primary: #1d4ed8;
  --primary-dark: #153aa5;
  --accent: #14b8a6;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
  --radius-xl: 28px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(29, 78, 216, 0.12), transparent 22%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3fa 50%, #f7f9fd 100%);
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(91, 100, 114, 0.18);
  background: #f8fbff;
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.app-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: min(100% - 28px, var(--container));
  margin: 0 auto;
  max-width: 100%;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
}

.section-kicker,
.micro-copy,
.brand-name,
.brand-note,
.footer-title,
.footer-text,
.form-note {
  margin: 0;
}

.section-kicker {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(176px, 17vw, 232px);
  max-height: 72px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.22);
}

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-logo + div .brand-name {
  display: none;
}

.brand-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-logo + div .brand-note {
  font-weight: 700;
  line-height: 1.35;
}

.button,
.ghost-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.22);
}

.button.secondary,
.ghost-pill {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-color: rgba(91, 100, 114, 0.16);
}

.button:hover,
.ghost-pill:hover {
  transform: translateY(-1px);
}

.button.wide {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2,
.site-footer h2,
.admin-hero h1,
.hero-panel h1 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-copy,
.hero-copy,
.footer-text,
.form-note {
  color: var(--muted);
  line-height: 1.7;
}

.field-grid,
.field {
  display: grid;
  gap: 10px;
}

.field label {
  font-weight: 700;
}

.upload-box {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1.5px dashed rgba(29, 78, 216, 0.22);
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.04), rgba(255, 255, 255, 0.7));
  text-align: center;
  cursor: pointer;
}

.upload-box input {
  display: none;
}

.upload-title {
  font-weight: 800;
}

.upload-subtitle {
  color: var(--muted);
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.upload-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.upload-chip-remove {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(calc(100% + 32px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
  width: min(calc(100% - 28px), 420px);
  background: #111827;
  color: white;
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.24s ease, opacity 0.24s ease;
  z-index: 20;
}

.toast.show {
  display: block;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (min-width: 760px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .brand-logo {
    width: min(190px, 54vw);
    max-height: 58px;
    padding: 0;
  }
}
