* {
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: #f5f7ff;
  margin: 0;
  padding: 0;
  color: #0f172a;
}

/* ── HEADER ── */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: white;
  border-bottom: 1px solid #e6eaf5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e5edff;
  display: none; /* hidden until image loads */
}

.brand-name {
  font-size: 26px;
  font-weight: 700;
}

.brand-address {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

/* ── COUNTER PILL ── */

.counter-pill {
  background: #dbeafe;
  color: #2563eb;
  padding: 7px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
}

/* ── CLOCK ── */

.clock-block {
  text-align: right;
}

.clock-time {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
  font-family: "JetBrains Mono", monospace;
}

.clock-date {
  font-size: 12px;
  color: #64748b;
}

/* ── MAIN LAYOUT ── */

.main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 30px 40px;
  min-height: calc(100vh - 100px);
}

/* ── NOW SERVING CARD ── */

.serving-card {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 50px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.serving-label {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: white; /* ✅ explicit white */
}

.token-big {
  font-size: 120px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  line-height: 1;
  color: white; /* ✅ FIXED — was missing, causing invisible text */
  letter-spacing: -2px;
}

.patient-service {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.9;
  color: white; /* ✅ explicit white */
}

/* ── QUEUE PANEL ── */

.queue-panel {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #e6eaf5;
  display: flex;
  flex-direction: column;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8faff;
  border-bottom: 1px solid #e6eaf5;
  flex-shrink: 0;
}

.queue-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #475569;
}

.queue-badge {
  background: #fff1eb;
  color: #ea580c;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

/* ── QUEUE LIST ── */

.queue-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f9fbff;
  border: 1px solid #edf2ff;
  transition: background 0.2s;
}

.queue-item:hover {
  background: #f3f6ff;
}

.queue-pos {
  width: 28px;
  height: 28px;
  background: #fff1eb;
  color: #ea580c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.queue-token {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  color: #ea580c;
}

.queue-wait {
  font-size: 12px;
  color: #64748b;
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .token-big {
    font-size: 90px;
  }

  .header {
    padding: 14px 20px;
  }

  .brand-name {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .token-big {
    font-size: 70px;
  }

  .serving-card {
    padding: 30px;
  }
}