:root {
  color-scheme: dark;

  --bg: #06090c;
  --panel: rgba(13, 18, 23, 0.88);
  --panel-strong: rgba(9, 13, 17, 0.96);

  --ink: #f4f6f5;
  --soft: #c7cdcd;
  --muted: #8f999a;

  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.19);

  --teal: #4fb6aa;
  --teal-strong: #62d4ca;
  --teal-dark: #255f5b;

  --danger: #ef423d;
  --danger-glow: rgba(239, 66, 61, 0.55);

  --shadow: 0 38px 110px rgba(0, 0, 0, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(79, 182, 170, 0.16), transparent 32%),
    radial-gradient(circle at 10% 12%, rgba(239, 66, 61, 0.08), transparent 24%),
    radial-gradient(circle at 92% 8%, rgba(98, 212, 202, 0.1), transparent 22%),
    linear-gradient(145deg, #030506 0%, #0a1014 48%, #050708 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 20px),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.08), transparent 22%);
  opacity: 0.32;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1680px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 22px;
  align-items: start;
  justify-content: center;
}

.hero-panel,
.content-panel,
.form-card,
.queue-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: min(900px, calc(100svh - 28px));
  border-radius: 26px;
  background:
    linear-gradient(100deg, rgba(10, 15, 20, 0.98) 0%, rgba(13, 18, 23, 0.96) 48%, rgba(13, 18, 23, 0.78) 100%),
    radial-gradient(circle at 76% 18%, rgba(79, 182, 170, 0.14), transparent 28%);
  backdrop-filter: blur(22px);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.74),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.hero-panel::before {
  position: absolute;
  inset: 1px;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%);
  opacity: 0.74;
}

.hero-panel::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 0, rgba(79, 182, 170, 0.06), transparent 42%),
    linear-gradient(to top, rgba(0, 0, 0, 0.48), transparent);
}

.barber-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 54px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(
      135deg,
      #143354 0 16%,
      #edf0ed 16% 32%,
      #b62025 32% 48%,
      #edf0ed 48% 64%,
      #143354 64% 80%,
      #edf0ed 80% 100%
    );
  background-size: 92px 132px;
  opacity: 0.72;
  box-shadow:
    inset -18px 0 28px rgba(0, 0, 0, 0.58),
    12px 0 34px rgba(0, 0, 0, 0.36);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  padding: clamp(48px, 4.4vw, 76px) clamp(44px, 5vw, 86px) clamp(32px, 3.4vw, 54px)
    clamp(104px, 7.6vw, 142px);
  display: flex;
  flex-direction: column;
}

.brand-row {
  display: block;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-strong);
  font-size: clamp(0.78rem, 0.9vw, 1.02rem);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::after {
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--teal-strong), var(--teal-dark));
  box-shadow: 0 0 24px rgba(79, 182, 170, 0.4);
}

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

h1 {
  max-width: 720px;
  margin: 0;
  color: #f6f7f5;
  font-size: clamp(4.25rem, 6.65vw, 6.9rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.05),
    0 28px 48px rgba(0, 0, 0, 0.52);
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 570px;
  margin: clamp(26px, 3.1vw, 44px) 0 clamp(22px, 2.2vw, 34px);
  color: rgba(244, 246, 245, 0.68);
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.55;
  font-weight: 500;
}

.shop-status {
  width: fit-content;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding: clamp(14px, 1.4vw, 20px) clamp(28px, 2.25vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #f8f8f4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(10, 14, 18, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 34px rgba(0, 0, 0, 0.32);
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  font-weight: 900;
}

.shop-status span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 24px var(--danger-glow);
}

.shop-status.open span {
  background: var(--teal-strong);
  box-shadow: 0 0 28px rgba(98, 212, 202, 0.82);
}

.hero-art {
  position: absolute;
  z-index: 0;
  top: clamp(58px, 4.4vw, 88px);
  right: clamp(0px, 2.2vw, 34px);
  width: min(43%, 550px);
  height: 58%;
  opacity: 0.5;
  pointer-events: none;
  color: rgba(216, 222, 222, 0.7);
}

.scene-art {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 26px rgba(98, 212, 202, 0.08));
}

.scene-art path {
  stroke-width: 2.7;
  opacity: 0.46;
}

.scene-art .lamp-line,
.scene-art .lamp-shade,
.scene-art .lamp-glow {
  opacity: 0.72;
}

.scene-art .lamp-glow {
  stroke: var(--teal-strong);
}

.divider {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  gap: 18px;
  align-items: center;
  margin: auto 0 clamp(26px, 2.8vw, 42px);
}

.divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.divider i {
  width: 42px;
  height: 42px;
  opacity: 0.9;
  background:
    linear-gradient(45deg, transparent 43%, var(--teal) 44% 55%, transparent 56%),
    linear-gradient(-45deg, transparent 43%, var(--teal) 44% 55%, transparent 56%),
    radial-gradient(circle at 30% 30%, transparent 0 12%, var(--teal) 13% 18%, transparent 19%),
    radial-gradient(circle at 70% 30%, transparent 0 12%, var(--teal) 13% 18%, transparent 19%);
}

.queue-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(148px, 13vw, 180px);
  padding: clamp(20px, 2.1vw, 30px) clamp(24px, 3vw, 40px) clamp(16px, 1.8vw, 24px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(9, 14, 18, 0.76);
  box-shadow:
    inset 0 -10px 0 rgba(79, 182, 170, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 44px rgba(0, 0, 0, 0.36);
}

.stat-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 18% 0%, rgba(98, 212, 202, 0.13), transparent 34%);
}

.stat-icon {
  position: relative;
  width: clamp(54px, 5vw, 70px);
  height: clamp(42px, 4vw, 56px);
  margin-bottom: clamp(10px, 1.6vw, 22px);
  color: var(--teal);
}

.stat-icon svg,
.preference-note svg {
  width: 100%;
  height: 100%;
  display: block;
}

.people-icon::before,
.people-icon::after,
.preference-note span::before,
.preference-note span::after,
.preference-note i::before,
.preference-note i::after {
  display: none;
}

.people-icon::before {
  position: absolute;
  left: 17px;
  top: 0;
  width: 18px;
  height: 18px;
  content: "";
  border: 3px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(circle at -4px 16px, transparent 0 10px, currentColor 11px 13px, transparent 14px),
    radial-gradient(circle at 22px 16px, transparent 0 10px, currentColor 11px 13px, transparent 14px);
}

.people-icon::after {
  position: absolute;
  left: 4px;
  top: 23px;
  width: 42px;
  height: 19px;
  content: "";
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(ellipse at -8px 20px, transparent 0 15px, currentColor 16px 18px, transparent 19px),
    radial-gradient(ellipse at 50px 20px, transparent 0 15px, currentColor 16px 18px, transparent 19px);
}

