:root {
  --navy: #081a30;
  --ink: #142033;
  --muted: #66758a;
  --line: #dbe4ef;
  --soft: #f5f8fc;
  --surface: #ffffff;
  --blue: #1268c3;
  --blue-strong: #0b4f99;
  --red: #e22a35;
  --gold: #f5c542;
  --green: #168a62;
  --shadow: 0 18px 46px rgba(20, 32, 51, 0.11);
  --shadow-soft: 0 10px 28px rgba(20, 32, 51, 0.08);
  --radius: 8px;
  --page-x: clamp(18px, 4vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.92), rgba(255, 255, 255, 0.96) 42%),
    repeating-linear-gradient(90deg, rgba(18, 104, 195, 0.04) 0 1px, transparent 1px 104px);
}

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

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

button,
a,
input,
select,
textarea {
  outline-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(18, 104, 195, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--surface);
  background: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 10px var(--page-x);
  border-bottom: 1px solid rgba(219, 228, 239, 0.92);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  max-width: 100vw;
}

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

.brand-logo {
  display: block;
  width: 118px;
  height: 58px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.brand-logo.official-logo {
  padding: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--navy);
  background: var(--surface);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.menu-toggle::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.menu-toggle span {
  display: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

nav a {
  position: relative;
  padding: 12px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  transition: transform 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--navy);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.primary-button,
.secondary-button,
.sponsor-button,
.danger-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  color: var(--surface);
  background: var(--red);
  box-shadow: 0 14px 24px rgba(226, 42, 53, 0.22);
}

.primary-button:hover,
.sponsor-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: rgba(18, 104, 195, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.sponsor-button {
  color: #172033;
  background: var(--gold);
  border-color: #e2ad17;
  box-shadow: 0 14px 24px rgba(245, 197, 66, 0.2);
}

.danger-button {
  color: var(--red);
  background: #fff3f4;
  border-color: rgba(226, 42, 53, 0.28);
}

.compact-button {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.sponsor-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px var(--page-x);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  max-width: 100vw;
  overflow: hidden;
}

.sponsor-band strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.sponsor-logo {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 104, 195, 0.18);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--blue-strong);
  background: #f0f6ff;
  font-size: 13px;
  font-weight: 900;
}

.hero {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  padding: clamp(42px, 6vw, 68px) var(--page-x) clamp(40px, 6vw, 62px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 252, 0.88) 58%, rgba(240, 246, 255, 0.9) 100%);
  max-width: 100vw;
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 760px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: 68px;
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-logo-title {
  max-width: min(640px, 100%);
  line-height: 0;
}

.hero-logo-title img {
  display: block;
  width: min(560px, 100%);
  max-height: 235px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #334155;
  font-size: 22px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.event-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.event-line span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 8px 13px;
  color: var(--blue-strong);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px 20px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--blue));
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 510;
  object-fit: cover;
  object-position: center;
}

.section {
  padding: clamp(48px, 7vw, 86px) var(--page-x);
  max-width: 100vw;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.stat-card {
  min-height: 126px;
  padding: 24px;
  background: var(--surface);
  border-bottom: 4px solid var(--blue);
}

.stat-card:nth-child(2) {
  border-bottom-color: var(--red);
}

.stat-card:nth-child(3) {
  border-bottom-color: var(--green);
}

.stat-card:nth-child(4) {
  border-bottom-color: var(--gold);
}

.stat-card strong {
  display: block;
  color: var(--navy);
  font-size: 48px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.contact-section p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.plan-section,
.orientation-section,
.portal-section {
  background: var(--soft);
}

.salon-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.map-card,
.school-panel,
.orientation-form,
.recommendations,
.registration-form,
.video-panel,
.stand-info,
.chat-box,
.portal-shell,
.portal-main,
.portal-sidebar,
.portal-panel,
.modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.map-card {
  padding: clamp(14px, 2vw, 22px);
}

.map-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.map-note {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--blue-strong);
  background: #edf5ff;
  font-size: 12px;
  font-weight: 900;
}

.floor-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 3px solid var(--navy);
  border-bottom-width: 0;
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(90deg, rgba(18, 104, 195, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(18, 104, 195, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: 48px 48px;
}

.stand-button {
  position: absolute;
  display: grid;
  width: 8.7%;
  min-width: 52px;
  aspect-ratio: 1 / 0.88;
  place-items: center;
  border: 2px solid #aeb8c4;
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--surface);
  font-size: clamp(9px, 0.82vw, 12px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  padding: 4px;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 18px rgba(20, 32, 51, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.stand-button::after {
  content: attr(data-label);
  position: absolute;
  top: -22px;
  min-width: 30px;
  border-radius: 6px;
  padding: 3px 6px;
  color: var(--surface);
  background: var(--blue);
  font-size: 12px;
}

.stand-button:hover,
.stand-button.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff7f7;
  transform: translateY(-2px);
}

.stand-button.suspended {
  border-style: dashed;
  color: var(--muted);
  background: #f4f6f8;
}

.grand-stand {
  position: absolute;
  right: 1.8%;
  top: 20%;
  display: grid;
  width: 10.5%;
  height: 50%;
  place-items: center;
  border: 2px solid #9aa9bb;
  border-radius: var(--radius);
  color: var(--navy);
  background: linear-gradient(180deg, #fff7d6, #ffffff);
  font-weight: 900;
  text-align: center;
  writing-mode: vertical-rl;
}

.entry-arrow,
.exit-arrow {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 96px solid var(--red);
}

.entry-arrow {
  left: 12%;
}

.exit-arrow {
  right: 16%;
  transform: rotate(180deg);
}

.school-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.panel-logo {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--surface);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  font-size: 30px;
  font-weight: 900;
  overflow: hidden;
}

.panel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  background: var(--surface);
}

.panel-kicker {
  margin: 20px 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.school-panel h3,
.recommendations h3 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.12;
}

.school-panel p,
.recommendations p {
  color: var(--muted);
  line-height: 1.55;
}

.school-details {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.school-details div {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.school-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.school-details dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.panel-actions {
  display: grid;
  gap: 10px;
}

.stand-section,
.registrations-section,
.schools-section {
  background: var(--surface);
}

.stand-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr) minmax(280px, 0.72fr);
  gap: 20px;
}

.video-panel,
.stand-info,
.chat-box {
  padding: 22px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: var(--radius);
  color: var(--surface);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(8, 26, 48, 0.92), rgba(18, 104, 195, 0.72)),
    url("assets/plan-sige.png") center / cover;
}

#videoEmbed,
#videoEmbed iframe,
#videoEmbed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame.has-video {
  display: block;
  background: #000000;
}

.video-frame.has-video > span,
.video-frame.has-video > strong,
.video-frame.has-video > p {
  display: none;
}

.video-frame span {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.video-frame strong {
  max-width: 90%;
  font-size: 34px;
  line-height: 1;
}

.video-frame p {
  max-width: 420px;
  margin: 0;
  line-height: 1.45;
}

.stand-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stand-info h3 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.08;
}

.stand-info h4 {
  margin: 22px 0 10px;
  color: var(--navy);
}

.stand-info p {
  color: var(--muted);
  line-height: 1.55;
}

.stand-info ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 800;
}

