/* ====== Design System ====== */
:root {
  /* Primary Colors */
  --primary-sky: #D4F0FF;
  --primary-sky-dark: #A0D8FF;
  --primary-white: #FFFFFF;
  
  --primary-gradient: linear-gradient(135deg, #D4F0FF 0%, #FFFFFF 100%);
  --primary-soft-gradient: linear-gradient(135deg, rgba(212,240,255,0.2) 0%, rgba(255,255,255,0.08) 100%);
  
  /* Secondary Colors */
  --secondary-green: #6EE7B7;
  --secondary-pink: #FCA5A5;
  --secondary-yellow: #FCD34D;
  
  /* Neutral Colors */
  --bg-dark: #0f0f0f;
  --bg-dark-2: #1a1a1a;
  --bg-card: #252525;
  --bg-card-hover: #2f2f2f;
  --text-primary: #FFFFFF;
  --text-secondary: #F0F0F0;
  --text-muted: #B0B0B0;
  
  /* Accents */
  --accent-red: #FCA5A5;
  --border-color: rgba(212,240,255,0.3);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.25), 0 2px 8px -2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 14px 28px -4px rgba(0, 0, 0, 0.3), 0 6px 16px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 28px 40px -6px rgba(0, 0, 0, 0.35), 0 14px 28px -6px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 35px rgba(212,240,255,0.4);
  
  /* Spacing (Softer) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ====== Base Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====== Header Styles ====== */
header {
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,240,255,0.25);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

header.scrolled {
  background: rgba(26,26,26,0.98);
  box-shadow: var(--shadow-lg);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-normal);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-normal);
}

.menu-toggle:hover {
  background: rgba(59, 130, 246, 0.1);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #C0C0C0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: all var(--transition-normal);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-sky);
  transition: width var(--transition-normal);
}

nav a:hover,
nav a.active {
  color: var(--primary-sky);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ====== Hero Section ====== */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(212,240,255,0.12);
  border: 1px solid rgba(212,240,255,0.35);
  border-radius: 9999px;
  color: var(--primary-sky);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-sky) 0%, var(--primary-white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 3rem;
  background: linear-gradient(135deg, var(--primary-sky) 0%, var(--primary-sky-dark) 100%);
  color: #111111;
  border: none;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 0 40px rgba(212,240,255,0.4);
  position: relative;
  z-index: 1;
}

.hero-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(212,240,255,0.6);
}

.hero-cta i {
  font-size: 1.15rem;
}

/* ====== Apps Section ====== */
.apps-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.apps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.apps-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.apps-count {
  font-size: 0.95rem;
  color: #C0C0C0;
  margin-top: 0.25rem;
  font-weight: 500;
}

.filter-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(212,240,255,0.25);
  background: var(--bg-card);
  color: #D0D0D0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.filter-tab:hover {
  border-color: var(--primary-sky);
  background: rgba(212,240,255,0.1);
  color: var(--primary-sky);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--primary-sky) 0%, var(--primary-sky-dark) 100%);
  color: #111111;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(212,240,255,0.4);
}

.apps-grid {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ====== Game Card ====== */
.app-card-new {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.app-card-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,240,255,0.2) 0%, rgba(255,255,255,0.08) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
}

.app-card-new:hover {
  transform: translateX(4px);
  border-color: rgba(212,240,255,0.6);
  box-shadow: var(--shadow-md);
}

.app-card-new:hover::before {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, var(--primary-sky) 0%, var(--primary-sky-dark) 100%);
  color: #111111;
  font-weight: 900;
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 18px rgba(212,240,255,0.7);
}

.app-card-left {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--bg-dark-2);
  overflow: hidden;
  border: 1px solid var(--border-color);
  z-index: 1;
  position: relative;
}

.app-card-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.app-icon-text {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.app-card-info {
  flex: 1;
  cursor: pointer;
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
    gap: 0.5rem;
}

.app-name-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: #FFFFFF;
}

.app-info-row {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.info-icon {
  font-size: 0.95rem;
}

.bonus-text {
  font-size: 0.9rem;
  color: var(--secondary-yellow);
  font-weight: 700;
}

.withdraw-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.app-card-right {
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.download-button {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-sky) 0%, var(--primary-sky-dark) 100%);
  color: #111111;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.download-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212,240,255,0.6);
}

/* ====== Game Detail Page ====== */
.page-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 500;
  transition: color var(--transition-normal);
}

.back-button:hover {
  color: var(--text-primary);
}

