/* ==========================================
   SKILLSWAP - PROFESYONEL CSS DOSYASI
   Aydınlık & Karanlık Mod Desteği
   Modern, Yumuşak ve Detaylı Tasarım
   ========================================== */

/* ==================== CSS VARIABLES (RENK PALETİ) ==================== */
:root {
  /* Aydınlık Mod - Mavi & Beyaz Tonları */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-dark: #1e40af;
  
  --secondary-color: #0ea5e9;
  --secondary-hover: #0284c7;
  --secondary-light: #e0f2fe;
  
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  
  --success-color: #10b981;
  --success-light: #d1fae5;
  --warning-color: #f59e0b;
  --warning-light: #fef3c7;
  --error-color: #ef4444;
  --error-light: #fee2e2;
  --info-color: #06b6d4;
  --info-light: #cffafe;
  
  /* Arka Plan Renkleri */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-hover: #e2e8f0;
  --bg-modal: rgba(255, 255, 255, 0.98);
  --bg-card: #ffffff;
  --bg-gradient-start: #eff6ff;
  --bg-gradient-end: #dbeafe;
  
  /* Metin Renkleri */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  --text-muted: #64748b;
  
  /* Kenarlık Renkleri */
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #3b82f6;
  --border-light: #f1f5f9;
  
  /* Gölge Değerleri */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Gradient Renkleri */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-ocean: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  --gradient-sky: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Geçiş Süreleri */
  --transition-fast: 150ms;
  --transition-normal: 250ms;
  --transition-slow: 350ms;
  --transition-slower: 500ms;
  
  /* Z-Index Değerleri */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Font Ailesi */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  
  /* Font Boyutları */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  /* Ana Renkler - Karanlık Mod */
  --primary-color: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #1e3a8a;
  --primary-dark: #1e40af;
  
  --secondary-color: #06b6d4;
  --secondary-hover: #22d3ee;
  --secondary-light: #164e63;
  
  --accent-color: #3b82f6;
  --accent-hover: #60a5fa;
  
  --success-color: #10b981;
  --success-light: #064e3b;
  --warning-color: #f59e0b;
  --warning-light: #78350f;
  --error-color: #ef4444;
  --error-light: #7f1d1d;
  --info-color: #06b6d4;
  --info-light: #164e63;
  
  /* Arka Plan Renkleri - Karanlık Mod */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-hover: #475569;
  --bg-modal: rgba(15, 23, 42, 0.98);
  --bg-card: #1e293b;
  --bg-gradient-start: #1e293b;
  --bg-gradient-end: #0f172a;
  
  /* Metin Renkleri - Karanlık Mod */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-inverse: #0f172a;
  --text-muted: #64748b;
  
  /* Kenarlık Renkleri - Karanlık Mod */
  --border-color: #334155;
  --border-hover: #475569;
  --border-focus: #3b82f6;
  --border-light: #1e293b;
  
  /* Gölge Değerleri - Karanlık Mod */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  
  /* Gradient Renkleri - Karanlık Mod */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-ocean: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  --gradient-sky: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

/* ==================== GENEL RESET & TEMEL STİLLER ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal) ease,
              color var(--transition-normal) ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-secondary);
  transition: background var(--transition-fast) ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Selection Styling */
::selection {
  background-color: var(--primary-color);
  color: var(--text-inverse);
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--text-inverse);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Link Styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Image Styling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button Reset */
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* Input Reset */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

/* List Reset */
ul,
ol {
  list-style: none;
}

/* Heading Styling */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-family: var(--font-display);
  font-weight: 400;
}

h2 {
  font-size: var(--text-4xl);
  font-family: var(--font-display);
  font-weight: 400;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

/* Paragraph Styling */
p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== CONTAINER & LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-12);
  }
}

/* Page Sections */
.page-section {
  display: none;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow) ease,
              transform var(--transition-slow) ease;
}

.page-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: var(--z-sticky);
  transition: all var(--transition-normal) ease;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .header {
  background-color: rgba(15, 23, 42, 0.95);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-8);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: transform var(--transition-fast) ease;
  user-select: none;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: var(--text-3xl);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast) ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gradient-blue);
  border-radius: var(--radius-full);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* TP Container */
.tp-container {
  position: relative;
}

.tp-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-blue);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  box-shadow: var(--shadow-sm);
}

.tp-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tp-icon {
  font-size: var(--text-lg);
}

.tp-value {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-inverse);
}

.tp-unit {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-inverse);
  opacity: 0.9;
}

.tp-tooltip {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  padding: var(--space-4);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal) ease;
  z-index: var(--z-tooltip);
  pointer-events: none;
}

.tp-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.tp-container:hover .tp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Notification Container */
.notification-container {
  position: relative;
}

.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.notification-bell:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.notification-bell svg {
  transition: transform var(--transition-fast) ease;
}

.notification-bell:hover svg {
  transform: rotate(-15deg);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--error-color);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal) ease;
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.notification-header {
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

#notificationList {
  max-height: 400px;
  overflow-y: auto;
}

.notification-empty {
  padding: var(--space-12) var(--space-6);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.notification-item {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color var(--transition-fast) ease;
}

.notification-item:hover {
  background-color: var(--bg-hover);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background-color: var(--primary-light);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal) ease;
}

.theme-toggle:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  transform: rotate(15deg) scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast) ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--bg-hover);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* User Profile */
.header-profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-profile img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  object-fit: cover;
}

.header-profile img:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  white-space: nowrap;
  text-align: center;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width var(--transition-normal) ease,
              height var(--transition-normal) ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-blue);
  color: var(--text-inverse);
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-inverse);
}

