/* ==========================================================================
   ItemTicaret v2.0 - Premium UI
   ========================================================================== */

:root {
  /* Renk Paleti */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1420;
  --bg-tertiary: #161b2c;
  --bg-card: #121826;
  --bg-card-hover: #1a2138;
  --bg-elevated: #1c2238;

  --border-default: #232a44;
  --border-hover: #3a4564;
  --border-strong: #2d3654;

  --text-primary: #e8eaed;
  --text-secondary: #b0b6c1;
  --text-muted: #707684;
  --text-dim: #4a5167;

  --accent-primary: #ffd60a;
  --accent-primary-glow: rgba(255, 214, 10, 0.25);
  --accent-primary-soft: rgba(255, 214, 10, 0.1);
  --accent-secondary: #6c5ce7;
  --accent-secondary-glow: rgba(108, 92, 231, 0.25);
  --accent-success: #00d68f;
  --accent-success-glow: rgba(0, 214, 143, 0.25);
  --accent-danger: #ff5c4d;
  --accent-warning: #ff9500;
  --accent-info: #00b8d9;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #ffd60a 0%, #ffaa00 100%);
  --gradient-purple: linear-gradient(135deg, #6c5ce7 0%, #4834d4 100%);
  --gradient-cosmic: linear-gradient(135deg, #6c5ce7 0%, #00b8d9 50%, #00d68f 100%);
  --gradient-fire: linear-gradient(135deg, #ff5c4d 0%, #ff9500 100%);
  --gradient-mesh: radial-gradient(at 27% 37%, rgba(108, 92, 231, 0.15) 0px, transparent 50%),
                   radial-gradient(at 97% 21%, rgba(255, 214, 10, 0.1) 0px, transparent 50%),
                   radial-gradient(at 52% 99%, rgba(0, 184, 217, 0.1) 0px, transparent 50%),
                   radial-gradient(at 10% 29%, rgba(255, 92, 77, 0.08) 0px, transparent 50%);

  /* Tipografi */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Boşluklar */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 32px var(--accent-primary-glow);
  --shadow-glow-purple: 0 0 32px var(--accent-secondary-glow);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-primary);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Global mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-primary); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select { font-family: inherit; }

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
  font-size: 12px;
  color: var(--text-muted);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.top-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-bar-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.top-bar-link:hover { color: var(--accent-primary); }

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-success);
  border-radius: 50%;
  position: relative;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(0, 214, 143, 0); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
}

/* ========== HEADER ========== */
.site-header {
  background: rgba(15, 20, 32, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 600px) 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.header-inner > .logo { justify-self: start; }
.header-inner > .search-bar { width: 100%; }
.header-inner > .header-actions { justify-self: end; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.03);
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  filter: drop-shadow(0 0 12px var(--accent-primary-glow));
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text { letter-spacing: -0.02em; }
.logo-text span { color: var(--accent-primary); }

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 18px;
  transition: all var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-primary-soft);
}

.search-bar .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-submit {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  transition: all var(--transition);
}

.search-submit:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
  .search-submit { display: none; }
  .search-bar { padding: 4px 16px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.15) 0%, rgba(255, 170, 0, 0.1) 100%);
  border: 1.5px solid rgba(255, 214, 10, 0.3);
  border-radius: var(--radius-full);
  height: 42px;
  padding: 0 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all var(--transition);
}
.balance-pill svg { flex-shrink: 0; }
.balance-pill span { display: inline-flex; align-items: center; line-height: 1; }

.balance-pill:hover {
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.25) 0%, rgba(255, 170, 0, 0.15) 100%);
  box-shadow: var(--shadow-glow);
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .balance-pill span { display: none; }
}

.header-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.header-icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.header-icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-avatar {
  width: 42px;
  height: 42px;
  background: var(--gradient-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  box-shadow: 0 0 0 0 var(--accent-secondary-glow);
}

.user-avatar:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-primary-soft);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu:hover,
.user-dropdown.open .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 12px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 6px;
}

.user-dropdown-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-primary);
}

.user-dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.user-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition);
}

.user-dropdown-menu a:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

.user-dropdown-menu .user-dropdown-highlight {
  color: var(--accent-primary);
  font-weight: 600;
}

.user-dropdown-menu .user-dropdown-danger:hover {
  background: rgba(255, 92, 77, 0.1);
  color: var(--accent-danger);
}

.user-dropdown-menu hr {
  border: 0;
  border-top: 1px solid var(--border-default);
  margin: 6px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 1023px) {
  .mobile-menu-toggle { display: flex; }
}

/* Category Nav */
.category-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.cat-nav-item:hover {
  background: var(--bg-card);
  color: var(--accent-primary);
  border-color: var(--border-default);
}

.cat-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.cat-nav-icon svg { width: 14px; height: 14px; }

.cat-nav-all {
  margin-left: auto;
  color: var(--accent-primary);
}

@media (max-width: 1023px) {
  .category-nav { display: none; }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-default);
  z-index: 9999;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.open { left: 0; box-shadow: 0 0 80px rgba(0, 0, 0, 0.5); }

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-default);
}

.mobile-drawer-close {
  font-size: 28px;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.mobile-drawer-close:hover { background: var(--bg-tertiary); }

.mobile-drawer-body { padding: 12px; }

.mobile-menu { list-style: none; }

.mobile-menu-link {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.mobile-menu-link:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  margin: 24px auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
}

.hero-slides {
  position: relative;
  height: 460px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-slides { height: 540px; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 60px;
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-slide { padding: 32px 24px; }
}

.hero-slide-1 {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 50%, #2d1b69 100%);
}

.hero-slide-2 {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a3a2e 50%, #014f3d 100%);
}

.hero-slide-3 {
  background: linear-gradient(135deg, #2d1b69 0%, #6c2bd9 50%, #ff5c4d 100%);
}

/* Slide 0: %0 KOMİSYON — koyu / altın gradient */
.hero-slide-0 {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1530 40%, #3d2a05 90%, #5c4006 100%);
}

.hero-badge-gold {
  background: linear-gradient(135deg, rgba(255,214,10,0.18), rgba(255,159,0,0.18)) !important;
  border-color: rgba(255,214,10,0.4) !important;
  color: #ffd60a !important;
}

.hero-title .highlight-zero {
  background: linear-gradient(135deg, #ffd60a 0%, #ff9f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255,214,10,0.4));
  font-weight: 800;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide-bg::before, .hero-slide-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatBlob 8s ease-in-out infinite;
}

.hero-slide-bg::before {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  top: -100px;
  right: -100px;
}

.hero-slide-bg::after {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  bottom: -100px;
  left: 10%;
  animation-delay: -4s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-title .highlight-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 540px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slide-image {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.hero-slide-image-emoji {
  font-size: 280px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  animation: floatUp 4s ease-in-out infinite;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@media (max-width: 1024px) {
  .hero-slide-image { display: none; }
}

/* Slider Controls */
.hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-slider-dot {
  width: 32px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-slider-dot.active {
  background: var(--accent-primary);
  width: 56px;
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition);
}

.hero-slider-arrow:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.hero-slider-arrow.prev { left: 20px; }
.hero-slider-arrow.next { right: 20px; }

@media (max-width: 768px) {
  .hero-slider-arrow { display: none; }
}

/* ========== TRUST BAR ========== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  margin: 32px 0;
  overflow: hidden;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--border-default);
  transition: background .15s;
  position: relative;
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: rgba(255,255,255,.03); }

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; }

.trust-item:nth-child(1) .trust-icon { background: rgba(255,214,10,.12); color: #ffd60a; }
.trust-item:nth-child(2) .trust-icon { background: rgba(99,102,241,.12); color: #818cf8; }
.trust-item:nth-child(3) .trust-icon { background: rgba(34,197,94,.1); color: #4ade80; }
.trust-item:nth-child(4) .trust-icon { background: rgba(251,146,60,.1); color: #fb923c; }

.trust-text { flex: 1; min-width: 0; }
.trust-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; color: var(--text-primary); }
.trust-subtitle { font-size: 12px; color: var(--text-muted); }

@media (max-width: 768px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1),
  .trust-item:nth-child(2) { border-bottom: 1px solid var(--border-default); }
  .trust-item { padding: 16px; }
}
@media (max-width: 480px) {
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; border-bottom: 1px solid var(--border-default) !important; }
  .trust-item:last-child { border-bottom: none !important; }
}

/* ========== SECTION ========== */
.section { padding: 48px 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title .accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 6px;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.section-link:hover { gap: 8px; }

/* ========== CATEGORIES GRID ========== */
.categories-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 16px;
  padding-top: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-grid::-webkit-scrollbar { display: none; }

.category-card {
  position: relative;
  flex: 0 0 210px;
  width: 210px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  background: #111827;
  border: 1px solid rgba(255,255,255,.1);
  display: block;
}
.category-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 2px rgba(245,200,66,.5);
}

.category-card-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
}
.category-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  position: absolute; inset: 0; z-index: 1;
  transition: transform .4s ease;
}
.category-card:hover .category-card-img img { transform: scale(1.1); }

.category-card-img::before {
  content: attr(data-emoji);
  font-size: 100px;
  line-height: 1;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.5));
  transition: transform .3s ease;
  pointer-events: none;
  z-index: 2;
}
.category-card:hover .category-card-img::before {
  transform: translate(-50%, -65%) scale(1.12);
}

/* Marketplace badge (ilan pazarı kategorisi) */
.category-marketplace-badge {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  background: rgba(139, 92, 246, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,.15), transparent);
  z-index: 3;
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.72) 50%, rgba(0,0,0,.96));
  pointer-events: none;
  border-radius: 0 0 20px 20px;
  z-index: 3;
}

