.demo-win {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--surface-line-strong);
  box-shadow: var(--shadow-md);
}

.demo-win__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--surface-line);
}

.demo-win__dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.demo-win__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  background: var(--surface-line-strong);
}

.demo-win__dots i:first-child {
  background: var(--accent);
}

.demo-win__url {
  flex: 1;
  min-width: 0;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--r-pill);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-win__body {
  padding: clamp(14px, 2vw, 22px);
  background: var(--bg-1);
}



/* demo kanban */

.demo-kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.demo-kanban::-webkit-scrollbar {
  display: none;
}

.demo-kanban__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--surface-line);
}

.demo-kanban__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-1);
}

.demo-kanban__count {
  min-width: 22px;
  padding: 2px 7px;
  text-align: center;
  font-size: 11px;
  color: var(--accent-text);
  background: rgba(250, 164, 26, 0.14);
  border-radius: var(--r-pill);
}



/* demo card */

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-strong);
  border: 1px solid var(--surface-line);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.demo-card:hover {
  border-color: var(--surface-line-strong);
  transform: translateY(-2px);
}

.demo-card__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-0);
}

.demo-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}

.demo-card__tag {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
  color: var(--accent-text);
  background: rgba(250, 164, 26, 0.14);
  border-radius: var(--r-pill);
}



/* demo stat */

.demo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.demo-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--surface-line);
}

.demo-stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.demo-stat__label {
  font-size: 12px;
  color: var(--text-2);
}



/* demo bars */

.demo-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--surface-line);
}

.demo-bars i {
  flex: 1;
  display: block;
  min-height: 6px;
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  background: var(--accent);
  opacity: 0.85;
  transition: opacity var(--dur-2) var(--ease);
}

.demo-bars i:hover {
  opacity: 1;
}



/* demo table */

.demo-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--surface-line);
}

.demo-table th,
.demo-table td {
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--surface-line);
}

.demo-table th {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface-strong);
}

.demo-table td {
  color: var(--text-1);
}

.demo-table tr:last-child td {
  border-bottom: none;
}

.demo-table tr:hover td {
  background: var(--surface);
}



/* demo map */

.demo-map {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(250, 164, 26, 0.1), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--surface-line);
  background-image:
    linear-gradient(to right, var(--surface-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--surface-line) 1px, transparent 1px);
  background-size: 38px 38px;
}

.demo-map__pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-0);
  box-shadow: 0 0 0 4px rgba(250, 164, 26, 0.25);
  transform: translate(-50%, -50%);
}

.demo-map__pin::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.5;
  animation: demo-ping 2.4s var(--ease-soft) infinite;
}

@keyframes demo-ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}



/* responsive */

@media (max-width: 768px) {
  .demo-win__body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .demo-win__body::-webkit-scrollbar {
    display: none;
  }

  .demo-table {
    min-width: 460px;
  }

  .demo-table th,
  .demo-table td {
    padding: 9px 11px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .demo-kanban {
    grid-auto-columns: minmax(148px, 1fr);
    gap: 10px;
  }

  .demo-kanban__col {
    padding: 10px;
  }

  .demo-card__meta {
    font-size: 10px;
  }

  .demo-table {
    min-width: 420px;
  }

  .demo-table th,
  .demo-table td {
    padding: 8px 10px;
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-map__pin::after {
    animation: none;
  }
}
