/**
 * Home Page Styles - Mobile Optimized - COMPLETE VERSION
 * All fixes applied for mobile footer and final CTA alignment
 */

/* ============================
   DOWNLOAD MODAL STYLES
   ============================ */
.download-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

.download-modal.active {
  display: block;
  pointer-events: all;
}

.download-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.download-modal.active .download-modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.download-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s;
}

.download-modal.active .download-modal-content {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.download-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.download-modal-close:hover {
  color: #333;
}

.download-modal-content h3 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.download-modal-content p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.download-modal-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.download-modal-btn {
  display: block;
  transition: transform 0.3s;
}

.download-modal-btn:hover {
  transform: translateY(-3px);
}

.download-modal-btn img {
  height: 60px;
  width: auto;
}

/* ============================
   MOBILE MENU STYLES
   ============================ */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.mobile-drawer.active {
  pointer-events: all;
}

.mobile-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.mobile-drawer.active .mobile-drawer-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Changed: drawer width set to 1/3 of screen, no wrapping */
.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  min-width: 200px;
  max-width: 280px;
  height: 100%;
  background: #a51d2a;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}

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

.mobile-drawer-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.drawer-logo {
  display: none;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-nav {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.drawer-link {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.drawer-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

.mobile-auth-section {
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  background: transparent;
  color: white;
  border: 2px solid white;
}

.drawer-btn:hover {
  background: white;
  color: #a51d2a;
}

/* Desktop/Mobile Toggle Classes */
.desktop-only {
  display: flex !important;
}

.mobile-only {
  display: none !important;
}

/* ============================
   NAVBAR ADDITIONS
   ============================ */
.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-buttons,
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================
   BUTTON STYLES
   ============================ */
.hero-btn-primary,
.cta-btn {
  background: #000;
  color: white;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.3s;
  text-decoration: none;
  width: 100%;
  max-width: 300px;
}

.hero-btn-primary:hover,
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  padding: 150px 96px 100px;
  overflow: hidden;
  background: linear-gradient(to top, #5a0f16 0%, #7f1620 35%, #a51d2a 100%);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/bg_pattern.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0) 50%);
  z-index: 1;
  pointer-events: none;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text img.hero-headline {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

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

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

.app-buttons img {
  height: 50px;
  cursor: pointer;
  transition: transform 0.3s;
}

.app-buttons img:hover {
  transform: translateY(-3px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 100%;
  max-width: 350px;
  border-radius: 40px;
  box-shadow: none;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about {
  padding: 100px 96px;
  background: white;
}

.about-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.about-text img.section-headline {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.features-list h4 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.features-list ul {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #666;
  font-size: 1.05rem;
}

.features-list li::before {
  content: '✅';
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  background: white;
  padding: 0 96px 100px;
}

.cta-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 60px 56px;
}

.cta-text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-text h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.cta-text p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 420px;
}

.cta-graphic {
  width: 320px;
  flex-shrink: 0;
}

/* ============================
   DOWNLOAD APP BUTTON (shared)
   ============================ */
.download-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #111;
  color: white;
  padding: 1rem 1.8rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  width: fit-content;
}

.download-app-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ============================
   TOOLKIT SECTION
   ============================ */
.toolkit {
  padding: 100px 2rem;
  background: white;
}

.toolkit-content {
  max-width: 1400px;
  margin: 0 auto;
}

.toolkit-header {
  text-align: left;
  margin-bottom: 4rem;
}

.toolkit-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #333;
}

.toolkit-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0;
  line-height: 1.8;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.toolkit-features {
  border-left: 3px solid #a51d2a;
  padding-left: 2rem;
}

.feature-item {
  margin-bottom: 2.5rem;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.feature-item p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.feature-item a {
  color: #a51d2a;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-item a:hover {
  text-decoration: underline;
}

.toolkit-phones {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.toolkit-phones img {
  width: 280px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ============================
   FREE CODES SECTION
   ============================ */
.section-codes {
  padding: 100px 0;
  background: #f9f9f9;
}

.section-codes .section-header {
  margin-bottom: 16px;
}

.section-codes .section-header h2 {
  color: #a51d2a;
}

.section-codes .btn-secondary {
  color: #a51d2a;
  border-color: #a51d2a;
}
.section-codes .btn-secondary:hover {
  background: #a51d2a;
  color: white;
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
}

.codes-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 16px;
  padding-bottom: 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.codes-grid::-webkit-scrollbar {
  height: 8px;
}

.codes-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.codes-grid::-webkit-scrollbar-thumb {
  background: #a51d2a;
  border-radius: 10px;
}

.code-card-mobile {
  min-width: 320px;
  max-width: 320px;
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
  flex-shrink: 0;
}

.code-card-mobile:hover {
  border-color: #a51d2a;
  box-shadow: 0 4px 12px rgba(165, 29, 42, 0.15);
  transform: translateY(-2px);
}

.code-accuracy {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.code-accuracy.high {
  background: rgba(33, 188, 34, 0.1);
  color: #21BC22;
}

.code-accuracy.medium {
  background: rgba(255, 149, 0, 0.1);
  color: #FF9500;
}

.code-main-content {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

.code-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-platform-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-platform {
  font-size: 0.875rem;
  font-weight: 600;
  color: #7F7F7F;
}

.code-country-flag {
  font-size: 1.25rem;
}

.code-text-value {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  word-break: break-word;
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.code-action-btn {
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #9E9E9E;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-action-btn:hover {
  color: #a51d2a;
  transform: scale(1.1);
}

.code-action-btn:active {
  transform: scale(0.9);
}

.code-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  min-width: 80px;
}

.code-odds {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.code-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-star {
  font-size: 1rem;
}

.rating-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.code-time {
  font-size: 0.625rem;
  color: #9E9E9E;
  white-space: nowrap;
  margin-top: auto;
}

/* Prediction Type Card */
.code-card-mobile.prediction-type {
  gap: 0.75rem;
}

.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prediction-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.prediction-date {
  font-size: 0.625rem;
  color: #9E9E9E;
}

.prediction-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  gap: 0.5rem;
}

.prediction-box-item {
  flex: 1;
  font-size: 0.75rem;
  color: #9E9E9E;
  text-align: center;
}

.prediction-box-item.prediction-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.prediction-teams {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.prediction-teams .team {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.prediction-teams .team:last-child {
  text-align: right;
}

.prediction-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Notification */
.code-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s;
}

.code-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.code-notification.error {
  background: #ef4444;
}

.no-codes-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #E0E0E0;
  min-width: 100%;
}

/* ============================
   TESTIMONIALS SECTION
   ============================ */
.testimonials {
  padding: 100px 96px 100px;
  background: white;
}

.testimonials-card {
  background: #f5f5f5;
  border-radius: 24px;
  padding: 48px 48px 40px;
}

.testimonials-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.testimonials-header h2 {
  font-size: 2.5rem;
  color: #333;
}

.testimonials-header p {
  color: #666;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  background: white;
  padding: 48px 40px 36px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.5s;
}

.testimonial-card.active {
  opacity: 1;
}

.testimonial-card blockquote {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ddd;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  color: #333;
}

.author-title {
  color: #666;
  font-size: 0.95rem;
}

.stars {
  color: #ffd700;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #E0E0E0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 2;
}

.carousel-btn:hover {
  background: #a51d2a;
  color: white;
  border-color: #a51d2a;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #a51d2a;
  width: 32px;
  border-radius: 6px;
}

/* ============================
   SUBSCRIPTION PLANS SECTION
   ============================ */
.section-plans {
  padding: 100px 2rem;
  background: white;
}

.section-plans .section-header {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
}

.section-plans .section-header p {
  max-width: 100%;
  margin: 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.plan-card {
  position: relative;
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
  border-color: #a51d2a;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.plan-featured {
  border-color: #a51d2a;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: #a51d2a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.plan-card h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
}

.period {
  color: #808080;
  font-size: 1rem;
}

.plan-desc {
  margin-bottom: 2rem;
  color: #666;
  font-size: 1.05rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.plan-features li {
  padding: 0.5rem 0;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================
   FAQ / EVERYTHING YOU NEED TO KNOW
   ============================ */
.section-faq {
  padding: 100px 96px;
  background: white;
}

.section-faq .container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-header-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3.5rem;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.faq-header-centered h2 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  color: #333;
}

.faq-header-centered p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

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

.faq-icon {
  width: 60px;
  height: 60px;
  background: #f0f0f0;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: #333;
  font-weight: 600;
}

.faq-item p {
  color: #666;
  line-height: 1.7;
  font-size: 0.97rem;
}

.contact-card {
  background: #f5f5f5;
  border-radius: 24px;
  padding: 52px 40px;
  text-align: center;
}

.contact-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-avatars img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  margin: 0 -10px;
  background: #ccc;
}

.contact-card h2 {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 0.6rem;
}

.contact-card p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.contact-btn {
  display: inline-block;
  background: #a51d2a;
  color: white;
  padding: 0.85rem 2.2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}

.contact-btn:hover {
  background: #8a1824;
  transform: translateY(-2px);
}

/* ============================
   TELEGRAM CTA SECTION
   ============================ */
.telegram-cta {
  padding: 100px 2rem;
  background: linear-gradient(135deg, #0088cc 0%, #005a8c 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.telegram-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.telegram-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.telegram-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.telegram-icon {
  margin: 0 auto 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.telegram-content h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.telegram-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: #0088cc;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.telegram-btn svg {
  width: 24px;
  height: 24px;
}

/* ============================
   CONTACT CTA
   ============================ */
.contact-cta {
  padding: 80px 2rem;
  background: #f5f5f5;
}

.contact-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.contact-avatars img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -15px;
}

.contact-avatars img:first-child {
  margin-left: 0;
}

.contact-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-content p {
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-btn {
  background: #a51d2a;
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
}

.contact-btn:hover {
  background: #8b1a28;
}

/* ============================
   FINAL CTA BANNER
   ============================ */
.final-cta {
  padding: 100px 96px;
  background-image: url('../images/footer_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  margin-top: 0;
}

.final-cta-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
}

.final-cta-text h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.final-cta-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.final-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: center;
}

.final-cta-buttons a {
  transition: transform 0.3s;
  display: block;
}

.final-cta-buttons a:hover {
  transform: translateY(-3px);
}

.final-cta-buttons img {
  height: 70px;
  width: auto;
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: #00091D;
  color: white;
  padding: 60px 96px 30px;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-column a:hover {
  opacity: 1;
}

.footer-apps {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-apps img {
  height: 45px;
}

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

.footer-logo img {
  height: 40px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ============================
   MOBILE RESPONSIVE DESIGN
   ============================ */
@media (max-width: 968px) {
  /* Show mobile menu, hide desktop nav */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
  }
  
  .mobile-drawer {
    display: block;
  }
  
  /* Hero Section */
  .hero {
    padding: 120px 1.5rem 80px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-text img.hero-headline {
    max-width: 100%;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .app-buttons {
    justify-content: center;
  }
  
  .phone-mockup {
    max-width: 280px;
  }
  
  /* About Section */
  .about {
    padding: 60px 1.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .about-text p {
    font-size: 1rem;
  }
  
  .features-list {
    text-align: left;
  }
  
  .features-list h4 {
    font-size: 1.5rem;
  }
  
  /* CTA Section */
  .cta-section {
    padding: 0 1.5rem 60px;
  }

  .cta-content {
    flex-direction: column;
    padding: 40px 28px;
    border-radius: 18px;
  }

  .cta-text-wrapper {
    align-items: flex-start;
  }

  .cta-text h2 {
    font-size: 1.8rem;
  }

  .cta-text p {
    font-size: 1rem;
    max-width: 100%;
  }

  .cta-graphic {
    width: 200px;
    align-self: center;
  }
  
  /* Toolkit Section */
  .toolkit {
    padding: 60px 1.5rem;
  }
  
  .toolkit-header h2 {
    font-size: 2rem;
  }
  
  .toolkit-header p {
    font-size: 1rem;
  }
  
  .toolkit-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .toolkit-features {
    border-left: none;
    border-top: 3px solid #a51d2a;
    padding-left: 0;
    padding-top: 2rem;
  }
  
  .toolkit-phones {
    gap: 1rem;
  }
  
  .toolkit-phones img {
    width: 180px;
  }
  
  /* Codes Section */
  .section-codes {
    padding: 60px 0;
  }
  
  .section-codes .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 16px;
  }
  
  .section-codes .section-header h2 {
    font-size: 1.8rem;
  }
  
  .code-card-mobile {
    min-width: 300px;
    max-width: 300px;
  }
  
  .codes-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Testimonials */
  .testimonials {
    padding: 60px 1.5rem 60px;
  }

  .testimonials-card {
    padding: 32px 20px 28px;
    border-radius: 18px;
  }

  .testimonials-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .testimonials-header h2 {
    font-size: 1.8rem;
  }

  .testimonial-carousel {
    padding: 0;
  }

  .testimonial-card {
    padding: 32px 20px 28px;
  }

  .testimonial-card blockquote {
    font-size: 1.2rem;
  }
  
  /* Plans Section */
  .section-plans {
    padding: 60px 1.5rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* FAQ */
  .section-faq {
    padding: 60px 1.5rem;
  }

  .faq-header-centered {
    margin-bottom: 2.5rem;
  }

  .faq-header-centered h2 {
    font-size: 1.8rem;
  }

  .faq-header-centered p {
    font-size: 1rem;
  }

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

  .contact-card {
    padding: 36px 24px;
    border-radius: 18px;
  }
  
  /* Telegram Section */
  .telegram-cta {
    padding: 60px 1.5rem;
    margin-bottom: 0;
  }
  
  .telegram-content h2 {
    font-size: 2rem;
  }
  
  .telegram-content p {
    font-size: 1rem;
  }
  
  .telegram-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
  
  /* Final CTA - FIXED */
  .final-cta {
    padding: 60px 1.5rem;
    background: #a51d2a;
    background-image: none;
    min-height: auto;
    display: block;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    margin-top: 0;
  }
  
  .final-cta-content {
    text-align: left;
    position: relative;
    z-index: 2;
    width: 100%;
  }
  
  .final-cta-text {
    width: 100%;
  }
  
  .final-cta-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
  }

  .final-cta-text p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.9);
  }

  .final-cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
  }

  .final-cta-buttons a {
    width: auto;
  }

  .final-cta-buttons img {
    height: 55px;
    width: auto;
  }
  
  /* Footer - FIXED */
  footer {
    padding: 60px 1.5rem 30px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    background: #00091D;
    width: 100%;
    clear: both;
  }
  
  .footer-content {
    position: relative;
    z-index: 2;
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 100%;
  }

  /* Download Modal */
  .download-modal-content {
    padding: 2rem 1.5rem;
  }

  .download-modal-content h3 {
    font-size: 1.5rem;
  }

  .download-modal-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .download-modal-btn img {
    height: 50px;
  }
}

@media (max-width: 640px) {
  /* Extra small screens */
  .hero {
    padding: 100px 1rem 60px;
  }
  
  .about,
  .toolkit,
  .section-plans,
  .section-faq {
    padding: 50px 1rem;
  }

  .telegram-cta {
    padding: 50px 1rem;
    margin-bottom: 0;
  }

  /* Final CTA - Extra Small */
  .final-cta {
    padding: 50px 1rem;
    background: #a51d2a;
    background-image: none;
    min-height: auto;
    display: block;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
  }

  .final-cta-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .final-cta-text p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .final-cta-buttons {
    align-items: flex-start;
  }

  .final-cta-buttons img {
    height: 50px;
  }

  .cta-section {
    padding: 0 1rem 50px;
  }

  .cta-content {
    padding: 28px 20px;
  }

  .testimonials {
    padding: 50px 1rem 50px;
  }

  .testimonials-card {
    padding: 24px 16px 22px;
  }
  
  .section-codes {
    padding: 50px 0;
  }
  
  .section-codes .section-header {
    padding: 0 1rem;
  }
  
  .codes-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .section-header h2,
  .testimonials-header h2,
  .faq-header-centered h2 {
    font-size: 1.5rem;
  }
  
  /* Footer - Extra Small */
  footer {
    padding: 50px 1rem 24px;
    margin-top: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-carousel {
    padding: 0;
  }

  .download-app-btn {
    font-size: 0.9rem;
    padding: 0.85rem 1.4rem;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

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

/* Ensure proper stacking */
section {
  position: relative;
  z-index: auto;
  overflow-x: hidden;
}

.final-cta,
footer {
  overflow: visible;
}