:root {
  --green-900: #064e29;
  --green-800: #0a6635;
  --green-700: #008b43;
  --green-600: #00a850;
  --green-500: #00c45e;
  --green-100: #d6f5e5;
  --green-50: #edfaf3;

  --ink: #0d1f17;
  --ink-2: #2e4d3a;
  --ink-3: #5a7a68;
  --ink-4: #8eab9b;

  --bg: #f2f5f3;
  --surface: #ffffff;
  --border: rgba(0, 80, 40, 0.09);
  --border-md: rgba(0, 80, 40, 0.18);

  --bar-h: 64px;
  --font: "Plus Jakarta Sans", sans-serif;
  --mono: "DM Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.22s;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --orange: #e07b1a;
  --blue: #2563eb;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  background: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  background-image: radial-gradient(
    ellipse at 5% 50%,
    rgba(0, 200, 95, 0.22) 0%,
    transparent 50%
  );
}

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

.topbar-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.topbar-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.topbar-time {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.topbar-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.topbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

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

.topbar-time {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.topbar-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.screens {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(32px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
  overflow: hidden;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.screen.exit {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.screen-head {
  position: relative;
  flex-shrink: 0;
  padding: 36px 48px 28px;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 48px;
  height: 1.5px;
  background: var(--border-md);
}

.screen-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 48px;
  height: 1.5px;
  background: var(--border-md);
}

.screen-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.screen-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-md) transparent;
}

.screen-body::-webkit-scrollbar {
  width: 4px;
}

.screen-body::-webkit-scrollbar-track {
  background: transparent;
}

.screen-body::-webkit-scrollbar-thumb {
  background: var(--border-md);
  border-radius: 4px;
}

.screen-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 48px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.screen-body::-webkit-scrollbar {
  width: 4px;
}

.screen-body::-webkit-scrollbar-track {
  background: transparent;
}

.screen-body::-webkit-scrollbar-thumb {
  background: var(--border-md);
  border-radius: 4px;
}

.screen-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 48px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  border: none;
  letter-spacing: -0.01em;
  min-height: 56px;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink-2);
  border: 1.5px solid var(--border-md);
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--ink-4);
}

.btn-danger {
  background: #fff0f0;
  color: #c62828;
  border: 1.5px solid rgba(198, 40, 40, 0.16);
}

.btn-danger:hover {
  background: #ffebee;
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
  padding: 13px 34px;
  box-shadow: 0 2px 14px rgba(0, 139, 67, 0.28);
}

.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 139, 67, 0.36);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.office-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px 36px;
  cursor: pointer;
  text-align: center;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.office-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px 36px;
  cursor: pointer;
  text-align: center;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.office-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.office-card:hover {
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 100, 50, 0.1);
}

.office-card:hover::after {
  transform: scaleX(1);
}

.office-card:active {
  transform: translateY(-1px) scale(0.99);
}

.office-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--green-700);
  margin: 0 auto 20px;
}

.office-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.office-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
}

.office-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.office-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
}

.badge-active {
  background: var(--green-50);
  color: var(--green-700);
}

.badge-empty {
  background: var(--bg);
  color: var(--ink-4);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  animation: pulse 1.6s ease-in-out infinite;
}

.office-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 24px;
  background: var(--green-50);
  border: 1.5px solid var(--green-100);
  font-size: 16px;
  font-weight: 700;
  color: var(--green-700);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.service-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  cursor: pointer;
  text-align: left;
  transition: all var(--t) var(--ease);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 100, 50, 0.09);
}

.service-card:active {
  transform: scale(0.98);
}

.svc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 14px;
  display: block;
}

.dot-simple {
  background: #22c55e;
}

.dot-regular {
  background: #3b82f6;
}

.dot-complicated {
  background: var(--orange);
}

.svc-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.svc-desc {
  font-size: 15px;
  color: var(--ink-4);
  line-height: 1.5;
}

.svc-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.dot-simple {
  background: #22c55e;
}

.dot-regular {
  background: #3b82f6;
}

.dot-complicated {
  background: var(--orange);
}

.svc-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.svc-desc {
  font-size: 15px;
  color: var(--ink-4);
  line-height: 1.5;
  margin-bottom: 14px;
}

.svc-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.tag-simple {
  background: #e8f5e9;
  color: #15803d;
}

.tag-regular {
  background: #e3f2fd;
  color: #1565c0;
}

.tag-complicated {
  background: rgba(224, 123, 26, 0.1);
  color: #c96a12;
}

.confirm-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.confirm-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  text-align: center;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

.confirm-office {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 8px;
}

