/* ============ UNIFIED PLANT PROFILE OVERLAY ============ */
.pp-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; animation: pp-fade-in 0.2s ease-out;
}
@keyframes pp-fade-in { from { opacity: 0; } to { opacity: 1; } }

.pp-modal {
  background: #16213e; border-radius: 16px; padding: 24px;
  max-width: 380px; width: 92vw; max-height: 90vh; overflow-y: auto;
  position: relative; color: #e0e6ed;
  animation: pp-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #1e2d4a;
}
@keyframes pp-pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pp-modal .pp-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: #6b7a99; font-size: 22px; cursor: pointer; z-index: 10; }
.pp-modal .pp-close:hover { color: #fff; }

/* Banner (discovery/hybrid/harvest) */
.pp-banner { text-align: center; margin-bottom: 14px; padding: 10px; border-radius: 10px; }
.pp-banner-discovery { background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(255,69,0,0.1)); }
.pp-banner-discovery .pp-banner-title { font-size: 20px; font-weight: 800; letter-spacing: 1px; animation: discovery-title-glow 2s ease-in-out infinite; }
.pp-banner-discovery .pp-banner-bonus { font-size: 16px; font-weight: 700; color: #e6a832; margin-top: 4px; animation: coin-pop 0.6s ease-out; }
.pp-banner-discovery .pp-banner-yours { font-size: 13px; color: #a855f7; font-weight: 600; margin-top: 4px; }
.pp-banner-hybrid { background: rgba(168,85,247,0.08); }
.pp-banner-hybrid .pp-banner-title { font-size: 18px; font-weight: 700; color: #c084fc; }
.pp-banner-harvest { background: rgba(230,168,50,0.08); }
.pp-banner-harvest .pp-banner-title { font-size: 16px; font-weight: 700; color: #e6a832; }
.pp-banner-harvest .pp-banner-value { font-size: 14px; color: #e6a832; margin-top: 2px; }

/* Header */
.pp-modal .pp-header { text-align: center; margin-bottom: 12px; }
.pp-modal .pp-icon { font-size: 64px; margin-bottom: 8px; }
.pp-modal .pp-icon img.plant-img { width: 80px; height: 80px; }
.pp-modal .pp-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.pp-modal .pp-rarity { display: inline-block; padding: 3px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.pp-modal .pp-dna-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; margin-top: 8px; }
.pp-modal .pp-dna-bar span { display: block; border-radius: 2px; }

/* Discoverer section */
.pp-discoverer-section { text-align: center; margin-bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pp-discoverer-link { font-size: 13px; color: #5bb8e8; text-decoration: none; transition: color 0.15s; }
.pp-discoverer-link:hover { color: #7dcfff; text-decoration: underline; }
.pp-discoverer-link strong { font-weight: 700; }
.pp-visit-shop {
  display: inline-block; font-size: 12px; color: #e0e6ed; background: #1e2d4a;
  border: 1px solid #2a3f5f; border-radius: 8px; padding: 4px 14px;
  text-decoration: none; transition: all 0.2s;
}
.pp-visit-shop:hover { background: #2a3f5f; border-color: #3a5a7a; }

/* Like section */
.pp-like-section { text-align: center; margin-bottom: 14px; }
.pp-modal .pp-like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid #2a3f5f; border-radius: 20px;
  padding: 6px 16px; cursor: pointer; font-size: 15px; transition: all 0.2s; color: #e0e6ed;
}
.pp-modal .pp-like-btn:hover { background: rgba(231,76,60,0.12); border-color: #e74c3c; }
.pp-modal .pp-like-btn.liked { background: rgba(231,76,60,0.1); border-color: #e74c3c; }
.pp-modal .pp-like-btn .like-count { font-size: 15px; font-weight: 700; }
.pp-modal .pp-like-btn.liked .like-count { color: #e74c3c; }
.pp-modal .pp-like-btn .like-label { font-size: 13px; color: #6b7a99; }
.pp-likes-credit { font-size: 11px; color: #4a5c7a; margin-top: 4px; font-style: italic; }

/* DNA / Traits / Stats — reuse marketplace styles */
.pp-modal .pp-section { margin-bottom: 16px; }
.pp-modal .pp-section-title { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #4a5c7a; letter-spacing: 0.8px; margin-bottom: 8px; }
.pp-modal .pp-dna-row { display: flex; gap: 16px; align-items: center; }
.pp-modal .pp-pie { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px #0f1d36; }
.pp-modal .pp-legend { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pp-modal .pp-legend-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pp-modal .pp-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pp-modal .pp-legend-pct { color: #6b7a99; margin-left: auto; font-size: 12px; }
.pp-modal .pp-trait-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pp-modal .pp-trait-icon { font-size: 14px; width: 20px; text-align: center; }
.pp-modal .pp-trait-label { font-size: 13px; color: #8899bb; width: 80px; }
.pp-modal .pp-trait-bar { flex: 1; height: 8px; background: #0f1d36; border-radius: 4px; overflow: hidden; }
.pp-modal .pp-trait-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease-out; }
.pp-modal .pp-trait-val { font-size: 12px; color: #6b7a99; width: 36px; text-align: right; }
.pp-modal .pp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-modal .pp-stat { background: #0f1d36; border-radius: 8px; padding: 10px 12px; }
.pp-modal .pp-stat-label { font-size: 11px; color: #4a5c7a; text-transform: uppercase; }
.pp-modal .pp-stat-value { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* Actions */
.pp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pp-action-btn {
  width: 100%; padding: 12px; border-radius: 10px; border: 2px solid #2a3f5f;
  background: #1e2d4a; color: #e0e6ed; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pp-action-btn:hover { background: #2a3f5f; transform: translateY(-1px); }
.pp-action-btn .pp-action-sub { font-size: 12px; color: #e6a832; font-weight: 600; }
.pp-quick-sell { border-color: #e6a832; }
.pp-quick-sell:hover { background: rgba(230,168,50,0.15); }
.pp-list-sell { border-color: #4a8a3a; }
.pp-list-sell:hover { background: rgba(74,138,58,0.15); }
.pp-buy { border-color: #e6a832; background: linear-gradient(135deg, #1e2d4a, #2a3f5f); }
.pp-buy:hover { background: rgba(230,168,50,0.2); }
.pp-keep { border-color: #3a3a55; font-size: 12px; padding: 8px; }
.pp-share { border-color: #3a3a55; font-size: 12px; padding: 8px; background: none; }
.pp-share:hover { border-color: #5bb8e8; color: #5bb8e8; }
.pp-close-btn { border-color: #3a3a55; }
.pp-own-listing { text-align: center; color: #6b7a99; font-size: 13px; padding: 8px; }

/* Mobile */
@media (max-width: 480px) {
  .pp-modal { padding: 16px; max-width: 95vw; }
  .pp-modal .pp-icon { font-size: 48px; }
  .pp-modal .pp-name { font-size: 18px; }
}
