/* ═══════════════════════════════════════════════
   PokéTrade – style.css
   Aesthetic: Dark tech / card game energy
   Fonts: Unbounded (display) + DM Sans (body)
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Global dark <select> dropdown fix ──────────────────────────
   Browsers use native OS rendering for option lists by default
   (which is white). These rules force dark background everywhere. */
select {
  color-scheme: dark;
}
select option {
  background: #12121a;
  color: #e8e8f0;
}
select optgroup {
  background: #0e0c14;
  color: #9090a8;
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg:       #0a0a0f;
  --bg2:      #12121a;
  --bg3:      #1a1a24;
  --border:   #2a2a3a;
  --border2:  #3a3a50;
  --text:     #e8e8f0;
  --text2:    #9090a8;
  --text3:    #5a5a70;
  --yellow:   #f5c842;
  --yellow2:  #ffe066;
  --blue:     #4a9eff;
  --blue2:    #7bbfff;
  --purple:   #9b6fff;
  --green:    #4ade80;
  --red:      #f87171;
  --card-r:   12px;
  --trans:    0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

code {
  font-family: 'Courier New', monospace;
  background: var(--bg3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--yellow);
}

a { color: inherit; text-decoration: none; }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ═══ NAVBAR ═══ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Unbounded', sans-serif;
  font-size: 16px; font-weight: 400;
  white-space: nowrap;
}
.logo strong { font-weight: 800; color: var(--yellow); }
.logo-icon { font-size: 18px; }

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 6px 14px; border-radius: 8px;
  color: var(--text2); font-size: 14px;
  transition: all var(--trans);
}
.nav-link:hover, .nav-link.active {
  background: var(--bg3); color: var(--text);
}
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-username { color: var(--yellow); font-size: 14px; font-weight: 500; }

.btn-nav-outline {
  padding: 6px 16px; border-radius: 8px;
  border: 1px solid var(--border2); color: var(--text2);
  font-size: 13px; transition: all var(--trans);
}
.btn-nav-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-nav-fill {
  padding: 6px 16px; border-radius: 8px;
  background: var(--yellow); color: #000;
  font-size: 13px; font-weight: 600; transition: all var(--trans);
}
.btn-nav-fill:hover { background: var(--yellow2); }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px;
  background: var(--yellow); color: #000;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: all var(--trans);
  text-decoration: none;
}
.btn-primary:hover { background: var(--yellow2); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary.btn-large { padding: 14px 32px; font-size: 16px; border-radius: 14px; }
.btn-primary.btn-full { width: 100%; }
.btn-primary.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 10px;
  border: 1px solid var(--border2); color: var(--text2);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px;
  background: transparent; cursor: pointer; transition: all var(--trans);
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }
.btn-ghost.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px; border-radius: 8px; font-size: 13px;
  background: rgba(248,113,113,0.15); color: var(--red);
  border: 1px solid rgba(248,113,113,0.3); cursor: pointer; transition: all var(--trans);
}
.btn-danger:hover { background: rgba(248,113,113,0.25); }

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden; padding: 80px 0;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
}
.orb1 { width: 500px; height: 500px; background: var(--yellow); top: -200px; left: -100px; }
.orb2 { width: 400px; height: 400px; background: var(--blue); top: 100px; right: -150px; }
.orb3 { width: 300px; height: 300px; background: var(--purple); bottom: -100px; left: 40%; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  flex: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.3);
  color: var(--yellow); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 5vw, 60px); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px;
  max-width: 600px;
}
.hero-title em { color: var(--yellow); font-style: normal; }
.hero-sub {
  font-size: 16px; color: var(--text2); max-width: 480px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; }
.stat span { display: block; font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 800; color: var(--yellow); }
.stat small { color: var(--text3); font-size: 12px; }

/* floating cards visual */
.hero-cards-visual {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: row; align-items: center; gap: 16px;
  pointer-events: none;
}
@media (max-width: 800px) { .hero-cards-visual { display: none; } }

.hero-cards-main-img {
  height: 268px;
  width: auto;
  flex-shrink: 0;
  
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex-shrink: 0;
}

