:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0d0d0d;
  --panel-2: #151515;
  --orange: #ff6a00;
  --orange-soft: rgba(255, 106, 0, 0.34);
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #d8d0c8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.portal-shell {
  width: min(1180px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 0 32px;
}

.portal-topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px 0 20px;
}

.portal-wordmark,
.portal-menu a,
.portal-whatsapp {
  justify-self: start;
  border: 1px solid rgba(255, 106, 0, 0.75);
  border-radius: 999px;
  padding: 8px 11px;
  background: #0a0a0a;
  box-shadow: 0 0 0 rgba(255, 106, 0, 0);
  font-size: 12px;
  font-weight: 850;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-wordmark {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.86;
}

.portal-menu {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.portal-menu::-webkit-scrollbar {
  display: none;
}

.portal-menu a {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #d8d0c8;
  font-size: 12px;
  font-weight: 750;
  opacity: 0.82;
}

.portal-menu a:hover,
.portal-menu a:focus-visible {
  border-color: var(--orange);
  color: var(--text);
  outline: none;
}

.portal-whatsapp {
  justify-self: start;
  border: 1px solid rgba(255, 106, 0, 0.75);
  border-radius: 999px;
  padding: 8px 11px;
  background: #0a0a0a;
  box-shadow: 0 0 0 rgba(255, 106, 0, 0);
  font-size: 12px;
  font-weight: 850;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-whatsapp:hover,
.portal-whatsapp:focus-visible {
  box-shadow: 0 0 18px var(--orange-soft);
  transform: translateY(-1px);
  outline: none;
}

.portal-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.portal-home {
  display: grid;
  min-height: calc(100vh - 112px);
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: 0 0 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.insano-logo {
  display: block;
  width: min(760px, 92vw);
  max-height: 30vh;
  object-fit: contain;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: min(860px, 100%);
}

.portal-action {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 124px;
  min-height: 112px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 2px solid var(--orange);
  border-radius: 16px;
  background: linear-gradient(180deg, #151515, #070707);
  color: var(--text);
  padding: 14px 12px 14px 18px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.portal-action:hover,
.portal-action:focus-visible {
  border-color: #ff8a22;
  box-shadow: 0 0 24px var(--orange-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.portal-action span {
  position: relative;
  z-index: 1;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.portal-action img {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 124px;
  height: 96px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.44));
}

.portal-action::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% 28%;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.18), transparent 62%);
  pointer-events: none;
}

.portal-action-xeriffe img {
  width: 132px;
  height: 104px;
}
.hero-box,
.form-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 11vw, 54px);
  line-height: 0.95;
}

h2 {
  font-size: 24px;
}

p,
.result {
  color: var(--muted);
}

.choice-grid,
form {
  display: grid;
  gap: 10px;
}

.choice-grid {
  margin-top: 14px;
}

button,
.choice-link {
  width: 100%;
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 14px;
  background: var(--orange);
  color: #140900;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #090909;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.row {
  display: grid;
  gap: 10px;
}

.result {
  min-height: 24px;
  font-weight: 800;
}

@media (min-width: 620px) {
  .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .portal-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .portal-menu {
    justify-content: center;
  }

  .portal-whatsapp {
    justify-self: end;
  }

  .portal-action {
    grid-template-columns: 1fr 148px;
    min-height: 128px;
    padding: 16px 16px 16px 20px;
  }

  .portal-action img {
    width: 148px;
    height: 108px;
  }

  .portal-action-xeriffe img {
    width: 156px;
    height: 114px;
  }
}


.portal-confirmation {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.confirmation-summary,
.status-summary {
  display: grid;
  gap: 8px;
}

.confirmation-summary div,
.status-summary div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
}

.confirmation-summary span,
.status-summary span,
.portal-confirmation small {
  color: var(--muted);
}

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

.whatsapp-action-button,
.back-button {
  display: block;
  width: 100%;
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 14px;
  background: var(--orange);
  color: #140900;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.status-action-button {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 106, 0, 0.75);
  border-radius: 8px;
  padding: 14px;
  background: #101010;
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.portal-confirmation-warning {
  border-color: rgba(255, 184, 0, 0.9);
}

/* Portal público direto: sem shell administrativo e sem menus em cascata. */
.portal-tagline {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.portal-welcome {
  display: grid;
  grid-template-columns: minmax(96px, 180px) 1fr;
  align-items: center;
  gap: clamp(14px, 4vw, 34px);
  width: min(920px, 100%);
}

.portal-welcome img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.portal-sambah {
  color: #fff;
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 950;
  letter-spacing: -.06em;
  text-align: center;
  text-shadow: 0 0 22px rgba(47, 193, 111, .45);
}

.portal-welcome p {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.portal-welcome h1 {
  margin: 5px 0 8px;
  font-size: clamp(32px, 7vw, 62px);
}

.portal-welcome span {
  color: var(--muted);
}

.portal-welcome > div {
  min-width: 0;
}

.portal-home .home-actions {
  display: flex;
  width: min(1080px, 100%);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) #111;
}

.portal-home .portal-action {
  flex: 0 0 min(76vw, 250px);
  grid-template-columns: 1fr;
  grid-template-rows: 150px auto;
  min-height: 270px;
  padding: 14px;
  scroll-snap-align: start;
  text-align: left;
}

.portal-home .portal-action img,
.portal-home .portal-action-xeriffe img {
  grid-row: 1;
  width: 100%;
  height: 145px;
  object-fit: contain;
  justify-self: center;
}

.brand-word {
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 145px;
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.04em;
  text-align: center;
}

.portal-action-insano .brand-word {
  font-family: "Milan Bold", "Milan", Impact, "Arial Black", sans-serif;
  font-size: clamp(42px, 7vw, 68px);
  letter-spacing: .02em;
}

.portal-action-xeriffe .brand-word {
  color: #e0b65c;
  font-family: Georgia, "Times New Roman", serif;
}

.portal-action-granja .brand-word {
  color: #48c66d;
  font-family: Georgia, "Times New Roman", serif;
}

.portal-action-sambah .brand-word {
  color: #5bd67c;
}

.portal-action-human .brand-word {
  color: #63d993;
  font-size: 32px;
}

.portal-action-copy {
  display: grid;
  gap: 5px;
  align-self: end;
}

.portal-action-copy strong {
  font-size: 21px;
  line-height: 1.05;
}

.portal-action-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.portal-action-human {
  border-color: #2fc16f;
}

.human-symbol {
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  align-self: center;
  justify-self: center;
  border: 3px solid #2fc16f;
  border-radius: 50%;
  color: #2fc16f;
  font-size: 58px;
}

.human-support {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  margin: 8vh auto 0;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #151515, #080808);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.human-support h1 {
  font-size: clamp(32px, 8vw, 54px);
}

.human-contacts {
  display: grid;
  gap: 12px;
}

.human-contacts a {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(47, 193, 111, .7);
  border-radius: 14px;
  background: #0b0b0b;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.human-contacts img,
.contact-initials {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-initials {
  display: grid;
  place-items: center;
  background: #efe5d5;
  color: #171311;
  font-size: 26px;
  font-weight: 900;
}

.human-contacts a > span:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.human-contacts strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.human-support > p {
  overflow-wrap: anywhere;
}

.human-contacts small {
  color: #9de3b9;
}

@media (max-width: 619px) {
  .portal-topbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .portal-tagline {
    display: none;
  }

  .portal-welcome {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }

  .portal-welcome h1 {
    max-width: 100%;
    font-size: clamp(28px, 9vw, 36px);
    overflow-wrap: anywhere;
  }

  .portal-welcome span {
    font-size: 13px;
  }

  .portal-wordmark,
  .portal-whatsapp {
    padding: 7px 9px;
    font-size: 11px;
  }

  .portal-home {
    align-content: start;
    padding-top: 8vh;
  }
}

@media (min-width: 900px) {
  .portal-home .portal-action {
    flex-basis: 250px;
    grid-template-columns: 1fr;
  }

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