:root {
  --bg: #030509;
  --panel: rgba(14, 18, 27, 0.9);
  --panel-2: rgba(21, 25, 37, 0.92);
  --line: #273040;
  --muted: #97a0b4;
  --text: #f3f6fb;
  --gold: #f5bd34;
  --violet: #8a2be2;
  --crimson: #8b1824;
  --success: #138a64;
  --danger: #c0392b;
}

/* Compact density override. Keep this block last so it wins. */
main {
  padding-top: 62px;
}

.content-section,
.app-section,
.panel {
  padding: 14px;
}

.panel-heading {
  margin-bottom: 12px;
}

.panel-heading,
.actions,
.meta,
.admin-shell,
.admin-header,
.admin-tabs,
.world-tabs,
.vocation-tabs,
.vocation-card-grid,
.cards,
.admin-grid,
.client-grid {
  gap: 8px;
}

h2 {
  font-size: 24px;
}

.topbar {
  height: 48px;
  padding: 0 18px;
}

.nav-link {
  padding: 0 10px;
  font-size: 12px;
}

.socials {
  gap: 10px;
  font-size: 11px;
}

.admin-tabs {
  padding: 6px;
}

.admin-tabs .tab {
  min-height: 34px;
  font-size: 13px;
}

.admin-tabs .schedule-tab {
  min-height: 42px;
  font-size: 15px;
}

.tab,
.ghost,
.primary {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

input,
select,
textarea {
  padding: 8px 10px;
  font-size: 13px;
}

label {
  gap: 5px;
  font-size: 12px;
}

.world-group {
  gap: 10px;
  padding: 12px;
}

.world-heading {
  padding-bottom: 8px;
}

.world-heading h3 {
  font-size: 20px;
}

.world-heading span,
.section-heading span,
.panel-heading span {
  font-size: 10px;
}

.world-heading strong,
.group-heading span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.vocation-row {
  gap: 8px;
  padding: 10px;
}

.vocation-row .admin-card {
  gap: 8px;
  padding: 10px;
}

.vocation-row .admin-card h3 {
  font-size: 14px;
}

.request-card,
.admin-card,
.client-card {
  padding: 10px;
}

.card-title-row {
  gap: 6px;
  margin-bottom: 2px;
}

.request-id {
  padding: 2px 5px;
  font-size: 11px;
}

.quest-name {
  margin-bottom: 7px;
  font-size: 11px;
}

.schedule-summary {
  gap: 6px;
  margin-top: 7px;
}

.schedule-summary span {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}

.schedule-summary strong {
  font-size: 14px;
}

.card-status-row {
  margin-top: 8px;
}

.card-status-row .status-badge {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.registration-details {
  margin-top: 8px;
}

.registration-details summary {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.detail-grid {
  gap: 6px;
}

.detail-grid div {
  padding: 6px;
}

.detail-grid dt {
  font-size: 9px;
}

.detail-grid dd {
  font-size: 11px;
}

.admin-controls {
  gap: 6px;
}

.status-action {
  min-height: 34px;
  font-size: 13px;
}

.schedule-toolbar {
  margin-bottom: 10px;
}

.serviceiro-form {
  gap: 8px;
  margin-bottom: 10px;
}

.serviceiro-slots {
  gap: 6px;
}

.serviceiro-slots input {
  min-height: 34px;
  padding: 7px 8px;
}

.schedule-table {
  font-size: 11px;
}

.schedule-table th {
  padding: 6px 4px;
  font-size: 11px;
}

.schedule-table td {
  padding: 5px 4px;
}

.queue-status {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 11px;
}

.schedule-actions-cell {
  gap: 4px;
}

.mini-action {
  min-height: 24px;
  padding: 0 4px;
  font-size: 9px;
}

.modal {
  padding: 12px;
}

.modal-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 24px);
  padding: 14px;
}

.schedule-time-card {
  width: min(420px, 100%);
}

.modal-heading {
  gap: 8px;
}

.modal-heading h2 {
  font-size: 16px;
}

.icon-close {
  width: 26px;
  height: 26px;
  font-size: 16px;
}

.schedule-time-grid {
  gap: 7px;
  margin-top: 10px;
}

.schedule-time-option {
  min-height: 36px;
  font-size: 13px;
}

.team-choice-actions {
  gap: 8px;
  margin-top: 12px;
}

/* Admin viewport fit. Keep this block last so normal browser zoom can stay at 100%. */
@media (min-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(3, 5, 9, 0.44), rgba(3, 5, 9, 0.92)),
      url("/assets/quest-hero.png") center 36% / max(100vw, 2300px) auto fixed no-repeat;
  }

  main {
    padding-top: 52px;
    padding-inline: 12px;
  }

  .section {
    width: min(1500px, 100%);
  }

  .admin-shell {
    max-width: 1420px;
    gap: 10px;
  }

  .admin-header,
  .panel {
    padding: 10px 12px;
  }

  .admin-tabs {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 6px;
  }

  .admin-tabs .schedule-tab {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .schedule-builder {
    gap: 10px;
    padding: 10px;
  }

  .builder-controls {
    grid-template-columns: minmax(160px, 220px) minmax(140px, 180px) minmax(220px, 1fr) minmax(120px, 160px);
    gap: 8px;
  }

  .builder-layout {
    grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.5fr);
    gap: 8px;
  }

  .candidate-pool,
  .team-builder-section,
  .history-group {
    padding: 8px;
  }

  .schedule-candidate {
    gap: 8px;
    padding: 8px;
  }

  .team-builder-grid {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    gap: 8px;
  }

  .team-builder-section {
    min-height: 148px;
  }

  .team-member {
    padding: 6px;
  }

  .team-member strong,
  .history-member strong {
    font-size: 12px;
  }

  .world-group {
    padding: 10px;
  }

  .world-heading h3 {
    font-size: 18px;
  }

  .serviceiro-form {
    grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  }

  .schedule-group-actions {
    grid-template-columns: repeat(3, minmax(106px, 1fr));
    gap: 6px;
  }

  .schedule-group-actions .mini-action,
  .schedule-serviceiro-form .ghost {
    min-height: 34px;
    font-size: 11px;
  }

  .serviceiro-slots {
    grid-template-columns: repeat(5, minmax(94px, 1fr));
  }

  .serviceiro-slots input {
    min-height: 30px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .schedule-table {
    font-size: 10px;
  }

  .schedule-table th {
    padding: 5px 3px;
    font-size: 10px;
  }

  .schedule-table td {
    padding: 4px 3px;
  }

  .schedule-table th:nth-child(1),
  .schedule-table td:nth-child(1) {
    width: 68px;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    width: 70px;
  }

  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3) {
    width: 100px;
  }

  .schedule-table th:nth-child(4),
  .schedule-table td:nth-child(4) {
    width: 118px;
  }

  .schedule-table th:nth-child(5),
  .schedule-table td:nth-child(5) {
    width: 126px;
  }

  .schedule-table th:nth-child(8),
  .schedule-table td:nth-child(8) {
    width: 88px;
  }

  .schedule-table th:nth-child(9),
  .schedule-table td:nth-child(9) {
    width: 102px;
  }

  .schedule-table th:nth-child(10),
  .schedule-table td:nth-child(10) {
    width: 76px;
  }

  .schedule-table th:nth-child(11),
  .schedule-table td:nth-child(11) {
    width: 54px;
  }
}

