:root {
  --blue: #1268c3;
  --blue-dark: #083b78;
  --red: #e81018;
  --ink: #102033;
  --muted: #637083;
  --line: #d7dfe8;
  --soft: #f3f7fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 59, 120, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

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

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

.brand-logo {
  display: block;
  width: 120px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

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

nav a:hover {
  color: var(--blue);
}

.header-action,
.primary-button,
.secondary-button,
.sponsor-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.header-action,
.primary-button {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 24px rgba(232, 16, 24, 0.2);
}

.secondary-button {
  color: var(--blue-dark);
  background: var(--white);
  border-color: var(--line);
}

.sponsor-button {
  color: #172233;
  background: #ffd84d;
  border-color: #f1b900;
  box-shadow: 0 12px 24px rgba(241, 185, 0, 0.18);
}

.sponsor-button:hover {
  background: #ffcb1f;
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(38px, 6vw, 86px) clamp(18px, 5vw, 72px);
}

.sponsor-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.sponsor-band strong {
  color: var(--blue-dark);
  font-size: 14px;
  text-transform: uppercase;
}

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

.sponsor-logo {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--blue-dark);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 26px 0 0;
  color: #2d3b4c;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.35;
}

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

.event-line span {
  border-left: 4px solid var(--red);
  background: var(--soft);
  padding: 11px 13px;
  color: var(--blue-dark);
  font-weight: 800;
}

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

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

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.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(--white);
  border-bottom: 4px solid var(--blue);
}

.stat-card strong {
  display: block;
  color: var(--blue);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

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

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

.intro-strip div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 18px;
}

.intro-strip strong {
  color: #68b7ff;
  font-size: 28px;
}

.intro-strip span {
  font-weight: 800;
}

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

.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

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

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

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

.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(--white);
  box-shadow: var(--shadow);
}

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

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

.map-note {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.floor-map {
  position: relative;
  min-height: 620px;
  border: 3px solid #172233;
  border-bottom-width: 0;
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(90deg, rgba(18, 104, 195, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(18, 104, 195, 0.07) 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: 8px;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.08);
  cursor: pointer;
}

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

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

.grand-stand {
  position: absolute;
  right: 1.8%;
  top: 20%;
  display: grid;
  width: 10.5%;
  height: 50%;
  place-items: center;
  border: 2px solid #aeb8c4;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #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 {
  padding: 22px;
}

.panel-logo {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
  font-size: 30px;
  font-weight: 900;
}

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

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

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

.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 {
  background: var(--white);
}

.stand-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 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(--white);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(8, 59, 120, 0.92), rgba(18, 104, 195, 0.84)),
    url("assets/plan-sige.jpeg") center / cover;
}

#videoEmbed,
#videoEmbed iframe {
  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.4);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.video-frame strong {
  font-size: clamp(28px, 4vw, 44px);
  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(--blue-dark);
  font-size: 28px;
  line-height: 1.05;
}

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

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

.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(--blue-dark);
  font-weight: 800;
}

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

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--blue-dark);
}

.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(--white);
  cursor: pointer;
}

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

.message-meta {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  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(--white);
  background: var(--blue);
}

.chat-form {
  display: grid;
  grid-template-columns: 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 {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.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.28);
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 72%);
}

.registration-form.exhibitor-registration {
  border-color: rgba(28, 128, 91, 0.3);
  background: linear-gradient(180deg, #eefbf5 0%, #ffffff 72%);
}

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

.registration-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

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

.danger-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 16, 24, 0.3);
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--red);
  background: #fff5f5;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

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

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

.portal-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 18px;
}

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

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

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

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

.portal-main {
  padding: 18px;
}

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

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

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

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

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

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.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;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--blue-dark);
  background: var(--white);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.manager-row.active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(232, 16, 24, 0.08);
}

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

.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(--white);
}

.request-card.approved {
  border-color: rgba(28, 128, 91, 0.3);
  background: #f3fbf7;
}

.request-card strong {
  color: var(--blue-dark);
  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(--white);
}

.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(16, 32, 51, 0.5);
}

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

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

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

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

.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(--white);
}

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

.school-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 900;
}

.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;
}

.orientation-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.orientation-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.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);
  color: var(--blue);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--blue-dark);
  color: var(--white);
}

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

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

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

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

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

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 100%;
  }

  nav {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions .compact-button {
    flex: 1;
  }

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

  .hero {
    min-height: auto;
  }

  .intro-strip,
  .school-grid,
  .stats-section {
    grid-template-columns: 1fr;
  }

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

  .floor-map {
    min-height: 540px;
    overflow-x: auto;
  }

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

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

  .school-panel {
    display: block;
  }

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