* {
  box-sizing: border-box;
}

:root {
  --ink: #191919;
  --muted: #696969;
  --surface: #fff;
  --soft: #f5f4f1;

  --line: #dedbd4;

  --accent: #ee432f;
  --accent-dark: #be2f20;

  --info: #eef5ff;
  --warn: #fff3dd;
  --success: #edf8ef;

  --blue: #204666;
}

body {
  margin: 0;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--ink);
  background: var(--soft);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

#app {
  max-width: 920px;
  margin: 0 auto;

  min-height: 100vh;

  background: var(--surface);

  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */

.hero {
  padding: 48px 24px 28px;

  background: var(--blue);
  color: #fff;
}

.hero h1 {
  margin: 0 0 16px;

  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 0.96;
}

.hero p {
  max-width: 680px;

  margin: 0;

  font-size: 1.05rem;
  line-height: 1.6;

  color: #e5e5e5;
}

/* -------------------------------------------------------
   PAGE
------------------------------------------------------- */

.page {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 8px;

  text-transform: uppercase;

  letter-spacing: 0.13em;

  font-size: 0.72rem;
  font-weight: 800;

  opacity: 0.72;
}

.section-heading {
  margin: 8px 0 20px;
}

.section-heading h1 {
  margin: 0 0 5px;
}

.section-description {
  margin: 8px 0 0;

  color: var(--muted);

  line-height: 1.5;
}

/* -------------------------------------------------------
   CARDS
------------------------------------------------------- */

.card-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(230px, 1fr)
    );

  gap: 14px;
}

.card {
  width: 100%;

  padding: 20px;

  text-align: left;

  color: var(--ink);
  background: #fff;

  border: 1px solid var(--line);
  border-radius: 18px;

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

button.card:hover:not(:disabled) {
  transform: translateY(-2px);

  border-color: #999;

  box-shadow:
    0 7px 22px rgba(0, 0, 0, 0.07);
}

button.card:active:not(:disabled) {
  transform: translateY(0);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;

  color: var(--muted);

  line-height: 1.45;
}

.card.disabled,
.card:disabled {
  opacity: 0.55;
}

/* -------------------------------------------------------
   ROOM PICKER
------------------------------------------------------- */

.room-grid {
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(230px, 1fr)
    );
}

.room-card {
  display: flex;

  align-items: center;

  gap: 15px;

  min-height: 100px;
}

.room-card-icon {
  display: flex;

  flex: 0 0 46px;

  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border-radius: 14px;

  font-size: 1.3rem;

  background: var(--soft);
}

.room-card > div:last-child {
  min-width: 0;
}

.change-room {
  margin-top: 9px;

  padding: 0;

  border: 0;

  color: var(--accent-dark);
  background: transparent;

  font-weight: 800;
}

.change-room:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------
   WIFI
------------------------------------------------------- */

.wifi-card {
  margin: 0 0 24px;

  background: var(--info);
}

.credentials {
  display: flex;

  gap: 28px;

  flex-wrap: wrap;

  margin-top: 14px;
}

.credential small {
  display: block;

  margin-bottom: 3px;

  color: var(--muted);

  font-weight: 700;
}

.credential strong {
  font-size: 1.05rem;
}

/* -------------------------------------------------------
   TOP NAV
------------------------------------------------------- */

.top-nav {
  position: sticky;

  top: 0;

  z-index: 5;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 16px 20px;

  border-bottom: 1px solid var(--line);

  background:
    rgba(255, 255, 255, 0.94);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back {
  flex-shrink: 0;

  padding: 9px 13px;

  border: 0;
  border-radius: 999px;

  background: #eee;

  color: var(--ink);

  font-weight: 800;
}

.back:hover {
  background: #e3e3e3;
}

.top-nav-title {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;

  font-weight: 800;
}

/* -------------------------------------------------------
   GUIDE STEPS
------------------------------------------------------- */

.step-shell {
  padding: 20px;
}

.progress {
  height: 7px;

  margin: 12px 0 24px;

  overflow: hidden;

  border-radius: 999px;

  background: #eee;
}

.progress span {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: var(--accent);

  transition: width 0.2s ease;
}

.step-card {
  overflow: hidden;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 20px;
}

.step-content {
  padding: 24px;
}

.step-content h1 {
  margin: 0 0 14px;

  font-size:
    clamp(
      1.6rem,
      5vw,
      2.5rem
    );
}

.step-content p {
  font-size: 1.04rem;
  line-height: 1.65;
}

/* -------------------------------------------------------
   IMAGES
------------------------------------------------------- */

.step-images {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(180px, 1fr)
    );

  gap: 10px;

  margin-bottom: 20px;
}

.step-images img {
  display: block;

  width: 100%;
  height: 240px;

  object-fit: cover;

  border-radius: 13px;

  background: #eee;
}

/* -------------------------------------------------------
   NOTICES
------------------------------------------------------- */

.notice {
  margin-top: 15px;

  padding: 15px;

  border-radius: 13px;

  line-height: 1.5;
}

.notice.note {
  background: var(--info);
}

.notice.warning {
  background: var(--warn);
}

/* -------------------------------------------------------
   STEP BUTTONS
------------------------------------------------------- */

.step-actions {
  display: flex;

  justify-content: space-between;

  gap: 10px;

  margin-top: 24px;
}

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 12px 17px;

  border: 0;
  border-radius: 12px;

  color: white;
  background: var(--accent);

  font-weight: 800;

  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  background: #eceae5;
}

.button.secondary:hover {
  background: #dfddd7;
}

/* -------------------------------------------------------
   HELP
------------------------------------------------------- */

.help-bar {
  margin-top: 22px;

  padding: 16px;

  border-radius: 14px;

  background: #f5f5f5;
}

.help-bar strong {
  display: block;

  margin-bottom: 8px;
}

.help-bar a {
  display: inline-block;

  margin-right: 14px;
  margin-bottom: 4px;

  color: var(--accent-dark);

  font-weight: 800;

  text-decoration: none;
}

.help-bar a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------
   EMPTY / LOADING / ERROR
------------------------------------------------------- */

.empty-state {
  padding: 30px;

  text-align: center;

  border: 1px dashed var(--line);
  border-radius: 18px;

  background: var(--soft);
}

.empty-state h2 {
  margin: 0 0 7px;
}

.empty-state p {
  margin: 0;

  color: var(--muted);

  line-height: 1.5;
}

.loading,
.error {
  padding: 50px 24px;

  text-align: center;

  color: var(--muted);
}

/* -------------------------------------------------------
   PRESERVE ENTERED LINE BREAKS
------------------------------------------------------- */

.wifi-card p,
.step-content p,
.notice {
  white-space: pre-line;
}

/* -------------------------------------------------------
   ACCESSIBILITY
------------------------------------------------------- */

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(238, 67, 47, 0.3);

  outline-offset: 3px;
}

/* -------------------------------------------------------
   MOBILE
------------------------------------------------------- */

@media (max-width: 600px) {

  .hero {
    padding:
      38px
      18px
      25px;
  }

  .page {
    padding: 18px;
  }

  .step-shell {
    padding: 14px;
  }

  .step-content {
    padding: 19px;
  }

  .step-actions .button {
    flex: 1;
  }

  .credentials {
    gap: 16px;
  }

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

  .room-card {
    min-height: 92px;
  }

  .top-nav {
    padding: 13px 15px;
  }

  .step-images {
    grid-template-columns: 1fr;
  }

  .step-images img {
    height: auto;

    max-height: 360px;
  }
}