.login-page .login-submit,
.take-shell .primary-action,
.take-shell .ticket-actions button,
.details-shell .primary-action {
  background: var(--st-gradient);
}

.nav-inner,
.public-header,
.display-top {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner,
.public-header {
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(8, 44, 70, 0.06);
}

.brand,
.header-brand,
.brand-logo {
  align-items: center;
}

.nav-links a,
.header-link,
.menu-toggle {
  border-radius: 999px;
  font-family: var(--st-font-heading);
  font-weight: 720;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-links a:hover,
.header-link:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
}

.nav-links .login-link,
.header-actions .header-link:last-child {
  border-color: rgba(22, 184, 255, 0.24);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 18px rgba(8, 44, 70, 0.06);
}

.public-card,
.details-shell .detail-card,
.take-shell .take-card {
  border-color: var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfe 100%);
}

.login-page,
.public-home,
.public-shell,
.details-shell,
.take-shell {
  background:
    radial-gradient(circle at 82% 0%, rgba(40, 224, 215, 0.06), transparent 28%),
    radial-gradient(circle at 8% 16%, rgba(22, 184, 255, 0.05), transparent 26%),
    linear-gradient(180deg, #f7fdff 0%, #f2f9fc 52%, #ffffff 100%);
}

.login-card,
.flow-panel,
.brand-point,
.take-hero,
.take-card,
.ticket-card,
.live-card,
.turn-card,
.details-shell .topbar,
.details-shell .hero-card,
.details-shell .info-card,
.details-shell .service-card,
.public-card,
.structure-card,
.service-card {
  box-shadow: var(--st-shadow-premium);
}

.login-card,
.take-card,
.ticket-card,
.live-card,
.turn-card,
.hero-card,
.info-card,
.structure-card,
.service-card,
.public-card {
  border-color: var(--st-border-soft);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.login-card:hover,
.flow-panel:hover,
.brand-point:hover,
.details-shell .service-card:hover,
.structure-card:hover,
.service-card:hover {
  box-shadow: var(--st-shadow-card);
}

.login-submit,
.take-shell button,
.details-shell .primary-action,
.details-shell .action-primary,
.public-flow-hero .hero-cta,
.hero-actions .primary-action {
  box-shadow: var(--st-glow-soft);
}

.login-submit:hover,
.take-shell button:hover,
.details-shell .primary-action:hover,
.details-shell .action-primary:hover {
  box-shadow: var(--st-glow);
}

.login-form input:focus,
.login-form select:focus,
.take-shell input:focus,
.take-shell select:focus,
.take-shell textarea:focus,
.details-shell input:focus,
.details-shell select:focus,
.details-shell textarea:focus {
  border-color: rgba(22, 184, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(22, 184, 255, 0.12);
}

.details-shell .service-card,
.structure-card,
.service-card,
.public-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: var(--st-card-gap);
}

.structure-card,
.service-card {
  justify-content: flex-start;
}

.details-shell .service-card img,
.structure-card img,
.service-card img,
.public-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 156px;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
}

.details-shell .service-card .actions,
.structure-card .actions,
.service-card .actions,
.public-card .actions,
.hero-actions {
  align-items: center;
  margin-top: auto;
}

.public-flow-hero::before {
  opacity: 0.36;
  filter: blur(1px);
}

.public-flow-hero::after {
  opacity: 0.26;
}

.hero,
.public-flow-hero,
.take-hero {
  isolation: isolate;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 27, 59, 0.48), rgba(7, 27, 59, 0.30)),
    radial-gradient(circle at 40% 20%, rgba(40, 224, 215, 0.16), transparent 34%);
}

.take-hero h1,
.public-flow-hero h1,
.hero-copy h1,
.login-brand h1 {
  letter-spacing: 0;
}

.ticket-number,
#ticketNumber {
  color: var(--st-navy);
  text-shadow: none;
}

.empty-search,
.empty-state,
.selected-card.empty-guide,
.slots-empty,
.now-next-empty,
.daily-agenda-empty {
  padding: 20px;
  border: 1px dashed rgba(22, 184, 255, 0.24);
  border-radius: var(--st-radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--st-text-muted);
}

@media (max-width: 768px) {
  .nav-inner,
  .public-header {
    min-height: 58px;
    padding: 8px 10px;
  }

  .brand-logo-img,
  .header-brand .brand-logo-img {
    max-height: 34px;
  }

  .menu-toggle {
    width: 42px;
    min-height: 38px;
    padding: 0;
  }

  .nav-links {
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(7, 27, 59, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--st-shadow-premium);
  }

  .nav-links a,
  .header-link {
    min-height: 38px;
    padding: 9px 12px;
  }

  .login-page {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 16px 28px;
  }

  .login-brand {
    gap: 14px;
  }

  .login-brand h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 11vw, 2.8rem);
    line-height: 1.04;
  }

  .login-card {
    padding: 26px 20px;
  }

  .login-card h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .take-shell,
  .details-shell,
  .public-shell {
    gap: 16px;
    padding-block: 16px 24px;
  }

  .take-hero,
  .public-flow-hero,
  .details-shell .hero-card {
    padding: 22px 18px;
  }

  .hero,
  .public-flow-hero {
    min-height: auto;
    padding-block: 74px 28px;
  }

  .take-hero h1,
  .public-flow-hero h1,
  .hero-copy h1,
  .hero-title {
    display: -webkit-box;
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.04;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .take-hero p,
  .public-flow-hero p,
  .hero-subtitle {
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .login-page,
  .take-shell,
  .details-shell {
    padding-inline: 12px;
  }

  .hero-actions,
  .details-shell .service-card .actions,
  .take-shell .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions > *,
  .details-shell .service-card .actions > *,
  .take-shell .actions > * {
    width: 100%;
  }
}

.display-shell {
  background:
    radial-gradient(circle at 78% 4%, rgba(40, 224, 215, 0.07), transparent 30%),
    linear-gradient(180deg, #f7fdff 0%, #f3f9fc 100%);
}

.display-hero,
.display-panel,
.display-side,
.qr-card {
  box-shadow: var(--st-shadow-premium);
}

.display-panel {
  border-color: rgba(22, 184, 255, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
}

.display-panel::before {
  opacity: 0.72;
}

.display-simple-view .current-ticket,
.display-locked-state .current-ticket,
#currentTicket {
  letter-spacing: 0;
  text-shadow: none;
}

.display-simple-view .current-ticket:not(.is-empty),
#currentTicket:not(.is-empty) {
  color: var(--st-navy);
}

.display-simple-view {
  gap: clamp(18px, 3vw, 34px);
}

.display-side .metric-value,
.next-card strong {
  color: var(--st-navy);
}

.qr-card {
  align-items: center;
  gap: 14px;
  text-align: center;
}

@media (min-width: 900px) {
  .display-simple-view .current-ticket,
  #currentTicket {
    font-size: clamp(7rem, 15vw, 14rem);
    line-height: 0.9;
  }
}

@media (max-width: 480px) {
  .hero,
  .public-flow-hero {
    padding-block: 66px 22px;
  }

  .hero-title,
  .take-hero h1,
  .public-flow-hero h1,
  .login-brand h1 {
    font-size: clamp(1.9rem, 10vw, 2.35rem);
  }

  .hero-search,
  .hero-actions {
    margin-top: 12px;
  }
}

/* Public navbar final polish */
.nav {
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 27, 59, 0.72);
  box-shadow: 0 8px 24px rgba(8, 44, 70, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.theme-light .nav {
  border-bottom-color: rgba(8, 44, 70, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.nav-inner {
  width: min(1180px, 100%);
  min-height: 76px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.public-header {
  width: min(1180px, calc(100% - clamp(32px, 8vw, 96px)));
  min-height: 72px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(8, 44, 70, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(8, 44, 70, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.theme-light .public-header {
  border-bottom-color: rgba(8, 44, 70, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.nav .brand,
.public-header .header-brand {
  min-height: 44px;
  gap: 10px;
}

.nav .brand-logo-img,
.public-header .brand-logo-img {
  max-height: 40px;
  filter: none;
}

.nav .brand img.brand-logo-img.logo-full,
.public-header .header-brand img.brand-logo-img.logo-full {
  width: auto;
  height: 40px;
  max-width: 190px;
}

.nav .brand-logo-img.logo-mini,
.public-header .brand-logo-img.logo-mini {
  width: 34px;
  height: 34px;
  max-height: 34px;
}

.nav .brand-logo-fallback,
.public-header .brand-logo-fallback {
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav .brand img.logo-full {
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: cover;
  object-position: left center;
}

.nav .brand img.logo-full + .brand-logo-fallback,
.nav .brand img.logo-mini + .brand-logo-fallback {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: nowrap;
}

.nav-links {
  gap: 4px;
}

.header-actions {
  gap: 6px;
}

.public-header .header-link {
  color: var(--st-navy);
}

.nav-links a,
.header-link {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
}

body.theme-light .nav-links a,
body.theme-light .header-link,
.public-header .header-link {
  color: var(--st-navy);
}

.nav-links a:hover,
.header-link:hover {
  border-color: rgba(40, 224, 215, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--st-aqua);
  transform: translateY(-1px);
}

body.theme-light .nav-links a:hover,
body.theme-light .header-link:hover,
.public-header .header-link:hover {
  border-color: rgba(22, 184, 255, 0.18);
  background: var(--st-surface-soft);
  color: var(--st-cyan);
}

.nav-links .login-link,
.header-actions .header-link:last-child {
  min-height: 42px;
  padding: 10px 18px;
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--st-gradient);
  box-shadow: 0 8px 18px rgba(8, 44, 70, 0.1);
  color: var(--st-white);
  font-weight: 800;
}

.nav-links .login-link:hover,
.header-actions .header-link:last-child:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(135deg, var(--st-aqua), var(--st-cyan));
  box-shadow: 0 10px 22px rgba(8, 44, 70, 0.14);
  color: var(--st-white);
}

.theme-toggle {
  width: 54px;
  min-width: 54px;
  height: 32px;
  min-height: 32px;
  padding: 3px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.theme-light .theme-toggle {
  border-color: rgba(8, 44, 70, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.theme-toggle::before {
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  box-shadow: 0 4px 12px rgba(8, 44, 70, 0.12);
}

body.theme-light .theme-toggle::before {
  transform: translateX(22px);
}

.theme-icon {
  width: 24px;
  height: 24px;
  font-size: 0.78rem;
}

.menu-toggle {
  width: 42px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.08rem;
}

@media (max-width: 768px) {
  .nav {
    min-height: 64px;
    padding: 0 12px;
  }

  .nav-inner {
    width: 100%;
    min-height: 64px;
  }

  .public-header {
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 0;
  }

  .nav .brand,
  .public-header .header-brand {
    min-height: 40px;
    gap: 8px;
  }

  .nav .brand-logo-img,
  .public-header .brand-logo-img {
    max-height: 34px;
  }

  .nav .brand img.brand-logo-img.logo-full,
  .public-header .header-brand img.brand-logo-img.logo-full {
    width: auto;
    height: 34px;
    max-width: 152px;
  }

  .nav .brand-logo-img.logo-mini,
  .public-header .brand-logo-img.logo-mini {
    width: 30px;
    height: 30px;
    max-height: 30px;
  }

  .nav .brand-logo-fallback,
  .public-header .brand-logo-fallback {
    font-size: 1.02rem;
  }

  .menu-toggle {
    width: 40px;
    min-height: 38px;
  }

  .nav-links {
    top: 68px;
    right: 12px;
    left: 12px;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(7, 27, 59, 0.86);
    box-shadow: 0 14px 30px rgba(8, 44, 70, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.theme-light .nav-links {
    border-color: rgba(8, 44, 70, 0.08);
    background: rgba(255, 255, 255, 0.94);
  }

  .nav-links a,
  .header-link {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.93rem;
  }

  .nav-links .login-link,
  .header-actions .header-link:last-child {
    min-height: 40px;
    padding: 10px 16px;
  }

  .theme-toggle {
    width: 50px;
    min-width: 50px;
    height: 30px;
    min-height: 30px;
  }

  .theme-toggle::before {
    width: 22px;
    height: 22px;
  }

  body.theme-light .theme-toggle::before {
    transform: translateX(20px);
  }
}

@media (max-width: 390px) {
  .nav {
    padding: 0 10px;
  }

  .public-header {
    width: calc(100% - 20px);
  }

  .nav-links {
    right: 10px;
    left: 10px;
  }
}

/* Landing hero final polish */
#top > .hero {
  padding: clamp(28px, 5vw, 62px) 0 clamp(34px, 5vw, 68px);
  background:
    radial-gradient(circle at 76% 18%, rgba(40, 224, 215, 0.12), transparent 34%),
    radial-gradient(circle at 18% 26%, rgba(22, 184, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(7, 27, 59, 0.1), transparent 72%);
}

body.theme-light #top > .hero {
  background:
    radial-gradient(circle at 76% 18%, rgba(40, 224, 215, 0.18), transparent 34%),
    radial-gradient(circle at 18% 26%, rgba(22, 184, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(247, 253, 255, 0.7), transparent 72%);
}

#top > .hero::before {
  top: clamp(58px, 11vw, 118px);
  right: clamp(8px, 6vw, 96px);
  width: clamp(190px, 28vw, 340px);
  opacity: 0.045;
  filter: drop-shadow(0 18px 46px rgba(40, 224, 215, 0.16)) blur(0.1px);
}

#top > .hero .hero-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.86fr);
  gap: clamp(24px, 4vw, 52px);
}

#top > .hero .reveal:first-child {
  max-width: 660px;
}

#top > .hero h1 {
  max-width: 18ch;
  margin: 14px 0 12px;
  font-size: clamp(2.55rem, 4.35vw, 4.7rem);
  line-height: 1;
}

#top > .hero .hero-copy {
  max-width: 600px;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.56;
}

#top > .hero .hero-actions {
  gap: 10px;
  margin-top: 18px;
}

#top > .hero .trust-row {
  gap: 8px;
  margin-top: 18px;
}

#top > .hero .btn {
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 999px;
}

#top > .hero .btn-primary {
  box-shadow: 0 10px 24px rgba(40, 224, 215, 0.18);
}

#top > .hero .btn:hover {
  box-shadow: 0 12px 26px rgba(8, 44, 70, 0.12);
}

#top > .hero .mockup {
  align-self: center;
  padding: 16px;
  border-color: rgba(40, 224, 215, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 27, 59, 0.72);
  box-shadow: 0 18px 44px rgba(4, 17, 34, 0.24);
}

body.theme-light #top > .hero .mockup {
  border-color: rgba(22, 184, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 253, 0.86)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(8, 44, 70, 0.1);
}

#top > .hero .mockup::before {
  opacity: 0.5;
  filter: blur(14px);
}

