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

:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #fff0e8;
  --secondary: #00a19b;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --bg-light: #fff5f0;
  --bg-gray: #f5f7fa;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(255, 107, 53, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

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

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

/* Navbar */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.nav-logo span {
  color: var(--secondary);
}

.nav-logo img {
  height: 36px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

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

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

/* Mobile menu buttons */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-dark);
  padding: 4px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 50%, #cc4a1a 100%);
  color: var(--white);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

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

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 32px;
}

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

.hero-buttons .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.hero-buttons .btn-primary:hover {
  background: var(--bg-light);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.hero-buttons .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat h3 {
  font-size: 32px;
  font-weight: 800;
}

.hero-stat p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 0;
}

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

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Hero Wave */
.hero-wave {
  position: relative;
  margin-top: -2px;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .highlight {
  color: var(--primary);
}

/* Search & Filter */
.search-filter {
  margin-bottom: 40px;
}

.search-bar {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 24px;
}

.search-bar input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-bar button {
  padding: 16px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  background: var(--primary-dark);
}

.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.category-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.category-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Campaign Grid */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.campaign-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
}

.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.campaign-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.campaign-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.campaign-card:hover .campaign-card-image img {
  transform: scale(1.05);
}

.campaign-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.campaign-card-body {
  padding: 20px;
}

.campaign-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-card-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-bar {
  height: 8px;
  background: var(--bg-gray);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

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

.campaign-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.campaign-stats .amount {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 16px;
}

.campaign-stats .percentage {
  font-weight: 600;
  color: var(--primary);
}

.campaign-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.campaign-footer .organizer {
  font-weight: 500;
  color: var(--text-dark);
}

/* How It Works */
.how-it-works {
  background: var(--bg-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  text-align: center;
  padding: 40px 30px;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  box-shadow: var(--shadow);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #e55a2b, #ff6b35);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item h3 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 16px;
  opacity: 0.85;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.testimonial-card .stars {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 16px;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 15px;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-gray);
}

.faq-question .icon {
  transition: var(--transition);
  font-size: 20px;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  max-width: 300px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
}

.footer h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Campaign Detail Page */
.campaign-detail {
  padding: 40px 0 80px;
}

.campaign-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.campaign-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}

.campaign-detail-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.campaign-detail-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.campaign-detail-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.campaign-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.campaign-detail-meta .label {
  font-weight: 600;
  color: var(--text-dark);
}

.campaign-detail-body {
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 16px;
}

.donation-sidebar {
  position: sticky;
  top: 100px;
}

.donation-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.donation-card .amount-raised {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.donation-card .amount-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.donation-card .progress-bar {
  margin: 16px 0;
}

.donation-card .stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.donation-card .stats-row strong {
  color: var(--text-dark);
}

.donation-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.donation-preset {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}

.donation-preset:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.donation-preset.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.donation-custom {
  margin: 16px 0;
}

.donation-custom label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.donation-custom .input-group {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.donation-custom .input-group span {
  padding: 0 16px;
  background: var(--bg-gray);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-muted);
  border-right: 2px solid var(--border);
  line-height: 48px;
}

.donation-custom input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 16px;
  outline: none;
  font-weight: 600;
}

.donation-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  margin-top: 8px;
}

/* Donor List */
.donor-list {
  margin-top: 20px;
}

.donor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.donor-item:last-child {
  border-bottom: none;
}

.donor-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.donor-amount {
  font-weight: 700;
  color: var(--primary);
}

/* Create Campaign Page */
.create-campaign {
  padding: 40px 0 80px;
}

.create-campaign h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
}

.create-campaign .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.form-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

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

.form-group label .required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .help-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.form-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 16px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.toast.success {
  background: var(--primary);
}

