/* Hero */
.hero { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:18px; background: linear-gradient(135deg, rgba(0, 100, 210, 0.08), rgba(0, 0, 0, 0.02)); }
.hero-left h1 { font-size:2rem; color:var(--text); margin-bottom:12px; font-weight:800; line-height:1.2; }
.hero-left p { margin-bottom:16px; line-height:1.6; }
.hero-right { width:360px; }

/* Hero Actions */
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }

/* live card */
.live-card { position:relative; border-radius:12px; overflow:hidden; box-shadow:0 8px 24px rgba(0,100,210,0.12); }
.live-badge { position:absolute; left:10px; top:10px; background: linear-gradient(90deg,#ff4d4f,#ff938a); color:white; font-weight:700; padding:6px 10px; border-radius:8px; font-size:0.85rem; display:flex; align-items:center; gap:4px; box-shadow:0 8px 20px rgba(0,0,0,0.15); z-index:10; }
.live-thumb { height:180px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#e7f0ff,#f4f8ff); color:var(--text); font-size:3rem; animation:float 3s ease-in-out infinite; }
.live-meta { padding:16px; background:var(--card); }
.live-meta .title { font-weight:700; margin-bottom:4px; color:var(--text); }
.live-meta .sub { font-size:0.95rem; margin-bottom:8px; }
.live-stats { display:flex; gap:12px; font-size:0.9rem; color:var(--muted); }

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

/* Featured Section */
.featured-section { margin-top:28px; margin-bottom:20px; }
.featured-section h3 { font-size:1.3rem; margin-bottom:14px; font-weight:700; }
.featured-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.featured-card { background:var(--card); padding:16px; border-radius:10px; border:1px solid rgba(2,6,23,0.06); display:flex; align-items:center; gap:12px; cursor:pointer; transition:all 0.2s ease; }
.featured-card:hover { border-color:var(--accent); box-shadow:0 6px 16px rgba(0,100,210,0.1); transform:translateY(-2px); }
.featured-icon { font-size:2rem; flex-shrink:0; }
.featured-label { font-weight:700; font-size:0.95rem; }

/* listings */
.list-actions { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; padding:14px; gap:12px; }
.sort { display:flex; align-items:center; gap:8px; font-size:0.95rem; }
.sort select { padding:6px 10px; border:1px solid rgba(2,6,23,0.06); border-radius:6px; background:var(--card); color:var(--text); }
.view-toggle { display:inline-flex; align-items:center; gap:4px; }
.view-toggle .btn { padding:6px 8px; font-size:1rem; }
.view-toggle .btn.active { background:var(--accent); color:white; }

/* Filter Group */
.filter-group { margin-bottom:14px; }
.filter-label { display:block; font-size:0.9rem; font-weight:600; margin-bottom:8px; }
.filter-group select, .filter-group input[type="checkbox"] { width:100%; padding:8px 10px; border:1px solid rgba(2,6,23,0.06); border-radius:6px; background:var(--card); color:var(--text); }
.filter-group input[type="checkbox"] { width:auto; margin-right:8px; }

/* auction card */
.auction-card { border-radius:12px; overflow:hidden; display:flex; flex-direction:column; gap:0; transition:all 0.3s ease; }
.auction-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,100,210,0.15); }

.auction-card .thumb { height:160px; background:linear-gradient(135deg,#f4f7fb,#eef6ff); display:flex; align-items:center; justify-content:center; color:var(--muted); font-weight:700; font-size:2.5rem; position:relative; overflow:hidden; }
.auction-card .thumb::before { content:''; position:absolute; top:0; left:0; right:0; bottom:0; background:var(--glass); opacity:0; transition:opacity 0.3s ease; }
.auction-card:hover .thumb::before { opacity:1; }

.thumb-content { position:relative; z-index:2; }

.live-pill { position:absolute; top:8px; left:8px; background:linear-gradient(90deg,#ff4d4f,#ff938a); color:white; padding:4px 8px; border-radius:4px; font-weight:700; font-size:0.75rem; z-index:3; }
.upcoming-pill { position:absolute; top:8px; left:8px; background:linear-gradient(90deg,#faad14,#ffc53d); color:white; padding:4px 8px; border-radius:4px; font-weight:700; font-size:0.75rem; z-index:3; }

.auction-card .body { padding:12px; display:flex; flex-direction:column; gap:8px; flex:1; }
.auction-card .title { font-weight:700; color:var(--text); font-size:1rem; }
.auction-card .meta { display:flex; justify-content:space-between; align-items:center; gap:8px; color:var(--muted); font-size:0.9rem; }

.seller { display:flex; align-items:center; gap:4px; }
.badge { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border-radius:50%; background:#4CAF50; color:white; font-size:10px; font-weight:700; }
.badge.verified { width:16px; height:16px; font-size:11px; }

.viewers { padding:4px 8px; background:var(--glass); border-radius:4px; font-size:0.85rem; }
.viewers[data-status="live"] { background:rgba(255,77,79,0.1); color:#ff4d4f; font-weight:600; }

.price-info { display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.current-price { font-size:1.2rem; font-weight:800; color:var(--accent); }
.reserve-info { font-size:0.85rem; color:#4CAF50; font-weight:600; }

.card-actions { display:flex; gap:8px; margin-top:auto; }
.card-actions .btn { flex:1; padding:8px 10px; font-size:0.9rem; }

.follow-btn { transition:all 0.2s ease; }
.follow-btn.following { background:linear-gradient(90deg,var(--accent),#4b7bd8); color:white; }

/* stream / auction room */
.auction-room-grid { display:grid; grid-template-columns:1fr 360px; gap:14px; margin-top:18px; }
@media (max-width:980px){ .auction-room-grid { grid-template-columns:1fr; } }

.stream-top { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.live-pill-top { background:linear-gradient(90deg,#ff4d4f,#ff938a); color:white; padding:6px 8px; border-radius:999px; font-weight:700; display:flex; align-items:center; gap:4px; font-size:0.85rem; animation:pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.stream-title { font-weight:700; font-size:1.1rem; flex:1; }

/* video */
.video-player .video-placeholder { height:420px; border-radius:10px; background:linear-gradient(135deg,#0f172a10,#e9f2ff); display:flex; align-items:center; justify-content:center; color:var(--muted); font-weight:700; position:relative; overflow:hidden; }

.placeholder-content { display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; }
.emoji-large { font-size:3rem; animation:float 3s ease-in-out infinite; }

.stream-controls { display:flex; gap:8px; margin-top:12px; }
.stream-controls .btn { flex:1; }

/* side panel */
.current-item { margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid rgba(2,6,23,0.06); }
.current-item h4 { margin-bottom:8px; }
.current-item p { font-size:0.95rem; margin-bottom:12px; }

.item-desc { line-height:1.5; }

.price-section { background:var(--glass); padding:12px; border-radius:8px; margin-bottom:12px; }
.price-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.price-row:last-child { margin-bottom:0; }
.label-small { font-size:0.85rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }

.current-price { font-size:1.5rem; font-weight:800; color:var(--accent); }
.time-left { font-weight:700; font-size:1.2rem; }

.reserve-status { display:flex; gap:8px; margin-bottom:12px; }
.reserve-met { background:rgba(76,175,80,0.15); color:#4CAF50; }

.side-panel .current-price { font-size:1.6rem; font-weight:800; color:var(--accent); }
.side-panel .time-left { font-weight:700; }
.bid-history-list { max-height:300px; overflow:auto; margin-top:10px; }
.bid-history-list li { padding:8px; background:var(--glass); border-radius:4px; margin-bottom:6px; font-size:0.9rem; border-left:3px solid var(--accent); padding-left:8px; }

.bid-history-footer { margin-top:8px; text-align:center; padding:8px; background:var(--glass); border-radius:4px; font-size:0.85rem; }

.bid-controls { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.bid-controls .btn { width:100%; }

.payment-notice { display:flex; gap:8px; padding:10px; background:rgba(0,100,210,0.08); border-left:3px solid var(--accent); border-radius:4px; font-size:0.9rem; }
.notice-icon { display:flex; align-items:center; justify-content:center; width:20px; height:20px; flex-shrink:0; background:var(--accent); color:white; border-radius:50%; font-weight:700; font-size:0.85rem; }

.auction-details-panel { margin-top:12px; padding-top:12px; border-top:1px solid rgba(2,6,23,0.06); }
.auction-details-panel h5 { font-size:0.95rem; margin-bottom:10px; text-transform:uppercase; letter-spacing:0.5px; color:var(--muted); }

.details-list { display:flex; flex-direction:column; gap:8px; }
.detail-row { display:flex; justify-content:space-between; padding:8px; background:var(--glass); border-radius:4px; font-size:0.9rem; }
.detail-row .label { color:var(--muted); font-weight:600; }

.seller-info { display:flex; align-items:center; justify-content:space-between; padding:12px; background:var(--glass); border-radius:8px; margin-top:12px; border:1px solid rgba(2,6,23,0.06); }

.seller-header { display:flex; align-items:center; gap:12px; flex:1; }
.seller-avatar { width:40px; height:40px; border-radius:8px; background:linear-gradient(135deg,var(--accent),#4b7bd8); color:white; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.9rem; }

.seller-details { flex:1; }
.seller-name { display:flex; align-items:center; gap:6px; font-weight:600; font-size:1rem; }
.seller-stats { font-size:0.9rem; margin-top:2px; }

.quick-actions { display:flex; flex-direction:column; gap:6px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(2,6,23,0.06); }
.quick-actions .btn { width:100%; font-size:0.9rem; }

.auction-info-section { margin-top:24px; }
.info-tabs { display:flex; gap:12px; margin-bottom:16px; border-bottom:1px solid rgba(2,6,23,0.06); }

.tab-btn { padding:10px 12px; background:transparent; border:none; border-bottom:3px solid transparent; color:var(--muted); cursor:pointer; font-weight:600; font-size:0.95rem; transition:all 0.2s ease; }
.tab-btn.active { color:var(--accent); border-bottom-color:var(--accent); }
.tab-btn:hover { color:var(--text); }

.tab-content { display:block; }
.tab-content.hidden { display:none; }
.tab-content p { margin-bottom:12px; line-height:1.6; }
.tab-content p:last-child { margin-bottom:0; }
.tab-content ul { list-style:disc; padding-left:20px; }
.tab-content li { margin-bottom:8px; line-height:1.6; }

/* small comps */
.avatar { width:60px; height:60px; border-radius:12px; background:linear-gradient(90deg,var(--accent),#4b7bd8); color:white; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.1rem; }

.avatar-mini { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:6px; background:linear-gradient(135deg,var(--accent),#4b7bd8); color:white; font-weight:700; font-size:0.85rem; }

.profile-stats { display:flex; gap:12px; margin-top:14px; }
.stat-box { background:var(--glass); padding:12px; border-radius:8px; text-align:center; min-width:90px; }
.stat-box strong { display:block; font-size:1.4rem; color:var(--accent); margin-bottom:4px; }

.profile-details { display:flex; flex-direction:column; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(2,6,23,0.06); }
.detail-item { display:flex; justify-content:space-between; font-size:0.95rem; }
.detail-item .label { color:var(--muted); font-weight:600; }

.mt { margin-top:12px; }
.mt-small { margin-top:8px; }
.full-width { width:100%; }

.profile-header { flex:1; }
.profile-header h2 { margin-bottom:4px; font-size:1.3rem; }

.verified-badge { display:flex; align-items:center; gap:4px; }
.badge-verified { display:inline-block; width:18px; height:18px; border-radius:50%; background:linear-gradient(135deg,#4CAF50,#45a049); color:white; text-align:center; line-height:18px; font-size:12px; font-weight:700; }

/* Pagination */
.pagination { display:flex; justify-content:center; align-items:center; gap:16px; margin-top:24px; }
.pagination #page-indicator { font-weight:600; }

/* Empty State */
.empty-state { text-align:center; color:var(--muted); padding:20px; background:var(--glass); border-radius:6px; }

/* Info Section */
.info-section { margin-top:28px; }
.info-section h4 { margin-bottom:18px; font-size:1.2rem; }
.info-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
.info-card { padding:20px; background:var(--glass); border-radius:8px; text-align:center; transition:all 0.2s ease; }
.info-card:hover { background:linear-gradient(135deg,rgba(0,100,210,0.1),rgba(0,0,0,0.02)); transform:translateY(-2px); }
.info-number { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--accent); color:white; font-weight:700; font-size:1.2rem; margin-bottom:12px; }
.info-title { font-weight:700; font-size:1.05rem; margin-bottom:8px; }
.info-card p { font-size:0.95rem; line-height:1.5; }

/* Auction Creation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.auction-creation-modal {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  max-width: 600px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(2,6,23,0.06);
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: var(--text);
}

#auction-creation-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-section label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.form-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}

.form-section input,
.form-section textarea,
.form-section select {
  padding: 10px 12px;
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,100,210,0.1);
}

.form-section textarea {
  min-height: 80px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.item-card {
  background: var(--glass);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(2,6,23,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.btn-remove-item {
  background: #ff4d4f;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: opacity 0.2s ease;
}

.btn-remove-item:hover {
  opacity: 0.85;
}

.item-card input,
.item-card textarea {
  padding: 8px 10px;
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-add-item {
  padding: 10px 12px;
  background: rgba(76,175,80,0.1);
  color: #4CAF50;
  border: 2px dashed #4CAF50;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-add-item:hover {
  background: rgba(76,175,80,0.15);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-create {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-create:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-cancel {
  padding: 10px 20px;
  background: var(--glass);
  color: var(--text);
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: rgba(2,6,23,0.04);
}

/* Responsive */
@media (max-width:1200px) {
  .hero { flex-direction:column; text-align:center; }
  .hero-right { max-width:100%; }
  .hero-actions { justify-content:center; }
  .hero-left h1 { font-size:1.8rem; }
}

@media (max-width:980px) {
  .stats-row { grid-template-columns:repeat(3,1fr); }
}

@media (max-width:640px) {
  .video-placeholder { height:280px; }
  .info-tabs { flex-wrap:wrap; gap:6px; }
  .tab-btn { padding:8px 10px; font-size:0.9rem; }
  .live-thumb { font-size:2rem; height:140px; }
  .auction-card .thumb { height:140px; font-size:2rem; }
  .form-row { grid-template-columns:1fr; }
  .modal-overlay { padding:12px; }
  .auction-creation-modal { max-width:100%; }
}