.card-float {
  animation: float 4s ease-in-out infinite;
}
.card-float.c1 { animation-delay: 0s; }
.card-float.c2 { animation-delay: 1s; }
.card-float.c3 { animation-delay: 2s; }
.card-float.c4 { animation-delay: 0.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.card-img {
  width: 90px; height: 126px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* ═══ SECTIONS ═══ */
.section { padding: 80px 0; }
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 28px; font-weight: 800;
  text-align: center; margin-bottom: 48px;
}

/* ── HOW IT WORKS ── */
.how { background: var(--bg2); }
.steps {
  display: flex; align-items: flex-start; gap: 8px;
  flex-wrap: wrap; justify-content: center;
}
.step {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--card-r); padding: 28px 24px;
  flex: 1; min-width: 180px; max-width: 220px;
  text-align: center;
}
.step-num {
  font-family: 'Unbounded', sans-serif; font-size: 11px;
  color: var(--yellow); font-weight: 800; letter-spacing: 2px;
  margin-bottom: 12px;
}
.step-icon { font-size: 28px; margin-bottom: 12px; }
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text2); line-height: 1.5; }
.step-arrow { font-size: 24px; color: var(--border2); align-self: center; padding-top: 20px; }

/* ── FEATURES ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--card-r); padding: 28px 24px;
  transition: border-color var(--trans);
}
.feature-card:hover { border-color: var(--border2); }
.feature-card.accent-yellow { border-top: 2px solid var(--yellow); }
.feature-card.accent-blue   { border-top: 2px solid var(--blue); }
.feature-card.accent-purple { border-top: 2px solid var(--purple); }
.feature-card.accent-green  { border-top: 2px solid var(--green); }
.fc-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── CTA ── */
.cta-section { background: var(--bg2); }
.cta-box {
  background: linear-gradient(135deg, rgba(245,200,66,0.1), rgba(74,158,255,0.08));
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 20px; padding: 60px; text-align: center;
}
.cta-box h2 {
  font-family: 'Unbounded', sans-serif; font-size: 28px;
  font-weight: 800; margin-bottom: 12px;
}
.cta-box p { color: var(--text2); margin-bottom: 28px; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 28px 0; text-align: center; }
.footer p { font-size: 13px; color: var(--text3); }

/* ═══ AUTH PAGES ═══ */
.auth-page { background: var(--bg); }
.auth-container {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; width: 100%; max-width: 420px;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-icon { font-size: 40px; margin-bottom: 12px; }
.auth-header h1 {
  font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 800;
  margin-bottom: 8px;
}
.auth-header p { color: var(--text2); font-size: 14px; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text2); }
.form-group input {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 15px;
  transition: border-color var(--trans); outline: none;
}
.form-group input:focus { border-color: var(--yellow); }
.form-group small { font-size: 12px; color: var(--text3); }

.auth-divider {
  text-align: center; position: relative; margin: 20px 0;
  color: var(--text3); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 20px);
  height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-alt { text-align: center; font-size: 14px; color: var(--text2); }
.auth-alt a { color: var(--yellow); }
.auth-error {
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3);
  color: var(--red); padding: 12px 16px; border-radius: 10px;
  font-size: 14px; margin-bottom: 16px;
}
.auth-success {
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3);
  color: var(--green); padding: 12px 16px; border-radius: 10px;
  font-size: 14px; margin-bottom: 16px;
}
.auth-note {
  margin-top: 20px; padding: 14px;
  background: rgba(245,200,66,0.06); border: 1px solid rgba(245,200,66,0.15);
  border-radius: 10px; font-size: 13px; color: var(--text2);
}
.auth-note strong { color: var(--yellow); }

/* ═══ DASHBOARD ═══ */
.dashboard { padding: 40px 0 80px; position: relative; z-index: 1; }
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.dash-header h1 {
  font-family: 'Unbounded', sans-serif; font-size: 24px; font-weight: 800;
}
.dash-header p { color: var(--text2); font-size: 14px; margin-top: 4px; }
.dash-section { margin-top: 48px; }
.dash-section h2 {
  font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 700;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--border2); border-radius: 16px;
  padding: 40px; text-align: center;
  transition: all var(--trans); cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--yellow); background: rgba(245,200,66,0.05);
}
.upload-zone-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.upload-icon { font-size: 40px; }
.upload-zone p { font-size: 15px; }
.upload-zone small { color: var(--text3); font-size: 13px; }
.upload-hint { color: var(--text3); font-size: 12px; max-width: 400px; }
.upload-label { cursor: pointer; }

