/* Reusable "Grafyks · Overview" analytics mock card — used in the hero preview and in the dashboard page */

.tw-card {
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 106, 0, 0.08), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tw-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.tw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.tw-card-dots {
  margin-left: auto;
  display: flex;
  gap: 5px;
}

.tw-card-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}

.tw-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tw-stat {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.tw-stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tw-stat-delta {
  margin-left: auto;
  color: var(--orange-light);
  font-size: 12px;
  font-weight: 600;
}

.tw-stat-value {
  font-size: 18px;
  font-weight: 700;
}

.tw-chart-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.tw-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tw-chart-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.tw-chart-head h4 {
  font-size: 15px;
  font-weight: 600;
}

.tw-chart-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.tw-chart-legend .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}

.tw-chart-legend .dot.orange { background: var(--orange); }
.tw-chart-legend .dot.gray { background: var(--text-faint); }

.tw-chart-svg {
  width: 100%;
  height: auto;
}

.tw-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tw-card-mini {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.tw-mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tw-product-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 7px 0;
}

.tw-product-row span:first-child {
  font-weight: 600;
}

.tw-product-row span:nth-child(2) {
  margin-left: auto;
  color: var(--text-muted);
}

.tw-tag {
  background: rgba(255, 106, 0, 0.14);
  color: var(--orange-light);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.tw-signal {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  line-height: 1.5;
}

.tw-signal:last-child {
  margin-bottom: 0;
}

.tw-signal.highlight {
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: var(--text);
}

.tw-signal b {
  color: var(--orange-light);
}

.tw-footer-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 4px;
}

.tw-footer-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tw-foot-label {
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.tw-foot-value {
  font-size: 14px;
  font-weight: 700;
}

.tw-detail-btn {
  margin-left: auto;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange-light);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease);
}

.tw-detail-btn:hover {
  background: rgba(255, 106, 0, 0.22);
}

@media (max-width: 640px) {
  .tw-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .tw-split-row {
    grid-template-columns: 1fr;
  }
  .tw-footer-row {
    flex-wrap: wrap;
    gap: 14px;
  }
}