.game-hero-section {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.game-icon-wrapper {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-xl);
  background: var(--bg-dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.game-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-info-main {
  flex: 1;
}

.game-category-tag {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  background: rgba(212,240,255,0.12);
  color: var(--primary-sky);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.game-title-main {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.game-meta-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.meta-value {
  font-weight: 700;
}

.meta-value.star {
  color: var(--secondary-yellow);
}

.meta-value.bonus {
  color: var(--secondary-pink);
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-sky) 0%, var(--primary-sky-dark) 100%);
  color: #111111;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(212,240,255,0.4);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(212,240,255,0.6);
}



.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: #111111;
  background: linear-gradient(135deg, var(--primary-sky) 0%, var(--primary-sky-dark) 100%);
  transition: all var(--transition-normal);
  box-shadow: 0 0 15px rgba(212,240,255,0.4);
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(212,240,255,0.6);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.04);
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: rgba(212,240,255,0.5);
  box-shadow: var(--shadow-md);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.content-section {
  background: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 2rem;
}

.content-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.related-games {
  margin-top: 3rem;
}

.related-games h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.related-games .apps-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-games .app-card-new {
  flex-direction: row;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: left;
}

.related-games .app-card-left {
  width: 80px;
  height: 80px;
  margin-bottom: 0;
}

.related-games .app-info-row {
  flex-direction: row;
  gap: 1.5rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.related-games .info-item {
  justify-content: flex-start;
}

.related-games .app-card-right {
  width: auto;
}

.related-games .rank-badge {
  left: 0.75rem;
  right: auto;
  top: 0.75rem;
}

@media (max-width: 1100px) {
  .related-games .apps-grid {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .related-games .apps-grid {
    display: flex;
    flex-direction: column;
  }
  
  .related-games .app-card-new {
    flex-direction: row;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  
  .related-games .app-card-left, .related-games .app-card-left img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
  }
  
  .related-games .app-info-row {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  
  .related-games .rank-badge {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    top: 0.5rem;
    left: 0.5rem;
    border-radius: 6px;
    background: #ff4444;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
}

/* ====== Footer ====== */
footer {
  background: var(--bg-dark-2);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-icon:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links li i {
  margin-right: 0.5rem;
  color: var(--primary-sky);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ====== Other Pages ====== */
.page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

.page-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.page-content p, .page-content ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.page-content ul {
  padding-left: 1.5rem;
}

/* ====== Admin Panel (Keep existing functionality but update styles) ====== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-weight: 800;
  color: var(--text-primary);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.admin-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  text-align: center;
}

.admin-card h3 {
  font-size: 2rem;
}

.admin-card p {
  color: var(--text-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-dark-2);
  font-weight: 700;
  color: var(--text-primary);
}

tbody tr:hover {
  background: var(--bg-dark-2);
}

.action-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-normal);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.action-btn.delete {
  background: var(--accent-red);
}

form {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-dark-2);
  color: var(--text-primary);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary-sky);
}

/* ====== Responsive Design ====== */
@media (max-width: 1400px) {
  /* Keep flex column layout for all sizes */
}

@media (max-width: 1100px) {
  /* Keep flex column layout for all sizes */
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .game-hero-section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1rem;
    display: none;
    border-bottom: 1px solid var(--border-color);
  }
  nav.active {
    display: block;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .apps-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .app-card-new {
    padding: 1rem 1.25rem;
    gap: 1rem;
    position: relative;
    overflow: visible;
  }
  .app-card-left, .app-card-left img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
  }
  .app-icon-text {
    font-size: 1.5rem;
  }
  .app-name-text {
    font-size: 1rem;
    font-weight: 600;
  }
  .app-info-row {
    gap: 0.75rem;
  }
  .bonus-text, .withdraw-text {
    font-size: 0.8rem;
  }
  .download-button {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
  }
  .rank-badge {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    top: 0.5rem;
    left: 0.5rem;
    border-radius: 6px;
    background: #ff4444;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .game-title-main {
    font-size: 2rem;
  }
  .game-icon-wrapper {
    width: 120px;
    height: 120px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  header {
    padding: 0.75rem 1rem;
  }
  .apps-grid {
    gap: 0.75rem;
  }
  .app-card-new {
    padding: 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
    border-radius: 16px;
    position: relative;
    overflow: visible;
  }
  .app-card-left {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .app-card-left img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
  }
  .app-icon-text {
    font-size: 1.5rem;
  }
  .app-card-info {
    flex: 1;
    min-width: 0;
    gap: 0;
  }
  .app-name-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
  }
  .app-info-row {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
  }
  .bonus-text {
    font-size: 0.85rem;
    font-weight: 600;
  }
  .withdraw-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
  }
  .app-card-right {
    flex-shrink: 0;
  }
  .download-button {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
  }
  .rank-badge {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    top: 0.5rem;
    left: 0.5rem;
    border-radius: 6px;
    z-index: 15;
    background: #ff4444;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .filter-tabs {
    width: 100%;
  }
  .filter-tab {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
  }
}