.comb-icon::before {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 48px;
  height: 24px;
  content: "";
  border: 3px solid currentColor;
  border-radius: 9px;
  transform: rotate(-34deg);
}

.comb-icon::after {
  position: absolute;
  left: 11px;
  top: 16px;
  width: 4px;
  height: 18px;
  content: "";
  background: currentColor;
  transform: rotate(-34deg);
  box-shadow:
    8px 0 0 currentColor,
    16px 0 0 currentColor,
    24px 0 0 currentColor,
    32px 0 0 currentColor;
}

.queue-stats span {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: clamp(3.15rem, 5.7vw, 5.3rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.queue-stats small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: clamp(8px, 1vw, 14px);
  color: rgba(244, 246, 245, 0.58);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 500;
}

.preference-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: clamp(16px, 1.9vw, 24px);
  padding: clamp(14px, 1.4vw, 20px) clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: rgba(244, 246, 245, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(7, 11, 15, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 20px 48px rgba(0, 0, 0, 0.28);
}

.preference-note span {
  width: clamp(56px, 5vw, 72px);
  height: clamp(46px, 4.4vw, 62px);
  display: block;
  position: relative;
  color: var(--teal);
}

.preference-note span::before {
  position: absolute;
  left: 13px;
  top: 4px;
  width: 22px;
  height: 29px;
  content: "";
  border: 3px solid currentColor;
  border-bottom-width: 0;
  border-radius: 10px 10px 5px 5px;
}

.preference-note span::after {
  position: absolute;
  left: 4px;
  top: 34px;
  width: 48px;
  height: 13px;
  content: "";
  border-top: 3px solid currentColor;
  border-left: 0;
  transform: none;
  box-shadow:
    14px 8px 0 -10px currentColor,
    28px -13px 0 -11px currentColor,
    3px -17px 0 -11px currentColor;
}

.preference-note strong,
.preference-note small {
  display: block;
}

.preference-note strong {
  color: #fff;
  font-size: clamp(1rem, 1.1vw, 1.22rem);
  font-weight: 900;
}

.preference-note small {
  margin-top: 5px;
  color: rgba(244, 246, 245, 0.62);
  font-size: clamp(0.9rem, 1vw, 1.08rem);
}

.preference-note i {
  width: clamp(42px, 4.6vw, 58px);
  height: clamp(42px, 4.6vw, 58px);
  display: block;
  position: relative;
  opacity: 0.9;
  color: var(--teal);
}

.preference-note i::before,
.preference-note i::after {
  position: absolute;
  content: "";
  display: block;
}

.preference-note i::before {
  inset: 4px 8px 8px 2px;
  background:
    radial-gradient(circle at 50% 0, var(--teal) 0 2px, transparent 3px),
    radial-gradient(circle at 100% 50%, var(--teal) 0 2px, transparent 3px),
    linear-gradient(45deg, transparent 42%, var(--teal) 43% 56%, transparent 57%),
    linear-gradient(-45deg, transparent 42%, var(--teal) 43% 56%, transparent 57%);
}

.preference-note i::after {
  right: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  background:
    radial-gradient(circle at 50% 0, var(--teal) 0 2px, transparent 3px),
    radial-gradient(circle at 100% 50%, var(--teal) 0 2px, transparent 3px),
    linear-gradient(45deg, transparent 42%, var(--teal) 43% 56%, transparent 57%),
    linear-gradient(-45deg, transparent 42%, var(--teal) 43% 56%, transparent 57%);
}

.preference-note span::before,
.preference-note span::after,
.preference-note i::before,
.preference-note i::after {
  display: none;
}

.content-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(7, 11, 15, 0.74);
  backdrop-filter: blur(20px);
}

.form-card,
.queue-panel {
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    var(--panel);
}

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

.section-heading .eyebrow {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.section-heading .eyebrow::after {
  width: 38px;
  height: 3px;
  margin-top: 9px;
}

label {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(244, 246, 245, 0.66);
  font-size: 0.9rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

input:focus {
  border-color: var(--teal-strong);
  box-shadow: 0 0 0 4px rgba(79, 182, 170, 0.18);
}

button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.primary-action,
.secondary-action,
.danger-action {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.primary-action {
  color: #051211;
  background: linear-gradient(180deg, #7ee9df, var(--teal));
  box-shadow: 0 16px 34px rgba(79, 182, 170, 0.22);
}

.primary-action:hover {
  background: linear-gradient(180deg, #91f2e9, var(--teal-strong));
}

.secondary-action {
  color: #eefbf9;
  background: linear-gradient(180deg, rgba(79, 182, 170, 0.28), rgba(79, 182, 170, 0.14));
}

.danger-action {
  color: #fff;
  background: linear-gradient(180deg, var(--danger), #a6322e);
}

.message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--teal-strong);
  font-weight: 800;
}

.error-message {
  color: #ff8b83;
}

.queue-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.serving-card {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(79, 182, 170, 0.34);
  border-radius: 18px;
  background: rgba(79, 182, 170, 0.1);
}

.serving-name-row {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.serving-name-row strong {
  font-size: 1.22rem;
  overflow-wrap: anywhere;
}

.loading-dot {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 3px solid rgba(84, 209, 196, 0.24);
  border-top-color: var(--teal-strong);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.queue-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.position {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061211;
  background: var(--teal-strong);
  font-weight: 900;
}

.client-name {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 900;
}

.client-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.position-copy {
  color: var(--teal-strong);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: right;
}

.empty-state {
  margin: 0;
  padding: 24px;
  border: 1px dashed rgba(79, 182, 170, 0.34);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.logout-link {
  position: fixed;
  top: 18px;
  right: 18px;
  padding: 11px 16px;
  border: 1px solid rgba(79, 182, 170, 0.3);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(5, 8, 11, 0.88);
  text-decoration: none;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.admin-layout {
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.login-layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
}

.login-hero {
  min-height: clamp(360px, 58svh, 520px);
  padding: 44px 34px 34px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-hero {
  gap: 18px;
  padding: 44px 34px 34px 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.admin-hero::before,
.login-hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 58px;
  content: "";
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, #143354 0 16%, #edf0ed 16% 32%, #b62025 32% 48%, #edf0ed 48% 64%, #143354 64% 80%, #edf0ed 80% 100%);
  background-size: 92px 132px;
  opacity: 0.78;
  box-shadow: inset -18px 0 28px rgba(0, 0, 0, 0.58), 12px 0 34px rgba(0, 0, 0, 0.36);
}

.admin-hero > *,
.login-hero > * {
  position: relative;
  z-index: 2;
}

.brand-mark {
  display: none;
}

.admin-hero h1,
.login-hero h1 {
  font-size: 3.2rem;
}

.next-box {
  margin-top: auto;
}

.next-box strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.serving-whatsapp {
  width: fit-content;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px;
}

.serving-whatsapp[hidden] {
  display: none;
}

.open-time-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.open-time-box span,
.open-time-box strong {
  display: block;
}

.open-time-box strong {
  margin: 2px 0 0;
  color: var(--teal-strong);
  font-size: 1.2rem;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.count-pill {
  padding: 8px 10px;
  border: 1px solid rgba(79, 182, 170, 0.28);
  border-radius: 999px;
  color: var(--teal-strong);
  background: rgba(79, 182, 170, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-list .queue-item {
  grid-template-columns: auto 1fr auto;
}

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

.report-filters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.report-filters label {
  margin-bottom: 0;
}

.report-filters button {
  min-width: 112px;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.report-summary div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 -5px 0 rgba(79, 182, 170, 0.35);
}

.report-summary strong,
.report-summary span {
  display: block;
}

.report-summary strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.report-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.icon-button,
.text-button,
.whatsapp-button {
  width: 40px;
  min-height: 40px;
  border: 1px solid rgba(79, 182, 170, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.text-button,
.whatsapp-button {
  width: auto;
  min-width: 74px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.whatsapp-button {
  color: #061211;
  border-color: var(--teal-strong);
  background: var(--teal-strong);
}

.icon-button:hover,
.text-button:hover,
.whatsapp-button:hover {
  border-color: var(--teal-strong);
}

@media (max-width: 980px) {
  .app-shell,
  .admin-layout,
  .login-layout {
    width: min(100% - 24px, 760px);
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: max(14px, env(safe-area-inset-top)) 0 max(22px, env(safe-area-inset-bottom));
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-content {
    min-height: 760px;
    padding: 46px 30px 34px 86px;
  }

  .hero-art {
    top: 98px;
    right: 10px;
    width: 42%;
    opacity: 0.28;
  }

  h1 {
    max-width: 440px;
    font-size: clamp(3.2rem, 10vw, 5rem);
  }

  .hero-copy {
    max-width: 440px;
  }

  .queue-stats {
    gap: 14px;
  }

  .stat-card {
    min-height: 170px;
  }
}

@media (max-width: 560px) {
  .app-shell,
  .admin-layout,
  .login-layout {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-panel,
  .content-panel {
    border-radius: 22px;
  }

  .barber-stripe {
    width: 38px;
    background-size: 72px 108px;
  }

  .hero-content {
    min-height: auto;
    padding: 34px 18px 24px 56px;
  }

  .hero-art {
    top: 80px;
    right: -48px;
    width: 68%;
    height: 40%;
    opacity: 0.16;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .eyebrow::after {
    width: 52px;
    height: 4px;
    margin-top: 12px;
  }

  h1,
  .admin-hero h1,
  .login-hero h1 {
    max-width: 310px;
    font-size: clamp(2.7rem, 14vw, 3.5rem);
    line-height: 0.96;
  }

  h2 {
    font-size: 1.08rem;
  }

  .hero-copy {
    max-width: 300px;
    margin: 26px 0 22px;
    font-size: 1rem;
    line-height: 1.52;
  }

  .shop-status {
    padding: 13px 22px;
    gap: 12px;
    font-size: 1rem;
  }

  .shop-status span {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .divider {
    grid-template-columns: 1fr 34px 1fr;
    gap: 12px;
    margin: 34px 0 22px;
  }

  .divider i {
    width: 34px;
    height: 34px;
  }

  .queue-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    min-height: 138px;
    padding: 22px 20px 20px;
  }

  .stat-icon {
    margin-bottom: 14px;
    transform: scale(0.82);
    transform-origin: left center;
  }

  .queue-stats span {
    font-size: 3rem;
  }

  .queue-stats small {
    margin-top: 8px;
    font-size: 1rem;
  }

  .preference-note {
    grid-template-columns: auto 1fr;
    padding: 16px;
  }

  .preference-note i {
    display: none;
  }

  .content-panel {
    padding: 10px;
  }

  .form-card,
  .queue-panel {
    padding: 18px;
  }

  input,
  button {
    min-height: 52px;
    font-size: 1rem;
  }

  .queue-item,
  .admin-list .queue-item {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px;
  }

  .position {
    width: 36px;
    height: 36px;
  }

  .client-name {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .client-detail {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .position-copy,
  .item-actions {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .position-copy {
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(79, 182, 170, 0.1);
  }

  .admin-actions,
  .report-filters,
  .report-actions,
  .report-summary {
    grid-template-columns: 1fr;
  }

  .item-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .icon-button,
  .text-button,
  .whatsapp-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 6px;
    font-size: 0.76rem;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .logout-link {
    top: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    min-height: 48px;
    display: grid;
    place-items: center;
    text-align: center;
  }
}

@media (max-width: 370px) {
  .hero-content {
    padding-left: 50px;
  }

  h1,
  .admin-hero h1,
  .login-hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 0.96rem;
  }
}

/* Public screen: real reference panel image with only live values layered above it. */
body:not(.admin-page) .hero-panel {
  width: min(900px, 100%);
  height: auto;
  min-height: 0;
  aspect-ratio: 900 / 1150;
  justify-self: end;
  border: 0;
  border-radius: 0;
  background: url("assets/vagnos-reference-panel.svg") center / 100% 100% no-repeat;
  box-shadow: none;
}

body:not(.admin-page) .hero-panel::before,
body:not(.admin-page) .hero-panel::after,
body:not(.admin-page) .barber-stripe,
body:not(.admin-page) .brand-row,
body:not(.admin-page) .hero-copy,
body:not(.admin-page) .hero-art,
body:not(.admin-page) .divider,
body:not(.admin-page) .preference-note {
  display: none;
}

body:not(.admin-page) .hero-content {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  display: block;
  z-index: 2;
}

body:not(.admin-page) .top-area {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body:not(.admin-page) .shop-status {
  position: absolute;
  left: 14.4%;
  top: 48.3%;
  gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(8px, 1.1vw, 14px) clamp(18px, 2.1vw, 34px);
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(12, 16, 20, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 38px rgba(0, 0, 0, 0.34);
  font-size: clamp(0.9rem, 1.7vw, 1.65rem);
}

body:not(.admin-page) .shop-status span {
  width: clamp(12px, 1.35vw, 20px);
  height: clamp(12px, 1.35vw, 20px);
  flex-basis: clamp(12px, 1.35vw, 20px);
}

body:not(.admin-page) .queue-stats {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

body:not(.admin-page) .stat-card {
  position: absolute;
  width: 40%;
  height: 20.2%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body:not(.admin-page) .stat-card::after,
body:not(.admin-page) .stat-icon,
body:not(.admin-page) .queue-stats small {
  display: none;
}

body:not(.admin-page) .stat-card:first-child {
  left: 12.2%;
  top: 63%;
}

body:not(.admin-page) .stat-card:last-child {
  left: 59.1%;
  top: 63%;
}

body:not(.admin-page) .queue-stats span {
  position: absolute;
  left: 12%;
  top: 35%;
  max-width: 78%;
  color: #fff;
  font-size: clamp(2.2rem, 6.6vw, 5.5rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
}

body:not(.admin-page) .stat-card:last-child .queue-stats span,
body:not(.admin-page) .stat-card:last-child span {
  top: 40%;
  font-size: clamp(2rem, 5.8vw, 4.5rem);
}

@media (max-width: 980px) {
  body:not(.admin-page) .hero-panel {
    width: min(100%, 760px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  body:not(.admin-page) .hero-panel {
    width: 100%;
  }

  body:not(.admin-page) .shop-status {
    top: 43.4%;
  }
}

@media print {
  body {
    color: #111;
    background: #fff;
  }

  .hero-panel,
  .form-card,
  .queue-panel:not(.report-panel),
  .logout-link,
  .report-filters,
  .report-actions {
    display: none !important;
  }

  .app-shell,
  .admin-layout,
  .content-panel {
    width: 100%;
    min-height: auto;
    display: block;
    padding: 0;
    background: #fff;
    box-shadow: none;
  }

  .report-panel {
    color: #111;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .queue-item,
  .report-summary div {
    color: #111;
    background: #fff;
    border-color: #ddd;
  }
}

@media (max-width: 560px) {
  body.public-page .barber-stripe {
    top: 0;
    bottom: 0;
    height: auto;
    background:
      repeating-linear-gradient(
        135deg,
        #0e3765 0 20px,
        #f6f7f4 20px 40px,
        #c0182c 40px 60px,
        #f6f7f4 60px 80px
      );
    background-size: auto;
    background-position: 0 0;
  }

  body.public-page .stat-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  body.public-page .stat-icon {
    flex: 0 0 auto;
    margin-bottom: 14px;
  }

  body.public-page .queue-stats span,
  body.public-page .stat-card:last-child span {
    display: block;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  body.public-page .queue-stats small {
    display: block;
    margin-top: 8px;
    line-height: 1.15;
  }
}

@media (max-width: 400px) {
  body.public-page .barber-stripe {
    background:
      repeating-linear-gradient(
        135deg,
        #0e3765 0 18px,
        #f6f7f4 18px 36px,
        #c0182c 36px 54px,
        #f6f7f4 54px 72px
      );
    background-size: auto;
    background-position: 0 0;
  }

  body.public-page .stat-icon {
    margin-bottom: 12px;
  }

  body.public-page .stat-card:last-child span {
    font-size: 1.08rem;
  }
}

/* New public design: barber colors, functional layout, no reference-image overlay. */
body.public-page {
  --bg: #050914;
  --panel: rgba(9, 20, 36, 0.88);
  --panel-strong: rgba(6, 14, 28, 0.96);
  --ink: #f7fafc;
  --soft: #d7e2eb;
  --muted: #9eb0bf;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --teal: #2e7fc8;
  --teal-strong: #ffffff;
  --teal-dark: #0d3768;
  --danger: #e32f45;
  --danger-glow: rgba(227, 47, 69, 0.55);
  background:
    radial-gradient(circle at 14% 10%, rgba(227, 47, 69, 0.22), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(46, 127, 200, 0.28), transparent 32%),
    linear-gradient(135deg, #03060d 0%, #09182d 48%, #050914 100%);
}

body.public-page::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.12), transparent 34%);
  opacity: 0.26;
}

body.public-page .app-shell {
  width: min(1240px, calc(100% - 28px));
  min-height: 100svh;
  padding: 18px 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.62fr);
  gap: 18px;
  align-items: center;
}

body.public-page .hero-panel {
  width: 100%;
  min-height: clamp(660px, calc(100svh - 36px), 820px);
  aspect-ratio: auto;
  justify-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(4, 11, 22, 0.98) 0%, rgba(10, 25, 46, 0.96) 48%, rgba(7, 15, 30, 0.88) 100%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.08), transparent 30%);
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.public-page .hero-panel::before,
body.public-page .hero-panel::after,
body.public-page .barber-stripe,
body.public-page .brand-row,
body.public-page .hero-copy,
body.public-page .hero-art,
body.public-page .divider,
body.public-page .preference-note,
body.public-page .stat-card::after,
body.public-page .stat-icon,
body.public-page .queue-stats small {
  display: revert;
}

body.public-page .hero-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%);
  opacity: 0.72;
}

body.public-page .hero-panel::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(2, 5, 12, 0.58), transparent);
}

body.public-page .barber-stripe {
  display: block;
  width: 66px;
  border-right: 0;
  background:
    repeating-linear-gradient(
      135deg,
      #0e3765 0 34px,
      #f6f7f4 34px 68px,
      #c0182c 68px 102px,
      #f6f7f4 102px 136px
    );
  background-size: auto;
  opacity: 1;
  box-shadow: none;
}

body.public-page .hero-content {
  position: relative;
  inset: auto;
  min-height: inherit;
  padding: clamp(46px, 5vw, 72px) clamp(32px, 5vw, 68px) clamp(28px, 4vw, 46px)
    clamp(98px, 8vw, 126px);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

body.public-page .top-area {
  position: relative;
  inset: auto;
  pointer-events: auto;
}

body.public-page .eyebrow {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(46, 127, 200, 0.3);
}

body.public-page .eyebrow::after {
  background: linear-gradient(90deg, #e32f45, #ffffff 50%, #2e7fc8);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.24);
}

body.public-page h1 {
  max-width: 660px;
  font-size: clamp(3.8rem, 6vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

body.public-page .hero-copy {
  display: block;
  max-width: 510px;
  margin: 34px 0 28px;
  color: rgba(247, 250, 252, 0.72);
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
}

body.public-page .shop-status {
  position: relative;
  left: auto;
  top: auto;
  gap: 14px;
  padding: 14px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(2, 8, 18, 0.76);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  font-size: 1.05rem;
}

body.public-page .shop-status span {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

body.public-page .shop-status.open {
  border-color: rgba(56, 211, 132, 0.45);
  background:
    linear-gradient(180deg, rgba(56, 211, 132, 0.18), rgba(56, 211, 132, 0.08)),
    rgba(5, 28, 20, 0.82);
}

body.public-page .shop-status.open span {
  background: #38d384;
  box-shadow: 0 0 24px rgba(56, 211, 132, 0.7);
}

body.public-page .hero-art {
  display: none;
  top: 82px;
  right: 22px;
  width: min(43%, 430px);
  height: 52%;
  opacity: 0.32;
  color: #ffffff;
}

body.public-page .scene-art .lamp-glow {
  stroke: #ffffff;
}

body.public-page .divider {
  display: grid;
  margin: auto 0 28px;
}

body.public-page .divider span {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

body.public-page .divider i {
  background:
    linear-gradient(45deg, transparent 43%, #e32f45 44% 55%, transparent 56%),
    linear-gradient(-45deg, transparent 43%, #2e7fc8 44% 55%, transparent 56%),
    radial-gradient(circle at 30% 30%, transparent 0 12%, #fff 13% 18%, transparent 19%),
    radial-gradient(circle at 70% 30%, transparent 0 12%, #fff 13% 18%, transparent 19%);
}

body.public-page .queue-stats {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  pointer-events: auto;
}

body.public-page .stat-card {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
  min-height: 164px;
  padding: 26px 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(46, 127, 200, 0.18), rgba(227, 47, 69, 0.08)),
    rgba(4, 12, 24, 0.78);
  box-shadow:
    inset 0 -9px 0 rgba(227, 47, 69, 0.85),
    0 22px 44px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

body.public-page .stat-card:first-child,
body.public-page .stat-card:last-child {
  left: auto;
  top: auto;
}

body.public-page .stat-card:last-child {
  box-shadow:
    inset 0 -9px 0 rgba(46, 127, 200, 0.95),
    0 22px 44px rgba(0, 0, 0, 0.32);
}

body.public-page .stat-card::after {
  display: block;
}

body.public-page .stat-icon {
  display: block;
  color: #ffffff;
}

body.public-page .queue-stats span,
body.public-page .stat-card:last-child span {
  position: relative;
  left: auto;
  top: auto;
  color: #fff;
  font-size: clamp(3.2rem, 5vw, 4.7rem);
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.public-page .stat-card:last-child span {
  font-size: clamp(1.35rem, 2.6vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
  max-height: 2.25em;
  overflow: hidden;
}

body.public-page .queue-stats small {
  display: block;
  color: rgba(247, 250, 252, 0.68);
}

body.public-page .preference-note {
  display: grid;
  margin-top: 24px;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(14, 55, 101, 0.32), rgba(192, 24, 44, 0.12)),
    rgba(4, 12, 24, 0.78);
}

body.public-page .preference-note strong,
body.public-page .preference-note small {
  overflow-wrap: anywhere;
}

body.public-page .preference-note span,
body.public-page .preference-note i {
  color: #ffffff;
}

body.public-page .preference-note {
  grid-template-columns: 1fr auto;
}

body.public-page .preference-note span {
  display: none;
}

body.public-page .content-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(4, 12, 24, 0.76);
}

body.public-page .form-card,
body.public-page .queue-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 18, 34, 0.9);
}

body.public-page input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

body.public-page input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(46, 127, 200, 0.25);
}

body.public-page .primary-action {
  color: #fff;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #c0182c, #0e3765);
  box-shadow: 0 18px 36px rgba(192, 24, 44, 0.22);
}

body.public-page .primary-action:disabled {
  opacity: 1;
  color: rgba(247, 250, 252, 0.66);
  background: linear-gradient(135deg, rgba(192, 24, 44, 0.58), rgba(14, 55, 101, 0.58));
  box-shadow: none;
}

body.public-page .message {
  color: #ffffff;
}

body.public-page .empty-state {
  border-color: rgba(46, 127, 200, 0.48);
}

@media (max-width: 980px) {
  body.public-page .app-shell {
    width: min(100% - 22px, 760px);
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body.public-page .hero-panel {
    min-height: auto;
  }

  body.public-page .hero-content {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  body.public-page .app-shell {
    width: 100%;
    padding: 18px 12px 24px;
  }

  body.public-page .hero-panel,
  body.public-page .content-panel {
    border-radius: 20px;
  }

  body.public-page .hero-panel {
    min-height: auto;
  }

  body.public-page .barber-stripe {
    width: 30px;
    top: 0;
    bottom: 0;
    height: auto;
    border-right: 0;
    background:
      repeating-linear-gradient(
        135deg,
        #0e3765 0 20px,
        #f6f7f4 20px 40px,
        #c0182c 40px 60px,
        #f6f7f4 60px 80px
      );
    background-size: auto;
  }

  body.public-page .hero-content {
    min-height: auto;
    padding: 24px 16px 18px 44px;
  }

  body.public-page h1 {
    max-width: 300px;
    font-size: clamp(2.35rem, 12vw, 3rem);
    line-height: 0.96;
  }

  body.public-page .hero-copy {
    max-width: 300px;
    margin: 18px 0 16px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  body.public-page .hero-art {
    display: none;
  }

  body.public-page .queue-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.public-page .stat-card {
    min-height: 92px;
    padding: 12px 16px;
  }

  body.public-page .queue-stats span,
  body.public-page .stat-card:last-child span {
    font-size: 2.15rem;
  }

  body.public-page .stat-card:last-child span {
    font-size: 1.25rem;
  }

  body.public-page .divider {
    margin: 18px 0 12px;
  }

  body.public-page .stat-icon {
    width: 36px;
    height: 28px;
    margin-bottom: 6px;
  }

  body.public-page .preference-note {
    display: none;
  }

  body.public-page .preference-note i,
  body.public-page .preference-note span {
    display: none;
  }

  body.public-page .preference-note strong {
    font-size: 0.95rem;
    line-height: 1.15;
  }

  body.public-page .preference-note small {
    font-size: 0.82rem;
    line-height: 1.3;
  }
}

@media (max-width: 400px) {
  body.public-page .app-shell {
    padding: 16px 10px 22px;
  }

  body.public-page .hero-panel,
  body.public-page .content-panel {
    border-radius: 18px;
  }

  body.public-page .hero-panel {
    min-height: auto;
  }

  body.public-page .barber-stripe {
    width: 26px;
    top: 0;
    bottom: 0;
    height: auto;
    background:
      repeating-linear-gradient(
        135deg,
        #0e3765 0 18px,
        #f6f7f4 18px 36px,
        #c0182c 36px 54px,
        #f6f7f4 54px 72px
      );
    background-size: auto;
  }

  body.public-page .hero-content {
    min-height: auto;
    padding: 20px 12px 14px 36px;
  }

  body.public-page .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
  }

  body.public-page .eyebrow::after {
    width: 46px;
    height: 3px;
    margin-top: 8px;
  }

  body.public-page h1 {
    max-width: 260px;
    font-size: clamp(2.05rem, 10.8vw, 2.55rem);
    line-height: 0.96;
  }

  body.public-page .hero-copy {
    max-width: 270px;
    margin: 14px 0 14px;
    font-size: 0.82rem;
    line-height: 1.38;
  }

  body.public-page .shop-status {
    min-height: 42px;
    padding: 9px 16px;
    gap: 10px;
    font-size: 0.92rem;
  }

  body.public-page .shop-status span {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  body.public-page .divider {
    grid-template-columns: 1fr 30px 1fr;
    gap: 10px;
    margin: 16px 0 10px;
  }

  body.public-page .divider i {
    width: 30px;
    height: 30px;
  }

  body.public-page .queue-stats {
    gap: 10px;
  }

  body.public-page .stat-card {
    min-height: 84px;
    padding: 11px 14px;
    border-radius: 16px;
  }

  body.public-page .stat-icon {
    width: 34px;
    height: 27px;
    margin-bottom: 5px;
  }

  body.public-page .queue-stats span,
  body.public-page .stat-card:last-child span {
    font-size: 1.95rem;
  }

  body.public-page .stat-card:last-child span {
    font-size: 1.12rem;
  }

  body.public-page .queue-stats small {
    margin-top: 6px;
    font-size: 0.86rem;
  }

  body.public-page .preference-note {
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  body.public-page .preference-note strong {
    font-size: 0.86rem;
  }

  body.public-page .preference-note small {
    font-size: 0.76rem;
  }

  body.public-page .content-panel {
    padding: 8px;
  }

  body.public-page .form-card,
  body.public-page .queue-panel {
    padding: 16px;
    border-radius: 16px;
  }
}

@media (min-width: 981px) and (max-height: 850px) {
  body.public-page .app-shell {
    width: min(1120px, calc(100% - 24px));
    padding: 12px 0;
    gap: 14px;
    align-items: start;
  }

  body.public-page .hero-panel {
    min-height: calc(100svh - 24px);
  }

  body.public-page .hero-content {
    min-height: calc(100svh - 24px);
    padding: 30px 38px 20px 92px;
  }

  body.public-page .eyebrow {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  body.public-page .eyebrow::after {
    width: 48px;
    height: 3px;
    margin-top: 8px;
  }

  body.public-page h1 {
    max-width: 460px;
    font-size: clamp(3.1rem, 5vw, 4.55rem);
  }

  body.public-page .hero-copy {
    max-width: 460px;
    margin: 22px 0 18px;
    font-size: 1rem;
    line-height: 1.45;
  }

  body.public-page .shop-status {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  body.public-page .divider {
    margin: auto 0 16px;
  }

  body.public-page .queue-stats {
    gap: 16px;
  }

  body.public-page .stat-card {
    min-height: 132px;
    padding: 18px 22px 16px;
  }

  body.public-page .stat-icon {
    width: 48px;
    height: 38px;
    margin-bottom: 10px;
  }

  body.public-page .queue-stats span,
  body.public-page .stat-card:last-child span {
    font-size: 3rem;
  }

  body.public-page .queue-stats small {
    font-size: 0.95rem;
  }

  body.public-page .preference-note {
    margin-top: 14px;
    padding: 14px 18px;
  }

  body.public-page .preference-note strong {
    font-size: 0.95rem;
  }

  body.public-page .preference-note small {
    font-size: 0.82rem;
  }

  body.public-page .content-panel {
    padding: 12px;
  }

  body.public-page .form-card,
  body.public-page .queue-panel {
    padding: 20px;
  }
}

body.admin-page {
  --bg: #050914;
  --panel: rgba(9, 20, 36, 0.88);
  --panel-strong: rgba(6, 14, 28, 0.96);
  --ink: #f7fafc;
  --soft: #d7e2eb;
  --muted: #9eb0bf;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --teal: #2e7fc8;
  --teal-strong: #ffffff;
  --teal-dark: #0d3768;
  --danger: #e32f45;
  --danger-glow: rgba(227, 47, 69, 0.55);
  background:
    radial-gradient(circle at 14% 10%, rgba(227, 47, 69, 0.22), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(46, 127, 200, 0.28), transparent 32%),
    linear-gradient(135deg, #03060d 0%, #09182d 48%, #050914 100%);
}

body.admin-page .app-shell {
  width: min(1240px, calc(100% - 28px));
  padding: 18px 0;
  gap: 18px;
}

body.admin-page .hero-panel,
body.admin-page .content-panel,
body.admin-page .form-card,
body.admin-page .queue-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 18, 34, 0.9);
}

body.admin-page .admin-hero,
body.admin-page .login-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding-left: 106px;
}

body.admin-page .admin-hero::before,
body.admin-page .login-hero::before {
  width: 66px;
  border-right: 0;
  background:
    repeating-linear-gradient(
      135deg,
      #0e3765 0 34px,
      #f6f7f4 34px 68px,
      #c0182c 68px 102px,
      #f6f7f4 102px 136px
    );
  opacity: 1;
  box-shadow: none;
}

body.admin-page .eyebrow {
  color: #ffffff;
}

body.admin-page .eyebrow::after {
  background: linear-gradient(90deg, #e32f45, #ffffff 50%, #2e7fc8);
}

body.admin-page .primary-action,
body.admin-page .secondary-action {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #1b3558, #244a78);
}

body.admin-page .danger-action {
  color: #fff;
  background: linear-gradient(135deg, #6b7480, #3f4752);
}

body.admin-page button {
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

body.admin-page .logout-link {
  position: static;
  order: -1;
  width: fit-content;
  margin: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 18, 34, 0.9);
}

body.admin-page .admin-top-actions {
  order: -1;
  grid-column: 1 / -1;
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
}

body.admin-page .top-action-button {
  width: auto;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 18, 34, 0.9);
}

body.admin-page .admin-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(760px, calc(100svh - 32px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(10, 20, 36, 0.98);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.62);
}

body.admin-page .admin-dialog::backdrop {
  background: rgba(1, 5, 12, 0.72);
  backdrop-filter: blur(6px);
}

body.admin-page .dialog-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

body.admin-page button:disabled {
  opacity: 0.62;
}

body.admin-page #toggle-shop {
  background: linear-gradient(135deg, #15935f, #0b6d4a);
  border-color: rgba(88, 225, 166, 0.32);
}

body.admin-page #toggle-shop[data-open="true"],
body.admin-page #toggle-shop.is-open {
  background: linear-gradient(135deg, #d93648, #9d1829);
  border-color: rgba(255, 111, 126, 0.34);
}

body.admin-page #call-next {
  background: linear-gradient(135deg, #2357a4, #623d9d);
  border-color: rgba(116, 162, 255, 0.3);
}

body.admin-page #call-next:disabled {
  background: linear-gradient(135deg, #26446f, #493874);
  color: rgba(255, 255, 255, 0.7);
}

body.admin-page #clear-queue {
  background: linear-gradient(135deg, #777f8b, #444b55);
  border-color: rgba(255, 255, 255, 0.16);
}

body.admin-page #clear-queue:disabled {
  background: linear-gradient(135deg, #59616b, #363d46);
  color: rgba(255, 255, 255, 0.68);
}

body.admin-page .report-actions .primary-action,
body.admin-page .report-actions .secondary-action,
body.admin-page .report-filters .secondary-action {
  background: linear-gradient(135deg, #223752, #2d466a);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: none;
}

body.admin-page input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

@media (max-width: 980px) {
  body.admin-page .app-shell {
    width: min(100% - 22px, 760px);
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  body.admin-page .app-shell {
    width: 100%;
    padding: 8px;
  }

  body.admin-page .admin-hero,
  body.admin-page .login-hero {
    padding-left: 58px;
  }

  body.admin-page .admin-hero::before,
  body.admin-page .login-hero::before {
    width: 44px;
    background:
      repeating-linear-gradient(
        135deg,
        #0e3765 0 26px,
        #f6f7f4 26px 52px,
        #c0182c 52px 78px,
        #f6f7f4 78px 104px
      );
  }

  body.admin-page .logout-link {
    width: auto;
    margin: 0;
    justify-self: stretch;
  }

  body.admin-page .admin-top-actions {
    width: 100%;
    justify-self: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.admin-page .top-action-button,
  body.admin-page .logout-link {
    min-height: 48px;
    display: grid;
    place-items: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  body.public-page .stat-card {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    row-gap: 10px;
    min-height: 126px;
    padding: 18px 20px 16px;
  }

  body.public-page .stat-icon {
    width: 38px;
    height: 32px;
    margin: 0;
  }

  body.public-page .queue-stats span,
  body.public-page .stat-card:last-child span {
    margin: 0;
    line-height: 0.98;
  }

  body.public-page .stat-card:last-child span {
    max-width: 100%;
    font-size: clamp(1.45rem, 8vw, 2.15rem);
    word-break: normal;
    overflow-wrap: anywhere;
  }

  body.public-page .queue-stats small {
    margin: 0;
    line-height: 1.1;
  }
}

@media (max-width: 400px) {
  body.public-page .stat-card {
    row-gap: 9px;
    min-height: 118px;
    padding: 16px 18px 15px;
  }

  body.public-page .stat-icon {
    width: 36px;
    height: 30px;
  }

  body.public-page .stat-card:last-child span {
    font-size: clamp(1.25rem, 7.2vw, 1.85rem);
  }
}

body.public-page .stat-card:last-child span {
  display: block;
  line-height: 1.16;
  margin: 8px 0 10px;
  padding-bottom: 3px;
  max-height: none;
  overflow: visible;
}

body.public-page .stat-card:last-child small {
  display: block;
  margin-top: 0;
  line-height: 1.2;
}

@media (max-width: 560px) {
  body.public-page .stat-card:last-child span {
    margin: 0 0 8px;
    line-height: 1.18;
  }
}

/* Tema amarelo da barbearia */
:root {
  --bg: #090806;
  --panel: rgba(19, 17, 12, 0.9);
  --panel-strong: rgba(12, 10, 7, 0.97);
  --ink: #fffaf0;
  --soft: #e6dcc5;
  --muted: #a99f89;
  --line: rgba(255, 214, 92, 0.15);
  --line-strong: rgba(255, 214, 92, 0.28);
  --teal: #d99d16;
  --teal-strong: #ffd45a;
  --teal-dark: #8a5a05;
  --danger: #e33b3b;
  --danger-glow: rgba(227, 59, 59, 0.52);
  --shadow: 0 38px 110px rgba(0, 0, 0, 0.74);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 205, 66, 0.18), transparent 32%),
    radial-gradient(circle at 8% 10%, rgba(255, 154, 31, 0.12), transparent 24%),
    radial-gradient(circle at 94% 8%, rgba(255, 228, 125, 0.1), transparent 22%),
    linear-gradient(145deg, #050403 0%, #16120a 48%, #070604 100%);
}

body::before {
  background:
    linear-gradient(135deg, rgba(255, 223, 120, 0.045) 0 1px, transparent 1px 20px),
    radial-gradient(circle at 80% 15%, rgba(255, 215, 89, 0.09), transparent 22%);
}

.hero-panel,
.content-panel,
.form-card,
.queue-panel {
  border-color: rgba(255, 214, 92, 0.16);
}

.hero-panel {
  background:
    linear-gradient(100deg, rgba(14, 12, 8, 0.99) 0%, rgba(22, 18, 11, 0.97) 52%, rgba(23, 18, 10, 0.84) 100%),
    radial-gradient(circle at 76% 18%, rgba(255, 205, 66, 0.14), transparent 28%);
}

.hero-panel::after {
  background:
    radial-gradient(circle at 72% 0, rgba(255, 205, 66, 0.08), transparent 42%),
    linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent);
}

.barber-stripe,
body.public-page .barber-stripe,
body.admin-page .admin-hero::before,
body.admin-page .login-hero::before {
  background:
    repeating-linear-gradient(
      135deg,
      #11100d 0 28px,
      #f8c928 28px 56px,
      #fff8db 56px 84px,
      #f8c928 84px 112px,
      #11100d 112px 140px
    );
  box-shadow:
    inset -18px 0 28px rgba(0, 0, 0, 0.62),
    12px 0 34px rgba(0, 0, 0, 0.38);
}

.eyebrow,
.message,
.position-copy,
.count-pill,
.client-detail strong {
  color: var(--teal-strong);
}

.eyebrow::after,
.section-heading .eyebrow::after {
  background: linear-gradient(90deg, #fff2a8, #f8c928 48%, #8a5a05);
  box-shadow: 0 0 24px rgba(255, 205, 66, 0.38);
}

h1 {
  color: #fffdf5;
  text-shadow:
    0 3px 0 rgba(255, 229, 145, 0.08),
    0 28px 48px rgba(0, 0, 0, 0.58);
}

input:focus {
  border-color: #ffd45a;
  box-shadow: 0 0 0 4px rgba(255, 205, 66, 0.18);
}

.primary-action,
.secondary-action,
body.public-page .primary-action,
body.admin-page .report-actions .primary-action,
body.admin-page .report-actions .secondary-action,
body.admin-page .report-filters .secondary-action {
  color: #1a1302;
  border-color: rgba(255, 221, 111, 0.34);
  background: linear-gradient(135deg, #fff0a6, #f8c928 48%, #c88906);
  box-shadow: 0 18px 36px rgba(248, 201, 40, 0.18);
}

.primary-action:hover,
.secondary-action:hover,
body.public-page .primary-action:hover {
  background: linear-gradient(135deg, #fff6c7, #ffd95f 48%, #d99d16);
}

.primary-action:disabled,
.secondary-action:disabled,
body.public-page .primary-action:disabled {
  color: rgba(255, 250, 240, 0.7);
  background: linear-gradient(135deg, rgba(78, 68, 43, 0.82), rgba(42, 35, 23, 0.92));
  border-color: rgba(255, 214, 92, 0.15);
  box-shadow: none;
}

.danger-action {
  color: #fff;
  background: linear-gradient(135deg, #d43f3f, #8f1e1e);
}

.content-panel,
.form-card,
.queue-panel,
.serving-card,
.queue-item,
.report-summary div {
  background:
    linear-gradient(180deg, rgba(255, 223, 120, 0.065), rgba(255, 223, 120, 0.018)),
    rgba(16, 14, 10, 0.84);
}

.stat-card,
body.public-page .stat-card,
.report-summary div {
  border-color: rgba(255, 214, 92, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 213, 79, 0.13), rgba(14, 12, 9, 0.08) 42%, rgba(15, 12, 8, 0.88)),
    rgba(12, 11, 9, 0.88);
  box-shadow:
    inset 0 -9px 0 rgba(248, 201, 40, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 44px rgba(0, 0, 0, 0.36);
}

body.public-page .stat-card:last-child {
  box-shadow:
    inset 0 -9px 0 rgba(255, 214, 92, 0.9),
    0 22px 44px rgba(0, 0, 0, 0.32);
}

.stat-card::after {
  background: radial-gradient(circle at 18% 0%, rgba(255, 214, 92, 0.16), transparent 34%);
}

.stat-icon,
.divider i,
.preference-note span,
.preference-note i,
.loading-dot {
  color: #ffd45a;
}

.position {
  color: #1a1302;
  background: #ffd45a;
}

.serving-card {
  border-color: rgba(255, 214, 92, 0.38);
  background: rgba(255, 214, 92, 0.1);
}

.empty-state {
  border-color: rgba(255, 214, 92, 0.32);
}

body.public-page .shop-status.open {
  border-color: rgba(56, 211, 132, 0.48);
  background:
    linear-gradient(180deg, rgba(56, 211, 132, 0.2), rgba(56, 211, 132, 0.08)),
    rgba(8, 36, 24, 0.74);
}

body.public-page .shop-status:not(.open),
.shop-status:not(.open) {
  border-color: rgba(255, 214, 92, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 214, 92, 0.08), rgba(255, 214, 92, 0.025)),
    rgba(13, 11, 8, 0.74);
}

body.admin-page #toggle-shop {
  color: #102015;
  background: linear-gradient(135deg, #7de6a8, #18a567);
  border-color: rgba(125, 230, 168, 0.38);
}

body.admin-page #toggle-shop[data-open="true"],
body.admin-page #toggle-shop.is-open {
  color: #fff;
  background: linear-gradient(135deg, #de4040, #971f1f);
  border-color: rgba(255, 111, 126, 0.34);
}

body.admin-page #call-next {
  color: #1a1302;
  background: linear-gradient(135deg, #fff0a6, #f8c928 48%, #b77406);
  border-color: rgba(255, 221, 111, 0.34);
}

body.admin-page #call-next:disabled {
  color: rgba(255, 250, 240, 0.66);
  background: linear-gradient(135deg, #4d4432, #2d281f);
}

body.admin-page #clear-queue,
body.admin-page .danger-action {
  color: #fff;
  background: linear-gradient(135deg, #6f737b, #3f4248);
}

.logout-link,
.top-action-button,
.text-button,
.icon-button {
  border-color: rgba(255, 214, 92, 0.24);
  background: rgba(14, 12, 8, 0.88);
}

body.public-page,
body.admin-page {
  --bg: #090806;
  --panel: rgba(19, 17, 12, 0.9);
  --panel-strong: rgba(12, 10, 7, 0.97);
  --ink: #fffaf0;
  --soft: #e6dcc5;
  --muted: #a99f89;
  --line: rgba(255, 214, 92, 0.15);
  --line-strong: rgba(255, 214, 92, 0.28);
  --teal: #d99d16;
  --teal-strong: #ffd45a;
  --teal-dark: #8a5a05;
  --danger: #e33b3b;
  --danger-glow: rgba(227, 59, 59, 0.52);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 205, 66, 0.22), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 177, 31, 0.18), transparent 32%),
    linear-gradient(135deg, #050403 0%, #171208 48%, #080704 100%);
}

body.public-page::before,
body.admin-page::before {
  background:
    linear-gradient(120deg, rgba(255, 223, 120, 0.055) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 50% 0, rgba(255, 205, 66, 0.13), transparent 34%);
}

body.public-page .hero-panel,
body.admin-page .hero-panel,
body.admin-page .content-panel,
body.admin-page .form-card,
body.admin-page .queue-panel,
body.public-page .content-panel,
body.public-page .form-card,
body.public-page .queue-panel {
  border-color: rgba(255, 214, 92, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 223, 120, 0.065), rgba(255, 223, 120, 0.018)),
    rgba(16, 14, 10, 0.84);
}

body.public-page .hero-panel,
body.admin-page .hero-panel {
  background:
    linear-gradient(100deg, rgba(14, 12, 8, 0.99) 0%, rgba(22, 18, 11, 0.97) 52%, rgba(23, 18, 10, 0.84) 100%),
    radial-gradient(circle at 76% 18%, rgba(255, 205, 66, 0.14), transparent 28%);
}

body.public-page .eyebrow,
body.admin-page .eyebrow {
  color: #ffd45a;
}

body.public-page .eyebrow::after,
body.admin-page .eyebrow::after {
  background: linear-gradient(90deg, #fff2a8, #f8c928 48%, #8a5a05);
  box-shadow: 0 0 24px rgba(255, 205, 66, 0.38);
}

body.public-page .stat-card,
body.admin-page .report-summary div {
  border-color: rgba(255, 214, 92, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 213, 79, 0.13), rgba(14, 12, 9, 0.08) 42%, rgba(15, 12, 8, 0.88)),
    rgba(12, 11, 9, 0.88);
}
