.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: auto;
  height: 40px;
  max-width: 190px;
  max-height: 40px;
}

.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: auto;
  height: 40px;
  max-width: 190px;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
}

.nav .brand img.logo-full + .brand-logo-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* Public structure cards: light premium surface */
#search .structure-card,
.home-shell .structure-card {
  color: #0f2d3d;
  border: 1px solid rgba(93, 188, 205, 0.24);
  background:
    linear-gradient(180deg, rgba(248, 253, 255, 0.94), rgba(224, 242, 247, 0.86));
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#search .structure-card:hover,
.home-shell .structure-card:hover,
.home-shell .structure-card.active,
.home-shell .structure-card.selected {
  border-color: rgba(81, 190, 210, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 246, 250, 0.9));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.home-shell .structure-card .card-title,
#search .structure-card h3 {
  color: #0f2d3d;
}

.home-shell .structure-card .card-text,
.home-shell .structure-card .card-description,
.home-shell .structure-card .card-address,
.home-shell .structure-card .card-address a,
.home-shell .structure-card .mode-summary,
#search .structure-card p {
  color: rgba(15, 45, 61, 0.72);
}

.home-shell .structure-card .structure-waiting,
.home-shell .structure-card .structure-count strong,
#search .structure-metrics strong {
  color: #0f5165;
}

.home-shell .structure-card .structure-count span,
#search .structure-metrics span {
  color: rgba(15, 45, 61, 0.62);
}

.home-shell .structure-card .badge,
#search .structure-card .badge {
  color: #0f5165;
  border-color: rgba(81, 190, 210, 0.25);
  background: rgba(224, 251, 255, 0.85);
}

.home-shell .structure-card .structure-media,
.home-shell .structure-card .structure-logo-badge {
  border-color: rgba(93, 188, 205, 0.2);
}

.home-shell .structure-card .structure-logo-badge,
#search .structure-card .structure-logo-badge {
  width: 58px;
  height: 58px;
  border: 3px solid #ffffff;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 47, 63, 0.18);
}

.home-shell .structure-card .structure-logo-badge img,
#search .structure-card .structure-logo-badge img {
  box-sizing: border-box;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  padding: 3px;
  border-radius: 12px;
  background: #ffffff;
}

.home-shell .structure-actions-column .details-link {
  color: #0f566b;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
}

body.theme-light #search .structure-card,
body.theme-light .home-shell .structure-card,
body.theme-light .home-shell .structure-card:hover,
body.theme-light .home-shell .structure-card.active,
body.theme-light .home-shell .structure-card.selected {
  color: #0f2d3d;
  border: 1px solid rgba(93, 188, 205, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 246, 250, 0.82));
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.theme-light .home-shell .structure-card .card-title,
body.theme-light #search .structure-card h3,
body.theme-light .home-shell .structure-card .structure-count strong,
body.theme-light #search .structure-metrics strong {
  color: var(--st-navy);
}

body.theme-light .home-shell .structure-card .card-text,
body.theme-light .home-shell .structure-card .card-description,
body.theme-light .home-shell .structure-card .card-address,
body.theme-light .home-shell .structure-card .card-address a,
body.theme-light .home-shell .structure-card .mode-summary,
body.theme-light .home-shell .structure-card .structure-count span,
body.theme-light #search .structure-card p,
body.theme-light #search .structure-metrics span {
  color: var(--st-text-muted);
}

body.theme-light .home-shell .structure-card .structure-waiting {
  color: #0f566b;
}

body.theme-light .home-shell .structure-card .badge,
body.theme-light #search .structure-card .badge {
  color: #0f5165;
  border-color: rgba(81, 190, 210, 0.25);
  background: rgba(224, 251, 255, 0.85);
}

@media (max-width: 768px) {
  .take-shell .take-hero.public-flow-hero {
    min-height: 260px;
    height: auto;
    align-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: visible;
  }

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

  .take-shell .take-hero.public-flow-hero::after {
    opacity: 0.18;
  }

  .take-shell .take-hero h1 {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

/* Display empty state + public CTA hover color fixes */
.display-shell #currentTicket.current-ticket.is-empty,
.display-simple-view .current-ticket.is-empty {
  max-width: 900px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
}

.details-shell .action-main {
  color: #063142;
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.2);
}

.home-shell .ticket-action:hover,
.home-shell .primary-structure-action:hover,
.home-shell .secondary-action:hover,
.home-shell .details-link:hover,
#search .structure-card .demo-ticket-btn:hover,
.take-shell .primary-action:hover,
.take-shell .secondary-action:hover,
.details-shell .action-main:hover,
.details-shell .btn:hover,
.display-shell .fullscreen-toggle:hover {
  color: #063142;
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.22);
}