.document-link span:last-child {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.stand-location {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.map-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  aspect-ratio: 16 / 10;
  min-height: 260px;
  max-height: 420px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.chat-box {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  min-height: 460px;
}


.whatsapp-box {
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 16px;
  min-height: 0;
}

.whatsapp-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.whatsapp-join-box {
  align-content: start;
  grid-template-rows: auto auto auto;
  gap: 16px;
  min-height: 0;
}

.whatsapp-join-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.whatsapp-join-form {
  display: grid;
  gap: 14px;
}

.whatsapp-join-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.whatsapp-join-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
}

.whatsapp-join-form .primary-button {
  min-height: 52px;
}

.whatsapp-stand-button {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--navy);
}

.chat-header span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 16px 0;
}

.typing-indicator {
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.emoji-row button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.emoji-row button:hover {
  background: #f0f6ff;
}

.message {
  max-width: 86%;
  border-radius: var(--radius);
  padding: 10px 12px;
  line-height: 1.4;
}

.message-meta {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 900;
  opacity: 0.78;
}

.message.bot {
  align-self: flex-start;
  background: var(--soft);
  color: var(--ink);
}

.message.user {
  align-self: flex-end;
  color: var(--surface);
  background: var(--blue);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.chat-form input,
.registration-form input,
.registration-form select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.visitor-register-form input,
.visitor-register-form select,
.orientation-form select,
.portal-chat select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
}

.admin-form textarea,
.registration-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.registration-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.registration-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.registration-form.student-registration {
  border-color: rgba(18, 104, 195, 0.24);
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 72%);
}

.registration-form.exhibitor-registration {
  border-color: rgba(22, 138, 98, 0.26);
  background: linear-gradient(180deg, #effbf6 0%, #ffffff 72%);
}

.registration-form h3 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
}

.registration-form label,
.admin-form label,
.visitor-register-form label,
.orientation-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--blue-strong);
  font-weight: 800;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-upload-group {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fbff;
}

.document-upload-title {
  color: var(--navy);
  font-size: 14px;
}

.document-upload-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
}

.document-upload-meta {
  display: grid;
  gap: 4px;
  color: var(--navy);
}

.document-upload-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-file-button {
  min-height: 46px;
}

.stand-visitor-log {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stand-visitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
}

.stand-visitor-header h4 {
  margin: 0;
  font-size: 20px;
}

.stand-visitor-list {
  display: grid;
  gap: 8px;
}

.stand-visitor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.55fr) minmax(120px, 0.45fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
}

.stand-visitor-row strong,
.stand-visitor-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stand-visitor-row small {
  color: var(--muted);
  font-weight: 800;
}

.portal-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.portal-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.portal-sidebar strong {
  color: var(--navy);
  line-height: 1.25;
}

.portal-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--navy);
  background: var(--surface);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.portal-tab.active {
  color: var(--surface);
  background: var(--blue);
  border-color: var(--blue);
}