/* White Button */
.btn-white {
  background-color: var(--bg-primary);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-white:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-block {
  width: 100%;
}

.btn-logout {
  color: var(--error-color);
  border-color: var(--error-color);
}

.btn-logout:hover {
  background-color: var(--error-color);
  color: var(--text-inverse);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) 0;
  background: var(--gradient-sky);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.badge-icon {
  font-size: var(--text-base);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 500;
}

.feature-item svg {
  color: var(--success-color);
}

/* Hero Background Shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.1;
  animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-blue);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-ocean);
  bottom: -50px;
  right: -50px;
  animation-delay: 5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--gradient-blue);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float-shape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(50px, -50px) rotate(120deg);
  }
  66% {
    transform: translate(-50px, 50px) rotate(240deg);
  }
}

/* ==================== STATS SECTION ==================== */
.stats-section {
  padding: var(--space-16) 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background-color: var(--bg-secondary);
  transition: all var(--transition-normal) ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
}

.stat-label {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works-section {
  padding: var(--space-24) 0;
  background-color: var(--bg-primary);
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.step-card {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  padding: var(--space-8);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal) ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.step-number {
  position: absolute;
  top: -16px;
  left: var(--space-8);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  color: var(--text-inverse);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.step-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.step-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.step-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.step-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.step-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.step-features li::before {
  content: '✓';
  color: var(--success-color);
  font-weight: 700;
  font-size: var(--text-base);
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  opacity: 0.6;
}

.step-connector svg {
  width: 60px;
  height: 40px;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
  padding: var(--space-24) 0;
  background-color: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  padding: var(--space-8);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: var(--text-3xl);
  filter: grayscale(100%) brightness(10);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.feature-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== USE CASES SECTION ==================== */
.use-cases-section {
  padding: var(--space-24) 0;
  background-color: var(--bg-primary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.use-case-card {
  padding: var(--space-8);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) ease;
  text-align: center;
}

.use-case-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.use-case-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.use-case-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.use-case-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-3);
}

.use-case-author {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  position: relative;
  padding: var(--space-24) 0;
  background: var(--gradient-blue);
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.cta-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.cta-shape {
  position: absolute;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  animation: float-shape 15s ease-in-out infinite;
}

.cta-shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.cta-shape-2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  left: -80px;
  animation-delay: 7s;
}

/* ==================== BLOG PAGE ==================== */
.blog-hero {
  padding: var(--space-20) 0 var(--space-16) 0;
  background: var(--gradient-sky);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.blog-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.blog-hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.8;
}

.blog-content {
  padding: var(--space-16) 0;
  background-color: var(--bg-primary);
}

/* Featured Article */
.featured-article {
  position: relative;
  padding: var(--space-10);
  background-color: var(--bg-card);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-12);
}

.article-featured-badge {
  position: absolute;
  top: -16px;
  left: var(--space-10);
  padding: var(--space-2) var(--space-5);
  background: var(--gradient-blue);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.article-header {
  margin-bottom: var(--space-6);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date,
.article-read-time {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.article-date svg,
.article-read-time svg {
  opacity: 0.7;
}

.article-title {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.article-excerpt {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.9;
}

.article-content h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: var(--space-4);
}

.article-list {
  margin: var(--space-6) 0;
  padding-left: var(--space-6);
}

.article-list li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
  position: relative;
}

.article-list li::before {
  content: '→';
  position: absolute;
  left: calc(-1 * var(--space-6));
  color: var(--primary-color);
  font-weight: 700;
}

.article-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Highlight Box */
.highlight-box {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

.highlight-icon {
  font-size: var(--text-3xl);
  flex-shrink: 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text-primary);
}

/* Tip Box */
.tip-box {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--success-light);
  border-left: 4px solid var(--success-color);
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

.tip-icon {
  font-size: var(--text-3xl);
  flex-shrink: 0;
}

.tip-box p {
  margin: 0;
  color: var(--text-primary);
}

/* More Articles */
.more-articles {
  margin-top: var(--space-16);
}

.more-articles-title {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-8);
  text-align: center;
  color: var(--text-primary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.article-card-mini {
  padding: var(--space-6);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) ease;
  display: flex;
  flex-direction: column;
}

.article-card-mini:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.article-mini-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.article-mini-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--space-3) 0;
  color: var(--text-primary);
}

.article-mini-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: gap var(--transition-fast) ease;
}

.read-more:hover {
  gap: var(--space-3);
}

.read-more svg {
  transition: transform var(--transition-fast) ease;
}

.read-more:hover svg {
  transform: translateX(4px);
}

/* Newsletter Section */
.newsletter-section {
  margin-top: var(--space-16);
  padding: var(--space-12);
  background: var(--gradient-blue);
  border-radius: var(--radius-2xl);
  text-align: center;
  color: var(--text-inverse);
}

.newsletter-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

.newsletter-section h3 {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-3);
  color: var(--text-inverse);
}

.newsletter-section p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: var(--space-4) var(--space-5);
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-inverse);
  font-size: var(--text-base);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast) ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  flex-shrink: 0;
  background-color: var(--text-inverse);
  color: var(--primary-color);
}

.newsletter-form button:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* ==================== APP PAGE (DASHBOARD) ==================== */
.app-container {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6);
  min-height: calc(100vh - 80px);
  background-color: var(--bg-secondary);
}

/* Sidebar */
.app-sidebar {
  width: 320px;
  flex-shrink: 0;
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.btn-new-listing {
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* Sidebar Section */
.sidebar-section {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-section-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-header-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.badge-count {
  padding: var(--space-1) var(--space-2);
  background-color: var(--error-color);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: var(--space-4);
}

.search-box svg {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast) ease;
}

.search-box input:focus {
  background-color: var(--bg-primary);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box input::placeholder {
  color: var(--text-tertiary);
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: left;
  transition: all var(--transition-fast) ease;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.filter-btn svg {
  flex-shrink: 0;
}

/* Sidebar Profile Card */
.sidebar-profile-card {
  padding: var(--space-6);
  background: var(--gradient-sky);
  border-radius: var(--radius-xl);
  text-align: center;
}

.profile-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4) auto;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.profile-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background-color: var(--success-color);
  border: 3px solid var(--bg-primary);
  border-radius: var(--radius-full);
}

.profile-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.profile-title {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.profile-tp-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.profile-tp-display .tp-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-color);
}

.profile-tp-display .tp-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
}