@media (max-width: 520px) {
  .display-shell #currentTicket.current-ticket.is-empty,
  .display-simple-view .current-ticket.is-empty {
    font-size: clamp(1.65rem, 8vw, 2.9rem);
    line-height: 1.08;
  }
}

/* Final visual polish: quieter cyan, cooler shadows, softer premium surfaces */
.login-card,
.flow-panel,
.brand-badge,
.brand-point,
.public-card,
.details-shell .detail-card,
.take-shell .take-card,
.search-card,
.final-cta,
.demo-dialog {
  border-color: rgba(93, 188, 205, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 253, 0.9));
  box-shadow: 0 14px 34px rgba(8, 47, 63, 0.075);
}

.login-submit,
.take-shell .primary-action,
.take-shell .ticket-actions button,
.details-shell .primary-action,
.details-shell .action-primary,
.details-shell .action-main,
.public-flow-hero .hero-cta,
.hero-actions .primary-action,
.nav-links .login-link,
.header-actions .header-link:last-child,
.btn-primary,
#top > .hero .btn-primary,
#search .structure-card .demo-ticket-btn,
#clientDemoModal .btn-primary {
  color: #052d3b;
  border-color: rgba(14, 165, 195, 0.28);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.92), rgba(14, 165, 195, 0.9));
  box-shadow: 0 10px 22px rgba(8, 47, 63, 0.1);
}

.login-submit:hover,
.take-shell .primary-action:hover,
.take-shell .ticket-actions button:hover,
.details-shell .primary-action:hover,
.details-shell .action-primary:hover,
.details-shell .action-main:hover,
.public-flow-hero .hero-cta:hover,
.hero-actions .primary-action:hover,
.nav-links .login-link:hover,
.header-actions .header-link:last-child:hover,
.btn-primary:hover,
#top > .hero .btn-primary:hover,
#search .structure-card .demo-ticket-btn:hover,
#clientDemoModal .btn-primary:hover {
  color: #042331;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.86), rgba(14, 165, 195, 0.9));
  box-shadow: 0 12px 26px rgba(8, 47, 63, 0.14);
}

.home-shell .ticket-action:hover,
.home-shell .primary-structure-action:hover,
.home-shell .secondary-action:hover,
.home-shell .details-link:hover,
#search .structure-card .demo-ticket-btn:hover,
.take-shell .secondary-action:hover,
.details-shell .btn:hover,
.display-shell .fullscreen-toggle:hover {
  border-color: rgba(14, 165, 195, 0.34);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.82), rgba(14, 165, 195, 0.88));
  box-shadow: 0 12px 26px rgba(8, 47, 63, 0.14);
}

#search .structure-card,
.home-shell .structure-card,
body.theme-light #search .structure-card,
body.theme-light .home-shell .structure-card {
  border-color: rgba(93, 188, 205, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 252, 0.86));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.085);
}

#search .structure-card:hover,
.home-shell .structure-card:hover,
.home-shell .structure-card.active,
.home-shell .structure-card.selected,
body.theme-light #search .structure-card:hover,
body.theme-light .home-shell .structure-card:hover,
body.theme-light .home-shell .structure-card.active,
body.theme-light .home-shell .structure-card.selected {
  border-color: rgba(81, 190, 210, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(232, 247, 251, 0.9));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.home-shell .structure-card .badge,
#search .structure-card .badge,
body.theme-light .home-shell .structure-card .badge,
body.theme-light #search .structure-card .badge {
  color: #0d5668;
  border-color: rgba(81, 190, 210, 0.22);
  background: rgba(231, 250, 253, 0.78);
}

.login-card,
.flow-panel,
.brand-badge,
.brand-point,
.structure-card,
.service-card,
.public-card,
.details-shell .detail-card,
.take-shell .take-card,
.ticket-card,
.live-card,
.turn-card {
  border-radius: 16px;
}