/* ── LISTINGS GRID ── */
.listings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.listing-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--card-r); padding: 20px;
  transition: border-color var(--trans);
}
.listing-card:hover { border-color: var(--border2); }
.lc-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.lc-count {
  font-family: 'Unbounded', sans-serif; font-size: 11px;
  font-weight: 700; color: var(--yellow);
}
.lc-date { flex: 1; font-size: 12px; color: var(--text3); }
.lc-delete { background: none; border: none; cursor: pointer; color: var(--text3); font-size: 14px; }
.lc-delete:hover { color: var(--red); }
.lc-title { font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.lc-cards-preview {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.lc-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.lc-offers { font-size: 12px; color: var(--text3); }

/* ── MINI CARDS ── */
.mini-card {
  width: 46px; height: 64px; border-radius: 6px;
  overflow: hidden; border: 1px solid var(--border);
  position: relative; background: var(--bg3);
}
.mini-card img { width: 100%; height: 100%; object-fit: cover; }
.mini-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.mini-card.more {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text3); font-weight: 600;
}
.mini-price {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.8); font-size: 9px; color: var(--yellow);
  text-align: center; padding: 2px;
}

/* ── OFFERS ── */
.badge-count {
  background: var(--red); color: #fff;
  border-radius: 10px; padding: 1px 8px; font-size: 12px;
}
.offers-list { display: flex; flex-direction: column; gap: 12px; }
.offer-row {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.offer-info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.offer-from { font-weight: 600; font-size: 14px; }
.offer-listing { font-size: 13px; color: var(--text2); }
.offer-price { font-weight: 700; color: var(--yellow); font-size: 14px; }
.offer-date { font-size: 12px; color: var(--text3); }
.offer-actions { display: flex; gap: 8px; }

/* ── SKELETON ── */
.loading-cards { display: flex; gap: 20px; flex-wrap: wrap; }
.skeleton-card {
  width: 260px; height: 200px; border-radius: var(--card-r);
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 20px; width: 100%; max-width: 560px;
  max-height: 90vh; display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-box.modal-large { max-width: 780px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text3);
  font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.modal-close:hover { background: var(--bg3); }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

.progress-bar-wrap {
  background: var(--bg3); border-radius: 8px; height: 6px; margin: 24px;
}
.progress-bar {
  background: var(--yellow); height: 100%; border-radius: 8px;
  transition: width 0.3s ease; width: 0%;
}
#progressLabel { text-align: center; color: var(--text2); font-size: 14px; padding-bottom: 16px; }

/* ── UPLOAD PREVIEW ── */
#uploadPreview { overflow-y: auto; flex: 1; }
.preview-summary { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.preview-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.preview-meta span { font-size: 14px; color: var(--text2); }
.preview-cards {
  padding: 16px 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px;
}
.preview-card-item { text-align: center; }
.pci-img {
  width: 70px; height: 98px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border); margin: 0 auto 6px; background: var(--bg3);
}
.pci-img img { width: 100%; height: 100%; object-fit: cover; }
.pci-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.pci-name { font-size: 11px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pci-price { font-size: 11px; color: var(--yellow); font-weight: 600; }
.preview-more { grid-column: 1/-1; text-align: center; color: var(--text3); font-size: 13px; padding: 8px; }

/* ═══ MARKETPLACE ═══ */
.marketplace-page { padding: 40px 0 80px; }
.market-header { text-align: center; margin-bottom: 32px; }
.market-header h1 {
  font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 800;
  margin-bottom: 8px;
}
.market-header p { color: var(--text2); }

.market-filters {
  display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap;
}
.search-input {
  flex: 1; min-width: 200px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
}
.search-input:focus { border-color: var(--yellow); }
.filter-select {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
}

.market-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.loading-full { grid-column: 1/-1; text-align: center; color: var(--text2); padding: 60px; }

/* ── MARKET CARD ── */
.market-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--card-r); padding: 20px;
  cursor: pointer; transition: all var(--trans);
}
.market-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.mc-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mc-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); color: #000; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.mc-username { font-weight: 600; font-size: 14px; }
.mc-date { font-size: 11px; color: var(--text3); }
.mc-count {
  margin-left: auto; font-family: 'Unbounded', sans-serif;
  font-size: 11px; color: var(--yellow); font-weight: 700;
}
.mc-title { font-size: 14px; color: var(--text2); margin-bottom: 12px; }
.mc-cards-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mc-card-thumb {
  width: 44px; height: 61px; border-radius: 5px;
  overflow: hidden; border: 1px solid var(--border); background: var(--bg3);
}
.mc-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mc-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.mc-card-thumb.more {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text3); font-weight: 600;
}
.mc-footer { display: flex; align-items: center; justify-content: space-between; }
.mc-price { font-weight: 700; color: var(--yellow); font-size: 14px; }
.mc-price-any { font-size: 13px; color: var(--text3); }

