:root {
  --primary: #4a90d9;
  --primary-dark: #357abd;
  --secondary: #6c5ce7;
  --accent: #ffd700;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --bg: #f0f4f8;
  --bg-dark: #2d3436;
  --surface: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; }

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

/* Header */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon { font-size: 1.8rem; }

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-links a:hover { background: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(74,144,217,0.4);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(74,144,217,0.5); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #f39c12);
  color: var(--text);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 18px 48px; font-size: 1.25rem; }
.btn-block { width: 100%; }

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hero / Home */
.hero {
  text-align: center;
  padding: 40px 16px 60px;
}

.hero-logo {
  font-size: 4rem;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.progress-bar-container {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: inline-block;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.progress-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.progress-bar {
  background: #dfe6e9;
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  width: 200px;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--success));
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.menu-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  color: var(--text);
}

.menu-card:hover { transform: translateY(-3px); }
.menu-card .icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.menu-card span { font-weight: 700; font-size: 0.85rem; }

/* Content Sections */
.content-section {
  padding: 40px 16px;
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.content-section p, .content-section li {
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 12px;
}

.content-section ul { padding-left: 24px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feature-card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-card .icon { font-size: 2.5rem; margin-bottom: 8px; }

/* Ads */
.ad-container {
  margin: 16px auto;
  max-width: 728px;
  min-height: 50px;
  text-align: center;
}

.ad-placeholder {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.ad-placeholder small { display: block; margin-top: 4px; opacity: 0.6; }
.ad-empty { min-height: 0; }
.ad-empty:empty { display: none; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #b2bec3;
  padding: 32px 16px;
  text-align: center;
  margin-top: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a { color: #b2bec3; }
.footer-links a:hover { color: #fff; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  z-index: 10000;
  transition: transform 0.3s;
  font-weight: 600;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 9999;
}

.cookie-banner p { font-size: 0.9rem; color: var(--text-light); }

/* Page title */
.page-title {
  text-align: center;
  padding: 24px 16px 16px;
  font-size: 1.8rem;
  font-weight: 800;
}

/* Coin display */
.coin-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,215,0,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  color: #f39c12;
}

/* Hamburger menu for mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 1.6rem; }
  .hero-logo { font-size: 3rem; }
}