#top > .hero .mockup-bar {
  margin-bottom: 12px;
  color: rgba(233, 252, 255, 0.82);
}

body.theme-light #top > .hero .mockup-bar {
  color: rgba(7, 27, 59, 0.58);
}

#top > .hero .live-ticket {
  padding: clamp(18px, 3vw, 28px);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
}

body.theme-light #top > .hero .live-ticket {
  border-color: rgba(22, 184, 255, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

#top > .hero .ticket-number {
  margin: 8px 0 14px;
  color: var(--st-aqua);
  font-size: clamp(4.4rem, 9vw, 7.2rem);
  line-height: 0.9;
  text-shadow: none;
}

body.theme-light #top > .hero .ticket-number {
  color: var(--st-navy);
}

#top > .hero .mini-stat {
  padding: 11px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(7, 27, 59, 0.42);
}

body.theme-light #top > .hero .mini-stat {
  border-color: rgba(8, 44, 70, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

/* Public search hero polish */
.home-shell > .hero {
  min-height: clamp(340px, 58vh, 560px);
  height: auto;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(8, 44, 70, 0.12);
}

.home-shell > .hero .hero-overlay {
  background: linear-gradient(135deg, rgba(7, 27, 59, 0.74), rgba(8, 44, 70, 0.52) 54%, rgba(22, 184, 255, 0.32));
}

.home-shell > .hero .hero-content {
  max-width: 680px;
  padding: clamp(12px, 2.5vw, 18px);
}

.home-shell > .hero .hero-title {
  max-width: 14ch;
  font-size: clamp(2.1rem, 4vw, 3.05rem);
  line-height: 1.03;
}

.home-shell > .hero .hero-subtitle {
  max-width: 560px;
  margin-top: 8px;
  line-height: 1.5;
}

.home-shell > .hero .hero-search {
  margin-top: 14px;
}

@media (max-width: 980px) {
  #top > .hero {
    padding-block: 28px 40px;
  }

  #top > .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #top > .hero .mockup {
    width: min(100%, 620px);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  #top > .hero {
    padding-block: 24px 34px;
  }

  #top > .hero::before {
    top: 84px;
    right: -44px;
    width: 190px;
    opacity: 0.035;
  }

  #top > .hero h1 {
    max-width: 100%;
    margin: 12px 0 10px;
    font-size: clamp(2.12rem, 9vw, 2.85rem);
    line-height: 1.02;
  }

  #top > .hero .hero-copy {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  #top > .hero .hero-actions {
    gap: 8px;
    margin-top: 14px;
  }

  #top > .hero .trust-row {
    margin-top: 14px;
  }

  #top > .hero .eyebrow {
    max-width: 100%;
    width: fit-content;
  }

  #top > .hero .mockup {
    padding: 12px;
    border-radius: 20px;
  }

  #top > .hero .ticket-number {
    font-size: clamp(3.6rem, 19vw, 5rem);
  }

  .home-shell > .hero {
    min-height: 330px;
    padding: 20px;
  }

  .home-shell > .hero .hero-title {
    max-width: 18ch;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .home-shell > .hero .hero-search {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .home-shell > .hero .search-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  #top > .hero h1 {
    font-size: clamp(2rem, 9.2vw, 2.45rem);
  }

  #top > .hero .badge,
  #top > .hero .eyebrow {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 0.76rem;
  }

  .home-shell > .hero {
    min-height: 310px;
    padding: 18px;
  }
}

