/* =============================================
   ANGELS TRADE — Global Styles
   ============================================= */

:root {
  --primary: #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark: #5B21B6;
  --accent: #38BDF8;
  --accent-dark: #0284C7;
  --gold: #F59E0B;
  --gold-light: #FDE68A;
  --bg: #F5F3FF;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --text: #111827;
  --text-mid: #374151;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --green: #10B981;
  --red: #EF4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(124,58,237,0.10);
  --shadow-lg: 0 8px 32px rgba(124,58,237,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* =============================================
   NAV USER (shared across all pages)
   ============================================= */
.nav-user-info { display:flex; align-items:center; gap:8px; }
.nav-avatar-btn { display:flex; align-items:center; gap:6px; padding:4px 10px; border-radius:20px; background:#F5F3FF; border:1px solid #DDD6FE; text-decoration:none; }
.nav-avatar { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#7C3AED,#38BDF8); color:#fff; font-size:0.8rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.nav-username { font-size:0.8rem; font-weight:600; color:#7C3AED; }
.btn-sm { padding:6px 12px !important; font-size:0.78rem !important; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(124,58,237,0.30);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.40);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.btn-primary.btn-lg { font-size: 1rem; padding: 14px 28px; border-radius: var(--radius); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary-light);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-ghost.btn-lg { font-size: 1rem; padding: 12px 26px; border-radius: var(--radius); }

/* Botón de idioma EN/ES */
.lang-btn {
  font-size: 0.78rem !important;
  padding: 5px 11px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.5px;
}
.logo-accent { color: var(--primary); }

.nav-server {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
}
.server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.server-select {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--bg);
  color: var(--primary);
  font-weight: 600;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #EDE9FE 0%, #E0F2FE 50%, #F0FDF4 100%);
  padding: 80px 24px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(56,189,248,0.10) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(245,158,11,0.06) 0%, transparent 35%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.10);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(124,58,237,0.20);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* Orbs decoration */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}
.orb-1 { width: 300px; height: 300px; background: var(--primary-light); top: -80px; right: 10%; }
.orb-2 { width: 200px; height: 200px; background: var(--accent); bottom: -40px; left: 5%; }
.orb-3 { width: 150px; height: 150px; background: var(--gold); bottom: 20px; right: 20%; }

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

/* =============================================
   CATEGORIES
   ============================================= */
.categories-section {
  padding: 60px 0 40px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.link-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}
.link-more:hover { text-decoration: underline; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .categories-grid { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: block;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.cat-img-wrap {
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, #EDE9FE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.cat-placeholder {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #EDE9FE, #E0F2FE);
}
.cat-info {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-name { font-weight: 600; font-size: 0.95rem; }
.cat-count { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   LISTINGS
   ============================================= */
.listings-section {
  padding: 20px 0 60px;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .listings-grid { grid-template-columns: 1fr; } }

.listing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: block;
  box-shadow: var(--shadow-sm);
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.listing-img-wrap {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #EDE9FE, #E0F2FE);
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.listing-img-placeholder {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.listing-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  padding: 3px 10px;
}
.listing-body { padding: 14px 16px; }
.listing-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.listing-server {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.listing-type {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}
.listing-type.rl { background: #EFF6FF; color: #1D4ED8; }
.listing-type.gold { background: #FFFBEB; color: #B45309; }
.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: 4px;
}
.listing-price { font-size: 1rem; font-weight: 700; color: var(--primary); }
.listing-user { font-size: 0.75rem; color: var(--text-muted); }

/* =============================================
   CTA
   ============================================= */
.cta-section { padding: 20px 0 60px; }
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-text h2 { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,0.80); font-size: 0.95rem; }
.cta-box .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.cta-box .btn-primary:hover {
  background: var(--bg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.20);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.70);
  padding: 32px 24px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer .logo-text { color: #fff; }
.footer-note { font-size: 0.8rem; max-width: 480px; line-height: 1.6; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.60); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-light); }

/* =============================================
   MARKETPLACE PAGE
   ============================================= */
.page-header {
  background: linear-gradient(135deg, #EDE9FE 0%, #E0F2FE 100%);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.page-header p { color: var(--text-muted); }

.marketplace-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 32px 0 60px;
  align-items: start;
}
@media (max-width: 768px) { .marketplace-layout { grid-template-columns: 1fr; } }

/* Sidebar filters */
.filters-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}
.filter-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 16px;
}
.filter-title:first-child { margin-top: 0; }

.filter-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text-mid);
}
.filter-option:hover { background: var(--bg); }
.filter-option.active {
  background: rgba(124,58,237,0.08);
  color: var(--primary);
  font-weight: 600;
}
.filter-option input[type="radio"], .filter-option input[type="checkbox"] {
  accent-color: var(--primary);
}

.filter-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 16px 0;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1;
  position: relative;
  min-width: 200px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}
.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.search-input:focus { border-color: var(--primary); }

.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

/* =============================================
   LISTING DETAIL PAGE
   ============================================= */
.listing-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  padding: 32px 0 60px;
  align-items: start;
}
@media (max-width: 900px) { .listing-detail-layout { grid-template-columns: 1fr; } }

.listing-detail-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.listing-detail-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: linear-gradient(135deg, #EDE9FE, #E0F2FE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}
.listing-detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.listing-detail-img .img-placeholder { font-size: 5rem; }

.proof-upload-zone {
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  background: rgba(124,58,237,0.03);
  margin: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.proof-upload-zone:hover {
  border-color: var(--primary);
  background: rgba(124,58,237,0.06);
}
.proof-upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.proof-upload-zone p { color: var(--text-muted); font-size: 0.875rem; }
.proof-upload-zone strong { display: block; color: var(--primary); font-size: 1rem; margin-bottom: 4px; }
.proof-label {
  display: inline-block;
  background: rgba(124,58,237,0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.listing-detail-body { padding: 24px; }
.listing-detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.listing-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.tag-cat { background: #EDE9FE; color: var(--primary); }
.tag-server { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.tag-type-rl { background: #EFF6FF; color: #1D4ED8; }
.tag-type-gold { background: #FFFBEB; color: #B45309; }

.listing-detail-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.listing-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.meta-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* Sidebar del listing detail */
.listing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.price-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.price-value { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.price-type { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }
.contact-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

.seller-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.seller-card-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.seller-info { display: flex; align-items: center; gap: 12px; }
.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.seller-name { font-weight: 600; font-size: 0.95rem; }
.seller-joined { font-size: 0.75rem; color: var(--text-muted); }
.seller-stats {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.seller-stat { display: flex; flex-direction: column; gap: 2px; }
.seller-stat-num { font-size: 1rem; font-weight: 700; color: var(--text); }
.seller-stat-label { font-size: 0.72rem; color: var(--text-muted); }

.safety-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 16px;
}
.safety-card-title { font-size: 0.8rem; font-weight: 700; color: #166534; margin-bottom: 8px; }
.safety-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.safety-list li { font-size: 0.8rem; color: #166534; display: flex; gap: 8px; align-items: flex-start; }

/* =============================================
   SELL PAGE / FORM
   ============================================= */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  margin: 32px auto 60px;
}
.form-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.form-card .form-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.10);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.price-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.price-toggle-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.price-toggle-btn.active {
  border-color: var(--primary);
  background: rgba(124,58,237,0.06);
  color: var(--primary);
  font-weight: 600;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
  border-radius: var(--radius);
  margin-top: 8px;
}

/* CHAT */
.chat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
}
.chat-modal {
  width: 360px;
  max-height: 520px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.chat-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.chat-header-name { font-weight: 600; font-size: 0.9rem; }
.chat-header-status { font-size: 0.72rem; opacity: 0.8; }
.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg { max-width: 80%; }
.msg-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.msg.them { align-self: flex-start; }
.msg.them .msg-bubble { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 2px; }
.msg.me { align-self: flex-end; }
.msg.me .msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 2px; }
.msg-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.msg.me .msg-time { text-align: right; }
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send-btn {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chat-send-btn:hover { background: var(--primary-dark); }

/* =============================================
   SHOP PAGE
   ============================================= */
.shop-hero {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E40AF 100%);
  padding: 48px 0;
  color: #fff;
  text-align: center;
}
.shop-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.shop-hero p { opacity: 0.8; font-size: 1rem; max-width: 500px; margin: 0 auto; }
.shop-badge {
  display: inline-block;
  background: rgba(245,158,11,0.20);
  color: var(--gold-light);
  border: 1px solid rgba(245,158,11,0.30);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 60px;
}
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } }

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.shop-card-img {
  height: 150px;
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.shop-card-body { padding: 16px; }
.shop-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.shop-card-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.shop-buy-btn {
  background: linear-gradient(135deg, var(--gold), #D97706);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.shop-buy-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(245,158,11,0.40);
}

/* Misc utility */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }
