:root {
  --bg-dark: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fa;
  --bg-footer: #e4e6eb;
  --accent-green: #00a86b;
  --accent-green-rgb: 0, 168, 107;
  --accent-purple: #6f42c1;
  --text-main: #1c1e21;
  --text-muted: #65676b;
  --border-color: rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(240, 242, 245, 0.85);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 12px rgba(0, 168, 107, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--text-main), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.main-nav a:hover {
  color: var(--accent-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 16px 8px 36px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  width: 200px;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-purple);
  width: 250px;
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.user-icon {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.user-icon:hover {
  color: var(--accent-green);
}

.lang-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-flag {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  opacity: 0.6;
  overflow: hidden;
}

.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-flag:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lang-flag.active {
  opacity: 1;
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(var(--accent-green-rgb), 0.6);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-support {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
}

/* Modal Apoiar */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
  transform: scale(1.2);
}

.modal-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
  text-align: left;
}

.modal-text strong {
  color: var(--text-main);
}

.pix-box {
  background: rgba(0, 168, 107, 0.08);
  border: 2px dashed var(--accent-green);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0;
}

.pix-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-green);
  display: block;
  margin-bottom: 8px;
}

.pix-key-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pix-key {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
  word-break: break-all;
  color: var(--text-main);
}

.btn-copy {
  background: var(--accent-green);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-copy:hover {
  background: #00c77b;
  transform: scale(1.05);
}

.modal-thanks {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-top: 8px;
}

.pix-qr {
  text-align: center;
  margin-bottom: 14px;
}

.pix-qr img {
  border-radius: 12px;
  border: 3px solid var(--accent-green);
  padding: 6px;
  background: #fff;
}

.hero-background {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, rgba(0, 255, 156, 0.05) 50%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 255, 156, 0.1);
  color: var(--accent-green);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(0, 255, 156, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 800px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #fff;
}

.btn-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Filter Bar */
.filter-bar-wrapper {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: var(--transition);
}

.filter-bar-wrapper.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.filter-bar {
  display: flex;
  gap: 20px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-group select {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 30px;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--accent-green);
}

.store-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.store-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

.store-btn:hover {
  border-color: var(--accent-green);
  background: rgba(var(--accent-green-rgb), 0.05);
}

.store-btn.active {
  background: rgba(var(--accent-green-rgb), 0.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.store-btn.active .store-icon {
  background-color: var(--accent-green);
}

.store-icon {
  width: 18px;
  height: 18px;
  background-color: var(--text-main);
  transition: var(--transition);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.sort-group {
  margin-left: auto;
}

/* Main Content & Sections */
.main-content {
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

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

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-all {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.view-all:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Grid System */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Game Card */
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.platform-badge {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.discount-badge {
  background: var(--accent-purple);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.price-section {
  display: flex;
  flex-direction: column;
}

.original-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.current-price.free {
  color: var(--accent-green);
}

.btn-get {
  padding: 8px 16px;
  background: rgba(var(--accent-green-rgb), 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(var(--accent-green-rgb), 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: inline-block;
}

.btn-get:hover {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
  box-shadow: var(--shadow-glow);
}

/* Skeleton Loader */
.skeleton {
  background: var(--bg-card);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  background: var(--bg-footer);
  transition: background-color 0.3s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .filter-bar {
    flex-wrap: wrap;
  }
  
  .sort-group {
    margin-left: 0;
    width: 100%;
  }
  
  .sort-group select {
    width: 100%;
  }
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

.vertical-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.paid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.column-filters {
  display: flex;
  gap: 15px;
  align-items: center;
}

@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* Hide on mobile initially */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .search-bar input {
    width: 140px;
  }
  
  .search-bar input:focus {
    width: 180px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .deals-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .split-layout {
    grid-template-columns: 1fr; /* Empilha em mobile */
  }
}

@media (max-width: 480px) {
  .search-bar {
    display: none; /* Hide search on very small screens for simplicity */
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .filter-group select {
    width: 100%;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
  }
}