/* Sectors section premium polish */
#sectors {
  position: relative;
  overflow: hidden;
  padding-block: clamp(42px, 6vw, 74px);
  isolation: isolate;
}

#sectors::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(40, 224, 215, 0.09), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(22, 184, 255, 0.075), transparent 30%),
    linear-gradient(180deg, transparent, rgba(7, 27, 59, 0.18) 52%, transparent);
  opacity: 0.9;
  pointer-events: none;
}

body.theme-light #sectors::before {
  background:
    radial-gradient(circle at 12% 12%, rgba(40, 224, 215, 0.14), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(22, 184, 255, 0.1), transparent 30%),
    linear-gradient(180deg, transparent, rgba(247, 253, 255, 0.92) 54%, transparent);
}

#sectors .section-head {
  max-width: 720px;
  margin-bottom: clamp(18px, 3vw, 28px);
  gap: 9px;
}

#sectors .section-head h2 {
  max-width: 13.5ch;
  line-height: 1.02;
}

#sectors .section-head p {
  max-width: 620px;
  line-height: 1.55;
}

#sectors .sector-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

#sectors .sector-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(7, 27, 59, 0.7);
  box-shadow: 0 14px 34px rgba(4, 17, 34, 0.2);
}

body.theme-light #sectors .sector-card {
  border-color: var(--st-border-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 253, 0.86)),
    var(--st-surface-soft);
  box-shadow: var(--st-shadow-card);
}

#sectors .sector-card::before {
  content: "";
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
  border: 1px solid rgba(40, 224, 215, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(40, 224, 215, 0.2), rgba(22, 184, 255, 0.12)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 22px rgba(4, 17, 34, 0.12);
}

#sectors .sector-card::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 18px;
  height: 18px;
  background: var(--st-aqua);
  opacity: 0.95;
  pointer-events: none;
  -webkit-mask: var(--sector-icon) center / contain no-repeat;
  mask: var(--sector-icon) center / contain no-repeat;
}

body.theme-light #sectors .sector-card::before {
  border-color: rgba(22, 184, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(40, 224, 215, 0.16), rgba(22, 184, 255, 0.1)),
    rgba(255, 255, 255, 0.72);
}

body.theme-light #sectors .sector-card::after {
  background: var(--st-navy);
}

#sectors .sector-card:nth-child(1) {
  --sector-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 21h18v-2H3v2Zm2-3h2v-7H5v7Zm4 0h2v-7H9v7Zm4 0h2v-7h-2v7Zm4 0h2v-7h-2v7ZM3 9h18V7L12 2 3 7v2Zm5-2 4-2.2L16 7H8Z'/%3E%3C/svg%3E");
}

#sectors .sector-card:nth-child(2) {
  --sector-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10 3h4v6h6v4h-6v8h-4v-8H4V9h6V3Z'/%3E%3C/svg%3E");
}

#sectors .sector-card:nth-child(3) {
  --sector-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 5 5v6c0 4.4 2.8 8.5 7 10 4.2-1.5 7-5.6 7-10V5l-7-3Zm0 2.2 5 2.1V11c0 3.2-1.9 6.3-5 7.7-3.1-1.4-5-4.5-5-7.7V6.3l5-2.1Z'/%3E%3C/svg%3E");
}

#sectors .sector-card:nth-child(4) {
  --sector-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 21h16v-2H4v2Zm2-3h3v-4H6v4Zm5 0h2v-4h-2v4Zm4 0h3v-4h-3v4ZM5 12h14V5c0-1.1-.9-2-2-2H7c-1.1 0-2 .9-2 2v7Zm3-6h2v2H8V6Zm6 0h2v2h-2V6Zm-6 4h2v2H8v-2Zm6 0h2v2h-2v-2Z'/%3E%3C/svg%3E");
}

#sectors .sector-card:nth-child(5) {
  --sector-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 7V6a5 5 0 0 1 10 0v1h3v14H4V7h3Zm2 0h6V6a3 3 0 0 0-6 0v1Zm-3 2v10h12V9H6Z'/%3E%3C/svg%3E");
}

#sectors .sector-card:nth-child(6) {
  --sector-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a8 8 0 0 0-8 8v4a3 3 0 0 0 3 3h2v-7H6a6 6 0 0 1 12 0h-3v7h1.2A4.8 4.8 0 0 1 12 20h-2v2h2a6.8 6.8 0 0 0 6.7-5.6A3 3 0 0 0 20 14v-3a8 8 0 0 0-8-8Z'/%3E%3C/svg%3E");
}

#sectors .sector-card h3 {
  font-size: 1.04rem;
  line-height: 1.15;
}

#sectors .sector-card p {
  font-size: 0.92rem;
  line-height: 1.5;
}

#sectors .sector-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 224, 215, 0.28);
  box-shadow: 0 18px 42px rgba(4, 17, 34, 0.26);
}