.toast.error {
  background: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal .icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.modal h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Sticky Donate Bar (mobile) */
.sticky-donate-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 999;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.sticky-donate-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sticky-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.sticky-label {
  font-size: 12px;
  color: var(--text-muted);
}
.sticky-donate-bar .btn {
  flex-shrink: 0;
  padding: 12px 24px;
  font-size: 15px;
  margin: 0;
}

@media (max-width: 1024px) {
  .sticky-donate-bar {
    display: flex;
  }
  .campaign-detail {
    padding-bottom: 100px;
  }
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.no-results .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .campaign-detail-grid {
    grid-template-columns: 1fr;
  }
  .donation-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active {
    display: flex;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-image {
    display: none;
  }
  .campaign-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-container {
    padding: 24px;
  }
  .search-bar {
    flex-direction: column;
  }
  .search-bar button {
    width: 100%;
  }
  .hero {
    min-height: auto;
    padding: 60px 0 0;
  }
  .donation-card {
    padding: 24px;
  }
  .campaign-detail-image img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 26px;
  }
  .hero-stat h3 {
    font-size: 24px;
  }
  .campaign-grid {
    grid-template-columns: 1fr;
  }
  .donation-presets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ PAYMENT GATEWAY ============ */
.payment-page {
  padding: 40px 0 80px;
  background: var(--bg-gray);
  min-height: 100vh;
}

.payment-header {
  text-align: center;
  margin-bottom: 40px;
}

.payment-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.payment-header h1 span { color: var(--primary); }

.payment-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.payment-methods {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.payment-methods h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.payment-methods > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.method-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.method-group-label:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}

.method-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.method-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.method-option .radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.method-option.active .radio {
  border-color: var(--primary);
}

.method-option .radio::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  transition: var(--transition);
}

.method-option.active .radio::after {
  background: var(--primary);
}

.method-option .method-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.method-option .method-info {
  flex: 1;
}

.method-option .method-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.method-option .method-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Payment Summary Sidebar */
.payment-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}

.payment-summary h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-row .label {
  color: var(--text-muted);
}

.summary-row .value {
  font-weight: 600;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 2px solid var(--border);
  font-size: 18px;
  font-weight: 800;
}

.summary-total .amount {
  color: var(--primary);
}

.payment-summary .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  margin-top: 20px;
}

.payment-summary .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Payment Display (QR Code / VA) */
.payment-display {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.payment-display .method-icon-big {
  font-size: 48px;
  margin-bottom: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.payment-display .method-icon-big img {
  width:64px;
  height:64px;
  object-fit:contain;
}

.payment-display h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.payment-display .amount-big {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.payment-display .qr-container {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  display: inline-block;
  margin-bottom: 20px;
}

.payment-display .qr-container img {
  width: 250px;
  height: 250px;
  display: block;
}

.payment-display .va-number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-dark);
  background: var(--bg-gray);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-family: monospace;
  cursor: pointer;
  transition: var(--transition);
  border: 2px dashed var(--border);
  user-select: all;
}

.payment-display .va-number:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.payment-display .instruction-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: left;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
  color: var(--text-dark);
}

.payment-display .countdown {
  color: var(--danger);
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0;
}

.payment-display .btn-primary {
  padding: 16px 40px;
  font-size: 16px;
  margin-top: 12px;
}

.payment-display .btn-copy {
  background: var(--bg-gray);
  border: 2px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  margin-left: 8px;
}

.payment-display .btn-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Payment Success */
.payment-success {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.payment-success .success-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.payment-success h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.payment-success h1 span { color: var(--primary); }

.payment-success p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.payment-success .success-details {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 32px 0;
  text-align: left;
}

.payment-success .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.payment-success .detail-row .lbl {
  color: var(--text-muted);
}

.payment-success .detail-row .val {
  font-weight: 600;
}

.payment-success .btn {
  margin-top: 16px;
}

.payment-success .share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.payment-success .share-btn {
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.payment-success .share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Payment Responsive */
@media (max-width: 768px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }
  .payment-summary {
    position: static;
  }
  .payment-display {
    padding: 24px;
  }
  .payment-display .va-number {
    font-size: 20px;
    letter-spacing: 1px;
    word-break: break-all;
  }
  .payment-display .qr-container img {
    width: 200px;
    height: 200px;
  }
  .payment-success h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .payment-methods {
    padding: 20px;
  }
  .payment-display .amount-big {
    font-size: 28px;
  }
  .payment-success .success-icon {
    font-size: 60px;
  }
}

/* Image Browser Modal */
.browser-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.browser-overlay.active { display: flex; }
.browser-modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.browser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.browser-header h3 { font-size: 18px; }
.browser-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
}
.browser-close:hover { background: var(--bg-gray); }
.browser-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}
.browser-toolbar input {
  flex: 1;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}
.browser-toolbar input:focus { border-color: var(--primary); }
.browser-upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.browser-upload-btn:hover { background: var(--primary-dark); }
.browser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.browser-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all 0.2s;
  background: var(--white);
}
.browser-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255,107,53,0.15);
  transform: translateY(-2px);
}
.browser-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.browser-item-name {
  padding: 4px 8px 6px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