.category-card:nth-child(1) .category-card-img { background: linear-gradient(160deg,#0d1b2a,#1a3a5c,#1e6091); }
.category-card:nth-child(2) .category-card-img { background: linear-gradient(160deg,#1a0000,#7b0000,#c0392b); }
.category-card:nth-child(3) .category-card-img { background: linear-gradient(160deg,#1a0f00,#7a4800,#d35400); }
.category-card:nth-child(4) .category-card-img { background: linear-gradient(160deg,#0a0e1a,#2c3e50,#8e44ad); }
.category-card:nth-child(5) .category-card-img { background: linear-gradient(160deg,#001a0a,#065a25,#1a7a3a); }
.category-card:nth-child(6) .category-card-img { background: linear-gradient(160deg,#1a0015,#7b0035,#c0136e); }
.category-card:nth-child(7) .category-card-img { background: linear-gradient(160deg,#080e1f,#1a2980,#26d0ce); }
.category-card:nth-child(8) .category-card-img { background: linear-gradient(160deg,#0f0c00,#4a3800,#c8960c); }

.category-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 14px 18px;
  z-index: 4;
  text-align: center;
}
.category-name {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
  letter-spacing: .2px;
}
.category-count {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.category-count::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
}

@media (max-width: 640px) {
  .category-card { flex: 0 0 155px; width: 155px; height: 215px; }
  .category-card-img::before { font-size: 68px; }
  .category-name { font-size: 13px; }
}

/* Scroll buttons */
.cat-scroll-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.cat-scroll-btn:hover {
  background: var(--accent-primary); border-color: var(--accent-primary);
  color: #0a0e1a; transform: scale(1.08);
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  overflow: hidden;
  transition: all .2s ease;
  color: var(--text-primary);
  position: relative;
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,214,10,.4);
  box-shadow: 0 8px 32px rgba(255,214,10,.1), 0 2px 8px rgba(0,0,0,.4);
  color: var(--text-primary);
}

/* Görsel alanı — gradient fallback ile */
.product-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #0d1225 0%, #141d38 50%, #0d1225 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Her zaman arkada duran fallback tasarım */
.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(251,191,36,.07) 0%, transparent 70%),
    linear-gradient(135deg, #0d1225, #141d38);
  pointer-events: none;
  z-index: 0;
}

/* Emoji ikonu — görsel yokken görünür */
.product-image-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 44px;
  opacity: .2;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  position: relative;
  z-index: 1;
  display: block;
}

/* Boş src veya kırık görseli gizle */
.product-image img[src=""],
.product-image img:not([src]),
.product-image img.broken { display: none; }

.product-card:hover .product-image img { transform: scale(1.06); }

/* Hover karartma overlay */
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
  z-index: 2;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.product-card:hover .product-image::after { opacity: 1; }

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  z-index: 3;
  letter-spacing: .2px;
}

.product-badge.sale {
  background: linear-gradient(135deg,#ff5c4d,#ff3b2f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,92,77,.4);
}

.product-badge.featured {
  background: linear-gradient(135deg,#ffd60a,#ffaa00);
  color: #0a0e1a;
  box-shadow: 0 4px 12px rgba(255,214,10,.3);
}

/* Hızlı satın al butonu — hover'da görsel üstünde çıkar */
.product-quick-buy {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  background: rgba(255,214,10,.92);
  color: #0a0e1a;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.product-card:hover .product-quick-buy {
  opacity: 1;
  transform: translateY(0);
}

.product-info { padding: 12px 14px 14px; }

.product-seller {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-bottom: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-seller-rating { color: #fbbf24; }

.product-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  color: rgba(255,255,255,.92);
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.product-price {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffd60a;
}

.product-original-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.product-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(255,214,10,.1);
  border: 1px solid rgba(255,214,10,.25);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffd60a;
  transition: all .15s;
}

.product-card:hover .product-buy-btn {
  background: #ffd60a;
  color: #0a0e1a;
  border-color: #ffd60a;
}

.product-stats {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--border-default);
}

/* ========== STATS SECTION ========== */
.stats-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: 48px 32px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-gold);
  transition: width var(--transition);
}

.feature-card:hover::after { width: 100%; }

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card:nth-child(1) .feature-icon-wrap { background: var(--accent-primary-soft); color: var(--accent-primary); }
.feature-card:nth-child(2) .feature-icon-wrap { background: var(--accent-secondary-glow); color: #7c6aff; }
.feature-card:nth-child(3) .feature-icon-wrap { background: var(--accent-success-glow); color: #30d158; }
.feature-card:nth-child(4) .feature-icon-wrap { background: rgba(255, 149, 0, 0.15); color: #ff9500; }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== HOW IT WORKS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-primary);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px var(--accent-primary-glow);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--gradient-purple);
  border-radius: var(--radius-2xl);
  padding: 60px 40px;
  text-align: center;
  margin: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 214, 10, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(0, 214, 143, 0.2) 0%, transparent 30%);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  to { transform: rotate(360deg); }
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.testimonial-rating {
  color: var(--accent-primary);
  margin-bottom: 12px;
  font-size: 16px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-default);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 14px;
}

.testimonial-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px var(--accent-primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px var(--accent-primary-glow);
  color: var(--bg-primary);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-success { background: var(--accent-success); color: white; }
.btn-success:hover { background: #00b87a; color: white; }

.btn-danger { background: var(--accent-danger); color: white; }
.btn-danger:hover { background: #e84a3c; color: white; }

.btn-warning { background: var(--accent-warning); color: white; }
.btn-warning:hover { background: #e88800; color: white; }

.btn-info { background: var(--accent-info); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--accent-primary);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: white;
  color: var(--bg-primary);
}

.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-primary-soft);
}

.form-control::placeholder { color: var(--text-muted); }

.form-help {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* ========== ALERTS ========== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border-left: 4px solid;
  font-size: 14px;
  line-height: 1.6;
}

.alert-success {
  background: rgba(0, 214, 143, 0.1);
  border-left-color: var(--accent-success);
  color: #4dffb3;
}

.alert-error {
  background: rgba(255, 92, 77, 0.1);
  border-left-color: var(--accent-danger);
  color: #ff8a7d;
}

.alert-info {
  background: rgba(0, 184, 217, 0.1);
  border-left-color: var(--accent-info);
  color: #66d9ee;
}

.alert-warning {
  background: rgba(255, 149, 0, 0.1);
  border-left-color: var(--accent-warning);
  color: #ffb347;
}

.container-flash {
  max-width: 1280px;
  margin: 12px auto;
  padding: 0 16px;
}

/* ========== AUTH PAGE ========== */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent-primary) 0%, transparent 50%);
  z-index: -1;
  opacity: 0.3;
}

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a { color: var(--accent-primary); font-weight: 600; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb li:last-child span { color: var(--text-primary); font-weight: 500; }

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0;
}

@media (min-width: 1024px) {
  .product-detail { grid-template-columns: 1.4fr 1fr; }
}

.product-detail-image {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
}

.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }

.purchase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.seller-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.seller-meta { flex: 1; min-width: 0; }
.seller-name { font-weight: 700; font-size: 14px; }
.seller-rating { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.seller-rating .star { color: var(--accent-primary); }

.purchase-price {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.purchase-meta {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-default);
}

.purchase-meta-label { color: var(--text-muted); }

.stock-indicator {
  color: var(--accent-success);
  font-weight: 700;
}

.stock-indicator.out { color: var(--accent-danger); }

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-default);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
}

.tab.active {
  color: var(--accent-primary);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
}

/* ========== TABLES ========== */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
}

th {
  background: var(--bg-tertiary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-primary { background: var(--accent-primary-soft); color: var(--accent-primary); }
.badge-success { background: var(--accent-success-glow); color: #4dffb3; }
.badge-danger { background: rgba(255, 92, 77, 0.15); color: #ff8a7d; }
.badge-warning { background: rgba(255, 149, 0, 0.15); color: #ffb347; }
.badge-info { background: rgba(0, 184, 217, 0.15); color: #66d9ee; }
.badge-secondary { background: var(--bg-tertiary); color: var(--text-secondary); }

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 32px 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pagination .active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* ========== DASHBOARD ========== */
.dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
}

@media (min-width: 1024px) {
  .dashboard { grid-template-columns: 240px 1fr; }
}

.dashboard-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px;
  height: fit-content;
}

.sidebar-menu { list-style: none; }

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 2px;
  transition: all var(--transition);
}

.sidebar-menu a:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

.sidebar-menu a.active {
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  font-weight: 600;
}

.dashboard-content { min-width: 0; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .dashboard-stats { grid-template-columns: repeat(4, 1fr); }
}

.dashboard-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
}

.dashboard-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent-primary); }

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payment-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.96);
  border-top: 1px solid var(--border-default);
  z-index: 99;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); }
  .has-bottom-nav { padding-bottom: 70px; }
  .has-bottom-nav main { padding-bottom: 70px; }
}

/* Hem .bottom-nav-item sınıfı, hem doğrudan a etiketleri */
.mobile-bottom-nav > a,
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  min-height: 54px;
}

.mobile-bottom-nav > a.active,
.mobile-bottom-nav > a:hover,
.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--accent-primary);
}