.profile-actions {
  display: flex;
  gap: var(--space-2);
}

.profile-actions button {
  flex: 1;
}

/* Sidebar Chat List */
.sidebar-chat-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
}

.chat-list-empty {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.chat-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background-color: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.chat-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
}

.chat-item.unread {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
}

.chat-avatar {
  position: relative;
  flex-shrink: 0;
}

.chat-avatar img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.chat-unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: var(--error-color);
  border: 2px solid var(--bg-card);
  border-radius: var(--radius-full);
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-preview {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* App Main */
.app-main {
  flex: 1;
  min-width: 0;
}

/* Welcome Banner */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--gradient-blue);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-lg);
  color: var(--text-inverse);
}

.welcome-content h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-inverse);
}

.welcome-content p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.welcome-icon {
  font-size: var(--text-6xl);
  flex-shrink: 0;
  opacity: 0.8;
}

/* Listings Header */
.listings-header {
  margin-bottom: var(--space-8);
}

.listings-title {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.listings-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.listing-card {
  padding: var(--space-6);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.listing-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.listing-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  object-fit: cover;
}

.listing-user-info {
  flex: 1;
  min-width: 0;
}

.listing-user-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-user-category {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.listing-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.listing-tag {
  padding: var(--space-1) var(--space-3);
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.listing-date {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.listing-actions {
  display: flex;
  gap: var(--space-2);
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: var(--space-16) 0 var(--space-8) 0;
  margin-top: var(--space-24);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast) ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  transform: translateY(-3px);
}

.footer-column-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link-list a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast) ease;
}

.footer-link-list a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ==================== MODALS ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal) ease;
  padding: var(--space-6);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-modal);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--space-10);
  transform: scale(0.9);
  transition: transform var(--transition-normal) ease;
}

.modal-overlay.active .auth-modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-2xl);
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.modal-close:hover {
  background-color: var(--error-color);
  color: var(--text-inverse);
  transform: rotate(90deg);
}

.auth-title {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast) ease;
}

.form-input:focus {
  background-color: var(--bg-primary);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.auth-switch {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

.auth-switch a:hover {
  color: var(--primary-hover);
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  max-width: 400px;
  padding: var(--space-4) var(--space-6);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-base);
  color: var(--text-primary);
  transform: translateX(calc(100% + 32px));
  transition: transform var(--transition-normal) ease;
  z-index: var(--z-tooltip);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--success-color);
}

.toast.error {
  border-left: 4px solid var(--error-color);
}

.toast.info {
  border-left: 4px solid var(--info-color);
}

.toast.warning {
  border-left: 4px solid var(--warning-color);
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--bg-secondary);
  border-top-color: var(--primary-color);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== AD CONTAINERS ==================== */