/* Admin viewport fit. Keep this block last so normal browser zoom can stay at 100%. */
@media (min-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(3, 5, 9, 0.44), rgba(3, 5, 9, 0.92)),
      url("/assets/quest-hero.png") center 36% / max(100vw, 2300px) auto fixed no-repeat;
  }

  main {
    padding-top: 52px;
    padding-inline: 12px;
  }

  .section {
    width: min(1500px, 100%);
  }

  .admin-shell {
    max-width: 1420px;
    gap: 10px;
  }

  .admin-header,
  .panel {
    padding: 10px 12px;
  }

  .admin-tabs {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 6px;
  }

  .admin-tabs .schedule-tab {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .schedule-builder {
    gap: 10px;
    padding: 10px;
  }

  .builder-controls {
    grid-template-columns: minmax(160px, 220px) minmax(140px, 180px) minmax(220px, 1fr) minmax(120px, 160px);
    gap: 8px;
  }

  .builder-layout {
    grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.5fr);
    gap: 8px;
  }

  .candidate-pool,
  .team-builder-section,
  .history-group {
    padding: 8px;
  }

  .schedule-candidate {
    gap: 8px;
    padding: 8px;
  }

  .team-builder-grid {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    gap: 8px;
  }

  .team-builder-section {
    min-height: 148px;
  }

  .team-member {
    padding: 6px;
  }

  .team-member strong,
  .history-member strong {
    font-size: 12px;
  }

  .world-group {
    padding: 10px;
  }

  .world-heading h3 {
    font-size: 18px;
  }

  .serviceiro-form {
    grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  }

  .schedule-group-actions {
    grid-template-columns: repeat(3, minmax(106px, 1fr));
    gap: 6px;
  }

  .schedule-group-actions .mini-action,
  .schedule-serviceiro-form .ghost {
    min-height: 34px;
    font-size: 11px;
  }

  .serviceiro-slots {
    grid-template-columns: repeat(5, minmax(94px, 1fr));
  }

  .serviceiro-slots input {
    min-height: 30px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .schedule-table {
    font-size: 10px;
  }

  .schedule-table th {
    padding: 5px 3px;
    font-size: 10px;
  }

  .schedule-table td {
    padding: 4px 3px;
  }

  .schedule-table th:nth-child(1),
  .schedule-table td:nth-child(1) {
    width: 68px;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    width: 70px;
  }

  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3) {
    width: 100px;
  }

  .schedule-table th:nth-child(4),
  .schedule-table td:nth-child(4) {
    width: 118px;
  }

  .schedule-table th:nth-child(5),
  .schedule-table td:nth-child(5) {
    width: 126px;
  }

  .schedule-table th:nth-child(8),
  .schedule-table td:nth-child(8) {
    width: 88px;
  }

  .schedule-table th:nth-child(9),
  .schedule-table td:nth-child(9) {
    width: 102px;
  }

  .schedule-table th:nth-child(10),
  .schedule-table td:nth-child(10) {
    width: 76px;
  }

  .schedule-table th:nth-child(11),
  .schedule-table td:nth-child(11) {
    width: 54px;
  }
}

@media (min-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(3, 5, 9, 0.44), rgba(3, 5, 9, 0.92)),
      url("/assets/quest-hero.png") center 36% / max(100vw, 2300px) auto fixed no-repeat;
  }

  main {
    padding-top: 52px;
    padding-inline: 12px;
  }

  .section {
    width: min(1500px, 100%);
  }

  .admin-shell {
    max-width: 1420px;
    gap: 10px;
  }

  .admin-header,
  .panel {
    padding: 10px 12px;
  }

  .admin-tabs {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 6px;
  }

  .admin-tabs .schedule-tab {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .schedule-builder {
    gap: 10px;
    padding: 10px;
  }

  .builder-controls {
    grid-template-columns: minmax(160px, 220px) minmax(140px, 180px) minmax(220px, 1fr) minmax(120px, 160px);
    gap: 8px;
  }

  .builder-layout {
    grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.5fr);
    gap: 8px;
  }

  .candidate-pool,
  .team-builder-section,
  .history-group {
    padding: 8px;
  }

  .schedule-candidate {
    gap: 8px;
    padding: 8px;
  }

  .team-builder-grid {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    gap: 8px;
  }

  .team-builder-section {
    min-height: 148px;
  }

  .team-member {
    padding: 6px;
  }

  .team-member strong,
  .history-member strong {
    font-size: 12px;
  }

  .world-group {
    padding: 10px;
  }

  .world-heading h3 {
    font-size: 18px;
  }

  .serviceiro-form {
    grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  }

  .schedule-group-actions {
    grid-template-columns: repeat(3, minmax(106px, 1fr));
    gap: 6px;
  }

  .schedule-group-actions .mini-action,
  .schedule-serviceiro-form .ghost {
    min-height: 34px;
    font-size: 11px;
  }

  .serviceiro-slots {
    grid-template-columns: repeat(5, minmax(94px, 1fr));
  }

  .serviceiro-slots input {
    min-height: 30px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .schedule-table {
    font-size: 10px;
  }

  .schedule-table th {
    padding: 5px 3px;
    font-size: 10px;
  }

  .schedule-table td {
    padding: 4px 3px;
  }

  .schedule-table th:nth-child(1),
  .schedule-table td:nth-child(1) {
    width: 68px;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    width: 70px;
  }

  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3) {
    width: 100px;
  }

  .schedule-table th:nth-child(4),
  .schedule-table td:nth-child(4) {
    width: 118px;
  }

  .schedule-table th:nth-child(5),
  .schedule-table td:nth-child(5) {
    width: 126px;
  }

  .schedule-table th:nth-child(8),
  .schedule-table td:nth-child(8) {
    width: 88px;
  }

  .schedule-table th:nth-child(9),
  .schedule-table td:nth-child(9) {
    width: 102px;
  }

  .schedule-table th:nth-child(10),
  .schedule-table td:nth-child(10) {
    width: 76px;
  }

  .schedule-table th:nth-child(11),
  .schedule-table td:nth-child(11) {
    width: 54px;
  }
}

.service-banner.soul {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.96) 0%, rgba(8, 11, 20, 0.8) 42%, rgba(8, 10, 18, 0.32) 100%),
    url("/assets/goshnar-megalomania.gif") right 28px center / auto 132px no-repeat,
    radial-gradient(circle at 82% 50%, rgba(138, 43, 226, 0.44), transparent 34%),
    url("/assets/quest-hero.png") center 48% / cover no-repeat;
  box-shadow: 0 0 24px rgba(138, 43, 226, 0.34);
}

.service-banner.soul h2 {
  position: relative;
  z-index: 1;
  font-size: 34px;
  letter-spacing: 0;
}

/* Compact density for admin workflows and dialogs. */
main {
  padding-top: 62px;
}

.content-section,
.app-section,
.panel {
  padding: 14px;
}

.panel-heading {
  margin-bottom: 12px;
}

.panel-heading,
.actions,
.meta,
.admin-shell,
.admin-header,
.admin-tabs,
.world-tabs,
.vocation-tabs,
.vocation-card-grid,
.cards,
.admin-grid,
.client-grid {
  gap: 8px;
}

h2 {
  font-size: 24px;
}

.topbar {
  height: 48px;
  padding: 0 18px;
}

.nav-link {
  padding: 0 10px;
  font-size: 12px;
}

.socials {
  gap: 10px;
  font-size: 11px;
}

.admin-tabs {
  padding: 6px;
}

.admin-tabs .tab {
  min-height: 34px;
  font-size: 13px;
}

.admin-tabs .schedule-tab {
  min-height: 42px;
  font-size: 15px;
}