body.theme-light #sectors .sector-card:hover {
  border-color: rgba(22, 184, 255, 0.24);
  box-shadow: var(--st-shadow-premium);
}

@media (max-width: 1180px) {
  #sectors .sector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #sectors {
    padding-block: 34px 42px;
  }

  #sectors .section-head {
    margin-bottom: 16px;
  }

  #sectors .section-head h2 {
    max-width: 15ch;
    line-height: 1.05;
  }

  #sectors .sector-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #sectors .sector-card {
    min-height: auto;
    padding: 16px;
  }
}

@media (max-width: 420px) {
  #sectors .section-head h2 {
    max-width: 100%;
  }
}

/* Visitor experience section polish */
#experience {
  position: relative;
  overflow: hidden;
  padding-block: clamp(42px, 6vw, 72px);
  isolation: isolate;
}

#experience::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  z-index: -1;
  height: 70%;
  background:
    radial-gradient(circle at 50% 0%, rgba(40, 224, 215, 0.08), transparent 34%),
    radial-gradient(circle at 12% 54%, rgba(22, 184, 255, 0.055), transparent 28%);
  pointer-events: none;
}

body.theme-light #experience::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(40, 224, 215, 0.13), transparent 34%),
    radial-gradient(circle at 12% 54%, rgba(22, 184, 255, 0.09), transparent 28%);
}

#experience .section-head {
  max-width: 720px;
  margin-bottom: clamp(18px, 3vw, 28px);
  gap: 9px;
}

#experience .section-head h2 {
  max-width: 13.5ch;
  line-height: 1.03;
}

#experience .section-head p {
  max-width: 620px;
  line-height: 1.55;
}

#experience .card-grid {
  align-items: stretch;
  gap: 14px;
}

#experience .feature-card {
  position: relative;
  min-height: 230px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 24px);
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(7, 27, 59, 0.7);
  box-shadow: 0 14px 34px rgba(4, 17, 34, 0.2);
}

body.theme-light #experience .feature-card {
  border-color: var(--st-border-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 253, 0.88)),
    var(--st-surface-soft);
  box-shadow: var(--st-shadow-card);
}

#experience .feature-card::after {
  content: "";
  position: absolute;
  inset: auto -22% -42% 26%;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(40, 224, 215, 0.14), transparent 68%);
  opacity: 0.75;
  pointer-events: none;
}

#experience .feature-card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  border: 1px solid rgba(40, 224, 215, 0.22);
  border-radius: 16px;
  color: var(--st-navy);
  background: linear-gradient(135deg, var(--st-aqua), var(--st-cyan));
  box-shadow: 0 10px 22px rgba(8, 44, 70, 0.14);
  font-size: 1rem;
  font-weight: 800;
}

body.theme-light #experience .feature-card .icon {
  box-shadow: 0 10px 22px rgba(8, 44, 70, 0.1);
}

#experience .feature-card h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  line-height: 1.16;
}

#experience .feature-card p {
  max-width: 34ch;
  font-size: 0.96rem;
  line-height: 1.55;
}

#experience .feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 224, 215, 0.28);
  box-shadow: 0 18px 42px rgba(4, 17, 34, 0.26);
}

body.theme-light #experience .feature-card:hover {
  border-color: rgba(22, 184, 255, 0.24);
  box-shadow: var(--st-shadow-premium);
}

@media (max-width: 980px) {
  #experience .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #experience .feature-card {
    min-height: 250px;
  }
}

@media (max-width: 760px) {
  #experience {
    padding-block: 34px 42px;
  }

  #experience .section-head {
    margin-bottom: 16px;
  }

  #experience .section-head h2 {
    max-width: 15ch;
    line-height: 1.06;
  }

  #experience .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #experience .feature-card {
    min-height: auto;
    padding: 16px;
  }

  #experience .feature-card p {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  #experience .section-head h2 {
    max-width: 100%;
  }

  #experience .feature-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}

/* Admin dashboard preview polish */
#demo {
  position: relative;
  overflow: hidden;
  padding-block: clamp(42px, 6vw, 74px);
  isolation: isolate;
}

#demo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 18%, rgba(40, 224, 215, 0.09), transparent 30%),
    radial-gradient(circle at 16% 72%, rgba(22, 184, 255, 0.055), transparent 30%);
  pointer-events: none;
}

body.theme-light #demo::before {
  background:
    radial-gradient(circle at 76% 18%, rgba(40, 224, 215, 0.14), transparent 30%),
    radial-gradient(circle at 16% 72%, rgba(22, 184, 255, 0.09), transparent 30%);
}

#demo .section-head {
  max-width: 720px;
  margin-bottom: clamp(18px, 3vw, 28px);
  gap: 9px;
}

#demo .section-head h2 {
  max-width: 14ch;
  line-height: 1.03;
}

#demo .section-head p {
  max-width: 620px;
  line-height: 1.55;
}

#demo .admin-preview {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(14px, 2.4vw, 20px);
  align-items: stretch;
  padding: clamp(16px, 3vw, 24px);
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.026)),
    rgba(7, 27, 59, 0.76);
  box-shadow: 0 18px 44px rgba(4, 17, 34, 0.22);
}

body.theme-light #demo .admin-preview {
  border-color: var(--st-border-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 253, 0.9)),
    var(--st-surface-soft);
  box-shadow: var(--st-shadow-premium);
}

#demo .admin-kpis {
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#demo .kpi-card {
  position: relative;
  min-height: 126px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(7, 27, 59, 0.48);
  box-shadow: none;
}

body.theme-light #demo .kpi-card {
  border-color: rgba(8, 44, 70, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

#demo .kpi-card::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--st-gradient);
  opacity: 0.85;
}

#demo .kpi-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 224, 215, 0.12), transparent 68%);
  pointer-events: none;
}

#demo .kpi-card span {
  margin-top: 10px;
  color: rgba(233, 252, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
}

