/* ============================================================
   SPADE CASH — based on Template 5 (Bitcloud Sweeps)
   Near-black bg, neon green + white lettering, orange/gold accent, Inter font
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --primary-color: #39d353;
  --primary-dark: #2aa840;
  --secondary-color: #8bffa0;
  --accent-color: #f5a623;
  --dark-bg: #0d0d12;
  --darker-bg: #07070a;
  --text-primary: #ffffff;
  --text-secondary: #a8b0c2;
  --border-color: rgba(255, 255, 255, 0.1);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--dark-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

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

/* Grid items default to min-width:auto, which lets a large intrinsic
   image size force the whole row wider than the viewport. Reset it so
   max-width:100% on images actually shrinks them on narrow screens. */
.hero-inner > *,
.about-content > *,
.contact-layout > *,
.login-wrapper > * {
  min-width: 0;
}

/* ─── Header ─────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  padding: 15px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 26px;
  align-items: center;
}

.nav-menu a:not(.btn-header) {
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-menu a:not(.btn-header):hover,
.nav-menu a[aria-current="page"]:not(.btn-header) {
  color: var(--primary-color);
}

.nav-menu a:not(.btn-header)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:not(.btn-header):hover::after,
.nav-menu a[aria-current="page"]:not(.btn-header)::after {
  width: 100%;
}

.btn-header {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--darker-bg);
  box-shadow: 0 4px 15px rgba(57, 211, 83, 0.3);
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57, 211, 83, 0.45);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-hero {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--darker-bg);
  box-shadow: 0 4px 15px rgba(57, 211, 83, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57, 211, 83, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--darker-bg);
  transform: translateY(-2px);
}

.btn-hero {
  padding: 15px 40px;
  font-size: 18px;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ─── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(57, 211, 83, 0.15), transparent 60%);
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(217,169,74,0.08)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-badge {
  background: rgba(57, 211, 83, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--secondary-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 20px;
}

/* ─── Games Section ───────────────────────────────── */
.games-section {
  padding: 80px 0;
  background: var(--darker-bg);
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 18px;
}

.game-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: var(--darker-bg);
  border-color: var(--primary-color);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(57, 211, 83, 0.25);
  border-color: var(--primary-color);
}

.game-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-title {
  padding: 15px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.game-tag {
  display: block;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-color);
  padding-bottom: 14px;
}

.text-center {
  text-align: center;
}

/* ─── About / Content Blocks ──────────────────────── */
.about-section {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: 20px;
  width: 100%;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text > .btn-primary {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-text ul {
  color: var(--text-secondary);
  margin: 10px 0 20px 22px;
  line-height: 1.9;
}

/* ─── Features Section ────────────────────────────── */
.features-section {
  padding: 80px 0;
  background: var(--darker-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary-color);
  background: rgba(57, 211, 83, 0.05);
  transform: translateY(-5px);
}

.feature-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
}

/* ─── CTA Section ─────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(57, 211, 83, 0.12), rgba(245, 166, 35, 0.15));
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ─── Page Header ─────────────────────────────────── */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(57, 211, 83, 0.12), rgba(245, 166, 35, 0.15));
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ─── Content Section ─────────────────────────────── */
.content-section {
  padding: 60px 0;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.content-wrapper h2 {
  font-size: 32px;
  margin: 40px 0 20px;
  color: var(--primary-color);
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper h3 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--secondary-color);
}

.content-wrapper p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.8;
}

.content-wrapper ul,
.content-wrapper ol {
  color: var(--text-secondary);
  margin: 20px 0 20px 30px;
  line-height: 1.8;
}

.content-wrapper li {
  margin-bottom: 10px;
}