.login-submit,
.take-shell button,
.details-shell .btn,
.details-shell .primary-action,
.home-shell .ticket-action,
.home-shell .details-link,
.home-shell .secondary-action,
.btn {
  border-radius: 12px;
}

.public-footer {
  margin-top: clamp(28px, 5vw, 54px);
  padding-block: clamp(26px, 4vw, 42px);
  border-color: rgba(93, 188, 205, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 252, 0.9));
  box-shadow: 0 -8px 24px rgba(8, 47, 63, 0.055);
}

body:not(.theme-light) .public-footer {
  background:
    linear-gradient(180deg, rgba(8, 36, 55, 0.92), rgba(5, 24, 39, 0.96));
  box-shadow: 0 -10px 28px rgba(4, 17, 34, 0.16);
}

.footer-links a,
.footer-links span {
  line-height: 1.55;
}

/* Structure detail hero balance */
.details-shell .hero-card {
  padding: 0;
  overflow: hidden;
}

.details-shell .hero-body {
  grid-template-columns: 96px minmax(0, 1fr) minmax(150px, max-content);
  align-items: end;
}

.details-shell .hero-copy {
  min-width: 0;
}

.details-shell .hero-copy h1 {
  display: block;
  max-width: 22ch;
  overflow: visible;
  color: var(--st-navy, #071b3b);
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.details-shell .structure-full-name {
  display: none;
}

.details-shell .structure-logo {
  background: #ffffff;
}

.details-shell .structure-logo img {
  box-sizing: border-box;
  object-fit: contain;
  padding: 4px;
}

.details-shell .badges {
  gap: 7px;
}

.details-shell .badge {
  min-height: 26px;
  padding: 5px 9px;
  font-size: 0.76rem;
  line-height: 1.15;
}

.details-shell .quick-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.details-shell .quick-actions .btn.big {
  flex: 0 1 220px;
  max-width: 240px;
}

.details-shell .hero-actions {
  align-self: end;
  justify-content: flex-end;
  width: auto;
  max-width: 240px;
}

.details-shell .hero-actions .btn {
  width: auto;
  max-width: 220px;
  min-height: 42px;
  padding: 10px 14px;
  white-space: normal;
  text-align: center;
}

@media (max-width: 820px) {
  .details-shell .hero-body {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "logo copy"
      "actions actions";
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .details-shell .structure-logo {
    grid-area: logo;
    width: 72px;
    height: 72px;
    border-width: 3px;
    border-radius: 18px;
  }

  .details-shell .hero-copy {
    grid-area: copy;
    gap: 7px;
  }

  .details-shell .hero-actions {
    grid-area: actions;
    max-width: none;
    width: 100%;
    margin-top: 2px;
  }

  .details-shell .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.45rem, 6vw, 2.05rem);
    line-height: 1.1;
  }

  .details-shell .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .details-shell .structure-full-name {
    display: block;
    margin: 0;
    width: fit-content;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid rgba(81, 190, 210, 0.22);
    border-radius: 10px;
    color: #0f566b;
    background: rgba(236, 254, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .details-shell .badges {
    gap: 5px;
  }

  .details-shell .badge,
  .details-shell .status-badge,
  .details-shell .waiting-badge {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .details-shell .quick-actions,
  .details-shell .hero-actions,
  .details-shell .service-actions {
    gap: 8px;
  }

  .details-shell .hero-actions .btn,
  .details-shell .quick-actions .btn,
  .details-shell .service-actions .btn,
  .details-shell .btn-primary,
  .details-shell .btn-secondary {
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .details-shell .quick-actions .btn.big {
    flex-basis: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .details-shell .public-header {
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
  }

  .details-shell .header-link {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.86rem;
    white-space: normal;
    text-align: center;
  }

  .details-shell .hero-card {
    border-radius: 18px;
  }

  .details-shell .hero-cover {
    height: 158px;
    max-height: 158px;
    border-radius: 18px;
  }

  .details-shell .hero-cover img {
    max-height: 158px;
  }

  .details-shell .hero-body {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .details-shell .structure-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .details-shell .structure-logo img {
    padding: 3px;
  }

  .details-shell .hero-copy {
    gap: 6px;
  }

  .details-shell .hero-copy h1 {
    font-size: clamp(1.28rem, 6.4vw, 1.7rem);
    line-height: 1.12;
  }

  .details-shell .hero-subtitle {
    font-size: 0.9rem;
  }

  .details-shell .structure-full-name {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .details-shell .structure-address-link {
    margin-top: 2px;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  .details-shell .structure-address-link .text {
    max-width: none;
  }

  .details-shell .maps-hint {
    font-size: 0.72rem;
  }

  .details-shell .hero-actions .btn,
  .details-shell .quick-actions .btn,
  .details-shell .service-actions .btn,
  .details-shell .btn-primary,
  .details-shell .btn-secondary {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 0.92rem;
  }
}

/* Public mobile flows: shared SenTicket premium system */
.public-shell {
  --public-bg: #f6fbff;
  --public-card: #ffffff;
  --public-navy: #0b2138;
  --public-muted: #607386;
  --public-cyan: #45d4d1;
  --public-blue: #42b7f5;
  --public-border: #d8f1f5;
  --public-soft: #e9fbfd;
  --public-button-gradient: linear-gradient(135deg, #45d4d1 0%, #42b7f5 100%);
  --public-blue-soft: #42b7f5;
  --public-cyan-soft: #e9fbfd;
  --public-success: #10b981;
  --public-shadow: 0 18px 40px rgba(66, 183, 245, 0.12);
  --public-shadow-soft: 0 10px 24px rgba(11, 33, 56, 0.06);
  --public-radius: 22px;
}

.take-shell.public-shell {
  width: min(100% - 22px, 560px);
  align-content: start;
  padding: 14px 0 28px;
  gap: 16px;
}

.details-shell.public-shell {
  width: min(1120px, calc(100% - 28px));
}

.public-card,
.details-shell .public-card,
.details-shell .hero-card,
.details-shell .service-card,
.take-shell .take-card,
.take-shell .ticket-card,
.take-shell .live-card,
.take-shell .turn-card,
.take-shell .summary-card {
  border: 1px solid var(--public-border);
  border-radius: var(--public-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow: var(--public-shadow-soft);
}

.take-shell .public-flow-hero,
.details-shell .hero-card {
  border-radius: 26px;
  box-shadow: 0 20px 42px rgba(66, 183, 245, 0.14);
}

.take-shell .public-flow-hero {
  padding: 22px;
  border-color: rgba(216, 241, 245, 0.52);
  background:
    radial-gradient(circle at 88% 4%, rgba(233, 251, 253, 0.44), transparent 30%),
    radial-gradient(circle at 12% 0%, rgba(69, 212, 209, 0.24), transparent 30%),
    linear-gradient(135deg, #2fc3c0 0%, #45d4d1 46%, #42b7f5 100%);
}

.take-shell .ticket-card:not(.visible),
.take-shell .live-card:not(.visible),
.take-shell .turn-card:not(.visible),
.take-shell .summary-card[hidden],
.take-shell .appointment-form[hidden],
.take-shell .appointment-review[hidden],
.take-shell .appointment-confirmation[hidden] {
  display: none;
}

.take-shell .ticket-card.visible,
.take-shell .live-card.visible,
.take-shell .turn-card.visible {
  display: block;
}

.details-shell .hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 33, 56, 0.02), rgba(11, 33, 56, 0.16)),
    radial-gradient(circle at 18% 12%, rgba(69, 212, 209, 0.18), transparent 34%);
}

.details-shell .hero-body {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.primary-btn,
.take-shell .primary-action,
.details-shell .action-main,
.details-shell .btn-primary {
  min-height: 56px;
  border-radius: 18px;
  color: #ffffff;
  border: 0;
  background: var(--public-button-gradient);
  box-shadow: 0 14px 30px rgba(66, 183, 245, 0.2);
  font-weight: 950;
}

.secondary-btn,
.take-shell .secondary-action,
.details-shell .btn-secondary,
.details-shell .hero-actions .btn {
  border-radius: 18px;
  color: var(--public-navy);
  border: 1px solid var(--public-border);
  background: #f8fcff;
  font-weight: 900;
}

.take-shell .ticket-actions .secondary-btn,
.take-shell .ticket-actions .danger-action {
  color: var(--public-navy);
  border: 1px solid var(--public-border);
  background: #f8fcff;
  box-shadow: none;
}

.take-shell .ticket-actions .danger-action {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
  background: #fff7ed;
}

.public-badge,
.details-shell .badge,
.take-shell .live-badge,
.take-shell .summary-kicker,
.take-shell .turn-kicker {
  border-radius: 999px;
  border-color: var(--public-border);
  background: rgba(248, 252, 255, 0.88);
  color: #0f477e;
}

.details-shell .info-card {
  padding: 18px;
  gap: 14px;
}

.details-shell .details-grid {
  grid-template-columns: minmax(0, 1fr);
}

.details-shell .services {
  width: 100%;
}

.details-shell .hero-copy .structure-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
}

.details-shell .info-card h2,
.take-shell .take-card h2,
.take-shell .ticket-card h2,
.take-shell .live-card h2,
.take-shell .summary-card h2 {
  margin-top: 0;
  color: var(--public-navy);
  font-size: clamp(1.25rem, 4.8vw, 1.5rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.details-shell .info-row {
  padding: 12px;
  border: 1px solid rgba(69, 212, 209, 0.16);
  border-radius: 16px;
  background: #f8fcff;
}

.details-shell .hero-copy .structure-info-list .info-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  padding: 6px 9px;
  border-color: var(--public-border);
  border-radius: 999px;
  background: rgba(233, 251, 253, 0.86);
}

.details-shell .hero-copy .structure-info-list dt,
.details-shell .hero-copy .structure-info-list dd {
  margin: 0;
  color: var(--public-navy);
  font-size: 0.78rem;
  line-height: 1.15;
}

.details-shell .hero-copy .structure-info-list dt {
  font-weight: 950;
}

.details-shell .hero-copy .structure-info-list dd {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.details-shell .service-card {
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
}

.details-shell .service-card-top,
.prestation-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.details-shell .service-card-top {
  justify-content: flex-start;
}

.details-shell .service-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--public-blue);
  background: linear-gradient(135deg, var(--public-cyan-soft), #f8fcff);
  box-shadow: inset 0 0 0 1px var(--public-border);
  font-size: 1.35rem;
}

.details-shell .service-title-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.details-shell .service-title-copy h3 {
  color: var(--public-navy);
  font-size: 1.12rem;
  line-height: 1.18;
}

.details-shell .service-badge-row {
  gap: 7px;
}

.details-shell .service-stat-grid,
.service-meta-grid,
.tracking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-stat-card,
.take-shell .tracking-item,
.take-shell .meta-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--public-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4fbff);
  box-shadow: 0 8px 20px rgba(7, 27, 58, 0.045);
}

.take-shell .service-meta-grid .meta-row {
  display: grid;
  gap: 5px;
  align-items: start;
  justify-content: stretch;
}

.details-shell .public-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-stat-card small,
.take-shell .tracking-item span,
.take-shell .meta-row span {
  display: block;
  color: #60758a;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.public-stat-card strong,
.take-shell .tracking-item strong,
.take-shell .meta-row strong {
  display: block;
  margin-top: 4px;
  color: var(--public-navy);
  font-size: clamp(0.98rem, 3.7vw, 1.14rem);
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-align: left;
}

.details-shell .legacy-service-badges,
.details-shell .appointment-card > .service-head,
.details-shell .appointment-card > .service-hint,
.details-shell .appointment-card > .service-estimate,
.details-shell .appointment-card > .service-meta-line {
  display: none;
}

.details-shell .service-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.details-shell .service-actions .btn {
  min-height: 52px;
  border-radius: 17px;
  white-space: normal;
  text-align: center;
}

.ticket-card .ticket-number,
.take-shell #ticketNumber {
  margin: 12px 0 6px;
  padding: 16px 12px 18px;
  border-radius: 24px;
  color: var(--public-blue);
  font-size: clamp(3.4rem, 18vw, 6.3rem);
  line-height: 0.96;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 199, 243, 0.18), transparent 42%),
    linear-gradient(180deg, #f9fdff, #eef8ff);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(69, 212, 209, 0.14);
}

.take-shell .ticket-status-line,
.take-shell .ticket-status-banner,
.take-shell .ticket-help,
.take-shell .summary-help,
.appointment-selection,
.appointment-confirmation,
.selected-prestation-summary {
  border-radius: 18px;
}

.take-shell .turn-card.visible {
  border-color: rgba(16, 185, 129, 0.24);
  background:
    radial-gradient(circle at 92% 10%, rgba(16, 185, 129, 0.2), transparent 30%),
    linear-gradient(180deg, #ffffff, #effdf7);
}

.take-shell .turn-title {
  color: var(--public-success);
}

.appointment-steps {
  display: flex;
  gap: 7px;
  padding: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  border: 1px solid rgba(69, 212, 209, 0.16);
  border-radius: 18px;
  background: #f4fbff;
  scrollbar-width: none;
}

.appointment-steps::-webkit-scrollbar {
  display: none;
}

.appointment-steps span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: #526b80;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 0 5px 14px rgba(7, 27, 58, 0.04);
}

.appointment-steps .is-active {
  color: #ffffff;
  background: var(--public-button-gradient);
}

.appointment-step-card,
.prestations-section,
.appointment-form,
.appointment-review,
.appointment-submit-summary {
  border-radius: 22px;
}

.prestation-card {
  position: relative;
  padding: 16px 16px 16px 64px;
  border-radius: 22px;
}

.prestation-card::before {
  content: "\1F4CB";
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--public-cyan-soft);
}

.prestation-card.is-selected::before {
  content: "\2713";
  color: #ffffff;
  background: var(--public-button-gradient);
}

.appointment-slots {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.appointment-slot {
  min-height: 58px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 27, 58, 0.045);
}

.appointment-slot.is-selected {
  color: #ffffff;
  border-color: transparent;
  background: var(--public-button-gradient);
  box-shadow: 0 16px 30px rgba(66, 183, 245, 0.2);
}

.summary-card .summary-time {
  color: var(--public-blue);
  text-align: center;
}

.take-shell .appointment-receipt-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(69, 212, 209, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 16px 34px rgba(11, 33, 56, 0.08);
}

.take-shell .appointment-receipt-card[hidden] {
  display: none;
}

.take-shell .receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.take-shell .appointment-receipt-card .summary-kicker {
  width: fit-content;
  min-height: 32px;
  padding: 8px 12px;
  color: #0b4f7a;
  background: var(--public-soft);
  border: 1px solid var(--public-border);
  font-size: 0.82rem;
}

.take-shell .receipt-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #45d4d1 100%);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.16);
  font-weight: 950;
}

.take-shell .appointment-receipt-card h2 {
  margin: 0;
  font-size: clamp(1.28rem, 5vw, 1.5rem);
}

.take-shell .appointment-receipt-card .summary-time {
  margin: 0;
  padding: 14px 12px;
  border: 1px solid var(--public-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
  color: var(--public-blue);
  font-size: clamp(2.65rem, 14vw, 4rem);
  line-height: 1;
}

.take-shell .appointment-receipt-card .summary-help {
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 18px;
  color: #075d42;
  background: #ecfdf5;
  font-size: 0.92rem;
  line-height: 1.45;
}

.take-shell .receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.take-shell .receipt-item {
  display: grid;
  gap: 5px;
  align-content: start;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--public-border);
  border-radius: 18px;
  background: #ffffff;
}

.take-shell .receipt-item[hidden] {
  display: none;
}

.take-shell .receipt-item span {
  color: #60758a;
  font-size: 0.8rem;
  font-weight: 900;
}

.take-shell .receipt-item strong {
  color: var(--public-navy);
  font-size: clamp(1rem, 4vw, 1.18rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-align: left;
}

.take-shell .appointment-lookup-card {
  padding: 18px;
}

.take-shell .appointment-lookup-card h2 {
  margin-bottom: 6px;
}

.take-shell .appointment-lookup-card > p {
  color: var(--public-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.take-shell .appointment-lookup-form {
  gap: 9px;
  padding: 12px;
  border-color: var(--public-border);
  background: #f8fcff;
}

.take-shell .appointment-lookup-form input {
  min-height: 48px;
  border-color: var(--public-border);
  border-radius: 16px;
  background: #ffffff;
}

.take-shell .appointment-lookup-form .secondary-btn {
  min-height: 50px;
}

.take-shell .live-dashboard-card {
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(69, 212, 209, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.take-shell .live-dashboard-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.take-shell .live-dashboard-head h2 {
  margin-bottom: 5px;
  font-size: clamp(1.25rem, 5vw, 1.45rem);
}

.take-shell .live-dashboard-head p {
  max-width: 28rem;
  color: var(--public-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.take-shell .live-dashboard-badge {
  max-width: 190px;
  min-height: 34px;
  padding: 8px 11px;
  color: #0b4f7a;
  background: rgba(233, 251, 253, 0.9);
  border-color: var(--public-border);
  line-height: 1.25;
  text-align: right;
  white-space: normal;
}

.take-shell .live-dashboard-badge.soon {
  color: #075d42;
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.2);
}

.take-shell .live-dashboard-badge.serving {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #45d4d1 100%);
  border-color: transparent;
}

.take-shell .tracking-progress {
  height: 8px;
  margin: 8px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--public-soft);
}

.take-shell .tracking-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #45d4d1 0%, #42b7f5 100%);
  transition: width 260ms ease;
}

.take-shell .live-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.take-shell .live-dashboard-grid .tracking-item {
  position: relative;
  padding: 13px;
  min-height: 86px;
  border-color: var(--public-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
}

.take-shell .live-dashboard-grid .tracking-item span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.take-shell .live-dashboard-grid .tracking-item i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: var(--public-blue);
  background: var(--public-soft);
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1;
}

.take-shell .live-dashboard-grid .tracking-item strong {
  margin-top: 8px;
  font-size: clamp(1.35rem, 7vw, 2rem);
  line-height: 1;
  text-align: left;
}

.take-shell .live-dashboard-grid .tracking-item.is-primary {
  grid-column: span 2;
  border-color: rgba(66, 183, 245, 0.34);
  background:
    radial-gradient(circle at 92% 0%, rgba(66, 183, 245, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #e9f7ff 100%);
  box-shadow: 0 14px 30px rgba(11, 33, 56, 0.08);
}

.take-shell .live-dashboard-grid .tracking-item.is-primary strong {
  color: var(--public-navy);
  font-size: clamp(2.45rem, 13vw, 3.8rem);
  letter-spacing: 0;
}

.take-shell .live-dashboard-grid .tracking-item.is-ahead {
  border-color: rgba(69, 212, 209, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #e9fbfd 100%);
}

.take-shell .live-dashboard-grid .tracking-item.is-estimate {
  border-color: rgba(69, 212, 209, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
}

.take-shell .live-dashboard-grid .tracking-item.is-ahead strong,
.take-shell .live-dashboard-grid .tracking-item.is-estimate strong {
  color: var(--public-blue);
}

.take-shell .live-dashboard-grid .tracking-item.is-estimate strong {
  white-space: nowrap;
  font-size: clamp(1.25rem, 6vw, 1.8rem);
}

.take-shell .live-dashboard-grid .tracking-item.is-muted {
  min-height: 72px;
  opacity: 0.82;
}

.take-shell .live-dashboard-grid .tracking-item.is-muted strong {
  color: #53697f;
  font-size: clamp(1.05rem, 5vw, 1.35rem);
}

.take-shell .live-dashboard-card .live-note {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid var(--public-border);
  border-radius: 18px;
  color: #0f477e;
  background: rgba(248, 252, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.4;
}

.appointment-confirmation,
#appointmentStatusLookupResult {
  background:
    radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff, #effdf7);
  border-color: rgba(16, 185, 129, 0.18);
  color: #075d42;
  font-weight: 850;
}

@media (max-width: 620px) {
  .details-shell.public-shell {
    width: min(100% - 16px, 560px);
  }

  .details-shell .details-grid {
    grid-template-columns: 1fr;
  }

  .details-shell .structure-info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-shell .service-stat-grid,
  .service-meta-grid,
  .tracking-grid {
    grid-template-columns: 1fr;
  }

  .details-shell .service-actions {
    grid-template-columns: 1fr;
  }

  .take-shell.public-shell {
    width: min(100% - 14px, 560px);
    padding-top: 8px;
  }

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

  .take-shell .live-dashboard-head {
    display: grid;
  }

  .take-shell .live-dashboard-badge {
    max-width: none;
    width: 100%;
    text-align: left;
  }

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

@media (max-width: 380px) {
  .details-shell .structure-info-list {
    grid-template-columns: 1fr;
  }

  .take-shell .live-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .take-shell .live-dashboard-grid .tracking-item.is-primary {
    grid-column: auto;
  }

  .take-shell .receipt-grid {
    grid-template-columns: 1fr;
  }
}