body.theme-light #demo .kpi-card span {
  color: var(--st-text-muted);
}

#demo .kpi-card strong {
  margin-top: 7px;
  color: var(--st-white);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
}

body.theme-light #demo .kpi-card strong {
  color: var(--st-navy);
}

#demo .service-list {
  gap: 10px;
}

#demo .service-row {
  min-height: 58px;
  padding: 13px 14px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

body.theme-light #demo .service-row {
  border-color: rgba(8, 44, 70, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

#demo .service-row strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

#demo .service-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(40, 224, 215, 0.16);
  border-radius: 999px;
  color: var(--st-aqua);
  background: rgba(40, 224, 215, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

body.theme-light #demo .service-row span {
  color: var(--st-navy);
  background: rgba(40, 224, 215, 0.11);
}

#demo .kpi-card:hover,
#demo .service-row:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 224, 215, 0.24);
  box-shadow: 0 14px 30px rgba(4, 17, 34, 0.16);
}

body.theme-light #demo .kpi-card:hover,
body.theme-light #demo .service-row:hover {
  border-color: rgba(22, 184, 255, 0.22);
  box-shadow: var(--st-shadow-card);
}

@media (max-width: 980px) {
  #demo .admin-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #demo {
    padding-block: 34px 42px;
  }

  #demo .section-head {
    margin-bottom: 16px;
  }

  #demo .section-head h2 {
    max-width: 15ch;
    line-height: 1.06;
  }

  #demo .admin-preview {
    padding: 14px;
    border-radius: 22px;
  }

  #demo .admin-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  #demo .kpi-card {
    min-height: 116px;
    padding: 14px;
  }

  #demo .service-row {
    min-height: 54px;
    gap: 10px;
    padding: 12px;
  }
}

@media (max-width: 420px) {
  #demo .section-head h2 {
    max-width: 100%;
  }

  #demo .admin-kpis {
    grid-template-columns: 1fr;
  }

  #demo .service-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #demo .service-row span {
    justify-self: start;
  }
}

/* Public footer polish */
.public-footer {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - clamp(24px, 6vw, 72px)));
  margin: clamp(18px, 3vw, 28px) auto 0;
  padding: clamp(18px, 3vw, 26px);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, auto) minmax(170px, auto);
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
  border: 1px solid rgba(8, 44, 70, 0.08);
  border-radius: 22px 22px 0 0;
  color: var(--st-text-muted);
  background:
    radial-gradient(circle at 8% 0%, rgba(40, 224, 215, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 253, 255, 0.72));
  box-shadow: 0 12px 30px rgba(8, 44, 70, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.public-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.74);
  pointer-events: none;
}

body:not(.theme-light) .public-footer {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(233, 252, 255, 0.66);
  background:
    radial-gradient(circle at 8% 0%, rgba(40, 224, 215, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(7, 27, 59, 0.78), rgba(7, 27, 59, 0.68));
  box-shadow: 0 14px 34px rgba(4, 17, 34, 0.18);
}

.public-footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: grid;
  gap: 7px;
  max-width: 420px;
}

.footer-brand strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--st-navy);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-brand strong::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--st-aqua), var(--st-cyan));
  box-shadow: 0 8px 18px rgba(8, 44, 70, 0.1);
}

body:not(.theme-light) .footer-brand strong {
  color: var(--st-white);
}

.footer-brand span {
  max-width: 36rem;
  color: var(--st-text-muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.55;
}

body:not(.theme-light) .footer-brand span {
  color: rgba(233, 252, 255, 0.68);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 2px;
  color: var(--st-navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body:not(.theme-light) .footer-links strong {
  color: rgba(255, 255, 255, 0.86);
}

.footer-links a,
.footer-links span {
  color: var(--st-text-muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
}

body:not(.theme-light) .footer-links a,
body:not(.theme-light) .footer-links span {
  color: rgba(233, 252, 255, 0.66);
}

.footer-links a {
  width: fit-content;
  padding: 3px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--st-cyan);
  text-decoration: none;
  transform: translateX(2px);
  outline: none;
}

.footer-links a:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 184, 255, 0.16);
}

@media (max-width: 760px) {
  .public-footer {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 18px 18px 0 0;
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .public-footer {
    width: calc(100% - 20px);
    gap: 16px;
    padding: 16px;
  }

  .footer-brand strong {
    font-size: 1.04rem;
  }

  .footer-links a,
  .footer-links span {
    font-size: 0.92rem;
  }
}

/* Landing visual identity unification */
:root {
  --st-institutional-shadow: 0 14px 36px rgba(4, 17, 34, 0.18);
  --st-institutional-shadow-soft: 0 10px 28px rgba(8, 44, 70, 0.1);
  --st-institutional-border: rgba(255, 255, 255, 0.1);
  --st-institutional-border-light: rgba(8, 44, 70, 0.08);
  --st-institutional-surface: rgba(7, 27, 59, 0.72);
  --st-institutional-surface-soft: rgba(255, 255, 255, 0.055);
}

#top > .hero,
#search,
#features,
#experience,
#sectors,
#demo,
#final {
  scroll-margin-top: 86px;
}

#top > .hero {
  background:
    radial-gradient(circle at 72% 20%, rgba(40, 224, 215, 0.075), transparent 34%),
    radial-gradient(circle at 18% 30%, rgba(22, 184, 255, 0.045), transparent 30%),
    linear-gradient(180deg, rgba(7, 27, 59, 0.04), transparent 72%);
}

body.theme-light #top > .hero {
  background:
    radial-gradient(circle at 72% 20%, rgba(40, 224, 215, 0.11), transparent 34%),
    radial-gradient(circle at 18% 30%, rgba(22, 184, 255, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(247, 253, 255, 0.76), transparent 72%);
}

#top > .hero::before,
#experience::before,
#sectors::before,
#demo::before {
  opacity: 0.58;
}