.ad-container {
  margin: var(--space-12) 0;
  padding: var(--space-6);
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-hero {
  min-height: 200px;
}

.ad-sidebar {
  min-height: 300px;
}

.ad-infeed {
  min-height: 150px;
}

.ad-multiplex {
  min-height: 400px;
}

.ad-listings-bottom {
  min-height: 250px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    gap: var(--space-4);
    transform: translateY(-100%);
    transition: transform var(--transition-normal) ease;
    z-index: var(--z-dropdown);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .steps-container {
    flex-direction: column;
  }
  
  .step-connector {
    transform: rotate(90deg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .app-container {
    flex-direction: column;
  }
  
  .app-sidebar {
    width: 100%;
    position: static;
  }
  
  .welcome-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .listings-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .header {
    height: 70px;
  }
  
  .page-section {
    padding-top: 70px;
  }
  
  .auth-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }
  
  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }
  
  .hero-section {
    padding: var(--space-16) 0;
  }
  
  .hero-features {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    min-width: 100%;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease;
}

.animate-fade-in-down {
  animation: fadeInDown var(--transition-slow) ease;
}

.animate-slide-in-left {
  animation: slideInLeft var(--transition-slow) ease;
}

.animate-slide-in-right {
  animation: slideInRight var(--transition-slow) ease;
}

.animate-scale-in {
  animation: scaleIn var(--transition-slow) ease;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

.flex-column {
  flex-direction: column !important;
}

.align-center {
  align-items: center !important;
}

.justify-center {
  justify-content: center !important;
}

.justify-between {
  justify-content: space-between !important;
}

.w-full {
  width: 100% !important;
}

.h-full {
  height: 100% !important;
}

.m-auto {
  margin: auto !important;
}

.mt-auto {
  margin-top: auto !important;
}

.mb-auto {
  margin-bottom: auto !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-auto {
  overflow: auto !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.z-10 {
  z-index: 10 !important;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .header,
  .footer,
  .btn,
  .ad-container,
  .modal-overlay,
  .toast,
  .loading-spinner,
  .app-sidebar,
  .welcome-banner {
    display: none !important;
  }
  
  body {
    background-color: #ffffff;
    color: #000000;
  }
  
  .page-section {
    padding-top: 0;
  }
  
  * {
    box-shadow: none !important;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  * {
    border-width: 2px !important;
  }
  
  .btn {
    border: 2px solid currentColor !important;
  }
}

/* ==================== END OF CSS ==================== */

/* Header içindeki container'ın yüksekliğini %100 yapıyoruz ki ortalama çalışsın */
.header .container {
    height: 100%;
}

/* --- Notification Badge (Güncellenmiş) --- */
.notification-bell {
    position: relative; /* Rozetin doğru konumlanması için şart */
    /* Diğer stiller aynen kalabilir */
}

.notification-badge {
    position: absolute;
    top: -2px;          /* İkonun biraz dışına taşır */
    right: -2px;        /* İkonun biraz dışına taşır */
    min-width: 18px;    /* Minimum genişlik (tek hane için yuvarlak durur) */
    height: 18px;
    padding: 0 4px;     /* Çift haneli sayılar için yan boşluk */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EF4444; /* Canlı Kırmızı */
    color: white;
    font-size: 10px;    /* Sayıyı küçülttük */
    font-weight: 700;
    border-radius: 10px; /* Hap şekli (Pill shape) */
    border: 2px solid #ffffff; /* Beyaz çerçeve ile ikondan ayırır */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
    transform: translate(25%, -25%); /* Tam köşeye oturtmak için ince ayar */
}

/* Karanlık mod için çerçeve rengi */
[data-theme="dark"] .notification-badge {
    border-color: var(--bg-secondary);
}

/* ==================== PROFİL AYARLARI MODAL CSS ==================== */

/* Modalın iç yapısı - Grid Sistemi */
.profile-modal-layout {
    display: grid;
    grid-template-columns: 260px 1fr; /* Sol menü sabit, sağ taraf esnek */
    height: 100%;
    overflow: hidden; /* Dışarı taşmayı engelle */
}

/* Sol Menü (Sidebar) */
.profile-sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

/* Sağ İçerik Alanı */
.profile-content-area {
    padding: 2rem;
    background-color: #ffffff;
    overflow-y: auto; /* Sadece içerik kaydırılsın */
    position: relative;
}

/* Sekme Butonları */
.profile-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.8rem 1rem;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
}

.profile-nav-btn:hover {
    background-color: #e2e8f0;
    color: var(--text-primary);
}

.profile-nav-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Sekme İçerikleri (Gizleme/Gösterme) */
.tab-pane {
    display: none; /* Varsayılan olarak gizli */
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block; /* Sadece aktif olan görünsün */
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .profile-modal-layout {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        grid-template-rows: auto 1fr;
    }
    
    .profile-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        flex-direction: row;
        overflow-x: auto; /* Yatay kaydırma */
        white-space: nowrap;
    }
    
    .profile-nav-btn {
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==================== PROFESSIONAL TOAST NOTIFICATION ==================== */
.toast {
    position: fixed;
    top: 20px;            /* Artık yukarıda */
    right: 20px;          /* Sağ köşede */
    background-color: #ffffff; /* Beyaz kart görünümü */
    color: #1e293b;       /* Koyu gri metin */
    padding: 1rem 1.5rem;
    border-radius: 12px;  /* Yuvarlak köşeler */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* Derin gölge */
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    
    /* Animasyon ve Konumlandırma */
    transform: translateX(150%); /* Ekran dışından başla */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Yaylanma efekti */
    
    /* EN ÖNEMLİ KISIM: Modalların (z-index: 10005) üzerinde olması için */
    z-index: 99999 !important; 
    
    /* Sol tarafa profesyonel bir çizgi */
    border-left: 5px solid var(--primary-color);
}

/* Aktif olduğunda ekrana kay */
.toast.show {
    transform: translateX(0);
}

/* İsteğe bağlı: Karanlık mod desteği */
[data-theme="dark"] .toast {
    background-color: #1e293b;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* ==================== PROFESYONEL BİLDİRİM (TOAST) ==================== */
.toast {
    position: fixed;
    top: 25px !important;       /* Yukarıdan boşluk */
    right: 25px !important;     /* Sağdan boşluk */
    bottom: auto !important;    /* ESKİ KODUN ÇAKIŞMASINI ÖNLER (ÖNEMLİ) */
    left: auto !important;
    
    background-color: #ffffff;  /* Beyaz kart */
    color: #1e293b;             /* Koyu gri yazı */
    min-width: 300px;           /* Standart genişlik */
    max-width: 400px;
    padding: 1.2rem;
    
    border-radius: 12px;        /* Yuvarlak köşeler */
    border-left: 6px solid var(--primary-color); /* Sol renkli çizgi */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);    /* Derin gölge */
    
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* Animasyon */
    transform: translateX(150%); /* Ekran dışında başla */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    z-index: 100000 !important;  /* Her şeyin en üstünde */
}

/* Aktif Sınıfı */
.toast.show {
    transform: translateX(0);    /* Ekrana gel */
}

/* Mobil Uyumluluk */
@media (max-width: 480px) {
    .toast {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important; /* Mobilde ortala */
        min-width: auto;
    }
}

/* --- Modern Bildirim Rozeti --- */
.notification-bell {
    position: relative; /* Rozet için gerekli */
}

.notification-badge {
    position: absolute;
    top: -5px;           /* İkonun biraz yukarısında */
    right: -5px;         /* İkonun biraz sağında */
    
    background-color: #EF4444; /* Canlı kırmızı */
    color: white;
    font-size: 11px;
    font-weight: 800;
    
    min-width: 20px;     /* Yuvarlak durması için */
    height: 20px;
    padding: 0 4px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-radius: 10px; /* Hap şekli */
    border: 2px solid #ffffff; /* Beyaz çerçeve ile ikondan ayır */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ==================== PROFESYONEL BİLDİRİM (KÜÇÜLTÜLMÜŞ) ==================== */
.toast {
    position: fixed;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    
    background-color: #ffffff;
    color: #334155; /* Daha yumuşak gri */
    
    /* BOYUT AYARLARI (KÜÇÜLTÜLDÜ) */
    min-width: 250px;    /* Eskiden 300'dü */
    max-width: 320px;    /* Eskiden 400'dü */
    padding: 0.8rem 1rem; /* Boşluklar azaltıldı */
    font-size: 0.85rem;   /* Yazı boyutu küçültüldü */
    
    border-radius: 8px;   /* Köşeler biraz daha keskin */
    border-left: 4px solid var(--primary-color); /* Çizgi inceltildi */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Gölge hafifletildi */
    
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100000 !important;
}

.toast.show {
    transform: translateX(0);
}

/* Mobilde tam ortala ama küçük kalsın */
@media (max-width: 480px) {
    .toast {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto;
        max-width: none;
    }
}

/* ==================== COOKIE CONSENT CSS ==================== */
.cookie-consent-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 400px;
    max-width: calc(100% - 60px); /* Mobilde taşmasın */
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999; /* Toast'ın (100000) altında, diğer her şeyin üstünde */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid var(--border-color);
    
    /* Animasyon Başlangıç Durumu */
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-consent-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    gap: 1rem;
}

.cookie-icon {
    font-size: 2rem;
}

.cookie-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Mobilde tam genişlik */
@media (max-width: 480px) {
    .cookie-consent-container {
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
    }
}

/* Karanlık Mod Uyumu */
[data-theme="dark"] .cookie-consent-container {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

/* ==================== FOOTER DÜZELTME ==================== */

.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--space-16) 0 var(--space-8) 0;
    margin-top: var(--space-24);
}

/* Ana kapsayıcı: Marka solda, Linkler sağda olsun */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: var(--space-12);
}

/* Sol taraf (Logo ve Sosyal Medya) */
.footer-brand {
    flex: 1; /* Alanın 1 birimini kaplasın */
    max-width: 300px;
}

/* Sağ taraf (Link Sütunları Kapsayıcısı) - YATAY DİZİLİM İÇİN BURASI ÖNEMLİ */
.footer-links {
    display: flex; /* İçindekileri yan yana dizer */
    gap: 4rem;     /* Sütunlar arası boşluk */
    flex: 2;       /* Alanın 2 birimini kaplasın */
    justify-content: flex-end; /* Sağa yasla */
}

/* Tekil Sütunlar */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Footer içindeki logolar, yazılar vb. (Eski kodlardan devam) */
.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.footer-tagline {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-column-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link-list a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-link-list a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* --- MOBİL UYUMLULUK (Responsive) --- */
@media (max-width: 768px) {
    /* Mobilde dikey olsun */
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }

    /* Linkleri mobilde alt alta al veya sıkıştır */
    .footer-links {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap; /* Sığmazsa alta geçsin */
        gap: 2rem;
    }
}

/* ==================== INFO PAGE MODAL (PERDE EFEKTİ) ==================== */
.info-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 20000; /* Her şeyin üstünde */
    
    /* Başlangıçta ekranın altında gizli */
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); /* Yumuşak kayma efekti */
}

/* Aktif olduğunda yukarı kay */
.info-page-overlay.active {
    transform: translateY(0);
    opacity: 1;
}

.info-page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 50px rgba(0,0,0,0.1); /* Ortada kağıt hissi için gölge */
}

/* Header Kısmı */
.info-page-header {
    flex-shrink: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.info-page-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.info-close-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-close-btn:hover {
    background-color: var(--bg-hover);
    color: var(--error-color);
    border-color: var(--error-color);
}

/* İçerik Gövdesi */
.info-page-body {
    flex: 1;
    overflow-y: auto; /* Sadece burası kaydırılsın */
    padding: 3rem 2rem 5rem 2rem;
    scroll-behavior: smooth;
}

.info-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.info-content-text h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem 0;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.info-content-text p {
    margin-bottom: 1.5rem;
}

.info-content-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.info-content-text li {
    margin-bottom: 0.5rem;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .info-page-header {
        padding: 0 1rem;
        height: 60px;
    }
    .info-page-header h2 {
        font-size: 1.4rem;
    }
    .info-page-body {
        padding: 1.5rem 1rem;
    }
}

/* Karanlık Mod */
[data-theme="dark"] .info-page-overlay,
[data-theme="dark"] .info-page-container,
[data-theme="dark"] .info-page-header {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}


/* ==================== MODERN ETHICS MODAL CSS ==================== */

/* Modalın Genel Yapısı */
.ethics-modal {
    max-width: 600px !important;
    padding: 0 !important; /* İç padding'i biz yöneteceğiz */
    overflow: hidden;
    border-radius: 24px !important;
}

/* Header Kısmı */
.ethics-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2.5rem 2rem 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.ethics-icon-bg {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.ethics-header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ethics-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Kurallar Listesi */
.ethics-body {
    padding: 2rem;
    background-color: #ffffff;
    max-height: 40vh; /* Çok uzarsa kaydır */
    overflow-y: auto;
}

.rule-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.rule-item:hover {
    background-color: #fff;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.rule-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.rule-icon.success {
    background-color: var(--success-light);
    color: var(--success-color);
}

.rule-icon.error {
    background-color: var(--error-light);
    color: var(--error-color);
}

.rule-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.rule-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Footer & Checkbox */
.ethics-footer {
    padding: 1.5rem 2rem;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.ethics-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.ethics-checkbox-container input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.ethics-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Mobil Uyumluluk */
@media (max-width: 480px) {
    .ethics-header {
        padding: 1.5rem;
    }
    .ethics-header h2 {
        font-size: 1.5rem;
    }
    .ethics-body {
        padding: 1rem;
    }
    .ethics-footer {
        padding: 1rem;
    }
    .ethics-actions {
        flex-direction: column;
    }
    .ethics-actions button {
        width: 100%;
    }
}

/* Protokol Kağıdı Tasarımı */
.protocol-paper {
    max-width: 650px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 4px; /* Keskin köşeler daha resmi durur */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 0 100px rgba(0,0,0,0.02);
    position: relative;
    border: 1px solid #e0e0e0;
    font-family: 'Outfit', sans-serif;
    background-image: linear-gradient(#f9f9f9 1px, transparent 1px); /* Hafif çizgi efekti */
    background-size: 100% 30px;
}

.protocol-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #334155;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.protocol-logo {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.2rem;
}

.protocol-badge {
    font-size: 0.7rem;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    color: #475569;
    letter-spacing: 1px;
}

.protocol-main-title {
    font-family: 'DM Serif Display', serif;
    text-align: center;
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.protocol-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 30px;
}

.protocol-content-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 30px;
}

.protocol-table {
    width: 100%;
    border-collapse: collapse;
}

.protocol-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
}

.ref-no {
    color: #e11d48;
    font-weight: 700;
    font-family: monospace;
}

.protocol-note {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.protocol-note strong {
    display: block;
    color: #0369a1;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.protocol-note p {
    font-size: 0.8rem;
    color: #0c4a6e;
    line-height: 1.5;
    margin: 0;
}

.protocol-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-paper-sign {
    background: #1e293b;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-paper-sign:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

.btn-paper-cancel {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
}

.protocol-security-info {
    text-align: center;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 20px;
}


.progress-container {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-bar-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-card.active {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.bot-validator {
    margin-top: 10px;
    font-size: 0.75rem;
    font-style: italic;
    color: #64748b;
}

/* --- 1. GÖRSEL LIGHTBOX (Büyütme) --- */
.chat-image-preview {
    max-width: 120px; /* Mesaj içinde küçük görünür */
    max-height: 120px;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s;
    border: 2px solid #e2e8f0;
}
.chat-image-preview:hover {
    transform: scale(1.05);
}

/* Tam Ekran Resim Gösterici */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* --- 2. EMOJI PICKER --- */
.emoji-picker-container {
    position: absolute;
    bottom: 70px; /* Inputun üstünde */
    right: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    display: none; /* Varsayılan gizli */
    z-index: 100;
}
.emoji-btn {
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
    border-radius: 4px;
}
.emoji-btn:hover { background: #f1f5f9; }

/* --- 3. GELİŞMİŞ YAN PANEL (SIDEBAR) --- */
.exchange-panel {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* İlerleme Çubuğu Alanı */
.progress-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}
.progress-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    width: 0%;
    transition: width 0.5s ease;
}
.status-text {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* Escrow Dosya Listesi */
.escrow-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}
.escrow-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0369a1;
}
.escrow-icon { font-size: 1.2rem; }

/* ==================== DARK MODE DÜZELTMELERİ ==================== */

/* Cookie Consent - Dark Mode Fix */
[data-theme="dark"] .cookie-consent-container {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .cookie-text h3,
[data-theme="dark"] .cookie-text p {
    color: #cbd5e1;
}

[data-theme="dark"] .cookie-text a {
    color: #60a5fa;
}

/* Info Page Modal - Dark Mode Fix */
[data-theme="dark"] .info-page-overlay,
[data-theme="dark"] .info-page-container {
    background-color: #0f172a;
}

[data-theme="dark"] .info-page-header {
    background-color: rgba(30, 41, 59, 0.95);
    border-bottom-color: #334155;
}

[data-theme="dark"] .info-page-header h2 {
    color: #f8fafc;
}

[data-theme="dark"] .info-close-btn {
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .info-close-btn:hover {
    background-color: #334155;
    border-color: #ef4444;
}

[data-theme="dark"] .info-content-text {
    color: #cbd5e1;
}

[data-theme="dark"] .info-content-text h3 {
    color: #f8fafc;
    border-left-color: #3b82f6;
}

/* Notification Dropdown - Dark Mode Fix */
[data-theme="dark"] .notification-dropdown {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .notification-dropdown::before {
    background-color: #1e293b;
    border-left-color: #334155;
    border-top-color: #334155;
}

[data-theme="dark"] .notification-header {
    background-color: #0f172a;
    border-bottom-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .notification-item {
    border-bottom-color: #334155;
}

[data-theme="dark"] .notification-item:hover {
    background-color: #334155;
}

[data-theme="dark"] .notification-empty {
    color: #64748b;
}

/* Chat Window - Dark Mode Fix */
[data-theme="dark"] #chatOverlay .auth-modal,
[data-theme="dark"] #chatOverlay > div {
    background-color: #1e293b !important;
}

[data-theme="dark"] #chatMessages {
    background-color: #0f172a;
}

/* Chat input area dark mode */
[data-theme="dark"] #chatOverlay form {
    background-color: #1e293b !important;
}

[data-theme="dark"] #chatInput {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* Profile Settings Modal - Dark Mode Fix */
[data-theme="dark"] .profile-modal-layout {
    background-color: #1e293b;
}

[data-theme="dark"] .profile-sidebar {
    background-color: #0f172a;
    border-right-color: #334155;
}

[data-theme="dark"] .profile-content-area {
    background-color: #1e293b;
}

[data-theme="dark"] .profile-nav-btn {
    color: #cbd5e1;
}

[data-theme="dark"] .profile-nav-btn:hover {
    background-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .profile-nav-btn.active {
    background-color: #3b82f6;
    color: #ffffff;
}

[data-theme="dark"] .tab-pane h3 {
    border-bottom-color: #334155;
    color: #f8fafc;
}

/* Ethics Modal - Dark Mode Fix */
[data-theme="dark"] .ethics-modal {
    background-color: #1e293b !important;
}

[data-theme="dark"] .ethics-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #334155;
}

[data-theme="dark"] .ethics-header h2,
[data-theme="dark"] .ethics-header p {
    color: #f8fafc;
}

[data-theme="dark"] .ethics-body {
    background-color: #0f172a;
}

[data-theme="dark"] .rule-item {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .rule-item:hover {
    background-color: #334155;
}

[data-theme="dark"] .rule-text strong {
    color: #f8fafc;
}

[data-theme="dark"] .rule-text p {
    color: #cbd5e1;
}

[data-theme="dark"] .ethics-footer {
    background-color: #1e293b;
    border-top-color: #334155;
}

[data-theme="dark"] .checkbox-text {
    color: #cbd5e1;
}

/* Listing Detail Modal - Dark Mode Fix */
[data-theme="dark"] #listingDetailOverlay .auth-modal {
    background-color: #1e293b;
}

[data-theme="dark"] #listingDetailOverlay h2,
[data-theme="dark"] #listingDetailOverlay h4 {
    color: #f8fafc;
}

[data-theme="dark"] #listingDetailOverlay p {
    color: #cbd5e1;
}

/* Protocol Paper - Dark Mode Fix */
[data-theme="dark"] .protocol-paper {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .protocol-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .protocol-logo {
    color: #f8fafc;
}

[data-theme="dark"] .protocol-main-title {
    color: #f8fafc;
}

[data-theme="dark"] .protocol-content-box {
    background-color: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .protocol-table td {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

/* ==================== MOBİL OPTİMİZASYON (GELİŞMİŞ) ==================== */

/* Genel Mobil Ayarlar */
@media (max-width: 768px) {
    /* Container padding küçült */
    .container {
        padding: 0 var(--space-4);
    }
    
    /* Modal genişlikleri */
    .auth-modal {
        max-width: 95vw !important;
        padding: var(--space-6) !important;
    }
    
    /* Hero Section mobil düzeni */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    /* Stats grid mobil */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }
    
    .stat-item {
        padding: var(--space-4);
    }
    
    .stat-icon {
        font-size: var(--text-3xl);
    }
    
    .stat-number {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    /* Chat Window Mobil Fix */
    #chatOverlay > div {
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
        flex-direction: column !important;
    }
    
    /* Chat sidebar mobilde gizle */
    #chatOverlay > div > div:last-child {
        display: none;
    }
    
    /* Chat messages tam genişlik */
    #chatOverlay > div > div:first-child {
        flex: 1 !important;
        border-right: none !important;
    }
    
    /* Profile Settings Mobil */
    .profile-modal-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr !important;
    }
    
    .profile-sidebar {
        flex-direction: row !important;
        overflow-x: auto !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: var(--space-3) !important;
    }
    
    .profile-nav-btn {
        white-space: nowrap;
        padding: var(--space-2) var(--space-4);
        font-size: 0.85rem;
    }
    
    .profile-content-area {
        padding: var(--space-4) !important;
    }
    
    /* Listing Detail Mobil */
    #listingDetailOverlay .auth-modal {
        max-height: 95vh;
        overflow-y: auto;
    }
    
    /* Ethics Modal Mobil */
    .ethics-modal {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .ethics-header {
        padding: var(--space-6) var(--space-4);
    }
    
    .ethics-body {
        padding: var(--space-4);
    }
    
    .rule-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Cookie Consent Mobil */
    .cookie-consent-container {
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions button {
        width: 100%;
    }
    
    /* Newsletter Form Mobil */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        min-width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    /* Step Connector Mobil Düzelt */
    .step-connector {
        display: none; /* Mobilde okları gizle, daha temiz görünür */
    }
    
    .steps-container {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .step-card {
        width: 100%;
        max-width: 100%;
    }
}

/* ==================== GÖRSEL İYİLEŞTİRMELER ==================== */

/* Listing Card Hover Fix */
.listing-card {
    overflow: hidden; /* Hover efektini içeride tut */
    position: relative;
}

.listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.listing-card:hover::before {
    left: 100%;
}

/* Ethics Modal Checkbox Görünür Yap */
.ethics-checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Smooth Scrolling Her Yerde */
* {
    scroll-behavior: smooth;
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Modal Enter/Exit Animations */
.modal-overlay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay .auth-modal,
.modal-overlay > div {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading Skeleton (İsteğe bağlı) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

/* ==================== SON DÜZELTMELERİ ==================== */

/* iOS Safe Area Desteği */
@supports (padding: max(0px)) {
    .header,
    .footer,
    .cookie-consent-container {
        padding-left: max(var(--space-6), env(safe-area-inset-left));
        padding-right: max(var(--space-6), env(safe-area-inset-right));
    }
}

/* Landscape Tablet Fix */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: var(--space-12) 0;
    }
    
    .modal-overlay {
        align-items: flex-start;
        padding-top: var(--space-8);
    }
}

/* Print Optimize */
@media print {
    .cookie-consent-container,
    .notification-container,
    .theme-toggle,
    .mobile-menu-toggle,
    .btn {
        display: none !important;
    }
}

/* --- PUANLAMA & YILDIZLAR --- */
.rating-modal-content {
    text-align: center;
    padding: 20px;
}
.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    direction: rtl; /* Sağdan sola seçim mantığı için */
}
.star-rating input {
    display: none;
}
.star-rating label {
    font-size: 2.5rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #F59E0B; /* Altın Sarısı */
}

/* --- PROFİL YORUM KARTLARI --- */
.review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-stars {
    color: #F59E0B;
    font-size: 0.9rem;
}
.review-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}
.review-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 5px;
    text-align: right;
}


/* ==================== DARK MODE & MOBİL DÜZELTMELERİ (SON) ==================== */

/* --- 1. SIDEBAR & MESAJLAR KISMI (Resim 1) --- */

/* Dark mode'da sidebar arka planı */
[data-theme="dark"] .app-sidebar {
    background-color: #0f172a;
    border-color: #334155;
}

/* Dark mode'da başlıklar */
[data-theme="dark"] .sidebar-section-title {
    color: #f8fafc;
}

/* Dark mode'da arama kutusu */
[data-theme="dark"] .search-box input {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .search-box input::placeholder {
    color: #64748b;
}

/* Dark mode'da filtre butonları */
[data-theme="dark"] .filter-btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .filter-btn:hover {
    background-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .filter-btn.active {
    background-color: #1e40af;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Dark mode'da mesaj kartları */
[data-theme="dark"] .chat-item,
[data-theme="dark"] #myActiveChats > div {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .chat-item:hover,
[data-theme="dark"] #myActiveChats > div:hover {
    background-color: #334155 !important;
}

[data-theme="dark"] .chat-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .chat-preview,
[data-theme="dark"] #myActiveChats div[style*="color: #64748b"] {
    color: #94a3b8 !important;
}

/* Dark mode'da "Mesajlar" başlığı */
[data-theme="dark"] .section-header-with-badge h4 {
    color: #f8fafc;
}

/* --- 2. SOHBET PENCERES (Resim 2) --- */

/* Dark mode'da sohbet penceresi genel arka plan */
[data-theme="dark"] #chatOverlay > div,
[data-theme="dark"] #chatOverlay .auth-modal {
    background-color: #1e293b !important;
}

/* Dark mode'da sohbet başlık alanı */
[data-theme="dark"] #chatOverlay > div > div:first-child > div:first-child {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-bottom-color: #334155 !important;
}

/* Dark mode'da kullanıcı adı */
[data-theme="dark"] #chatOverlay div[style*="font-weight: 700"] {
    color: #f8fafc !important;
}