.mobile-bottom-nav > a svg,
.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.mobile-bottom-nav > a span:first-child:not(.bottom-nav-badge),
.bottom-nav-item span:first-child:not(.bottom-nav-badge) {
  font-size: 22px;
}

.bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: var(--accent-danger, #ef4444);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  min-width: 14px;
  text-align: center;
  line-height: 1.4;
}

/* ========== UTILITY ========== */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.text-success { color: var(--accent-success); }
.text-danger { color: var(--accent-danger); }
.text-warning { color: var(--accent-warning); }

.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

/* ========== ANIMATIONS ========== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-tertiary) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-slide-right {
  animation: slideInRight 0.6s ease both;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* JS yüklenmediyse (no-js) reveal'lar görünür kalsın */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Güvenlik: 3 saniye sonra hâlâ visible olmayan reveal'ları zorla göster */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.1);
}

@media (max-width: 768px) {
  .scroll-top { bottom: 90px; }
}

/* ========== SECTIONS - HOMEPAGE EXTRA ========== */
.brand-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 32px 0;
  overflow: hidden;
}

.brand-strip-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.brand-marquee {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.brand-item {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.brand-item:hover { opacity: 1; }

/* ============ IMAGE UPLOADER (Drag-Drop) ============ */
.image-uploader {
  position: relative;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  transition: all var(--transition);
  overflow: hidden;
  cursor: pointer;
  min-height: 220px;
}

.image-uploader:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card);
}