.confirm-service {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.confirm-divider {
  height: 2px;
  background: var(--border);
  margin: 0 -8px 32px;
}

.confirm-preview-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.confirm-number {
  font-family: var(--mono);
  font-size: clamp(60px, 9vw, 88px);
  font-weight: 500;
  color: var(--green-700);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.confirm-wait {
  font-size: 18px;
  color: var(--ink-4);
  line-height: 1.6;
}

.confirm-wait strong {
  color: var(--ink-2);
  font-weight: 800;
}

.confirm-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  text-align: center;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

.confirm-office {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 8px;
}

.confirm-service {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.confirm-divider {
  height: 2px;
  background: var(--border);
  margin: 0 -8px 32px;
}

.confirm-preview-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.confirm-number {
  font-family: var(--mono);
  font-size: clamp(60px, 9vw, 88px);
  font-weight: 500;
  color: var(--green-700);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.confirm-wait {
  font-size: 18px;
  color: var(--ink-4);
  line-height: 1.6;
}

.confirm-wait strong {
  color: var(--ink-2);
  font-weight: 800;
}

.ticket-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.ticket-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.08);
}

.ticket-stripe {
  height: 8px;
  background: linear-gradient(90deg, var(--green-800), var(--green-500));
}

.ticket-body {
  padding: 40px 48px 44px;
  text-align: center;
}

.ticket-office {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 6px;
  margin-top: 6px;
}

.ticket-service {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 28px;
  line-height: 1.4;
}

.ticket-number {
  font-family: var(--mono);
  font-size: clamp(68px, 12vw, 108px);
  font-weight: 500;
  color: var(--green-700);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 28px;
}

.ticket-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ticket-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.08);
}

.ticket-stripe {
  height: 8px;
  background: linear-gradient(90deg, var(--green-800), var(--green-500));
}

.ticket-body {
  padding: 40px 48px 44px;
  text-align: center;
}

.ticket-office {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  margin-bottom: 6px;
  margin-top: 6px;
}

.ticket-service {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 28px;
  line-height: 1.4;
}

.ticket-number {
  font-family: var(--mono);
  font-size: clamp(68px, 12vw, 108px);
  font-weight: 500;
  color: var(--green-700);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 28px;
}

.ticket-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

#qrCode canvas,
#qrCode img {
  border-radius: 12px;
  border: 6px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
  max-width: 240px;
}

.qr-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-label i {
  color: var(--green-700);
  font-size: 18px;
}

#qrCode canvas,
#qrCode img {
  border-radius: 12px;
  border: 6px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
  max-width: 240px;
}

.qr-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-label i {
  color: var(--green-700);
  font-size: 18px;
}

.countdown-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.countdown-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border-md);
  border-radius: 99px;
  overflow: hidden;
}

.countdown-bar-fill {
  height: 100%;
  background: var(--green-600);
  border-radius: 99px;
  transition: width 1s linear;
}

.countdown-meta {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--ink-4);
  white-space: nowrap;
}

.countdown-meta strong {
  color: var(--green-700);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.btn-extend {
  flex-shrink: 0;
  padding: 12px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border-md);
  border-radius: 8px;
  color: var(--green-700);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  min-height: 48px;
}

.btn-extend:hover {
  background: var(--green-50);
}

.countdown-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border-md);
  border-radius: 99px;
  overflow: hidden;
}

.countdown-bar-fill {
  height: 100%;
  background: var(--green-600);
  border-radius: 99px;
  transition: width 1s linear;
}

.countdown-meta {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--ink-4);
  white-space: nowrap;
}

.countdown-meta strong {
  color: var(--green-700);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.btn-extend {
  flex-shrink: 0;
  padding: 12px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border-md);
  border-radius: 8px;
  color: var(--green-700);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  min-height: 48px;
}

.btn-extend:hover {
  background: var(--green-50);
}


.idle {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--green-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.idle.show {
  opacity: 1;
  pointer-events: auto;
}

.idle-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 196, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 196, 94, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 30%,
    transparent 100%
  );
}

.idle-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.idle-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 78, 41, 0.25) 0%,
    transparent 70%
  );
  top: -120px;
  left: -100px;
  animation: orbDrift1 18s ease-in-out infinite alternate;
}
.idle-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 78, 41, 0.5) 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
  animation: orbDrift2 22s ease-in-out infinite alternate;
}
.idle-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 196, 94, 0.2) 0%,
    transparent 70%
  );
  top: 50%;
  left: 60%;
  animation: orbDrift3 14s ease-in-out infinite alternate;
}
@keyframes orbDrift1 {
  to {
    transform: translate(60px, 80px);
  }
}
@keyframes orbDrift2 {
  to {
    transform: translate(-40px, -60px);
  }
}
@keyframes orbDrift3 {
  to {
    transform: translate(-80px, 40px);
  }
}

.idle-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.idle-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 200, 95, 0.07);
  border: 1px solid rgba(0, 200, 95, 0.12);
  animation: idleFloat linear infinite;
  pointer-events: none;
}
@keyframes idleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translateY(-50vh) translateX(calc(var(--drift-x) * 0.5))
      scale(1.05);
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translateY(-130vh) translateX(var(--drift-x)) scale(1.2);
    opacity: 0;
  }
}