.cta-box {
  background: rgba(57, 211, 83, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.cta-box h3 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
}

.cta-box p {
  margin-bottom: 20px;
}

.info-box {
  background: rgba(57, 211, 83, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.feature-list {
  display: grid;
  gap: 30px;
  margin: 30px 0;
}

.feature-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.feature-item h3 {
  color: var(--primary-color);
  margin: 0 0 10px 0;
}

.benefits-list {
  list-style: none;
  margin: 20px 0;
}

.benefits-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 20px;
}

/* ─── Contact Page ────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.contact-methods {
  display: grid;
  gap: 30px;
  margin: 30px 0;
}

.contact-method {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.method-icon {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.contact-method h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.contact-method p {
  margin-bottom: 10px;
}

.method-detail {
  font-size: 14px;
  color: var(--text-secondary);
}

.business-hours {
  background: rgba(57, 211, 83, 0.05);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--primary-color);
  margin-top: 30px;
}

.business-hours h3 {
  margin: 0 0 15px 0;
}

.business-hours p {
  color: var(--text-secondary);
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.contact-form h2 {
  margin-bottom: 20px;
}

/* ─── Forms ───────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.forgot-link {
  color: var(--primary-color);
  font-size: 14px;
}

.forgot-link:hover {
  color: var(--secondary-color);
}

/* ─── Login Page ──────────────────────────────────── */
.login-section {
  padding: 60px 0;
  min-height: calc(100vh - 300px);
}

.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.login-header p {
  color: var(--text-secondary);
}

.login-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  background: var(--dark-bg);
  padding: 0 15px;
  position: relative;
  color: var(--text-secondary);
}

.alternate-login {
  margin-top: 20px;
}

.login-features {
  margin-top: 30px;
  padding: 25px;
  background: rgba(57, 211, 83, 0.05);
  border-radius: 10px;
  border: 1px solid var(--primary-color);
}

.login-features h3 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
}

.login-features ul {
  list-style: none;
  margin: 0;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.login-features svg {
  color: var(--success-color);
  flex-shrink: 0;
}

.login-image {
  text-align: center;
}

.login-image img {
  border-radius: 20px;
  max-width: 100%;
}

.login-promo {
  margin-top: 30px;
  padding: 25px;
  background: rgba(57, 211, 83, 0.1);
  border-radius: 15px;
  border: 1px solid var(--primary-color);
}

.login-promo h3 {
  margin: 0 0 10px 0;
}

.login-promo p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.app-download-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.app-btn:hover {
  background: var(--primary-color);
  color: var(--darker-bg);
}

/* ─── App Pages ───────────────────────────────────── */
.app-header {
  padding: 90px 0;
}

.app-header-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.android-icon,
.ios-icon {
  display: block;
  margin: 0 auto 20px;
  color: var(--primary-color);
}

.ios-header .ios-icon {
  color: var(--secondary-color);
}

.app-info h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.app-info p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.app-feature {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.feature-icon-large {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.app-feature h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.app-feature p {
  color: var(--text-secondary);
}

.screenshots-section {
  padding: 80px 0;
  background: var(--darker-bg);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}

.screenshot-item {
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.screenshot-item:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.installation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--darker-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.step-item p {
  color: var(--text-secondary);
}

.gray-bg {
  background: var(--darker-bg);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.requirement-item {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.requirement-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.requirement-item p {
  color: var(--text-secondary);
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.compatibility-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.compatibility-item svg {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.compatibility-item h4 {
  font-size: 20px;
  margin-bottom: 15px;
}

.compatibility-item p {
  color: var(--text-secondary);
}

/* ─── Footer ──────────────────────────────────────── */
.footer {
  background: var(--darker-bg);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.footer-col p {
  color: var(--text-secondary);
}

.footer-logo {
  margin-bottom: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* ─── Mobile overlay (full-screen, outside header) ── */
.mobile-overlay {
  display: none;
}

/* ─── Hamburger → X animation ─────────────────────── */
.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 968px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--darker-bg);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 40px 20px;
  }

  .mobile-overlay.active {
    transform: translateX(0);
  }

  .mobile-overlay-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
  }

  .mobile-overlay-list li {
    width: 100%;
    text-align: center;
  }

  .mobile-overlay-list a {
    display: block;
    padding: 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-overlay-list a:hover,
  .mobile-overlay-list a[aria-current="page"] {
    color: var(--primary-color);
  }

  .mobile-overlay-cta {
    margin-top: 24px;
  }

  .mobile-overlay-cta a {
    display: block;
    border-bottom: none !important;
    text-align: center;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    box-shadow: 0 4px 15px rgba(57, 211, 83, 0.3);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badges,
  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .about-content,
  .contact-layout,
  .login-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .app-header-content {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  h1, h2, h3 { text-align: center; }

  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .btn-primary,
  .btn-secondary,
  .btn-hero {
    display: block;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-info { text-align: center; }

  .feature-icon,
  .feature-icon-large,
  .method-icon {
    display: flex;
    justify-content: center;
  }

  .android-icon,
  .ios-icon {
    display: block;
    margin: 0 auto 20px;
  }

  .about-image,
  .login-image {
    text-align: center;
  }

  .footer-logo {
    display: block;
    margin: 0 auto 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 0 60px;
  }

  .hero-title {
    font-size: 26px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