.image-uploader.dragover {
  border-color: var(--accent-primary);
  background: var(--accent-primary-soft);
  transform: scale(1.01);
}

.image-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.image-uploader-empty {
  padding: 48px 24px;
  text-align: center;
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.image-uploader-icon {
  display: inline-flex;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 12px;
  border: 1px solid var(--border-default);
}

.image-uploader.dragover .image-uploader-icon {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: scale(1.1);
}

.image-uploader-text {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.image-uploader-text strong {
  color: var(--accent-primary);
}

.image-uploader-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.image-uploader-preview {
  position: relative;
  padding: 16px;
  z-index: 2;
  pointer-events: none;
}

.image-uploader-preview img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-default);
}

.image-uploader-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--accent-danger);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  pointer-events: auto !important;
  box-shadow: 0 4px 12px rgba(255, 92, 77, 0.4);
  transition: all var(--transition);
  z-index: 3;
}

.image-uploader-remove:hover {
  transform: scale(1.1);
  background: #e84a3c;
}

.image-uploader-info {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============ REVIEW ITEM (urun.php) ============ */
.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color .15s, transform .15s;
}
.review-item:hover { border-color: rgba(255,214,10,.2); transform: translateY(-1px); }
.review-item:last-child { margin-bottom: 0; }

/* Üst satır: thumb + puanlar + yorumcu */
.review-top {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

/* Ürün resmi */
.review-thumb {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  display: block;
  flex-shrink: 0;
}

/* 4 puanlı grid */
.review-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.review-score-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 7px 10px;
}
.review-score-lbl { font-size: 10px; color: rgba(255,255,255,.38); margin-bottom: 2px; }
.review-score-val { font-size: 17px; font-weight: 800; color: #fbbf24; line-height: 1; }
.review-score-val span { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.28); }

