:root {
  --ink: #07122f;
  --muted: #66738c;
  --line: #dce6f3;
  --soft: #f6f9fd;
  --blue: #075eea;
  --blue-2: #0d47d9;
  --teal: #12a6aa;
  --green: #0b986f;
  --red: #e73f5b;
  --yellow: #f7bd45;
  --violet: #7464d8;
  --shadow: 0 18px 50px rgba(36, 58, 99, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.survey-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 12px 38px 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  color: #12203d;
  background: transparent;
  border-radius: 8px;
}

.icon-button:hover {
  background: #eaf2ff;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #52627d;
  font-weight: 600;
}

.lang-switch strong {
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: 245px;
  padding: 28px 36px 28px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 46%;
  height: 210px;
  content: "";
  background: linear-gradient(90deg, rgba(251, 253, 255, 0.98), rgba(251, 253, 255, 0.54) 20%, rgba(251, 253, 255, 0.05) 100%), url("./assets/bursa-survey.jpg") center/cover no-repeat;
  border-radius: 0 0 0 52px;
  opacity: 0.95;
}

.hero-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 22px;
}

.bars {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 7px;
  align-items: end;
  height: 62px;
}

.bars span {
  display: block;
  border-radius: 3px 3px 0 0;
}

.bars span:nth-child(1) {
  height: 24px;
  background: var(--blue);
}

.bars span:nth-child(2) {
  height: 40px;
  background: var(--teal);
}

.bars span:nth-child(3) {
  height: 60px;
  background: #095ee8;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 510px;
  margin: 0 0 10px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #536280;
  font-size: 23px;
}

.notice {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 720px);
  margin-top: 42px;
  padding: 18px 22px;
  color: #132064;
  background: rgba(239, 247, 255, 0.9);
  border: 1px solid #bfd7ff;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(24, 86, 182, 0.08);
  font-size: 20px;
  line-height: 1.35;
}

.notice-icon,
.step-number,
.check-dot,
.metric-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
}

.notice-icon {
  width: 46px;
  height: 46px;
  color: white;
  background: var(--blue);
}

.progress-card,
.question-card,
.field-card,
.done-card,
.admin-card,
.filter-bar,
.table-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 214, 231, 0.75);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.progress-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px 26px;
  font-size: 22px;
  font-weight: 600;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  background: #e9eef6;
  border-radius: 999px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  border-radius: inherit;
  transition: width 0.25s ease;
}

.progress-percent {
  color: var(--blue);
}

.field-card,
.question-card,
.done-card {
  margin-top: 12px;
  padding: 28px 26px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #31415f;
  font-size: 14px;
  font-weight: 700;
}

.text-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  border: 1px solid #cbd6e6;
  border-radius: 12px;
  outline: 0;
}

.text-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7, 94, 234, 0.12);
}

.question-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.step-number {
  width: 42px;
  height: 42px;
  color: white;
  background: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.question-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.question-hint {
  margin: 8px 0 0 60px;
  color: var(--muted);
}

.options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.options.capital-goals {
  grid-template-columns: repeat(2, 1fr);
}

.choice {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: #151d34;
  background: white;
  border: 1.5px solid #adc8fa;
  border-radius: 28px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice.selected {
  color: white;
  background: linear-gradient(135deg, var(--blue), #034bd8);
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(7, 94, 234, 0.2);
}

.choice.selected.teal {
  color: #057a81;
  background: linear-gradient(180deg, #f3ffff, #e8fbfb);
  border-color: var(--teal);
}

.choice:hover {
  transform: translateY(-1px);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 28px 4px 0;
}

.primary-btn,
.secondary-btn,
.admin-btn {
  display: inline-flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 800;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue), #034bd8);
  border: 1px solid var(--blue);
}

.secondary-btn {
  color: var(--blue);
  background: white;
  border: 1.5px solid var(--blue);
}

.admin-btn {
  min-height: 46px;
  padding: 0 18px;
  color: white;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  font-size: 14px;
}

.admin-btn.ghost {
  color: var(--blue);
  background: white;
  border: 1px solid #b9cff5;
}

.error {
  display: none;
  margin-top: 16px;
  color: var(--red);
  font-weight: 700;
}

.error.visible {
  display: block;
}

.done-card {
  display: none;
  padding: 54px 32px;
  text-align: center;
}

.done-card.visible {
  display: block;
}

.done-card h2 {
  margin: 16px 0 12px;
  font-size: 34px;
}

.done-card p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.admin-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #fbfdff 0%, #edf5ff 100%);
}

.login-card {
  width: min(100%, 460px);
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 28px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.login-card .field span {
  display: block;
  margin-bottom: 8px;
  color: #31415f;
  font-size: 14px;
  font-weight: 700;
}

.login-submit {
  width: 100%;
  margin-top: 20px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 278px 1fr;
  min-height: 100vh;
  background: #f5f8fc;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 24px;
  overflow: hidden;
  background: white;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 42px;
}

.brand strong {
  display: block;
  font-size: 16px;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  color: #263651;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.nav button.active {
  color: var(--blue);
  background: #eef5ff;
  box-shadow: inset 4px 0 0 var(--blue);
}

.sidebar-art {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 230px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9) 24%), url("./assets/bursa-survey.jpg") center/cover no-repeat;
  opacity: 0.46;
}

.admin-main {
  min-width: 0;
  padding: 26px 32px 44px;
}

.admin-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-title h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.admin-title p {
  margin: 0;
  color: var(--muted);
}

.admin-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search {
  width: 320px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-card {
  padding: 24px;
}

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

.metric-icon {
  width: 62px;
  height: 62px;
  color: var(--blue);
  background: #e7efff;
}

.metric b {
  display: block;
  margin: 4px 0;
  font-size: 28px;
}

.metric small {
  color: var(--green);
  font-weight: 700;
}

.mini-chart {
  width: 74px;
  height: 48px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 18px 0;
  padding: 18px;
}

.filter-bar label {
  display: block;
  margin-bottom: 8px;
  color: #33415c;
  font-size: 13px;
  font-weight: 800;
}

.select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: white;
  border: 1px solid #cbd6e6;
  border-radius: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.15fr;
  gap: 16px;
}

.panel-title {
  margin: 0 0 20px;
  font-size: 16px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.donut {
  --a: 25%;
  --b: 45%;
  --c: 70%;
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 var(--a), var(--teal) var(--a) var(--b), var(--violet) var(--b) var(--c), var(--yellow) var(--c) 100%);
}

.donut::after {
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  content: attr(data-count) "\A Responses";
  white-space: pre;
  color: var(--ink);
  background: white;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #e5edf8;
}

.legend {
  display: grid;
  gap: 10px;
  color: #40506d;
  font-size: 13px;
}

.legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) 1.3fr 46px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}

.bar-track {
  height: 18px;
  overflow: hidden;
  background: #eef3fb;
  border-radius: 4px;
}

.bar-value {
  height: 100%;
  background: linear-gradient(90deg, #5b8df6, var(--blue));
  border-radius: inherit;
}

.goal-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  height: 178px;
  padding-top: 16px;
}

.goal-col {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  height: 100%;
  text-align: center;
  font-size: 11px;
}

.goal-col .pillar {
  align-self: end;
  min-height: 8px;
  background: linear-gradient(180deg, #4f86f5, #0d5be5);
  border-radius: 6px 6px 0 0;
}

.panel-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.trend {
  width: 100%;
  height: 210px;
}

.wide {
  grid-column: span 2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.product {
  padding: 16px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product svg {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  color: var(--teal);
}

.product b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.insights {
  display: grid;
  gap: 14px;
}

.insight {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  color: #223354;
  font-size: 14px;
  line-height: 1.5;
}

.insight-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--blue);
  background: #edf4ff;
  border-radius: 10px;
}

.table-card {
  margin-top: 16px;
  overflow: hidden;
}

.table-card h3 {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f8;
  text-align: left;
  vertical-align: top;
}

th {
  color: #51617d;
  background: #f8fbff;
  font-size: 12px;
}

.status {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--green);
  background: #e8f8f1;
  border-radius: 999px;
  font-weight: 800;
}

.empty {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1120px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-art {
    display: none;
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics,
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1420px) and (min-width: 1121px) {
  .metrics,
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .survey-shell {
    padding: 8px 16px 30px;
  }

  .hero {
    min-height: 230px;
    padding: 24px 2px 12px;
  }

  .hero::before {
    left: 0;
    width: 100%;
    height: 138px;
    opacity: 0.42;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .notice,
  .progress-card {
    font-size: 16px;
  }

  .progress-card {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .options,
  .options.capital-goals,
  .form-actions,
  .filter-bar,
  .metrics,
  .dashboard-grid,
  .product-grid,
  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .question-heading h2 {
    font-size: 20px;
  }

  .primary-btn,
  .secondary-btn {
    min-height: 56px;
    font-size: 18px;
  }

  .admin-main {
    padding: 22px 16px 32px;
  }

  .admin-header,
  .admin-tools {
    display: grid;
    width: 100%;
  }

  .search {
    width: 100%;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: span 1;
  }

  .table-card {
    overflow-x: auto;
  }
}
