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

:root {
  --primary: #0984E3;
  --primary-dark: #0652DD;
  --secondary: #00CEC9;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #f8f9fa;
  --border: #e0e0e0;
  --success: #22c55e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

/* Header */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  margin-left: 15px;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg-gray);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

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

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

/* Pricing */
.pricing {
  padding: 80px 0;
}

.pricing h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Local Mode Banner */
.local-mode-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.local-mode-icon {
  font-size: 2.5rem;
}

.local-mode-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.local-mode-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.local-mode-price {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.credits-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.credit-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  position: relative;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.credit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.credit-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.credit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text);
}

.credit-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.credit-bonus {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 5px;
}

.credit-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 15px 0 5px;
}

.credit-unit {
  font-size: 0.8rem;
  color: var(--text-light);
}

.credit-save {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
  margin: 8px 0;
}

.credit-card .btn {
  display: block;
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
}

.credit-card .btn:hover {
  background: var(--primary-dark);
}

/* Credit Rules */
.credit-rules {
  max-width: 600px;
  margin: 40px auto 0;
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 25px 30px;
}

.credit-rules h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 15px;
  text-align: center;
}

.credit-rules ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credit-rules li {
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.credit-rules li:last-child {
  border-bottom: none;
}

.credit-rules li strong {
  color: var(--text);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 35px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 25px 0;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-light);
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  margin-right: 10px;
}

/* Legal Pages */
.legal {
  padding: 60px 0;
}

.legal h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.legal .last-updated {
  color: var(--text-light);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.5rem;
  margin: 40px 0 15px;
  color: var(--primary);
}

.legal p,
.legal li {
  margin-bottom: 15px;
  color: var(--text-light);
}

.legal ul {
  margin-left: 25px;
}

.legal a {
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
  text-align: center;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 15px;
}

footer a:hover {
  color: #fff;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Success Page */
.success-page {
  padding: 80px 0;
  background: var(--bg-gray);
  min-height: calc(100vh - 200px);
}

.success-content {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto 30px;
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-content h1 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 15px;
}

.success-message {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.order-details {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.order-details h2 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-light);
  font-weight: 500;
}

.detail-value {
  color: var(--text);
  font-weight: 600;
}

.next-steps {
  text-align: left;
  margin-bottom: 40px;
}

.next-steps h2 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 15px;
  text-align: center;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  padding: 10px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 30px;
}

.next-steps li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.success-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

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

.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.refund-notice {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.refund-notice p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.refund-notice a {
  color: var(--primary);
  text-decoration: none;
}

.refund-notice a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  header .container {
    flex-direction: column;
    gap: 15px;
  }

  nav a {
    margin: 0 15px;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 10px;
  }

  .local-mode-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 20px;
  }

  .local-mode-icon {
    font-size: 2rem;
  }

  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .credit-amount {
    font-size: 2rem;
  }

  .success-content {
    padding: 30px 20px;
  }

  .success-content h1 {
    font-size: 1.8rem;
  }

  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

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

  .success-actions .btn {
    width: 100%;
  }

  .order-details {
    padding: 20px;
  }

  .detail-row {
    flex-direction: column;
    gap: 5px;
  }
}