.portal-main {
  min-width: 0;
  padding: 18px;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.dashboard-card span,
.dashboard-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-card small {
  font-weight: 700;
  line-height: 1.35;
}

.portal-panel {
  display: none;
  padding: 18px;
  box-shadow: none;
}

.portal-panel.active {
  display: block;
}

.portal-panel h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 26px;
}

.portal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.visitor-request-list {
  display: grid;
  gap: 12px;
}

.visitor-filter {
  display: grid;
  max-width: 320px;
  gap: 7px;
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.visitor-filter select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
}

.visitor-request-card strong {
  color: var(--blue-strong);
}

.manager-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(320px, 1fr);
  gap: 18px;
}

.exhibitor-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.manager-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--navy);
  background: var(--surface);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.manager-row.active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(226, 42, 53, 0.08);
}

.manager-row strong {
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
}

.manager-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manager-row > span:last-child {
  grid-column: 2;
}

.manager-row.suspended {
  border-color: rgba(226, 42, 53, 0.28);
  background: #fff7f7;
}

.manager-logo-wrap {
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.manager-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.request-list {
  display: grid;
  gap: 12px;
}

.request-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.request-card.approved {
  border-color: rgba(22, 138, 98, 0.3);
  background: #f3fbf7;
}

.request-card strong {
  color: var(--navy);
  font-size: 18px;
}

.request-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.request-actions select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
}

.portal-chat {
  display: grid;
  gap: 12px;
}

.portal-chat .chat-messages {
  min-height: 360px;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 26, 48, 0.58);
}

.login-page {
  background:
    linear-gradient(135deg, rgba(8, 26, 48, 0.82), rgba(18, 104, 195, 0.64)),
    url("assets/affiche-officielle-sigeuc-2026-v5.jpeg") center / cover;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 26px;
}

.login-page .modal-card {
  width: min(720px, 100%);
  max-height: min(92vh, 820px);
  overflow-y: auto;
}

.modal-card h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 34px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.login-helper {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.visitor-register-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.visitor-register-panel.hidden {
  display: none !important;
}

.form-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.visitor-register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.visitor-register-form h3,
.visitor-register-form .form-status,
.visitor-register-form button {
  grid-column: 1 / -1;
}

.visitor-register-form h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

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

.school-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  min-height: 220px;
  display: grid;
  grid-template-rows: 154px auto;
  align-content: start;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.school-card.suspended {
  opacity: 0.72;
  background: #fafafa;
}

.school-card-logo-frame {
  width: 100%;
  height: 154px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.school-card-logo-frame b {
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}


.school-card-logo-placeholder {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.school-card-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 7px;
  object-fit: contain;
  object-position: center;
}

.school-card:hover {
  border-color: rgba(18, 104, 195, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.school-card strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.school-card-stand {
  display: inline-flex;
  margin-bottom: 0;
  color: var(--red);
  font-weight: 900;
  justify-content: center;
}

.school-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.orientation-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 20px;
}

.orientation-form,
.recommendations {
  padding: 22px;
}

.orientation-form {
  display: grid;
  gap: 16px;
}

.recommendation-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.recommendation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.recommendation-item button {
  min-height: 34px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--blue);
  background: var(--surface);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--surface);
  background:
    linear-gradient(135deg, var(--navy), #103861 68%, #183d2d);
}

.contact-section h2,
.contact-section p {
  color: var(--surface);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .site-header nav.is-open {
    display: flex;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1050px) {
  .hero,
  .salon-workspace,
  .orientation-layout,
  .stand-detail,
  .registration-layout,
  .portal-shell,
  .manager-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .school-panel {
    position: static;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px 22px;
  }

  .school-panel .panel-actions,
  .school-panel .school-details {
    grid-column: 1 / -1;
  }

  .school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .document-upload-row,
  .stand-visitor-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 130px;
  }

  .site-header {
    align-items: start;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-logo {
    width: 96px;
    height: 48px;
  }

  .brand strong {
    font-size: 18px;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-actions .compact-button {
    min-width: 0;
  }

  .sponsor-band {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.02;
  }

  .hero-logo-title {
    max-width: 100%;
    line-height: 0;
  }

  .hero-logo-title img {
    width: min(360px, 100%);
    max-height: 160px;
  }

  .hero p {
    font-size: 17px;
  }

  .event-line span {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-media {
    width: 100%;
    min-width: 0;
  }

  .section-heading,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 32px;
  }

  .stats-section,
  .school-grid,
  .visitor-register-form,
  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .floor-map {
    min-height: 540px;
    min-width: 620px;
  }

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

  .stand-button {
    min-width: 42px;
    font-size: 10px;
  }

  .stand-tools,
  .chat-form,
  .request-actions,
  .recommendation-item {
    grid-template-columns: 1fr;
  }

  .chat-form {
    display: grid;
  }

  .school-panel {
    display: block;
  }

  .school-panel .panel-actions,
  .school-panel .school-details {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .primary-button,
  .secondary-button,
  .sponsor-button,
  .danger-button {
    width: 100%;
  }

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

  .portal-main,
  .portal-panel,
  .portal-shell {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

