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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2c3e50 0%, #3b4371 50%, #4a5568 100%);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Stats Strip */
.stats-strip {
  background: rgba(20, 25, 35, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(79, 209, 199, 0.2);
  padding: 0.4rem 0;
  font-size: 0.75rem;
  color: #9ca3af;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #4fd1c7 50%, transparent 100%);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-left {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.8;
}

.stats-item span {
  color: #4fd1c7;
  font-weight: 500;
}

.stats-dot {
  width: 4px;
  height: 4px;
  background: #4fd1c7;
  border-radius: 50%;
  opacity: 0.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

nav.container {
  padding: 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(45deg, #4fd1c7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #4fd1c7;
  transform: translateY(-2px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(45deg, #4fd1c7, #06b6d4);
  transition: all 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  box-shadow: 0 4px 15px rgba(45, 138, 127, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.6);
  background: linear-gradient(45deg, #1e5b54, #065f73);
}

.btn-secondary {
  background: transparent;
  color: #4fd1c7;
  border: 2px solid #2d8a7f !important;
}

.btn-secondary:hover {
  background: #2d8a7f;
  color: #e2e8f0;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #4fd1c7;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #4fd1c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #2d8a7f;
}

.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  margin: 2rem 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.search-bar {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 8px 32px rgba(45, 138, 127, 0.5);
}

/* Page Header */
.page-header {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  margin: 2rem 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.mobile-filter-toggle.active {
  border-radius: 20px 20px 0 0;
  margin-bottom: 0;
}

.mobile-filters {
  display: none;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0 0 20px 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.mobile-filters.active {
  display: block;
}

/* Main Content */
main {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 2rem 0;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  color: #e2e8f0;
  word-wrap: break-word;
}

/* Main Layout */
.main-content {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

/* Desktop Sidebar */
.sidebar {
  width: 300px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  height: fit-content;
  position: sticky;
  top: 120px;
}

/* Products Area */
.products-area {
  flex: 1;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Filter Styles */
.filter-section {
  margin-bottom: 2rem;
}

.filter-section h3 {
  color: #4fd1c7;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.search-box {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #4a5568;
  background: rgba(74, 85, 104, 0.3);
  color: #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
}

.search-box:focus {
  outline: none;
  border-color: #4fd1c7;
}

.filter-dropdown {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #4a5568;
  background: rgba(74, 85, 104, 0.3);
  color: #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
}

.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.price-input {
  width: 80px;
  padding: 0.5rem;
  border: 2px solid #4a5568;
  background: rgba(74, 85, 104, 0.3);
  color: #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
}

.clear-filters {
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  color: #f39c12;
  border: 2px solid #f39c12;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
}

.clear-filters:hover {
  background: #f39c12;
  color: white;
}

/* Products Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-info {
  color: #e2e8f0;
  font-size: 1rem;
}

.sort-dropdown {
  padding: 0.6rem 1rem;
  border: 2px solid #4a5568;
  background: rgba(74, 85, 104, 0.5);
  color: #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

/* Game Cards Grid */
.games-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.products-grid {
  margin-bottom: 3rem;
}

.game-card {
  background: rgba(45, 55, 72, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 1.2rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.game-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="50" cy="50" r="15" fill="rgba(255,255,255,0.2)"/></svg>') center/80px 80px no-repeat;
}

.game-platform {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #27ae60;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.game-info {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.game-genre {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.game-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.game-condition {
  font-weight: 600;
  color: #27ae60;
}

.game-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4fd1c7;
}

.request-btn {
  width: 100%;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.request-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.4);
  background: linear-gradient(45deg, #1e5b54, #065f73);
}

/* Product Detail Layout */
.product-detail {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: 2rem 0;
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Product Image Section */
.product-image-section {
  position: relative;
}

.product-image-main {
  width: 100%;
  height: 400px;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.product-thumbnails {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #4a5568, #2d8a7f);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #4fd1c7;
  transform: scale(1.05);
}

.status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #27ae60;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Product Info Section */
.product-info {
  color: #e2e8f0;
}

.product-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-platform {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.product-price {
  font-size: 2rem;
  font-weight: bold;
  color: #4fd1c7;
  margin-bottom: 2rem;
  word-wrap: break-word;
}

.product-description {
  margin-bottom: 2rem;
}

.product-description h3 {
  color: #4fd1c7;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.product-description p {
  line-height: 1.6;
  color: #cbd5e0;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-request {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
}

.btn-request:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.4);
}

.btn-message {
  background: transparent;
  color: #4fd1c7;
  border: 2px solid #4fd1c7 !important;
}

.btn-message:hover {
  background: #4fd1c7;
  color: white;
}

.seller-info {
  background: rgba(74, 85, 104, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.seller-info h3 {
  color: #4fd1c7;
  margin-bottom: 1rem;
}

.seller-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.seller-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.seller-details {
  flex: 1;
  min-width: 0;
}

.seller-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 0.3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.seller-rating {
  color: #f39c12;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.seller-location {
  color: #9ca3af;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Related Products Section */
.related-section {
  margin-top: 4rem;
}

.related-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.related-card {
  background: rgba(45, 55, 72, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.related-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: bold;
}

.related-info {
  padding: 1rem;
}

.related-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-platform {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  display: inline-block;
  margin-bottom: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.related-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.related-condition {
  font-weight: 600;
  color: #27ae60;
  font-size: 0.8rem;
}

.related-price {
  font-size: 1rem;
  font-weight: bold;
  color: #4fd1c7;
}

.related-btn {
  width: 100%;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  border: none;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.related-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(45, 138, 127, 0.4);
}

.related-status {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: #27ae60;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Contact Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.contact-modal {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.modal-title {
  color: #e2e8f0;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-close {
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #4fd1c7;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
}

.modal-form-group label {
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-form-group input,
.modal-form-group textarea {
  padding: 1rem;
  border: 2px solid rgba(79, 209, 199, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
  outline: none;
  border-color: #4fd1c7;
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
}

.modal-form-group input::placeholder,
.modal-form-group textarea::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.modal-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.modal-btn-primary {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.4);
}

.modal-btn-secondary {
  background: transparent;
  color: #9ca3af;
  border: 2px solid #4a5568;
}

.modal-btn-secondary:hover {
  background: #4a5568;
  color: #e2e8f0;
}

.modal-success {
  text-align: center;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
}

.modal-success.show {
  display: block;
}

/* Authentication Pages Containers */
.login-container,
.register-container,
.verify-email-container,
.forgot-password-container,
.reset-password-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.login-card,
.register-card,
.verify-email-card,
.forgot-password-card,
.reset-password-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 500px;
  width: 100%;
}

.login-header,
.register-header,
.verify-email-header,
.forgot-password-header,
.reset-password-header {
  text-align: center;
  margin-bottom: 2rem;
}

.verify-email-icon,
.forgot-password-icon,
.reset-password-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.login-header h1,
.register-header h1,
.verify-email-header h1,
.forgot-password-header h1,
.reset-password-header h1 {
  color: #e2e8f0;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.verify-email-header h1,
.forgot-password-header h1,
.reset-password-header h1 {
  font-size: 2rem;
}

.login-header p,
.register-header p,
.verify-email-header p,
.forgot-password-header p,
.reset-password-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.5;
}

.verify-email-header p,
.forgot-password-header p,
.reset-password-header p {
  font-size: 1rem;
}

/* Form Styles */
.login-form,
.register-form,
.verify-email-form,
.forgot-password-form,
.reset-password-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(79, 209, 199, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4fd1c7;
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.verify-email-form input {
  font-family: monospace;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.verify-email-form input::placeholder {
  letter-spacing: normal;
  text-transform: none;
}

.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #4fd1c7;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #06b6d4;
}

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

.password-match {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.password-match.show {
  display: block;
}

.password-match.match {
  color: #27ae60;
}

.password-match.no-match {
  color: #e74c3c;
}

.password-requirements {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.requirement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
  transition: color 0.3s ease;
}

.requirement.met {
  color: #27ae60;
}

.requirement.unmet {
  color: #e74c3c;
}

.token-help {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e0;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.forgot-password {
  color: #4fd1c7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #06b6d4;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: #cbd5e0;
}

.terms-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0 0;
  flex-shrink: 0;
}

.terms-checkbox label {
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.terms-checkbox a {
  color: #4fd1c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.terms-checkbox a:hover {
  color: #06b6d4;
}

/* Action Buttons */
.login-btn,
.register-btn,
.verify-btn,
.reset-btn {
  width: 100%;
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 138, 127, 0.4);
}

.login-btn:hover,
.register-btn:hover,
.verify-btn:hover,
.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.6);
  background: linear-gradient(45deg, #1e5b54, #065f73);
}

.login-btn:disabled,
.register-btn:disabled,
.verify-btn:disabled,
.reset-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(45, 138, 127, 0.4);
}

.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider span {
  background: rgba(30, 41, 59, 0.95);
  color: #cbd5e0;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.signup-link,
.login-link,
.resend-section,
.back-to-login {
  text-align: center;
  padding: 1.5rem;
  background: rgba(45, 55, 72, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.signup-link p,
.login-link p,
.resend-section p,
.back-to-login p {
  color: #cbd5e0;
  margin-bottom: 1rem;
}

.signup-btn,
.login-btn-link,
.resend-btn {
  background: transparent;
  color: #4fd1c7;
  border: 2px solid #2d8a7f;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.signup-btn:hover,
.login-btn-link:hover,
.resend-btn:hover {
  background: #2d8a7f;
  color: #e2e8f0;
  transform: translateY(-2px);
}

.resend-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-btn-link.success {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  border: none;
  box-shadow: 0 4px 15px rgba(45, 138, 127, 0.4);
}

.login-btn-link.success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.6);
  background: linear-gradient(45deg, #1e5b54, #065f73);
}

/* Success/Error Messages */
.message {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  animation: slideIn 0.5s ease;
}

.success-message {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
}

.error-message {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
}

/* Success State */
.success-state {
  display: none;
  text-align: center;
}

.success-state.show {
  display: block;
}

.success-icon {
  font-size: 4rem;
  color: #27ae60;
  margin-bottom: 1rem;
}

.success-state h2 {
  color: #e2e8f0;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.success-state p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Expired State */
.expired-state {
  display: none;
  text-align: center;
}

.expired-state.show {
  display: block;
}

.expired-icon {
  font-size: 4rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.expired-state h2 {
  color: #e2e8f0;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.expired-state p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.request-new-link {
  background: linear-gradient(45deg, #2d8a7f, #0891b2);
  color: #e2e8f0;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 1rem;
}

.request-new-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 138, 127, 0.6);
  background: linear-gradient(45deg, #1e5b54, #065f73);
}

.resend-link {
  color: #4fd1c7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.resend-link:hover {
  color: #06b6d4;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination button {
  padding: 0.8rem 1rem;
  border: 2px solid #4a5568;
  background: rgba(74, 85, 104, 0.3);
  color: #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  min-width: 40px;
}

.pagination button:hover {
  border-color: #4fd1c7;
  background: rgba(79, 209, 199, 0.2);
}

.pagination button.active {
  background: #4fd1c7;
  border-color: #4fd1c7;
  color: white;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
footer {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  color: #e2e8f0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  max-width: 80%;
}

.footer-section h3 {
  color: #4fd1c7;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #4fd1c7;
}

.footer-section p {
  color: #cbd5e0;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(79, 209, 199, 0.1);
  border-radius: 50%;
  color: #4fd1c7;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #4fd1c7;
  color: white;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .games-grid,
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .stats-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    justify-items: center;
  }

  .stats-dot {
    display: none;
  }

  .stats-container {
    flex-direction: column;
    gap: 0.3rem;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    flex-wrap: wrap;
    position: relative;
    padding: 1.2rem 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1rem;
    margin: 1rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .search-bar {
    max-width: 100%;
  }

  .search-input {
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }

  .hero .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .page-header {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .mobile-filter-toggle {
    display: block;
  }

  .main-content {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
  }

  .sidebar {
    display: none;
  }

  .products-area {
    padding: 1.5rem;
  }

  .products-header {
    flex-direction: column;
    align-items: stretch;
  }

  main {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .section-header {
    gap: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .games-grid,
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }

  .game-card {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .game-info {
    padding: 1.2rem;
  }

  .game-title {
    font-size: 1.2rem;
  }

  .game-details {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .product-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-title {
    font-size: 1.8rem;
  }

  .product-actions {
    flex-direction: column;
  }

  /* Authentication pages responsive */
  .login-container,
  .register-container,
  .verify-email-container,
  .forgot-password-container,
  .reset-password-container {
    padding: 1rem 0;
    min-height: calc(100vh - 150px);
  }

  .login-card,
  .register-card,
  .verify-email-card,
  .forgot-password-card,
  .reset-password-card {
    padding: 2rem;
    margin: 1rem;
  }

  .login-header h1,
  .register-header h1 {
    font-size: 2rem;
  }

  .verify-email-header h1,
  .forgot-password-header h1,
  .reset-password-header h1 {
    font-size: 1.8rem;
  }

  .login-header p,
  .register-header p,
  .verify-email-header p,
  .forgot-password-header p,
  .reset-password-header p {
    font-size: 1rem;
  }

  .verify-email-header p,
  .forgot-password-header p,
  .reset-password-header p {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .login-btn,
  .register-btn,
  .verify-btn,
  .reset-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .remember-forgot {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-section {
    max-width: 100%;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    padding: 0.3rem 0;
    font-size: 0.7rem;
  }

  .stats-left {
    gap: 0.3rem;
  }

  .container {
    padding: 0 10px;
  }

  .hero {
    padding: 2rem 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero div[style*="flex"] {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  main {
    padding: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .games-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .game-card {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .game-image {
    height: 180px;
  }

  .game-info {
    padding: 1rem;
  }

  .game-title {
    font-size: 1.1rem;
  }

  .game-platform {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .game-details {
    margin-bottom: 0.8rem;
  }

  .game-condition,
  .game-price {
    font-size: 0.95rem;
  }

  .request-btn {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .products-area {
    padding: 1rem;
  }

  .mobile-filters {
    padding: 1rem;
  }

  .product-detail {
    padding: 1rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .related-products {
    grid-template-columns: 1fr;
  }

  /* Authentication pages mobile */
  .login-card,
  .register-card,
  .verify-email-card,
  .forgot-password-card,
  .reset-password-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .login-header h1,
  .register-header h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .verify-email-header h1,
  .forgot-password-header h1,
  .reset-password-header h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .verify-email-icon,
  .forgot-password-icon,
  .reset-password-icon {
    font-size: 3rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .login-btn,
  .register-btn,
  .verify-btn,
  .reset-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }

  .signup-btn,
  .login-btn-link,
  .resend-btn,
  .request-new-link {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .success-state h2,
  .expired-state h2 {
    font-size: 1.5rem;
  }

  .success-state p,
  .expired-state p {
    font-size: 0.9rem;
  }

  .footer-content {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
  }
}