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

:root {
  --leaf-light: #81c784;
  --leaf-primary: #4caf50;
  --leaf-dark: #2e7d32;
  --orange-light: #ffb74d;
  --orange-primary: #ff9800;
  --orange-dark: #f57c00;
  --sky-blue: #03a9f4;
  --cream: #fff9c4;
  --white-glass: rgba(255, 255, 255, 0.15);
  --dark-glass: rgba(0, 0, 0, 0.2);
  --glass-blur: blur(12px);
  --border-glass: 1px solid rgba(255, 255, 255, 0.2);
  --text-primary: #1b5e20;
  --text-on-glass: #ffffff;
  --shadow-premium: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: #fff;
  background: #f0f4f0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background */
.site-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
  background-attachment: fixed;
}

.site-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./farm_hero_bg.png') center/cover no-repeat;
  opacity: 0.3;
}

/* Glass Utility */
.glass {
  background: var(--white-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  box-shadow: var(--shadow-premium);
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
}

  width: 100%;
}

.play-now-btn {
  background: var(--orange-primary);
  color: #fff !important;
  padding: 12px 25px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.play-now-btn:hover {
  transform: scale(1.05);
  background: var(--orange-light);
}

/* Main Container */
main {
  padding-top: 100px;
}

.page {
  display: none;
  padding: 40px 5% 100px;
  animation: slideUp 0.6s ease;
}

.page.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.6rem;
  margin-bottom: 40px;
  font-weight: 500;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 20px 45px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--orange-primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Features */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 15px;
}

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

.feature-card {
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.25);
}

.feature-card i {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

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

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 5px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--orange-primary);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Recharge Layout */
.recharge-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.recharge-main {
  flex: 1;
}

.recharge-sidebar {
  width: 380px;
  position: sticky;
  top: 100px;
}

.recharge-card {
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 25px;
}

.balance-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.balance-value {
  font-size: 2.2rem;
  font-family: 'Outfit', sans-serif;
  color: var(--cream);
  display: flex;
  align-items: center;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.step-title span {
  background: var(--orange-primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

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

.package-item {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.package-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.package-item.selected {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--orange-primary);
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.2);
}

.pkg-amount {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 5px;
}

.pkg-price {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Custom Amount Styling */
.custom-amount-area {
  animation: fadeIn 0.4s ease;
}

.custom-amount-area label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 10px;
  font-weight: 600;
}

.custom-input-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 5px 20px;
  border-radius: 15px;
  transition: var(--transition);
}

.custom-input-wrapper:focus-within {
  border-color: var(--orange-primary);
  background: rgba(255, 255, 255, 0.1);
}

.currency-symbol {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange-primary);
}

#customAmountInput {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  width: 100%;
  outline: none;
  padding: 10px 0;
}

.custom-calc-result {
  white-space: nowrap;
  font-weight: 700;
  color: #fff;
  opacity: 0.9;
}

#customCalcValue {
  color: #4fc3f7;
}

.method-selector {
  display: flex;
  gap: 15px;
}

.method-btn {
  padding: 15px 25px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.method-btn.active {
  border-color: var(--orange-primary);
  background: rgba(255, 152, 0, 0.1);
}

/* Sidebar Summary */
.summary-card {
  padding: 40px;
  border-radius: 35px;
  margin-bottom: 0;
}

.summary-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  color: #fff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 600;
  opacity: 0.9;
  font-size: 1.1rem;
}

.summary-total {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

#summaryTotal {
  color: var(--orange-primary);
  font-size: 2rem;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
}

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

.logo img {
  height: 50px;
  transition: var(--transition);
}

#navMenu {
  display: flex;
  gap: 35px;
  align-items: center;
}

#navMenu a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  opacity: 0.8;
  transition: var(--transition);
  font-size: 1rem;
}

#navMenu a:hover {
  opacity: 1;
  color: var(--orange-primary);
}

.nav-play-btn {
  background: var(--orange-primary);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 800 !important;
  opacity: 1 !important;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

/* Hidden by default, shown only on mobile */
.mobile-play-btn {
  display: none;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  #navMenu { gap: 20px; }
  #navMenu a { font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .header-container { padding: 0 20px; }
  .logo img { height: 38px; }

  /* Show mobile elements */
  .mobile-play-btn { 
    display: block;
    background: var(--orange-primary);
    color: #fff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: 15px;
  }

  .menu-toggle { 
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  
  .menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
  }

  #navMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 30px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  #navMenu.active {
    right: 0;
  }

  #navMenu a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-play-btn { display: none; }

  /* Mobile Grid Tweak: 2 columns per row */
  .packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .package-item {
    padding: 15px 10px !important;
  }

  .pkg-amount {
    font-size: 1.2rem !important;
  }
}

.pay-btn {
  width: 100%;
  padding: 20px;
  background: var(--orange-primary);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 30px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.3);
}

.pay-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 152, 0, 0.5);
}

.pay-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

.secure-text {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 15px;
}

/* Modal / Loading */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none; /* Default hidden */
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex; /* Shown only when active */
}

.modal-content {
  padding: 50px;
  border-radius: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--orange-primary);
  border-radius: 50%;
  margin: 0 auto 25px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-subtext {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 10px;
}

/* Status Modal Specifics */
.status-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-radius: 50%;
}

.status-icon.processing::after {
  content: '';
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--orange-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.status-icon.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}
.status-icon.success::after { content: '✓'; }

.status-icon.fail {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}
.status-icon.fail::after { content: '✕'; }

@media (max-width: 900px) {
  .recharge-container {
    flex-direction: column;
  }
  .recharge-sidebar {
    width: 100%;
    position: static;
  }
}

/* Content Pages */
.content-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px;
  border-radius: 40px;
}

.content-panel h2 {
  font-size: 3rem;
  margin-bottom: 30px;
}

.content-panel h3 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--cream);
}

.content-panel p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.content-panel ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

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

/* Footer */
.site-footer {
  padding: 80px 5% 40px;
  background: rgba(0, 0, 0, 0.1);
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
}

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

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

.footer-col a {
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--cream);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.5;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .main-nav {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }
}