.tab,
.ghost,
.primary {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

input,
select,
textarea {
  padding: 8px 10px;
  font-size: 13px;
}

label {
  gap: 5px;
  font-size: 12px;
}

.world-group {
  gap: 10px;
  padding: 12px;
}

.world-heading {
  padding-bottom: 8px;
}

.world-heading h3 {
  font-size: 20px;
}

.world-heading span,
.section-heading span,
.panel-heading span {
  font-size: 10px;
}

.world-heading strong,
.group-heading span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.vocation-row {
  gap: 8px;
  padding: 10px;
}

.vocation-row .admin-card {
  gap: 8px;
  padding: 10px;
}

.vocation-row .admin-card h3 {
  font-size: 14px;
}

.request-card,
.admin-card,
.client-card {
  padding: 10px;
}

.card-title-row {
  gap: 6px;
  margin-bottom: 2px;
}

.request-id {
  padding: 2px 5px;
  font-size: 11px;
}

.quest-name {
  margin-bottom: 7px;
  font-size: 11px;
}

.schedule-summary {
  gap: 6px;
  margin-top: 7px;
}

.schedule-summary span {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}

.schedule-summary strong {
  font-size: 14px;
}

.card-status-row {
  margin-top: 8px;
}

.card-status-row .status-badge {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.registration-details {
  margin-top: 8px;
}

.registration-details summary {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.detail-grid {
  gap: 6px;
}

.detail-grid div {
  padding: 6px;
}

.detail-grid dt {
  font-size: 9px;
}

.detail-grid dd {
  font-size: 11px;
}

.admin-controls {
  gap: 6px;
}

.status-action {
  min-height: 34px;
  font-size: 13px;
}

.schedule-toolbar {
  margin-bottom: 10px;
}

.serviceiro-form {
  gap: 8px;
  margin-bottom: 10px;
}

.serviceiro-slots {
  gap: 6px;
}

.serviceiro-slots input {
  min-height: 34px;
  padding: 7px 8px;
}

.schedule-table {
  font-size: 11px;
}

.schedule-table th {
  padding: 6px 4px;
  font-size: 11px;
}

.schedule-table td {
  padding: 5px 4px;
}

.queue-status {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 11px;
}

.schedule-actions-cell {
  gap: 4px;
}

.mini-action {
  min-height: 24px;
  padding: 0 4px;
  font-size: 9px;
}

.modal {
  padding: 12px;
}

.modal-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 24px);
  padding: 14px;
}

.schedule-time-card {
  width: min(420px, 100%);
}

.modal-heading {
  gap: 8px;
}

.modal-heading h2 {
  font-size: 16px;
}

.icon-close {
  width: 26px;
  height: 26px;
  font-size: 16px;
}

.schedule-time-grid {
  gap: 7px;
  margin-top: 10px;
}

.schedule-time-option {
  min-height: 36px;
  font-size: 13px;
}

.team-choice-actions {
  gap: 8px;
  margin-top: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(3, 5, 9, 0.48), rgba(3, 5, 9, 0.94)),
    url("/assets/quest-hero.png") center 38% / max(100vw, 2100px) auto fixed no-repeat;
  font-family: Inter, Arial, sans-serif;
}

a,
button,
.showcase-card,
.center-service {
  cursor: pointer;
}

.fire-particle {
  position: fixed;
  z-index: 999;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 246, 166, 0.96) 0 18%, rgba(255, 130, 22, 0.88) 42%, rgba(198, 30, 12, 0.2) 70%, transparent 100%);
  box-shadow: 0 0 12px rgba(255, 128, 0, 0.8), 0 0 26px rgba(255, 68, 0, 0.42);
  animation: fireFade 520ms ease-out forwards;
}

@keyframes fireFade {
  from {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -78%) scale(0.24);
  }
}

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

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(10px);
}

.topnav {
  position: absolute;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  height: 100%;
  min-width: 0;
  max-width: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-link {
  min-height: 100%;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.nav-link:hover,
.nav-link.active,
.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.socials {
  display: none;
  flex: 0 0 auto;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

main {
  min-height: calc(100vh - 40px);
  padding: 76px 24px 0;
}

.section {
  display: none;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section.active {
  display: block;
}

.hero.active {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}

.brand {
  text-align: center;
  filter: drop-shadow(0 0 14px rgba(245, 189, 52, 0.28));
}

.brand span,
.brand strong {
  display: block;
  font-family: Cinzel, serif;
  line-height: 0.9;
  text-shadow: 0 0 16px rgba(245, 189, 52, 0.28), 0 3px 0 #120b02;
}

.brand span {
  font-size: clamp(42px, 6.8vw, 84px);
  color: var(--gold);
}

.brand strong {
  font-size: clamp(26px, 4.6vw, 52px);
  color: #fff2c2;
}

.service-showcase,
.panel,
.content-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.service-showcase {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.showcase-card {
  position: relative;
  height: clamp(560px, calc(100vh - 150px), 720px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: clamp(46px, 6vw, 92px);
  color: var(--text);
  background: #120b05;
  text-align: left;
  isolation: isolate;
}

.showcase-card::before,
.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.showcase-card::before {
  opacity: 0.44;
  background: url("/assets/quest-hero.png") center / cover no-repeat;
}

.showcase-card::after {
  z-index: -1;
}

.showcase-card.soul::after {
  background:
    radial-gradient(circle at 72% 42%, rgba(245, 189, 52, 0.28), transparent 18%),
    linear-gradient(180deg, rgba(49, 31, 6, 0.62), rgba(12, 8, 1, 0.96));
}

.showcase-card.sanguine::after {
  background:
    radial-gradient(circle at 72% 42%, rgba(196, 29, 47, 0.28), transparent 18%),
    linear-gradient(180deg, rgba(49, 6, 12, 0.62), rgba(11, 3, 6, 0.96));
}

.showcase-card.soul {
  padding-right: clamp(130px, 13vw, 230px);
}

.showcase-card.sanguine {
  padding-left: clamp(90px, 10vw, 170px);
  padding-right: clamp(190px, 20vw, 330px);
}

.showcase-card:hover {
  filter: brightness(1.08);
}

.service-sprite {
  position: absolute;
  z-index: 1;
  width: clamp(140px, 15vw, 240px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(245, 189, 52, 0.28));
  pointer-events: none;
}

.soul-sprite {
  right: clamp(100px, 12vw, 220px);
  top: 18%;
  width: clamp(160px, 16vw, 240px);
}

.sanguine-sprite {
  right: clamp(24px, 4vw, 88px);
  top: 20%;
  width: clamp(140px, 14vw, 220px);
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(213, 62, 75, 0.36));
}

.corner {
  position: absolute;
  width: 66px;
  height: 66px;
  border-color: rgba(245, 189, 52, 0.58);
  border-style: solid;
}

.sanguine .corner {
  border-color: rgba(213, 62, 75, 0.62);
}

.essence .corner {
  border-color: rgba(151, 71, 255, 0.72);
}

.top-left {
  top: 28px;
  left: 30px;
  border-width: 2px 0 0 2px;
}

.bottom-right {
  right: 30px;
  bottom: 28px;
  border-width: 0 2px 2px 0;
}

.service-mark {
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.92);
  font-family: Cinzel, serif;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.85);
}

.eyebrow {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.sanguine .eyebrow {
  color: #ff7681;
}

.essence .eyebrow {
  color: #b77aff;
}

.showcase-title {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  color: #f3d36a;
  font-family: Cinzel, serif;
  font-size: clamp(46px, 5.7vw, 78px);
  font-weight: 800;
  line-height: 0.95;
  text-shadow: 0 0 26px rgba(245, 189, 52, 0.4);
}

.sanguine .showcase-title {
  color: #ff6f7d;
  text-shadow: 0 0 26px rgba(196, 29, 47, 0.45);
}

.essence .showcase-title {
  color: #b46cff;
  text-shadow: 0 0 30px rgba(138, 43, 226, 0.58);
}

.showcase-line {
  width: min(300px, 80%);
  height: 1px;
  margin: 28px 0 18px;
  background: currentColor;
  opacity: 0.28;
}

.showcase-copy {
  position: relative;
  z-index: 2;
  max-width: 330px;
  color: #d7ddea;
  font-size: 14px;
  line-height: 1.55;
}

.tags {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
  margin: 16px 0 26px;
}

.tags b {
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.enter-button {
  position: relative;
  z-index: 2;
  min-width: 236px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  color: #160f02;
  background: linear-gradient(180deg, #f5d56b, var(--gold));
  font-family: Cinzel, serif;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(245, 189, 52, 0.22);
}

.sanguine .enter-button {
  color: white;
  background: linear-gradient(180deg, #d94b5c, #9d1628);
}

.center-service {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: clamp(190px, 17vw, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 22px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(245, 189, 52, 0.62);
  border-radius: 50%;
  color: white;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 189, 52, 0.42), transparent 31%),
    radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.38), transparent 58%),
    rgba(9, 5, 14, 0.92);
  box-shadow: 0 0 44px rgba(245, 120, 22, 0.46), 0 0 92px rgba(138, 43, 226, 0.34);
  text-align: center;
  gap: 8px;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.center-service::before,
.center-service::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(245, 189, 52, 0.24);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 220ms ease, transform 420ms ease;
}

.center-service::after {
  inset: -24px;
  border-color: rgba(151, 71, 255, 0.22);
}

.center-service:hover {
  transform: translate(-50%, -50%) scale(1.1) rotate(1.5deg);
  filter: brightness(1.16);
  box-shadow: 0 0 55px rgba(245, 120, 22, 0.58), 0 0 120px rgba(138, 43, 226, 0.48);
}

.center-service:hover::before,
.center-service:hover::after {
  opacity: 1;
  transform: scale(1);
}

.center-orb {
  position: absolute;
  top: 26px;
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.center-gif {
  width: clamp(92px, 8vw, 142px);
  height: auto;
  margin-top: 18px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(245, 189, 52, 0.9)) drop-shadow(0 0 34px rgba(138, 43, 226, 0.6));
  transform: scale(1.35);
  transition: transform 220ms ease, filter 220ms ease;
}

.center-service:hover .center-gif {
  transform: scale(1.62) rotate(-4deg);
  filter: drop-shadow(0 0 22px rgba(255, 220, 93, 1)) drop-shadow(0 0 48px rgba(138, 43, 226, 0.82));
}

.center-service strong {
  font-family: Cinzel, serif;
  font-size: clamp(17px, 1.75vw, 27px);
  line-height: 1.08;
  text-shadow: 0 2px 18px black;
}

.content-section,
.app-section {
  padding: 24px;
}

.app-section {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading span,
.panel-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-family: Cinzel, serif;
  font-size: 30px;
}

.text-block,
.rules p {
  max-width: 780px;
  color: #d6dbe6;
  line-height: 1.7;
}

.terms-card {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #303848;
  border-radius: 8px;
  background: rgba(12, 16, 25, 0.96);
}

.terms-title {
  padding: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
}

.terms-title h2 {
  font-size: 22px;
}

.terms-title span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.terms-summary {
  margin: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.terms-summary p {
  margin: 0 0 6px;
  color: #cdd5e4;
  font-size: 13px;
}

.terms-summary p:last-child {
  margin-bottom: 0;
}

.terms-summary strong {
  color: white;
}

.terms-list {
  padding: 0 16px;
}

.terms-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.terms-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: white;
  font-family: Cinzel, serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.terms-list summary::after {
  content: "+";
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
}

.terms-list details[open] summary::after {
  content: "-";
}

.terms-list p {
  margin: 0;
  padding: 0 0 14px;
  color: #cdd5e4;
  font-size: 13px;
  line-height: 1.55;
}

.terms-accept {
  margin: 16px;
  padding: 12px;
  border: 1px solid rgba(47, 128, 255, 0.55);
  border-radius: 8px;
  color: #b8c6e6;
  background: rgba(47, 128, 255, 0.08);
  font-size: 13px;
  text-align: center;
}

.catalog-grid,
.app-layout,
.login-layout {
  display: grid;
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

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

.app-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: start;
}

.service-page,
.service-actions,
.fill-grid {
  width: min(980px, calc(100% - 32px));
}

.service-page {
  margin: 0 auto 18px;
}

.service-actions {
  margin: 0 auto 14px;
}

.back-button {
  min-width: 118px;
}

.service-banner {
  min-height: 170px;
  display: flex;
  align-items: center;
  padding: 24px 32px;
  border: 1px solid #303848;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.86)),
    url("/assets/quest-hero.png") center 52% / 820px auto no-repeat;
  box-shadow: 0 0 22px rgba(138, 43, 226, 0.24);
}

.service-banner.sanguine {
  box-shadow: 0 0 22px rgba(139, 24, 36, 0.3);
  background-position: 62% 55%;
}

.service-banner.essence {
  box-shadow: 0 0 22px rgba(245, 189, 52, 0.22);
  background-position: 82% 55%;
}

.service-banner h2 {
  color: white;
  text-shadow: 0 2px 14px black;
}

.service-details {
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(9, 13, 22, 0.96), rgba(8, 10, 17, 0.94)),
    rgba(8, 10, 17, 0.96);
  text-align: center;
}

.server-line {
  margin: 14px 0;
  font-weight: 900;
}

.center {
  text-align: center;
}

.info-box,
.warning-box,
.submit-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #343d4e;
  border-radius: 8px;
  background: rgba(12, 16, 25, 0.96);
  text-align: left;
}

.info-box:has(#splitText) {
  border: 2px solid rgba(245, 189, 52, 0.72);
  background:
    linear-gradient(135deg, rgba(245, 189, 52, 0.14), rgba(137, 18, 30, 0.16)),
    rgba(12, 16, 25, 0.98);
  box-shadow: 0 0 0 1px rgba(245, 189, 52, 0.12), 0 0 32px rgba(245, 189, 52, 0.14);
}

.info-box:has(#splitText) h3 {
  font-size: 20px;
}

.info-box h3 {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 16px;
  text-transform: uppercase;
}

.info-box p,
.submit-box p,
.info-box small {
  color: #d7ddea;
  line-height: 1.55;
}

#splitText span {
  display: block;
  margin: 10px 0;
  color: #fff3c4;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

#sameCharacterText span {
  display: block;
  margin: 10px 0;
  color: #f3f6fb;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

#sameCharacterText span:first-child {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-weight: 900;
}

#standardText span {
  display: block;
  margin: 10px 0;
  color: #f3f6fb;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

#standardText span:first-child {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-weight: 900;
}

#standardText span.highlight-note,
#sameCharacterText span.highlight-note {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 189, 52, 0.62);
  border-radius: 8px;
  color: #ffe27a;
  background: rgba(245, 189, 52, 0.12);
  box-shadow: 0 0 18px rgba(245, 189, 52, 0.12);
}

.loot-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px 0 10px;
  text-align: center;
}

.loot-row span {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  color: #b8c1d4;
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 800;
}

.grand-items span {
  min-height: 86px;
}

.grand-items img {
  width: clamp(44px, 4.2vw, 62px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(245, 189, 52, 0.42));
}

.rare-drop-block {
  margin-top: 10px;
  text-align: center;
  padding: 10px;
  border: 1px solid rgba(245, 189, 52, 0.36);
  border-radius: 8px;
  background: rgba(245, 189, 52, 0.07);
}

.rare-drop-title {
  display: block;
  margin-bottom: 8px;
  color: #ffe27a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rare-drop-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.rare-drop-grid span {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 88px;
  color: var(--muted);
  font-size: 11px;
}

.rare-drop-grid img {
  max-width: 38px;
  max-height: 38px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(245, 189, 52, 0.3));
}

.rare-drop-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.rare-drop-warning {
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(245, 189, 52, 0.68);
  border-radius: 8px;
  color: #ffd85f;
  background: rgba(245, 189, 52, 0.11);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 760px) {
  .loot-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.warning-box {
  border-color: rgba(239, 68, 68, 0.68);
  color: #ff7b72;
  background: rgba(127, 29, 29, 0.34);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.requirements {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.requirements li {
  color: #d7ddea;
  font-size: 14px;
  font-weight: 800;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.requirement-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(245, 189, 52, 0.22));
}

.requirement-item strong {
  color: white;
}

.drop-note {
  margin-top: 14px;
  color: var(--gold) !important;
  font-family: Cinzel, serif;
  font-weight: 900;
  text-transform: uppercase;
}

#operationText {
  white-space: normal;
}

.operation-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #f3f6fb;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.operation-list ul {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding-left: 24px;
}

.operation-list strong {
  color: #ffffff;
  font-weight: 900;
}

.submit-box {
  border-color: rgba(45, 124, 255, 0.52);
  text-align: center;
}

.submit-box .primary {
  width: min(220px, 100%);
}

.fill-grid {
  margin: 0 auto;
}

.login-layout {
  width: min(420px, 100%);
  margin: 0 auto;
}