.idle-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 32px 24px;
  text-align: center;
  width: 100%;
  max-width: 780px;
  pointer-events: none;
}

.idle-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}
.idle-logo-wrap img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  display: block;
  position: relative;
  z-index: 1;
}
.idle-logo-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}
.idle-logo-ring-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 196, 94, 0.4);
  animation: logoPulse 2.8s ease-in-out infinite;
}
.idle-logo-ring-pulse::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 196, 94, 0.2);
  animation: logoPulse 2.8s ease-in-out 0.5s infinite;
}
@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.5;
  }
}

.idle-school {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}
.idle-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.idle-clock-wrap {
  margin: 20px 0 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px 40px 14px;
  backdrop-filter: blur(8px);
}
.idle-clock {
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.idle-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.idle-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.idle-divider-line {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.idle-divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 196, 94, 0.6);
}

.idle-how-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 22px;
}

.idle-steps {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.idle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 80px;
  max-width: 100px;
}

.idle-step-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
}
.idle-step-icon:hover {
  background: rgba(0, 196, 94, 0.18);
  border-color: rgba(0, 196, 94, 0.4);
}

.idle-step-num {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  border: 2px solid var(--green-900);
}

.idle-step-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.4;
}

.idle-step-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.idle-cta-wrap {
  position: relative;
}
.idle-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 18px 44px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
  animation: ctaPulse 3s ease-in-out infinite;
}
.idle-cta i {
  font-size: 16px;
  color: #fff;
  animation: handWiggle 2s ease-in-out infinite;
}
.idle-cta-ring {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 1.5px solid rgba(0, 196, 94, 0.5);
  animation: ctaRingExpand 2s ease-out infinite;
}
@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 196, 94, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 196, 94, 0.12);
  }
}
@keyframes ctaRingExpand {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}
@keyframes handWiggle {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(-12deg) translateY(-2px);
  }
  75% {
    transform: rotate(8deg) translateY(1px);
  }
}

@keyframes stepGlow {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
  }
  50% {
    background: rgba(0, 196, 94, 0.22);
    border-color: rgba(0, 196, 94, 0.5);
    color: #fff;
    box-shadow: 0 0 16px rgba(0, 196, 94, 0.3);
  }
}

.idle-steps .idle-step:nth-child(1) .idle-step-icon {
  animation: stepGlow 4s ease-in-out 0s infinite;
}
.idle-steps .idle-step:nth-child(3) .idle-step-icon {
  animation: stepGlow 4s ease-in-out 1s infinite;
}
.idle-steps .idle-step:nth-child(5) .idle-step-icon {
  animation: stepGlow 4s ease-in-out 2s infinite;
}
.idle-steps .idle-step:nth-child(7) .idle-step-icon {
  animation: stepGlow 4s ease-in-out 3s infinite;
}

@media (max-width: 600px) {
  .idle-clock-wrap {
    padding: 12px 28px 10px;
  }
  .idle-steps {
    gap: 4px;
  }
  .idle-step {
    min-width: 64px;
    max-width: 80px;
  }
  .idle-step-icon {
    width: 44px;
    height: 44px;
    font-size: 17px;
    border-radius: 11px;
  }
  .idle-cta {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger > * {
  animation: fadeUp 0.35s var(--ease) both;
}

.stagger > *:nth-child(1) {
  animation-delay: 0.04s;
}

.stagger > *:nth-child(2) {
  animation-delay: 0.08s;
}

.stagger > *:nth-child(3) {
  animation-delay: 0.12s;
}

.stagger > *:nth-child(4) {
  animation-delay: 0.16s;
}

.stagger > *:nth-child(5) {
  animation-delay: 0.2s;
}

.stagger > *:nth-child(6) {
  animation-delay: 0.24s;
}

.stagger > *:nth-child(7) {
  animation-delay: 0.28s;
}

.stagger > *:nth-child(8) {
  animation-delay: 0.32s;
}

.office-card.office-closed {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.badge-closed {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

.screen-head-with-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 48px 28px !important;
}

.btn-nav-back {
  position: absolute;
  left: 48px;
  top: 50%;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--green-700);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t) var(--ease);
}

@media (max-width: 600px) {
  .screen-head {
    padding: 20px 20px 14px;
  }

  .screen-head-with-nav {
    padding: 16px 20px 14px !important;
    gap: 12px;
    flex-wrap: wrap;
  }

  .screen-head-with-nav > div:nth-child(2) {
    flex-basis: 100%;
  }

  .btn-nav-back {
    margin-top: 0;
    padding: 10px 16px;
    font-size: 14px;
  }

  .screen-body {
    padding: 0 20px;
  }

  .screen-foot {
    padding: 14px 20px 20px;
  }

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

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

  .confirm-card,
  .ticket-body {
    padding: 24px 22px;
  }

  .countdown-section {
    padding: 14px 22px;
  }
}