/* ── OFFER MODAL ── */
.offer-instructions {
  padding: 16px 24px;
  font-size: 14px; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.offer-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px; padding: 16px 24px; max-height: 320px; overflow-y: auto;
}
.offer-card-item {
  cursor: pointer; text-align: center; padding: 8px;
  border: 2px solid transparent; border-radius: 10px;
  transition: all var(--trans);
}
.offer-card-item:hover { border-color: var(--border2); background: var(--bg3); }
.offer-card-item.selected { border-color: var(--yellow); background: rgba(245,200,66,0.08); }
.oci-img {
  width: 70px; height: 98px; border-radius: 6px; overflow: hidden;
  margin: 0 auto 6px; background: var(--bg3); position: relative;
}
.oci-img img { width: 100%; height: 100%; object-fit: cover; }
.oci-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.oci-select-badge {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow); color: #000; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--trans);
}
.offer-card-item.selected .oci-select-badge { opacity: 1; }
.oci-name { font-size: 11px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oci-price { font-size: 11px; color: var(--yellow); font-weight: 600; }

.offer-form {
  padding: 16px 24px; border-top: 1px solid var(--border);
}
.offer-form h4 { font-weight: 600; margin-bottom: 12px; }
.offer-type-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ot-tab {
  padding: 8px 16px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text2);
  transition: all var(--trans);
}
.ot-tab.active { border-color: var(--yellow); color: var(--yellow); background: rgba(245,200,66,0.1); }
.offer-input, .offer-textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
  margin-bottom: 12px;
}
.offer-input:focus, .offer-textarea:focus { border-color: var(--yellow); }
.offer-textarea { resize: vertical; }
.offer-form label { font-size: 13px; color: var(--text2); display: block; margin-bottom: 6px; }
.empty-footer { color: var(--text3); font-size: 13px; }

/* ═══ COMPARE ═══ */
.compare-page { padding: 40px 0 80px; position: relative; z-index: 1; }
.compare-header { text-align: center; margin-bottom: 40px; }
.compare-header h1 {
  font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 800; margin-bottom: 8px;
}
.compare-header p { color: var(--text2); }