/* Dark mode'da mesaj alanı */
[data-theme="dark"] #chatMessages {
    background-color: #0f172a !important;
    background-image: radial-gradient(#334155 1px, transparent 1px) !important;
}

/* Dark mode'da "Sohbet Başladı" kutusu */
[data-theme="dark"] #chatMessages > div[style*="background:rgba(255,255,255,0.9)"] {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #334155 !important;
}

[data-theme="dark"] #chatMessages h3 {
    color: #f8fafc !important;
}

[data-theme="dark"] #chatMessages p {
    color: #cbd5e1 !important;
}

/* Dark mode'da mesaj input alanı */
[data-theme="dark"] #chatInput {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] #chatInput::placeholder {
    color: #64748b !important;
}

/* Dark mode'da butonlar */
[data-theme="dark"] #chatOverlay button[style*="background: #F1F5F9"],
[data-theme="dark"] #chatOverlay button[type="button"] {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* Dark mode'da yan panel (Takas Paneli) */
[data-theme="dark"] .app-main-sidebar-right,
[data-theme="dark"] #chatOverlay > div > div:last-child {
    background-color: #0f172a !important;
}

[data-theme="dark"] #chatOverlay h3 {
    color: #f8fafc !important;
}

/* Dark mode'da durum kartı */
[data-theme="dark"] #agreementStatus {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] #agreementStatus div {
    color: #cbd5e1 !important;
}