.panel {
  padding: 20px;
}

.tabs,
.admin-tabs,
.panel-heading,
.actions,
.meta {
  display: flex;
  gap: 10px;
}

.panel-heading {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tabs {
  margin-bottom: 14px;
}

.admin-shell {
  width: 100%;
  max-width: 1320px;
  display: grid;
  gap: 16px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-session {
  margin: 8px 0 0;
}

.admin-session strong {
  color: var(--gold);
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 9, 15, 0.58), rgba(14, 18, 28, 0.38)),
    url("/assets/quest-hero.png") center 42% / cover no-repeat;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.admin-tabs .tab {
  min-width: 0;
  min-height: 42px;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 18, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-tabs .schedule-tab {
  grid-column: 1 / -1;
  min-height: 58px;
  font-size: 18px;
}

.admin-tabs .tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  color: #170d02;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.admin-tabs .tab.active span {
  background: rgba(23, 13, 2, 0.16);
}

.world-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.world-tab {
  min-height: 38px;
  min-width: 132px;
  padding: 0 14px;
  border: 1px solid rgba(245, 189, 52, 0.24);
  border-radius: 8px;
  color: #dce3f0;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.world-tab.active {
  color: #170d02;
  background: var(--gold);
}

.world-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  color: #170d02;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.world-tab.active span {
  background: rgba(23, 13, 2, 0.16);
}

.vocation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.vocation-tab {
  min-height: 38px;
  min-width: 150px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #dce3f0;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.vocation-tab.active {
  color: white;
}

.voc-tab-ek.active {
  background: #2f855a;
}

.voc-tab-rp.active {
  background: #0f74b5;
}

.voc-tab-ms.active {
  background: #8a2be2;
}

.voc-tab-ed.active {
  background: #138a64;
}

.voc-tab-mk.active {
  background: #c05621;
}