.nav,
.public-header {
  box-shadow: 0 8px 20px rgba(8, 44, 70, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body:not(.theme-light) .nav {
  background: rgba(7, 27, 59, 0.78);
}

.theme-toggle {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(40, 224, 215, 0.24);
  box-shadow: 0 8px 18px rgba(8, 44, 70, 0.08);
}

.theme-toggle::before {
  box-shadow: 0 4px 10px rgba(8, 44, 70, 0.12);
}

.nav-links .login-link,
.header-actions .header-link:last-child,
.btn-primary,
#top > .hero .btn-primary {
  color: var(--st-navy);
  background: linear-gradient(135deg, rgba(40, 224, 215, 0.96), rgba(22, 184, 255, 0.94));
  box-shadow: 0 8px 18px rgba(8, 44, 70, 0.12);
}

.nav-links .login-link:hover,
.header-actions .header-link:last-child:hover,
.btn-primary:hover,
#top > .hero .btn-primary:hover {
  box-shadow: 0 10px 22px rgba(8, 44, 70, 0.16);
}

.btn-secondary,
#top > .hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 27, 59, 0.68);
  box-shadow: none;
}

body.theme-light .btn-secondary,
body.theme-light #top > .hero .btn-secondary {
  color: var(--st-navy);
  border-color: rgba(8, 44, 70, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.btn:hover,
.structure-card:hover,
.feature-card:hover,
.sector-card:hover,
.admin-card:hover,
.kpi-card:hover,
#demo .service-row:hover {
  box-shadow: var(--st-institutional-shadow);
}

.structure-card,
.feature-card,
.sector-card,
.admin-card,
.kpi-card,
.qr-card,
.search-card,
.admin-preview,
.tv-screen,
.final-cta,
.demo-dialog,
#top > .hero .mockup,
#demo .admin-preview,
#experience .feature-card,
#sectors .sector-card,
.public-footer {
  border-color: var(--st-institutional-border);
  box-shadow: var(--st-institutional-shadow);
}

body.theme-light .structure-card,
body.theme-light .feature-card,
body.theme-light .sector-card,
body.theme-light .admin-card,
body.theme-light .kpi-card,
body.theme-light .qr-card,
body.theme-light .search-card,
body.theme-light .admin-preview,
body.theme-light .tv-screen,
body.theme-light .final-cta,
body.theme-light .demo-dialog,
body.theme-light #top > .hero .mockup,
body.theme-light #demo .admin-preview,
body.theme-light #experience .feature-card,
body.theme-light #sectors .sector-card,
body.theme-light .public-footer {
  border-color: var(--st-institutional-border-light);
  box-shadow: var(--st-institutional-shadow-soft);
}

#top > .hero .mockup,
#demo .admin-preview,
.search-card,
.final-cta,
.demo-dialog {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(7, 27, 59, 0.76);
}

body.theme-light #top > .hero .mockup,
body.theme-light #demo .admin-preview,
body.theme-light .search-card,
body.theme-light .final-cta,
body.theme-light .demo-dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 253, 255, 0.9)),
    rgba(255, 255, 255, 0.88);
}

#top > .hero .mockup::before {
  opacity: 0.25;
  filter: blur(10px);
}

#top > .hero .ticket-number {
  color: rgba(40, 224, 215, 0.92);
  text-shadow: none;
}

#search .structure-card,
.home-shell .structure-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.024)),
    rgba(7, 27, 59, 0.68);
  box-shadow: 0 12px 30px rgba(4, 17, 34, 0.16);
}

body.theme-light #search .structure-card,
body.theme-light .home-shell .structure-card {
  border-color: var(--st-institutional-border-light);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--st-institutional-shadow-soft);
}

#search .structure-card .btn-primary,
.home-shell .structure-card .ticket-action,
.home-shell .structure-card .details-link,
.home-shell .structure-card .secondary-action {
  box-shadow: none;
}

#experience .feature-card::after,
#sectors .sector-card::before,
#demo .kpi-card::after {
  opacity: 0.45;
}

#experience .feature-card .icon,
#sectors .sector-card::before,
#demo .kpi-card::before {
  box-shadow: 0 8px 16px rgba(8, 44, 70, 0.1);
}

#demo .kpi-card,
#demo .service-row,
#top > .hero .live-ticket,
#top > .hero .mini-stat {
  border-color: rgba(255, 255, 255, 0.095);
  background: rgba(255, 255, 255, 0.045);
}

body.theme-light #demo .kpi-card,
body.theme-light #demo .service-row,
body.theme-light #top > .hero .live-ticket,
body.theme-light #top > .hero .mini-stat {
  border-color: var(--st-institutional-border-light);
  background: rgba(255, 255, 255, 0.74);
}

.demo-modal {
  background: rgba(4, 12, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo-dialog {
  border-color: rgba(255, 255, 255, 0.12);
}

.public-footer {
  box-shadow: var(--st-institutional-shadow-soft);
}

@media (max-width: 760px) {
  #top > .hero::before,
  #experience::before,
  #sectors::before,
  #demo::before,
  #experience .feature-card::after,
  #demo .kpi-card::after {
    opacity: 0.35;
  }

  .structure-card,
  .feature-card,
  .sector-card,
  .admin-card,
  .kpi-card,
  .qr-card,
  .search-card,
  .admin-preview,
  .tv-screen,
  .final-cta,
  #top > .hero .mockup,
  #demo .admin-preview,
  #experience .feature-card,
  #sectors .sector-card {
    box-shadow: 0 10px 24px rgba(4, 17, 34, 0.14);
  }
}

/* Landing ticket/appointment simulation readability fixes */
#search .search-card {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(7, 27, 59, 0.78);
}

body.theme-light #search .search-card {
  border-color: rgba(8, 44, 70, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

#search .search-input input {
  color: var(--st-white);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

#search .search-input input::placeholder {
  color: rgba(233, 252, 255, 0.58);
}