.compare-upload-row {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.compare-drop {
  flex: 1; min-width: 240px;
  border: 2px dashed var(--border2); border-radius: 16px; padding: 36px 24px;
  text-align: center; transition: all var(--trans); cursor: default;
}
.compare-drop.drag-over, .compare-drop:hover {
  border-color: var(--yellow); background: rgba(245,200,66,0.04);
}
.compare-drop.loaded { border-color: var(--green); border-style: solid; }
.cd-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cd-icon { font-size: 32px; }
.cd-label { font-weight: 600; font-size: 15px; }

.compare-vs {
  font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 800;
  color: var(--text3); flex-shrink: 0;
}

/* compare stats */
.compare-stats {
  display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.cstat {
  flex: 1; min-width: 120px; padding: 20px;
  border-radius: 12px; text-align: center;
  border: 1px solid var(--border); background: var(--bg2);
}
.cstat span {
  display: block; font-family: 'Unbounded', sans-serif;
  font-size: 28px; font-weight: 800; margin-bottom: 4px;
}
.cstat small { font-size: 12px; color: var(--text2); }
.cstat.green span { color: var(--green); }
.cstat.blue span  { color: var(--blue); }
.cstat.yellow span { color: var(--yellow); }
.cstat.gray span { color: var(--text2); }

/* compare tabs */
.compare-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.ct-tab {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text2);
  transition: all var(--trans);
}
.ct-tab.active { border-color: var(--yellow); color: var(--yellow); background: rgba(245,200,66,0.1); }

.compare-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px;
}
.cc-item {
  text-align: center; padding: 8px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg2);
}
.cc-item.green { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.05); }
.cc-item.blue  { border-color: rgba(74,158,255,0.3); background: rgba(74,158,255,0.05); }
.cc-item.yellow{ border-color: rgba(245,200,66,0.3); background: rgba(245,200,66,0.05); }
.cc-img {
  width: 70px; height: 98px; border-radius: 6px; overflow: hidden;
  margin: 0 auto 6px; background: var(--bg3);
}
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.cc-name { font-size: 11px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-set  { font-size: 10px; color: var(--text3); }
.compare-more { grid-column: 1/-1; text-align: center; color: var(--text3); padding: 16px; }

/* ═══ UTILS ═══ */
.empty-state {
  color: var(--text3); font-size: 14px; padding: 40px; text-align: center;
  grid-column: 1/-1;
}

/* ── Eye toggle na hesla ─────────────────────────── */
.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-password-wrap input {
  flex: 1;
  padding-right: 2.8rem !important;
}
.eye-btn {
  position: absolute;
  right: .75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: .5;
  transition: opacity .2s;
  padding: 0;
  line-height: 1;
}
.eye-btn:hover { opacity: 1; }
.eye-btn.active { opacity: 1; }

/* ── Chat dropdown (shared across all pages) ── */
.chat-dropdown-wrap { position: relative; }
.chat-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text2, rgba(240,236,228,0.65));
  text-decoration: none; transition: all .15s; cursor: pointer; font-family: inherit;
}
.chat-icon-btn:hover { background: rgba(255,255,255,0.1); color: var(--text, #f0ece4); border-color: rgba(255,255,255,0.14); }
.chat-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  border-radius: 9px; background: #f87171; color: #fff;
  font-size: 10px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; padding: 0 5px; line-height: 1;
  box-shadow: 0 0 0 2px rgba(8,8,12,0.92);
}
.chat-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 380px; max-height: 480px; background: rgba(14,12,20,0.97);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  backdrop-filter: blur(20px); box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 300; overflow: hidden; flex-direction: column;
}
.chat-drop.open { display: flex; }
.chat-drop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-drop-title { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 800; color: #fff; }
.chat-drop-all { font-size: 12px; color: var(--yellow, #f5c842); text-decoration: none; font-weight: 600; }
.chat-drop-all:hover { opacity: 0.8; }
.chat-drop-list { overflow-y: auto; max-height: 400px; padding: 4px 0; }
.chat-drop-list::-webkit-scrollbar { width: 4px; }
.chat-drop-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.chat-drop-empty { text-align: center; padding: 30px 16px; color: rgba(240,236,228,0.35); font-size: 13px; }
.cdrop-item {
  display: flex; gap: 10px; padding: 10px 16px; cursor: pointer;
  transition: background .12s; text-decoration: none; color: inherit; border-left: 3px solid transparent;
}
.cdrop-item:hover { background: rgba(255,255,255,0.04); }
.cdrop-item.unread { border-left-color: var(--yellow, #f5c842); background: rgba(245,200,66,0.04); }
.cdrop-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.08); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; color: var(--text, #f0ece4);
}
.cdrop-info { flex: 1; min-width: 0; }
.cdrop-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.cdrop-name { font-weight: 600; font-size: 13px; color: var(--text, #f0ece4); }
.cdrop-time { font-size: 11px; color: rgba(240,236,228,0.35); flex-shrink: 0; margin-left: 8px; }
.cdrop-msg { font-size: 12px; color: rgba(240,236,228,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdrop-listing { font-size: 11px; color: var(--yellow, #f5c842); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.cdrop-listing-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow, #f5c842); }
.cdrop-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow, #f5c842); flex-shrink: 0; align-self: center; }
.notif-prompt { display: none; padding: 10px 14px; background: rgba(74,158,255,0.08); border-top: 1px solid rgba(255,255,255,0.06); align-items: center; gap: 8px; font-size: 12px; color: rgba(240,236,228,0.65); }
.notif-prompt.show { display: flex; }
.notif-prompt-btn { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; }
.notif-allow { background: rgba(74,158,255,0.2); color: #7ab8ff; }
.notif-dismiss { background: transparent; color: rgba(240,236,228,0.4); }
@media (max-width: 480px) { .chat-drop { width: calc(100vw - 20px); right: -60px; } }
