:root {
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --ig-purple: #833AB4;
  --ig-pink: #E1306C;
  --ig-orange: #F77737;
}

.ig-gradient {
  background: var(--ig-gradient);
}

.ig-gradient-text {
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ig-gradient-border {
  position: relative;
  padding: 3px;
  border-radius: 50%;
  background: var(--ig-gradient);
  display: inline-block;
}

.ig-gradient-border > * {
  display: block;
  background: white;
  border-radius: 50%;
  padding: 2px;
}

.tab-btn {
  padding: 0.625rem 1rem;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.tab-btn:hover {
  color: #0f172a;
  background: #f8fafc;
}

.tab-active {
  color: #db2777 !important;
  border-bottom-color: #db2777 !important;
}

.chip {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  margin: 0.125rem;
  border-radius: 9999px;
  background: white;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 500;
  transition: all 0.15s;
}

.chip:hover {
  background: #fce7f3;
  border-color: #f9a8d4;
  color: #be185d;
}

.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.stat-sub {
  font-size: 0.75rem;
  color: #64748b;
}

.post-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform 0.2s;
}

.post-card:hover {
  transform: scale(1.02);
}

.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), rgba(0,0,0,0) 40%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.5rem;
  color: white;
  font-size: 0.75rem;
}

.post-card:hover .post-overlay {
  opacity: 1;
}

.post-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.65rem;
  font-weight: 600;
}

.verified-badge {
  color: #3b82f6;
  margin-left: 0.25rem;
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.health-ring {
  width: 120px;
  height: 120px;
  position: relative;
}

.health-ring svg {
  transform: rotate(-90deg);
}

.health-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.bio-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  position: relative;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.bio-card:hover {
  border-color: #f9a8d4;
}

.bio-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: #f1f5f9;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  color: #475569;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

.bio-copy-btn:hover {
  background: #fce7f3;
  color: #be185d;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  font-size: 0.85rem;
}

.signal-verdict-good { color: #059669; }
.signal-verdict-warn { color: #d97706; }
.signal-verdict-bad { color: #dc2626; }

.signal-row .verdict-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.scroll-x-hidden { scrollbar-width: thin; }
.scroll-x-hidden::-webkit-scrollbar { height: 6px; }
.scroll-x-hidden::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
