#feed-view {
  height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
}

#card-stack {
  position: relative;
  width: 100%;
  max-width: var(--max-card-width);
  height: calc(100vh - var(--nav-height) - 120px);
  max-height: 600px;
}

.profile-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #333;
  box-shadow: var(--shadow-card);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.05s ease-out;
  will-change: transform;
}

.profile-card:active {
  cursor: grabbing;
}

.profile-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-color: #444;
}

.profile-card .card-bg-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #9d0000 0%, #d00000 100%);
}

.profile-card .card-bg-placeholder span {
  font-size: 6rem;
  opacity: 0.7;
}

.profile-card .card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.profile-card .card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  color: #fff;
}

.profile-card .card-name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.profile-card .card-major {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.profile-card .card-bio {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.profile-card .card-tag {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

/* Like / nope labels that appear while dragging */
.card-label {
  position: absolute;
  top: 1.5rem;
  font-size: 2rem;
  font-weight: 900;
  border: 4px solid;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  opacity: 0;
  transition: opacity 0.1s;
  pointer-events: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-label.like {
  left: 1.5rem;
  color: #42a7c6;
  border-color: #42a7c6;
  transform: rotate(-15deg);
}

.card-label.nope {
  right: 1.5rem;
  color: var(--coral);
  border-color: var(--coral);
  transform: rotate(15deg);
}

/* Back card (peeking behind) */
.profile-card.back {
  transform: scale(0.95) translateY(12px);
  z-index: 1;
  pointer-events: none;
}

.profile-card.front {
  z-index: 2;
}

/* Action buttons — UNL outlined style */
#card-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.action-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.action-btn.pass-btn {
  background: #fefdfa;
  color: var(--coral);
  border: 2.5px solid var(--coral);
}

.action-btn.like-btn {
  background: #fefdfa;
  color: var(--teal);
  border: 2.5px solid var(--teal);
}

.action-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Empty state */
#feed-empty {
  text-align: center;
  display: none;
}

#feed-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

#feed-empty p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