/* Dark mode'da ilerleme kartı */
[data-theme="dark"] .progress-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .progress-header span,
[data-theme="dark"] .status-text {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .progress-track {
    background-color: #334155 !important;
}

/* Dark mode'da escrow listesi */
[data-theme="dark"] #escrowList {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] #escrowList > div {
    color: #94a3b8 !important;
}

/* Dark mode'da emoji picker */
[data-theme="dark"] .emoji-picker-container {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .emoji-btn:hover {
    background-color: #334155 !important;
}

/* --- 3. TAKAS PROTOKOLÜ MODAL (Resim 3) --- */

/* Dark mode'da protokol kağıdı */
[data-theme="dark"] .protocol-paper {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    background-image: linear-gradient(#0f172a 1px, transparent 1px) !important;
}

[data-theme="dark"] .protocol-header {
    border-bottom-color: #3b82f6 !important;
}

[data-theme="dark"] .protocol-logo {
    color: #f8fafc !important;
}

[data-theme="dark"] .protocol-badge {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .protocol-main-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .protocol-subtitle {
    color: #94a3b8 !important;
}

[data-theme="dark"] .protocol-content-box {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .protocol-table td {
    color: #cbd5e1 !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .ref-no {
    color: #f87171 !important;
}

/* Dark mode'da bilgi kutusu */
[data-theme="dark"] .protocol-note {
    background-color: #0c4a6e !important;
    border-left-color: #0ea5e9 !important;
}

[data-theme="dark"] .protocol-note strong {
    color: #7dd3fc !important;
}

[data-theme="dark"] .protocol-note p {
    color: #bae6fd !important;
}

/* Dark mode'da butonlar */
[data-theme="dark"] .btn-paper-sign {
    background-color: #3b82f6 !important;
}

[data-theme="dark"] .btn-paper-sign:hover {
    background-color: #2563eb !important;
}

[data-theme="dark"] .btn-paper-cancel {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .protocol-security-info {
    color: #64748b !important;
}

/* --- 4. MOBİL OPTİMİZASYON (Tüm Ekranlar) --- */

@media (max-width: 768px) {
    /* Sidebar mobilde tam genişlik */
    .app-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 1rem;
    }
    
    /* Mesaj kartları mobilde daha az padding */
    .chat-item,
    #myActiveChats > div {
        padding: 0.6rem !important;
    }
    
    /* Chat penceresi mobilde tam ekran */
    #chatOverlay > div {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }
    
    /* Yan panel mobilde gizle */
    #chatOverlay > div > div:last-child,
    .app-main-sidebar-right {
        display: none !important;
    }
    
    /* Ana mesaj alanı tam genişlik */
    #chatOverlay > div > div:first-child {
        flex: 1 !important;
        border-right: none !important;
    }
    
    /* Protokol modal mobilde */
    .protocol-paper {
        padding: 1.5rem !important;
        max-width: 95vw !important;
    }
    
    .protocol-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .protocol-main-title {
        font-size: 1.5rem !important;
    }
    
    .protocol-table {
        font-size: 0.85rem;
    }
    
    .protocol-actions {
        flex-direction: column;
    }
    
    .protocol-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Çok küçük ekranlarda yazı boyutları */
    .sidebar-section-title {
        font-size: 0.9rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    /* Chat başlığı küçük ekranda */
    #chatOverlay div[style*="font-weight: 700"] {
        font-size: 1rem !important;
    }
    
    /* Emoji picker mobilde genişlik */
    .emoji-picker-container {
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    /* Protokol içerik kutusu */
    .protocol-content-box {
        padding: 1rem;
    }
    
    .protocol-note {
        padding: 1rem;
    }
}

/* --- 5. EK İYİLEŞTİRMELER --- */

/* Mesaj kartı hover efekti */
.chat-item,
#myActiveChats > div {
    transition: all 0.2s ease !important;
}

/* Online durumu daha belirgin */
.chat-avatar div[style*="background: #10b981"] {
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 6px #10b981;
}

/* Sohbet input focus */
#chatInput:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Protokol hover efektleri */
.btn-paper-sign,
.btn-paper-cancel {
    transition: all 0.2s ease;
}

/* Progress bar animasyonu */
.progress-fill {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Escrow item hover */
.escrow-item {
    transition: all 0.2s ease;
}

.escrow-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

[data-theme="dark"] .escrow-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ==================== SON ==================== */