:root {
  --primary: #FF6B00;
  --primary-dark: #e05a00;
  --secondary: #1a1a2e;
  --dark: #0f0f1a;
  --text: #2c2c2c;
  --text-muted: #6c757d;
  --border: #e8e8e8;
  --bg-light: #f8f9fa;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --gold: #FFD700;
  --radius: 10px;
  --shadow: 0 2px 15px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,.15);
  --transition: all .25s ease;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; color: var(--text); background: #f5f5f5; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* =========== NAVBAR =========== */
.navbar-main {
  background: var(--secondary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar-main .navbar-brand {
  color: var(--primary) !important;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  padding: 12px 0;
}
.navbar-main .navbar-brand span { color: #fff; }
.navbar-main .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .9rem;
  padding: 1.2rem .9rem !important;
  transition: var(--transition);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--primary) !important; }
.navbar-main .navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-main .navbar-toggler-icon { filter: invert(1); }
.navbar-top-bar {
  background: var(--dark);
  padding: 6px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.navbar-top-bar a { color: rgba(255,255,255,.6); }
.navbar-top-bar a:hover { color: var(--primary); }

/* =========== HERO =========== */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 60%, #2a1a3e 100%);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.hero-section h1 { color: #fff; font-size: 2.2rem; font-weight: 800; }
.hero-section h1 span { color: var(--primary); }
.hero-section p { color: rgba(255,255,255,.7); }

/* =========== SEARCH BOX =========== */
.search-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.search-box .form-control, .search-box .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  height: 46px;
  font-size: .9rem;
  transition: var(--transition);
}
.search-box .form-control:focus, .search-box .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,.15);
}
.btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 46px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  width: 100%;
}
.btn-search:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