/* Yorumcu bilgisi */
.review-author {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 110px;
}
.review-author-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.review-author-name {
  font-size: 13px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 4px;
  text-align: right;
}
.review-time { font-size: 11px; color: rgba(255,255,255,.3); }

/* Onaylı alıcı ikonu */
.review-vcheck {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: #16a34a; color: #fff; font-size: 8px; font-weight: 900;
  flex-shrink: 0;
}

/* Yorum metni */
.review-body { }
.review-avatar { flex-shrink: 0; }
.review-header { display:flex; align-items:center; gap:8px; margin-bottom:4px; flex-wrap:wrap; }
.review-rating { color: #fbbf24; font-size: 14px; margin-bottom: 6px; letter-spacing: 1px; }
.review-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.review-comment { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; margin: 0; }

/* Satıcı yanıtı */
.review-reply {
  margin-top: 10px;
  padding: 11px 14px;
  background: rgba(255,214,10,.04);
  border: 1px solid rgba(255,214,10,.12);
  border-left: 3px solid rgba(255,214,10,.55);
  border-radius: 10px;
  font-size: 13px;
}
.review-reply strong { color: #fbbf24; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 12px; }
.review-reply p { color: rgba(255,255,255,.6); margin: 0; line-height: 1.5; }

@media (max-width: 640px) {
  .review-top { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; }
  .review-thumb { width: 56px; height: 56px; }
  .review-author { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .review-scores { grid-template-columns: 1fr 1fr; }
  .review-score-val { font-size: 15px; }
}

/* X. kez satın aldı rozeti (urun.php ve magaza.php için) */
.badge-repeat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .badge-repeat { font-size: 10px; padding: 2px 8px; }
}
/* ============================================================
   YENİ ÖZELLİKLER CSS - Chat, Boost, Kimlik, Çekiliş + Mobil
   ============================================================ */

/* ---------- ONAYLI SATICI ROZETİ ---------- */
.verified-seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #1d9bf0, #0a7ec9);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}
.verified-seller-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.verified-seller-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #1d9bf0;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 4px;
}
.verified-seller-icon svg { width: 12px; height: 12px; color: #fff; }

/* Kimlik durum rozetleri */
.badge-success { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-warning { background: rgba(255,214,10,0.15); color: #ffd60a; border: 1px solid rgba(255,214,10,0.3); }
.badge-danger { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-muted { background: rgba(155,160,166,0.15); color: var(--text-muted); border: 1px solid rgba(155,160,166,0.3); }
.id-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- BOOST ROZETLERİ (ürün kartı) ---------- */
.product-card-boost {
  position: relative;
}
.product-card-boost::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #ffd60a;
  border-radius: var(--radius-md);
  pointer-events: none;
  box-shadow: 0 0 24px rgba(255,214,10,0.25);
  z-index: 1;
}
.boost-badge {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  z-index: 3;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-featured { background: linear-gradient(135deg,#ffd60a,#ffaa00); color: #0a0e1a; }
.badge-hot { background: linear-gradient(135deg,#ef4444,#f97316); color: #fff; }
.badge-top { background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff; }

/* ---------- BOOST SATIN ALMA KARTLARI ---------- */
.boost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.boost-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}
.boost-card:hover { border-color: var(--accent-primary); transform: translateY(-2px); }
.boost-card-icon { font-size: 32px; margin-bottom: 8px; }
.boost-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.boost-card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.boost-prices { display: flex; gap: 8px; }
.boost-price-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}
.boost-price-btn:hover { background: var(--accent-primary); color: var(--bg-primary); border-color: var(--accent-primary); }
.boost-price-btn small { display: block; font-size: 11px; opacity: 0.7; margin-bottom: 2px; }

/* ---------- CHAT SİSTEMİ ---------- */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: calc(100vh - 200px);
  min-height: 500px;
}
.chat-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-default);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-conv-list { flex: 1; overflow-y: auto; }
.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.chat-conv-item:hover, .chat-conv-item.active { background: var(--bg-tertiary); }
.chat-conv-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.chat-conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-conv-info { flex: 1; min-width: 0; }
.chat-conv-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.chat-conv-last { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.chat-conv-unread {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-window-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-window-back { display: none; }
.chat-window-title { font-weight: 700; }
.chat-window-product {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-tertiary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-left: auto;
  text-decoration: none;
  color: inherit;
}
.chat-window-product img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
}
.chat-message.outgoing {
  align-self: flex-end;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border-bottom-right-radius: 4px;
}
.chat-message.incoming {
  align-self: flex-start;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-message-time {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
}
.chat-message.system {
  align-self: center;
  background: rgba(255,214,10,0.1);
  color: var(--text-muted);
  border: 1px dashed var(--border-default);
  font-size: 12px;
  border-radius: 8px;
  text-align: center;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-default);
  background: var(--bg-secondary);
}
.chat-input-bar textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  min-height: 40px;
  max-height: 120px;
}
.chat-input-bar textarea:focus { outline: none; border-color: var(--accent-primary); }
.chat-input-bar button {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}
.chat-empty svg { width: 64px; height: 64px; opacity: 0.3; margin-bottom: 12px; }

/* Header chat ikonu */
.header-chat-btn { position: relative; }
.header-chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}

/* ---------- ÇEKİLİŞ ---------- */
.giveaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.giveaway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.giveaway-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.giveaway-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #ffd60a22, #ff5c4d22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}
.giveaway-card-image img { width: 100%; height: 100%; object-fit: cover; }
.giveaway-type-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.giveaway-type-free { background: #22c55e; color: #fff; }
.giveaway-type-paid { background: #f59e0b; color: #0a0e1a; }
.giveaway-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.giveaway-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.giveaway-card-prize { font-size: 13px; color: var(--accent-primary); margin-bottom: 8px; }
.giveaway-card-stats { font-size: 12px; color: var(--text-muted); margin-top: auto; display: flex; justify-content: space-between; }
.giveaway-countdown { font-family: 'JetBrains Mono', monospace; font-weight: 700; }

.giveaway-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
}
.giveaway-detail-prize {
  font-size: 22px;
  color: var(--accent-primary);
  font-weight: 800;
  margin-bottom: 12px;
}
.giveaway-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.giveaway-stat-box {
  background: var(--bg-tertiary);
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.giveaway-stat-num { font-size: 22px; font-weight: 800; color: var(--accent-primary); display: block; }
.giveaway-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }

/* ---------- KİMLİK ONAY FORMU ---------- */
.identity-form {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  box-sizing: border-box;
}
.id-upload-zone {
  display: block;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--bg-tertiary);
  width: 100%;
  box-sizing: border-box;
}
.id-upload-zone:hover { border-color: var(--accent-primary); }
.id-upload-zone input[type=file] { display: none; }
.id-upload-zone-icon { font-size: 32px; opacity: 0.5; margin-bottom: 8px; }
.id-upload-zone-text { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.id-upload-preview {
  display: none;
  margin-top: 12px;
  font-size: 12px;
  color: var(--accent-success);
  font-weight: 600;
  word-break: break-all;
}
.id-upload-zone.has-file { border-color: var(--accent-success); background: rgba(34,197,94,0.05); }
.id-upload-zone.has-file .id-upload-preview { display: block; }

/* ============================================================
   MOBİL İYİLEŞTİRMELERİ
   ============================================================ */

@media (max-width: 768px) {
  /* Top bar - mobilde sadece kritik bilgi */
  .top-bar { display: none; }

  /* Header padding daha sıkı - mobilde grid yerine flex */
  .header-inner {
    display: flex;
    padding: 10px 0;
    gap: 10px;
    flex-wrap: wrap;
    grid-template-columns: none;
  }
  .header-inner > .logo,
  .header-inner > .search-bar,
  .header-inner > .header-actions {
    justify-self: auto;
  }

  /* Logo daha kompakt */
  .logo-text { font-size: 16px; }
  .logo-icon svg { width: 32px; height: 32px; }
  .logo-icon { width: 32px; height: 32px; }

  /* Search bar mobilde tam satıra alt satırda */
  .search-bar {
    order: 5;
    width: 100%;
    margin-top: 6px;
    flex-basis: 100%;
    padding: 4px 4px 4px 14px;
  }
  .search-bar input { padding: 10px 12px 10px 30px; font-size: 14px; }
  .search-submit {
    padding: 7px 14px;
    font-size: 13px;
  }
  .search-bar .search-icon { left: 12px; }

  /* Üye ol/giriş daha kompakt */
  .header-actions .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Header actions - kompakt */
  .header-actions {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .balance-pill {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  .balance-pill svg { width: 14px; height: 14px; }
  .header-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
  }
  .header-icon-btn svg { width: 18px; height: 18px; }

  /* Ana nav mobilde de düzgün scroll */
  .main-nav-wrap { overflow: hidden; }

  /* Kategori nav - yatay scroll */
  .category-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .category-nav::-webkit-scrollbar { display: none; }
  .cat-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Bottom nav - 5 değil 4 ikon (chat eklendi yerine kategori kalktı) */
  .mobile-bottom-nav {
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  }
  .bottom-nav-item {
    padding: 6px 4px;
    font-size: 10px;
  }
  .bottom-nav-item svg { width: 22px; height: 22px; }
  .bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: var(--accent-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
  }

  /* Chat layout - mobilde sadece sidebar veya window */
  .chat-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 140px);
  }
  .chat-layout.show-window .chat-sidebar { display: none; }
  .chat-layout.show-window .chat-window { display: flex; }
  .chat-layout:not(.show-window) .chat-window { display: none; }
  .chat-window-back { display: inline-flex; }

  /* Boost card grid */
  .boost-grid { grid-template-columns: 1fr; }

  /* Çekiliş istatistik kutuları */
  .giveaway-stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Mağaza kartları, fiyat kutuları daha kompakt */
  .product-card { font-size: 13px; }
  .product-card .price { font-size: 16px; }

  /* Containerler kenarda daha az boşluk */
  .container { padding-left: 12px; padding-right: 12px; }

  /* Mağaza profil header - mobilde alt alta */
  .store-profile-header {
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left;
  }
}

/* Çok küçük ekranlar için extra düzenleme */
@media (max-width: 380px) {
  .balance-pill span { display: none; }
  .balance-pill::after { content: '₺'; font-weight: 700; }
  .logo-text span { display: none; }
  .header-icon-btn:not(.header-chat-btn):not(.cart-btn) { display: none; }
}

/* Touch hedefleri - mobil erişilebilirlik */
@media (max-width: 768px) {
  button, .btn, a.cat-nav-item, a.mobile-menu-link, .bottom-nav-item {
    min-height: 40px;
  }
  /* Form input'larda zoom kapatma için font-size 16px+ */
  input[type=text], input[type=email], input[type=password], input[type=search],
  input[type=tel], input[type=number], textarea, select {
    font-size: 16px;
  }
}

/* ========== ANA NAV (Header alt menüsü) ========== */
.main-nav-wrap {
  width: 100%;
  border-top: 1px solid var(--border-default);
  background: rgba(15, 20, 32, 0.4);
}

.main-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: var(--text-secondary, #9aa3b7);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.main-nav-item:hover {
  color: var(--accent-primary);
}

.main-nav-item.active {
  color: var(--accent-primary);
}

.main-nav-item.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px 2px 0 0;
}

.main-nav-item svg {
  flex-shrink: 0;
}

.main-nav-badge {
  background: linear-gradient(135deg, #ff6b35, #ff3d00);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 2px;
  box-shadow: 0 0 10px rgba(255, 61, 0, 0.4);
}

/* ========== KATEGORİ PILL BAR ========== */
.pill-bar-wrap {
  background: var(--bg-body, #0a0e1a);
  border-bottom: 1px solid var(--border-default);
  padding: 12px 0;
}

.pill-bar-outer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.pill-bar-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 2px 0;
}

.pill-bar-scroll::-webkit-scrollbar { display: none; }

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: var(--text-secondary, #9aa3b7);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

.pill-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pill-item.pill-active {
  background: var(--accent-primary-soft);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pill-item .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pill-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-secondary, #9aa3b7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}

.pill-arrow:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

@media (max-width: 768px) {
  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding: 0 12px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav-item { padding: 12px 12px; font-size: 13px; }
  .main-nav-item.active::after { left: 12px; right: 12px; }
  .pill-bar-outer { padding: 0 12px; }
  .pill-arrow { display: none; }
  .pill-item { padding: 7px 14px; font-size: 12px; }
}