.vocation-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  color: #170d02;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.tab,
.ghost {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.tab {
  flex: 1;
}

.tab.active {
  color: #170d02;
  background: var(--gold);
}

.admin-tabs .tab.active {
  color: white;
  background: linear-gradient(180deg, #2f80ff, #1159c7);
  box-shadow: 0 0 30px rgba(47, 128, 255, 0.36);
}

.schedule-tab {
  border-color: rgba(47, 128, 255, 0.7);
  color: #dfeaff;
  background: linear-gradient(180deg, rgba(47, 128, 255, 0.32), rgba(13, 42, 92, 0.72));
  box-shadow: 0 0 24px rgba(47, 128, 255, 0.18);
}

.schedule-tab span {
  color: white;
  background: rgba(47, 128, 255, 0.95);
}

.schedule-tab.active {
  color: white;
  background: linear-gradient(180deg, #2f80ff, #1159c7);
  box-shadow: 0 0 30px rgba(47, 128, 255, 0.36);
}

.schedule-tab.active span {
  color: #0a1830;
  background: rgba(255, 255, 255, 0.86);
}

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

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

label {
  display: grid;
  gap: 7px;
  color: #dce3f0;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #323c4f;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(7, 10, 16, 0.88);
}

.contact-field {
  display: grid;
  gap: 7px;
  color: #dce3f0;
  font-size: 13px;
  font-weight: 800;
}

.phone-field {
  display: grid;
  grid-template-columns: minmax(134px, 165px) 1fr;
  gap: 8px;
}

.phone-field select {
  min-width: 0;
  padding-inline: 8px;
}

.whatsapp-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.whatsapp-status.valid {
  color: #48d597;
}

.whatsapp-status.error {
  color: #ff7b72;
}

.status-action {
  width: 100%;
  min-height: 44px;
  border: 1px solid #323c4f;
  border-radius: 8px;
  color: white;
  background: rgba(19, 138, 100, 0.88);
  font-weight: 900;
  text-align: center;
}

.status-action.received {
  background: rgba(19, 138, 100, 0.88);
}

.status-action.scheduled {
  color: #170d02;
  background: linear-gradient(180deg, #ffd66e, var(--gold));
}

.status-action.done {
  background: rgba(47, 128, 255, 0.82);
}

.status-action.progress {
  color: #170d02;
  background: linear-gradient(180deg, #ffd66e, var(--gold));
}

.status-action.failed {
  background: rgba(192, 57, 43, 0.9);
}

.status-action.archive {
  background: #64748b;
}

.status-action.obelisk,
.mini-action.obelisk {
  color: #170d02;
  background: #67e8f9;
}

.mini-action.drop {
  background: #be123c;
}

.status-action.restore {
  width: auto;
  min-width: 120px;
  align-self: center;
  background: #2f80ff;
}

.status-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status-action:hover {
  filter: brightness(1.1);
}

.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #303848;
  border-radius: 8px;
  background: #070a10;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.68);
}

.schedule-time-card {
  width: min(520px, 100%);
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-heading h2 {
  font-size: 18px;
}

.icon-close {
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  font-size: 18px;
}

.icon-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.schedule-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.schedule-time-option {
  min-height: 46px;
  border: 1px solid rgba(47, 128, 255, 0.48);
  border-radius: 8px;
  color: white;
  background: linear-gradient(180deg, rgba(47, 128, 255, 0.88), rgba(17, 89, 199, 0.92));
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.schedule-time-option:hover {
  filter: brightness(1.12);
}

.team-choice-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.choice-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 2px;
  color: #dce3f0;
  font-size: 13px;
  font-weight: 900;
}

.choice-group label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: #f3f6fb;
  cursor: pointer;
}

.choice-group input {
  width: 16px;
  height: 16px;
  accent-color: #2f80ff;
}

.choice-group span {
  font-size: 13px;
  font-weight: 800;
}

.soulwar-vocations {
  gap: 5px;
}

.soulwar-vocations label {
  min-height: 22px;
  gap: 6px;
}

.soulwar-vocations input {
  width: 13px;
  height: 13px;
}

.vocation-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  image-rendering: pixelated;
}

.soulwar-vocations span {
  font-size: 12px;
}

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

.server-choices legend {
  grid-column: 1 / -1;
}

.server-choices:not(.new-server-choices) label {
  opacity: 0.78;
}

.new-server-choices {
  grid-template-columns: 1fr;
  margin-bottom: 4px;
}

.new-server-choices .priority-server {
  min-height: 38px;
  padding: 6px 8px;
  border: 2px solid rgba(245, 189, 52, 0.78);
  border-radius: 7px;
  color: white;
  background: linear-gradient(180deg, rgba(245, 189, 52, 0.22), rgba(87, 62, 14, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(245, 189, 52, 0.2);
  opacity: 1;
}

.new-server-choices .priority-server span {
  color: white;
  font-weight: 950;
}

.new-server-choices .priority-server span::after {
  content: "Novo";
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #170d02;
  background: var(--gold);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

textarea {
  resize: vertical;
}

.check {
  grid-template-columns: 20px 1fr;
  align-items: center;
  min-height: 44px;
}

.check input {
  width: 18px;
  height: 18px;
}

.wide {
  grid-column: 1 / -1;
}

.primary {
  min-height: 44px;
  border-radius: 8px;
  color: #170d02;
  background: linear-gradient(180deg, #ffd66e, var(--gold));
  font-weight: 900;
}

.primary:hover {
  filter: brightness(1.08);
}

.small-select {
  width: 100%;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(245, 189, 52, 0.45);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(245, 189, 52, 0.08);
  font-size: 12px;
}

.admin-panel {
  margin-top: 18px;
}

.inline-list {
  margin-top: 0;
}

.cards,
.admin-grid,
.client-grid {
  display: grid;
  gap: 12px;
}

.world-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(245, 189, 52, 0.3);
  border-radius: 8px;
  background: rgba(8, 11, 18, 0.64);
}

.world-heading,
.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.world-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 189, 52, 0.22);
}

.world-heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.world-heading h3 {
  margin: 0;
  color: white;
  font-family: Cinzel, serif;
  font-size: 24px;
}

.world-heading strong,
.group-heading span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(245, 189, 52, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.vocation-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.vocation-rows {
  display: grid;
  gap: 14px;
}

.vocation-row {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.voc-column-ek {
  border-left-color: #2f855a;
}

.voc-column-rp {
  border-left-color: #0f74b5;
}

.voc-column-ms {
  border-left-color: #8a2be2;
}

.voc-column-ed {
  border-left-color: #138a64;
}

.voc-column-mk {
  border-left-color: #c05621;
}

.vocation-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.vocation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vocation-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.vocation-summary .primary {
  width: min(220px, 100%);
  min-height: 38px;
}

.vocation-summary .primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.vocation-row .admin-card {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
}

.vocation-row .admin-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.vocation-row .admin-card .muted {
  font-size: 12px;
  line-height: 1.35;
}

.vocation-row .meta span {
  font-size: 11px;
}

.vocation-row .status-action {
  min-height: 38px;
}

.vocation-row .schedule-summary {
  grid-template-columns: 1fr;
}

.vocation-row .detail-grid {
  grid-template-columns: 1fr;
}

.vocation-row .action-help {
  font-size: 11px;
}

.cooldown-badge {
  color: white !important;
  font-weight: 900;
}

.cooldown-badge.locked {
  background: #b42318 !important;
}

.cooldown-badge.ready {
  background: #138a64 !important;
}

.done-label {
  color: white !important;
  background: #b42318 !important;
  font-weight: 900;
}

.compact-empty {
  padding: 12px;
  font-size: 12px;
}

.group-heading h4 {
  margin: 0;
  color: #dce3f0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-card,
.admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 10, 16, 0.75);
}

.request-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.request-card h3,
.admin-card h3 {
  margin-bottom: 8px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.request-id {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 5px;
  color: #170d02;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.quest-name {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.detail-grid div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-grid dt {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid dd {
  min-width: 0;
  margin: 0;
  color: #eef3ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.level-value {
  color: white !important;
  font-size: 16px !important;
}

.voc-value {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 5px;
  color: white !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.schedule-summary span {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #eef3ff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.schedule-summary strong {
  margin-left: 4px;
  color: white;
  font-size: 16px;
}

.registration-details {
  margin-top: 10px;
}

.registration-details summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(245, 189, 52, 0.22);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(245, 189, 52, 0.06);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.registration-details .detail-grid {
  margin-top: 8px;
}

.card-status-row {
  margin-top: 12px;
}

.card-status-row .status-badge {
  order: -1;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: white !important;
  background: #475569 !important;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.status-badge.status-received {
  border-color: rgba(47, 128, 255, 0.72);
  background: linear-gradient(180deg, #2f80ff, #1159c7) !important;
}

.status-badge.status-review {
  border-color: rgba(245, 189, 52, 0.82);
  color: #170d02 !important;
  background: linear-gradient(180deg, #ffd66e, var(--gold)) !important;
}

.status-badge.status-waiting {
  border-color: rgba(34, 197, 94, 0.78);
  background: linear-gradient(180deg, #22c55e, #15803d) !important;
}

.status-badge.status-progress {
  border-color: rgba(168, 85, 247, 0.82);
  background: linear-gradient(180deg, #a855f7, #6d28d9) !important;
}

.status-badge.status-done {
  border-color: rgba(20, 184, 166, 0.82);
  background: linear-gradient(180deg, #14b8a6, #0f766e) !important;
}

.status-badge.status-failed {
  border-color: rgba(239, 68, 68, 0.86);
  background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
}

.admin-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-controls label {
  gap: 6px;
}

.action-help {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.schedule-builder {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(47, 128, 255, 0.28);
  border-radius: 8px;
  background: rgba(47, 128, 255, 0.06);
}

.builder-controls {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(160px, 220px) minmax(180px, 1fr) minmax(150px, 190px);
  gap: 10px;
  align-items: end;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
}

.candidate-pool,
.team-builder-section {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 10, 16, 0.58);
}

.candidate-list,
.team-member-list {
  display: grid;
  gap: 8px;
}

.schedule-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.schedule-candidate h3 {
  margin: 0;
  font-size: 15px;
}

.replacement-suggestion {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.08);
}

.replacement-suggestion p {
  margin: 0;
}

.replacement-candidate {
  border-color: rgba(34, 197, 94, 0.26);
}

.builder-add-actions {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  gap: 5px;
}

.builder-add-actions .mini-action {
  min-height: 30px;
}

.team-builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.team-builder-section {
  align-content: start;
  min-height: 180px;
}

.team-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.team-member strong,
.team-member small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.team-member .remove {
  grid-column: 1 / -1;
}

.schedule-history {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.history-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(245, 189, 52, 0.28);
  border-radius: 8px;
  background: rgba(7, 10, 16, 0.62);
}

.history-member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.history-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.history-member strong,
.history-member small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-member small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.history-member .obelisk {
  grid-column: 1 / -1;
}

.schedule-toolbar {
  margin-bottom: 14px;
}

.schedule-toolbar label {
  width: min(260px, 100%);
}

.serviceiro-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.schedule-serviceiro-form .schedule-table-wrap {
  grid-column: 1 / -1;
}

.schedule-serviceiro-form .ghost {
  min-height: 40px;
  white-space: nowrap;
}

.schedule-group-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, auto));
  gap: 8px;
  align-items: end;
}

.schedule-group-actions .mini-action {
  min-height: 40px;
  padding: 0 10px;
  font-size: 12px;
}

.serviceiro-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.serviceiro-slots label {
  min-width: 0;
}

.serviceiro-slots input {
  min-height: 40px;
  padding: 9px 10px;
}

.schedule-table-wrap {
  overflow-x: visible;
  border: 1px solid #02050a;
  border-radius: 4px;
  background: #d9d9d9;
}

.schedule-table {
  width: 100%;
  table-layout: fixed;
  min-width: 0;
  border-collapse: collapse;
  color: #05070b;
  background: #d9d9d9;
  font-size: 12px;
  font-weight: 800;
}

.schedule-table th {
  padding: 8px 5px;
  border: 1px solid #02050a;
  color: white;
  background: #02050a;
  font-family: Georgia, serif;
  font-size: 12px;
  text-transform: uppercase;
}

.schedule-table td {
  padding: 7px 5px;
  border: 1px solid #1b1b1b;
  background: #d9d9d9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
  width: 78px;
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 82px;
}

.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
  width: 112px;
}

.schedule-table th:nth-child(4),
.schedule-table td:nth-child(4) {
  width: 132px;
}

.schedule-table th:nth-child(5),
.schedule-table td:nth-child(5) {
  width: 140px;
}

.schedule-table th:nth-child(6),
.schedule-table td:nth-child(6) {
  width: 52px;
}

.schedule-table th:nth-child(7),
.schedule-table td:nth-child(7) {
  width: 46px;
}

.schedule-table th:nth-child(8),
.schedule-table td:nth-child(8) {
  width: 104px;
}

.schedule-table th:nth-child(9),
.schedule-table td:nth-child(9) {
  width: 112px;
}

.schedule-table th:nth-child(10),
.schedule-table td:nth-child(10) {
  width: 86px;
}

.schedule-table th:nth-child(11),
.schedule-table td:nth-child(11) {
  width: 62px;
}

.schedule-table tbody tr:nth-child(even) td {
  background: #cfcfcf;
}

.voc-cell {
  color: white;
  text-align: center;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.voc-ek {
  background: #16a34a !important;
}

.voc-rp {
  background: #0ea5e9 !important;
}

.voc-ms {
  background: #9333ea !important;
}

.voc-ed {
  background: #0f766e !important;
}

.voc-mk {
  background: #f97316 !important;
}

.queue-status {
  color: #241b00;
  text-align: center;
}

.queue-status.status-waiting {
  background: #d7b21b !important;
}

.queue-status.status-progress {
  color: #170d02;
  background: #f59e0b !important;
}

.queue-status.status-failed {
  color: white;
  background: #c0392b !important;
}

.queue-status.status-done {
  color: white;
  background: #138a64 !important;
}

.queue-status.status-received {
  color: white;
  background: #273040 !important;
}

.serviceiro-input {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #707070;
  border-radius: 0;
  color: #05070b;
  background: #efefef;
  font-size: 13px;
  font-weight: 800;
}

.schedule-table select.serviceiro-input {
  color: #05070b;
  background: #efefef;
}

.schedule-actions-cell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  min-width: 0;
}

.mini-action {
  min-height: 28px;
  padding: 0 5px;
  border-radius: 3px;
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.mini-action.progress {
  color: #170d02;
  background: var(--gold);
}

.mini-action.failed {
  background: var(--danger);
}

.mini-action.done {
  background: #2f80ff;
}

.mini-action.scheduled {
  background: #2563eb;
}

.mini-action.swap {
  color: #170d02;
  background: #facc15;
}

.mini-action.remove {
  background: #64748b;
}

.mini-action.notice {
  min-height: 32px;
  background: #16a34a;
}

.client-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 10, 16, 0.75);
}

.client-card h3 {
  margin-bottom: 8px;
}

.finance-team-group {
  display: grid;
  gap: 14px;
}

.finance-date-filter {
  min-width: 170px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.finance-date-filter input {
  margin-top: 6px;
}

.finance-schedule-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(7, 10, 16, 0.78);
}

.finance-schedule-serviceiros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-schedule-serviceiros span {
  padding: 7px 9px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 6px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.finance-schedule-group .world-heading h3 {
  color: #22d3ee;
  text-shadow:
    0 0 8px rgba(34, 211, 238, 0.72),
    0 0 18px rgba(245, 189, 52, 0.32);
}

.finance-schedule-table th,
.finance-schedule-table td {
  text-align: left;
}

.readonly-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.first-attempt-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 6px 0;
  padding: 5px 8px;
  border: 1px solid rgba(248, 113, 113, 0.72);
  border-radius: 6px;
  color: #fee2e2;
  background: linear-gradient(180deg, #dc2626, #991b1b);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.finance-summary,
.finance-serviceiros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.finance-summary span,
.finance-serviceiros span {
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 6px;
  color: #f8fafc;
  background: rgba(245, 158, 11, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.finance-recipient {
  display: grid;
  gap: 5px;
  min-width: 160px;
}

.finance-recipient small {
  color: var(--muted);
  font-size: 11px;
}

.copy-finance {
  min-height: 30px;
  background: #334155;
}

.finance-paid-all {
  min-height: 34px;
  background: #16a34a;
}

.finance-receipt {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.1);
}

.finance-receipt h4 {
  margin: 4px 0 0;
}

.finance-receipt > div > span {
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-payment-field {
  align-self: start;
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.finance-payment-field input {
  margin-top: 6px;
  text-align: right;
}

.meta {
  flex-wrap: wrap;
  margin-top: 10px;
}

.meta span {
  padding: 6px 9px;
  border-radius: 6px;
  color: #d8deea;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.status {
  color: white !important;
  background: var(--success) !important;
}

.empty {
  padding: 20px;
  color: var(--muted);
  border: 1px dashed #465268;
  border-radius: 8px;
}

.trust-section {
  width: min(980px, calc(100% - 28px));
  margin: 100px auto 80px;
  text-align: center;
}

.centered {
  text-align: center;
}

.centered h2 {
  color: var(--gold);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.trust-grid article {
  min-height: 170px;
  padding: 26px 24px;
  border: 1px solid rgba(245, 189, 52, 0.28);
  border-radius: 4px;
  background: rgba(28, 18, 7, 0.68);
}

.trust-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 30px;
}

.trust-grid h3 {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: Cinzel, serif;
}

.trust-grid p,
.cta-block p {
  color: #d7ddea;
  line-height: 1.55;
}

.cta-block {
  margin: 110px auto 60px;
  text-align: center;
}

.cta-block h2 {
  color: var(--gold);
}

.whatsapp-button {
  min-width: 260px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border-radius: 4px;
  color: #170d02;
  background: linear-gradient(180deg, #f7d96e, var(--gold));
  font-family: Cinzel, serif;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 0;
  padding: 44px 18px 24px;
  border-top: 1px solid rgba(245, 189, 52, 0.3);
  background: rgba(8, 6, 3, 0.96);
}

.divider {
  position: relative;
  width: min(980px, 100%);
  height: 1px;
  margin: 0 auto 42px;
  background: linear-gradient(90deg, transparent, rgba(245, 189, 52, 0.72), transparent);
}

.divider span {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
}

.footer-grid {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 54px;
  margin: 0 auto;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: Cinzel, serif;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid span,
.footer-grid a,
.footer-grid button {
  display: block;
  margin: 8px 0;
  color: #9ba4b8;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}

.footer-grid button:hover,
.footer-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  width: min(980px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 42px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 189, 52, 0.2);
  color: #657084;
  font-size: 12px;
}

.floating-whatsapp {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 999px;
  color: #f3fff7;
  background: rgba(5, 18, 11, 0.92);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.52);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.floating-whatsapp span {
  max-width: 150px;
  line-height: 1.15;
  text-align: right;
}

.floating-whatsapp img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

@media (max-width: 560px) {
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding-left: 12px;
  }

  .floating-whatsapp span {
    max-width: 118px;
    font-size: 10px;
  }
}

.floating-submit {
  position: fixed;
  z-index: 58;
  left: 50%;
  bottom: 22px;
  width: min(520px, calc(100% - 120px));
  min-height: 64px;
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 10px 22px;
  transform: translateX(-50%);
  border: 1px solid rgba(245, 189, 52, 0.62);
  border-radius: 8px;
  color: #170d02;
  background: linear-gradient(180deg, #ffe089, var(--gold));
  box-shadow: 0 0 28px rgba(245, 189, 52, 0.28), 0 14px 34px rgba(0, 0, 0, 0.36);
  font-weight: 900;
}

.floating-submit span {
  font-family: Cinzel, serif;
  font-size: 16px;
}

.floating-submit small {
  color: rgba(23, 13, 2, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 92px;
  max-width: min(380px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  color: white;
  background: #273040;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--danger);
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .service-showcase,
  .catalog-grid,
  .app-layout,
  .login-layout,
  .trust-grid,
  .footer-grid,
  .admin-card,
  .client-card,
  .request-card {
    grid-template-columns: 1fr;
  }

  .hero.active {
    gap: 22px;
  }

  .showcase-card {
    height: auto;
    min-height: 520px;
    padding: 48px 28px;
  }

  .showcase-card.soul,
  .showcase-card.sanguine {
    padding-left: 28px;
    padding-right: 28px;
  }

  .service-sprite {
    width: 146px;
    right: 22px;
    top: 24px;
  }

  .sanguine-sprite {
    width: 138px;
    right: 20px;
    top: 24px;
    opacity: 0.82;
  }

  .center-service {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 2;
    width: min(290px, 76vw);
    margin: -90px auto -90px;
    transform: none;
  }

  .center-service:hover {
    transform: scale(1.06);
  }

  .service-mark {
    margin-bottom: 28px;
  }

  .showcase-title {
    font-size: clamp(42px, 13vw, 66px);
  }

  .showcase-copy {
    max-width: 100%;
  }

  .socials {
    gap: 10px;
    font-size: 11px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 1280px) {
  .vocation-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 14px;
    height: auto;
    min-height: 56px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .topnav {
    width: 100%;
    min-height: 52px;
  }

  .nav-link {
    padding: 0 12px;
    font-size: 13px;
  }

  .socials {
    width: 100%;
    justify-content: center;
    padding: 8px 0 10px;
  }

  main {
    padding-top: 108px;
    padding-inline: 10px;
  }

  .trust-section {
    margin-top: 64px;
  }

  .grid-form {
    grid-template-columns: 1fr;
  }

  .phone-field {
    grid-template-columns: 1fr;
  }

  .brand span {
    font-size: 38px;
  }

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

  .service-showcase,
  .panel,
  .content-section,
  .app-section {
    padding: 14px;
  }

  .app-section {
    max-width: 100%;
  }

  .service-showcase {
    padding: 0;
  }

  .enter-button {
    min-width: 100%;
  }

  .floating-submit {
    left: 10px;
    right: 76px;
    width: auto;
    transform: none;
  }

  .panel-heading,
  .actions,
  .admin-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .admin-tabs .schedule-tab {
    min-height: 52px;
    font-size: 16px;
  }

  .admin-tabs .tab {
    min-width: 0;
  }

  .builder-controls,
  .builder-layout,
  .schedule-candidate {
    grid-template-columns: 1fr;
  }

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

  .builder-add-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .vocation-card-grid {
    grid-template-columns: 1fr;
  }

  .serviceiro-form {
    grid-template-columns: 1fr;
  }

  .schedule-group-actions {
    grid-template-columns: 1fr;
  }

  .serviceiro-slots {
    grid-template-columns: 1fr;
  }

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

  .vocation-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .vocation-summary .primary {
    width: 100%;
  }
}

/* Compact density override. Keep this block last so it wins. */
main {
  padding-top: 62px;
}

.content-section,
.app-section,
.panel {
  padding: 14px;
}

.panel-heading {
  margin-bottom: 12px;
}

.panel-heading,
.actions,
.meta,
.admin-shell,
.admin-header,
.admin-tabs,
.world-tabs,
.vocation-tabs,
.vocation-card-grid,
.cards,
.admin-grid,
.client-grid {
  gap: 8px;
}

h2 {
  font-size: 24px;
}

.topbar {
  height: 48px;
  padding: 0 18px;
}

.nav-link {
  padding: 0 10px;
  font-size: 12px;
}

.socials {
  gap: 10px;
  font-size: 11px;
}

.admin-tabs {
  padding: 6px;
}

.admin-tabs .tab {
  min-height: 34px;
  font-size: 13px;
}

.admin-tabs .schedule-tab {
  min-height: 42px;
  font-size: 15px;
}

.tab,
.ghost,
.primary {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

input,
select,
textarea {
  padding: 8px 10px;
  font-size: 13px;
}

label {
  gap: 5px;
  font-size: 12px;
}

.world-group {
  gap: 10px;
  padding: 12px;
}

.world-heading {
  padding-bottom: 8px;
}

.world-heading h3 {
  font-size: 20px;
}

.world-heading span,
.section-heading span,
.panel-heading span {
  font-size: 10px;
}

.world-heading strong,
.group-heading span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.vocation-row {
  gap: 8px;
  padding: 10px;
}

.vocation-row .admin-card {
  gap: 8px;
  padding: 10px;
}

.vocation-row .admin-card h3 {
  font-size: 14px;
}

.request-card,
.admin-card,
.client-card {
  padding: 10px;
}

.card-title-row {
  gap: 6px;
  margin-bottom: 2px;
}

.request-id {
  padding: 2px 5px;
  font-size: 11px;
}

.quest-name {
  margin-bottom: 7px;
  font-size: 11px;
}

.schedule-summary {
  gap: 6px;
  margin-top: 7px;
}

.schedule-summary span {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}

.schedule-summary strong {
  font-size: 14px;
}

.card-status-row {
  margin-top: 8px;
}

.card-status-row .status-badge {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.registration-details {
  margin-top: 8px;
}

.registration-details summary {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.detail-grid {
  gap: 6px;
}

.detail-grid div {
  padding: 6px;
}

.detail-grid dt {
  font-size: 9px;
}

.detail-grid dd {
  font-size: 11px;
}

.admin-controls {
  gap: 6px;
}

.status-action {
  min-height: 34px;
  font-size: 13px;
}

.schedule-toolbar {
  margin-bottom: 10px;
}

.serviceiro-form {
  gap: 8px;
  margin-bottom: 10px;
}

.serviceiro-slots {
  gap: 6px;
}

.serviceiro-slots input {
  min-height: 34px;
  padding: 7px 8px;
}

.schedule-table {
  font-size: 11px;
}

.schedule-table th {
  padding: 6px 4px;
  font-size: 11px;
}

.schedule-table td {
  padding: 5px 4px;
}

.queue-status {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 11px;
}

.schedule-actions-cell {
  gap: 4px;
}

.mini-action {
  min-height: 24px;
  padding: 0 4px;
  font-size: 9px;
}

.modal {
  padding: 12px;
}

.modal-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 24px);
  padding: 14px;
}

.schedule-time-card {
  width: min(420px, 100%);
}

.modal-heading {
  gap: 8px;
}

.modal-heading h2 {
  font-size: 16px;
}

.icon-close {
  width: 26px;
  height: 26px;
  font-size: 16px;
}

.schedule-time-grid {
  gap: 7px;
  margin-top: 10px;
}

.schedule-time-option {
  min-height: 36px;
  font-size: 13px;
}

.team-choice-actions {
  gap: 8px;
  margin-top: 12px;
}

/* Admin viewport fit. Keep this block last so normal browser zoom can stay at 100%. */
@media (min-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(3, 5, 9, 0.44), rgba(3, 5, 9, 0.92)),
      url("/assets/quest-hero.png") center 36% / max(100vw, 2300px) auto fixed no-repeat;
  }

  main {
    padding-top: 52px;
    padding-inline: 12px;
  }

  .section {
    width: min(1500px, 100%);
  }

  .admin-shell {
    max-width: 1420px;
    gap: 10px;
  }

  .admin-header,
  .panel {
    padding: 10px 12px;
  }

  .admin-tabs {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 6px;
  }

  .admin-tabs .schedule-tab {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .schedule-builder {
    gap: 10px;
    padding: 10px;
  }

  .builder-controls {
    grid-template-columns: minmax(160px, 220px) minmax(140px, 180px) minmax(220px, 1fr) minmax(120px, 160px);
    gap: 8px;
  }

  .builder-layout {
    grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.5fr);
    gap: 8px;
  }

  .candidate-pool,
  .team-builder-section,
  .history-group {
    padding: 8px;
  }

  .schedule-candidate {
    gap: 8px;
    padding: 8px;
  }

  .team-builder-grid {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    gap: 8px;
  }

  .team-builder-section {
    min-height: 148px;
  }

  .team-member {
    padding: 6px;
  }

  .team-member strong,
  .history-member strong {
    font-size: 12px;
  }

  .world-group {
    padding: 10px;
  }

  .world-heading h3 {
    font-size: 18px;
  }

  .serviceiro-form {
    grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  }

  .schedule-group-actions {
    grid-template-columns: repeat(3, minmax(106px, 1fr));
    gap: 6px;
  }

  .schedule-group-actions .mini-action,
  .schedule-serviceiro-form .ghost {
    min-height: 34px;
    font-size: 11px;
  }

  .serviceiro-slots {
    grid-template-columns: repeat(5, minmax(94px, 1fr));
  }

  .serviceiro-slots input {
    min-height: 30px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .schedule-table {
    font-size: 10px;
  }

  .schedule-table th {
    padding: 5px 3px;
    font-size: 10px;
  }

  .schedule-table td {
    padding: 4px 3px;
  }

  .schedule-table th:nth-child(1),
  .schedule-table td:nth-child(1) {
    width: 68px;
  }

  .schedule-table th:nth-child(2),
  .schedule-table td:nth-child(2) {
    width: 70px;
  }

  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(3) {
    width: 100px;
  }

  .schedule-table th:nth-child(4),
  .schedule-table td:nth-child(4) {
    width: 118px;
  }

  .schedule-table th:nth-child(5),
  .schedule-table td:nth-child(5) {
    width: 126px;
  }

  .schedule-table th:nth-child(8),
  .schedule-table td:nth-child(8) {
    width: 88px;
  }

  .schedule-table th:nth-child(9),
  .schedule-table td:nth-child(9) {
    width: 102px;
  }

  .schedule-table th:nth-child(10),
  .schedule-table td:nth-child(10) {
    width: 76px;
  }

  .schedule-table th:nth-child(11),
  .schedule-table td:nth-child(11) {
    width: 54px;
  }
}