/* =========== LISTING CARD =========== */
.listing-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.listing-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f0f0f0;
}
.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.05); }
.listing-card-img .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  color: #aaa;
  font-size: 3rem;
}
.listing-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.listing-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card-price {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 6px 0;
}
.listing-card-meta {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.listing-card-meta span { display: flex; align-items: center; gap: 3px; }
.listing-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.badge-doping { background: var(--primary); color: #fff; }
.badge-vitrin { background: var(--gold); color: #333; }
.badge-acil { background: var(--danger); color: #fff; }
.badge-verified {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(40,167,69,.9);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.btn-fav {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.btn-fav:hover, .btn-fav.active { color: var(--danger); background: #fff; }

/* =========== CATEGORY CARDS =========== */
.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  display: block;
  color: var(--text);
}
.category-card:hover, .category-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: var(--primary);
}
.category-card i {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  color: var(--primary);
}
.category-card span { font-size: .85rem; font-weight: 600; }

/* =========== SECTION TITLES =========== */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.section-title .badge { font-size: .7rem; background: var(--primary); }

/* =========== BUTTONS =========== */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-dark { background: var(--secondary); border-color: var(--secondary); }
.btn-dark:hover { background: var(--dark); border-color: var(--dark); }

.btn-google {
  background: #fff;
  border: 1.5px solid #ddd;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}
.btn-google:hover { background: #f5f5f5; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.btn-apple {
  background: #000;
  border: 1.5px solid #000;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}
.btn-apple:hover { background: #333; color: #fff; }

/* =========== FORMS =========== */
.form-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}
.input-group-text { background: var(--bg-light); border: 1.5px solid var(--border); border-radius: 8px 0 0 8px; }
.invalid-feedback { font-size: .8rem; }
.form-text { font-size: .78rem; }

/* =========== AUTH PAGES =========== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.auth-logo { font-size: 2rem; font-weight: 900; color: var(--primary); text-align: center; margin-bottom: 8px; }
.auth-logo span { color: #fff; }
.auth-subtitle { text-align: center; color: rgba(255,255,255,.6); margin-bottom: 30px; font-size: .9rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .82rem;
  margin: 16px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========== PROFILE =========== */
.profile-sidebar {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}
.profile-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}
.profile-nav .nav-link {
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.profile-nav .nav-link:hover { background: var(--bg-light); color: var(--primary); }
.profile-nav .nav-link.active { background: rgba(255,107,0,.1); color: var(--primary); font-weight: 600; }
.badge-verified-text {
  background: rgba(40,167,69,.1);
  color: var(--success);
  border: 1px solid rgba(40,167,69,.3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-pending-text {
  background: rgba(255,193,7,.1);
  color: #856404;
  border: 1px solid rgba(255,193,7,.3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
}

/* =========== LISTING DETAIL =========== */
.listing-gallery .main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.listing-gallery .thumb {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.listing-gallery .thumb:hover, .listing-gallery .thumb.active { border-color: var(--primary); }
.listing-specs td { padding: 8px 0; font-size: .9rem; }
.listing-specs td:first-child { color: var(--text-muted); width: 140px; }
.listing-specs td:last-child { font-weight: 600; }
.seller-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* =========== ADMIN =========== */
.admin-sidebar {
  background: var(--secondary);
  min-height: 100vh;
  padding: 20px 0;
  position: fixed;
  width: 250px;
  top: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
}
.admin-sidebar .logo { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .logo a { color: var(--primary); font-size: 1.4rem; font-weight: 900; }
.admin-sidebar .logo span { color: #fff; }
.admin-nav { padding: 16px 10px; }
.admin-nav .nav-link {
  color: rgba(255,255,255,.75);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .88rem;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.admin-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.admin-nav .nav-link.active { background: var(--primary); color: #fff; }
.admin-nav .nav-section { color: rgba(255,255,255,.4); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; padding: 12px 14px 4px; }
.admin-content {
  margin-left: 250px;
  padding: 24px;
  min-height: 100vh;
  background: #f5f5f5;
}
.admin-topbar {
  background: #fff;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.stat-card.green { border-left-color: var(--success); }
.stat-card.blue { border-left-color: var(--info); }
.stat-card.red { border-left-color: var(--danger); }
.stat-card.gold { border-left-color: var(--gold); }
.stat-card .number { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.stat-card .label { font-size: .82rem; color: var(--text-muted); }
.stat-card .icon { font-size: 2.5rem; opacity: .15; }

/* =========== DOPING =========== */
.doping-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.doping-card.popular {
  border-color: var(--primary);
}
.doping-card .popular-badge {
  position: absolute;
  top: 14px;
  right: -22px;
  background: var(--primary);
  color: #fff;
  padding: 4px 30px;
  font-size: .75rem;
  font-weight: 700;
  transform: rotate(45deg);
}
.doping-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.doping-price { font-size: 2rem; font-weight: 900; color: var(--primary); }
.doping-price small { font-size: 1rem; color: var(--text-muted); }

/* =========== MESSAGES =========== */
.chat-container {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 600px;
  display: flex;
  overflow: hidden;
}
.chat-list {
  width: 300px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.chat-list-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.chat-list-item:hover, .chat-list-item.active { background: rgba(255,107,0,.06); }
.chat-area { flex: 1; display: flex; flex-direction: column; }
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.4;
}
.message-bubble.sent {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.message-bubble.received {
  background: #f0f0f0;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-input {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.chat-input textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  resize: none;
  font-size: .9rem;
  max-height: 100px;
}
.chat-input textarea:focus { outline: none; border-color: var(--primary); }

/* =========== FOOTER =========== */
.footer-main {
  background: var(--secondary);
  color: rgba(255,255,255,.8);
  padding: 50px 0 24px;
  margin-top: 60px;
}
.footer-main h5 { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: .95rem; }
.footer-main a { color: rgba(255,255,255,.6); font-size: .88rem; transition: var(--transition); display: block; margin-bottom: 8px; }
.footer-main a:hover { color: var(--primary); padding-left: 4px; }
.footer-logo { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.footer-logo span { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 30px;
  padding-top: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  margin-right: 8px;
  margin-bottom: 0;
  color: rgba(255,255,255,.7) !important;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff !important; padding-left: 0; }

/* =========== MISC =========== */
.page-hero {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  padding: 30px 0;
  margin-bottom: 30px;
}
.page-hero h1 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 0; }
.page-hero p { color: rgba(255,255,255,.6); margin: 6px 0 0; font-size: .9rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.breadcrumb-item a { color: rgba(255,255,255,.6); }
.breadcrumb-item.active { color: var(--primary); }
.alert { border-radius: 10px; border: none; padding: 14px 18px; }
.alert-success { background: rgba(40,167,69,.1); color: #155724; border-left: 4px solid var(--success); }
.alert-danger { background: rgba(220,53,69,.1); color: #721c24; border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(255,193,7,.1); color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: rgba(23,162,184,.1); color: #0c5460; border-left: 4px solid var(--info); }
.card-white { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.badge { font-weight: 600; border-radius: 6px; padding: 4px 8px; font-size: .75rem; }
.spinner-border.text-primary { color: var(--primary) !important; }
.filter-sidebar { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 80px; }
.filter-sidebar h6 { font-weight: 700; font-size: .88rem; margin-bottom: 12px; color: var(--secondary); border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.range-slider input[type=range] { accent-color: var(--primary); }
.toast-container { z-index: 9999; }
.verification-steps .step {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg-light);
}
.verification-steps .step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.verification-steps .step-num.done { background: var(--success); }
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: rgba(255,107,0,.03); }
.upload-area i { font-size: 2.5rem; color: var(--primary); opacity: .6; }
.price-badge { display: inline-block; background: rgba(255,107,0,.1); color: var(--primary); border-radius: 20px; padding: 4px 14px; font-size: .8rem; font-weight: 700; }
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
  .chat-list { display: none; }
  .hero-section h1 { font-size: 1.6rem; }
  .listing-gallery .main-img { height: 250px; }
  .form-card { padding: 20px; }
}
