/* Feed Screen */
#feed-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 8px 14px calc(var(--safe-bottom, 0px) + 82px) 14px;
  position: relative;
}

/* Card Stack Container */
.card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  margin-bottom: 12px;
}

/* Base Card Style */
.card {
  position: absolute;
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 24px;
  background-color: var(--surface-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  border: 1px solid var(--border-subtle);
}

.card:active {
  cursor: grabbing;
}

/* Next Card in Stack */
.card.next {
  transform: scale(0.94) translateY(16px);
  opacity: 0.7;
  pointer-events: none;
  filter: brightness(0.85);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease, filter 0.35s ease;
  z-index: 1;
}

.card.current {
  z-index: 2;
}

/* Photo & Visual Elements */
.card-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

/* Card Content Details */
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 18px 20px 18px;
  z-index: 5;
  pointer-events: none;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.card-premium-star {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5));
}

.card-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.card-age {
  font-size: 21px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.card-city-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.card-city-icon {
  font-size: 13px;
}

.card-bio {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
  font-weight: 400;
}

/* Reaction Badges (Animated Telegram Emoji indicators) */
.card-badge {
  position: absolute;
  top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform, opacity;
}

.card-badge .badge-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-like {
  right: 20px;
  color: #10b981;
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.2);
  transform: rotate(10deg) scale(0.88);
}

.badge-dislike {
  left: 20px;
  color: #ef4444;
  border: 2px solid #ef4444;
  background: rgba(239, 68, 68, 0.2);
  transform: rotate(-10deg) scale(0.88);
}

/* Action Buttons Dock */
.actions-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0;
  margin-bottom: 2px;
  z-index: 15;
  width: 100%;
  flex-shrink: 0;
}

.btn-action {
  border: none;
  outline: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--surface-glass);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease, background 0.2s ease;
  will-change: transform;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-action * {
  pointer-events: none;
}

.btn-action:active {
  transform: scale(0.9);
}

.btn-dislike {
  width: 62px;
  height: 62px;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-dislike:hover {
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.25);
}

.btn-info {
  width: 44px;
  height: 44px;
  background: var(--surface-glass);
  border-color: var(--border);
}

.btn-info:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-like {
  width: 62px;
  height: 62px;
  background: var(--accent-subtle);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-like:hover {
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.25);
}

/* GlassKit Alert Status Banners for Detail Modal */
.detail-glass-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  margin: 14px 0 16px 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.detail-phone-warning {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 4px 16px rgba(239, 68, 68, 0.15);
  color: #ff6b6b;
}

[data-theme="light"] .detail-phone-warning {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
  color: #d32f2f;
}

.detail-phone-warning .alert-icon {
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-phone-verified {
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.35);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.15), 0 4px 16px rgba(52, 199, 89, 0.15);
  color: #34c759;
}

[data-theme="light"] .detail-phone-verified {
  background: rgba(52, 199, 89, 0.08);
  border-color: rgba(52, 199, 89, 0.28);
  color: #28a745;
}

.detail-phone-verified .alert-icon {
  color: #34c759;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}

.alert-desc {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.35;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}