body.theme-light #search .search-input input {
  color: var(--st-navy);
  border-color: rgba(8, 44, 70, 0.12);
  background: #ffffff;
}

body.theme-light #search .search-input input::placeholder {
  color: rgba(7, 27, 59, 0.48);
}

#search .search-trigger {
  color: var(--st-aqua);
}

body.theme-light #search .search-trigger {
  color: var(--st-cyan);
}

#search .structure-card {
  min-height: 100%;
  display: grid;
  gap: 14px;
  align-content: start;
  border-color: rgba(255, 255, 255, 0.105);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028)),
    rgba(7, 27, 59, 0.72);
}

body.theme-light #search .structure-card {
  border-color: rgba(8, 44, 70, 0.08);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

#search .structure-top {
  align-items: flex-start;
}

#search .structure-card h3 {
  color: var(--st-white);
  line-height: 1.18;
}

#search .structure-card p {
  color: rgba(233, 252, 255, 0.68);
}

body.theme-light #search .structure-card h3 {
  color: var(--st-navy);
}

body.theme-light #search .structure-card p {
  color: var(--st-text-muted);
}

#search .structure-card .badge {
  color: rgba(233, 252, 255, 0.82);
  border-color: rgba(40, 224, 215, 0.18);
  background: rgba(40, 224, 215, 0.08);
}

body.theme-light #search .structure-card .badge {
  color: var(--st-navy);
  border-color: rgba(22, 184, 255, 0.16);
  background: rgba(40, 224, 215, 0.1);
}

#search .structure-metrics {
  margin-top: auto;
}

#search .structure-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}

#search .structure-metrics span {
  color: rgba(233, 252, 255, 0.58);
}

#search .structure-metrics strong {
  color: var(--st-aqua);
}

body.theme-light #search .structure-metrics div {
  border-color: rgba(8, 44, 70, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light #search .structure-metrics span {
  color: var(--st-text-muted);
}

body.theme-light #search .structure-metrics strong {
  color: var(--st-navy);
}

#search .structure-card .demo-ticket-btn {
  width: 100%;
  margin-top: 2px;
  color: var(--st-navy);
  border-color: transparent;
  background: linear-gradient(135deg, rgba(40, 224, 215, 0.98), rgba(22, 184, 255, 0.96));
  box-shadow: 0 10px 20px rgba(8, 44, 70, 0.14);
}

#search .structure-card .demo-ticket-btn:hover,
#search .structure-card .demo-ticket-btn:focus-visible {
  color: var(--st-navy);
  box-shadow: 0 12px 24px rgba(8, 44, 70, 0.18);
}

#clientDemoModal.demo-modal {
  background: rgba(4, 12, 24, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.theme-light #clientDemoModal.demo-modal {
  background: rgba(239, 248, 251, 0.78);
}

#clientDemoModal .demo-dialog {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(7, 27, 59, 0.9);
  box-shadow: 0 24px 64px rgba(4, 17, 34, 0.34);
}

body.theme-light #clientDemoModal .demo-dialog {
  border-color: rgba(8, 44, 70, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
  box-shadow: 0 24px 54px rgba(8, 44, 70, 0.16);
}

#clientDemoModal .demo-close {
  color: var(--st-white);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-light #clientDemoModal .demo-close {
  color: var(--st-navy);
  border-color: rgba(8, 44, 70, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

#clientDemoModal .demo-title {
  color: var(--st-white);
}

#clientDemoModal .demo-text {
  color: rgba(233, 252, 255, 0.68);
}

body.theme-light #clientDemoModal .demo-title {
  color: var(--st-navy);
}

body.theme-light #clientDemoModal .demo-text {
  color: var(--st-text-muted);
}

#clientDemoModal .demo-meta div,
#clientDemoModal .progress-card,
#clientDemoModal .generated-ticket {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

body.theme-light #clientDemoModal .demo-meta div,
body.theme-light #clientDemoModal .progress-card,
body.theme-light #clientDemoModal .generated-ticket {
  border-color: rgba(8, 44, 70, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

#clientDemoModal .demo-meta span,
#clientDemoModal .generated-ticket span {
  color: rgba(233, 252, 255, 0.58);
}

#clientDemoModal .demo-meta strong,
#clientDemoModal .generated-ticket strong {
  color: var(--st-aqua);
  text-shadow: none;
}

body.theme-light #clientDemoModal .demo-meta span,
body.theme-light #clientDemoModal .generated-ticket span {
  color: var(--st-text-muted);
}

body.theme-light #clientDemoModal .demo-meta strong,
body.theme-light #clientDemoModal .generated-ticket strong {
  color: var(--st-navy);
}

#clientDemoModal .btn-primary {
  width: 100%;
  color: var(--st-navy);
  background: linear-gradient(135deg, rgba(40, 224, 215, 0.98), rgba(22, 184, 255, 0.96));
  box-shadow: 0 10px 20px rgba(8, 44, 70, 0.14);
}

#clientDemoModal .btn-primary:hover,
#clientDemoModal .btn-primary:focus-visible {
  color: var(--st-navy);
  box-shadow: 0 12px 24px rgba(8, 44, 70, 0.18);
}

#clientDemoModal .progress-track {
  background: rgba(255, 255, 255, 0.11);
}

#clientDemoModal .progress-fill {
  background: linear-gradient(90deg, var(--st-aqua), var(--st-cyan));
  box-shadow: none;
}

@media (max-width: 760px) {
  #search .structure-grid {
    grid-template-columns: 1fr;
  }

  #search .structure-card {
    min-height: auto;
  }

  #clientDemoModal .demo-dialog {
    border-radius: 24px;
  }

  #clientDemoModal .demo-meta {
    grid-template-columns: 1fr;
  }
}
