/* ==================== Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== Container ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==================== Header ==================== */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
}

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

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

/* ==================== Hero Title ==================== */
.hero-title {
  background: #fff;
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.hero-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.subtitle {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.5;
}

/* ==================== Main Content Grid ==================== */
.main-content {
  padding: 2rem 0;
  background: #f5f5f5;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

/* ==================== Content Column ==================== */
.content-column {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==================== VSL Container ==================== */
.vsl-container {
  width: 100%;
  background: #000;
}

/* ==================== Tabs ==================== */
.tabs {
  display: flex;
  border-bottom: 2px solid #e5e5e5;
  background: #fff;
}

.tab-button {
  flex: 1;
  padding: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button:hover {
  color: #333;
  background: #f9f9f9;
}

.tab-button.active {
  color: #10b981;
  border-bottom-color: #10b981;
}

/* ==================== Tab Content ==================== */
.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

/* ==================== Campaign Info ==================== */
.campaign-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.org-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.org-name {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1rem;
}

.campaign-date {
  font-size: 0.875rem;
  color: #666;
}

/* ==================== Content Sections ==================== */
.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #333;
}

.content-section strong {
  font-weight: 600;
  color: #1a1a1a;
}

.highlight {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #f59e0b;
}

/* ==================== Donation List ==================== */
.donation-list {
  list-style: none;
  padding: 0;
}

.donation-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}

.donation-list li:last-child {
  border-bottom: none;
}

/* ==================== CTA Inline ==================== */
.cta-inline {
  text-align: center;
  margin: 2rem 0;
}

/* ==================== Buttons ==================== */
.btn-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  background: #10b981;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-donate:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.btn-donate:active {
  transform: translateY(0);
}

.btn-donate-large {
  width: 100%;
  font-size: 1.25rem;
  padding: 1.25rem;
}

/* ==================== Comments Section ==================== */
.comments-section {
  padding: 0;
}

.comments-count {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.comment:last-of-type {
  border-bottom: none;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.comment-text {
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #999;
}

.comment-meta span {
  cursor: pointer;
}

.comment-meta span:hover {
  text-decoration: underline;
}

.comments-footer {
  text-align: center;
  color: #999;
  font-size: 0.875rem;
  margin-top: 2rem;
  font-style: italic;
}

.empty-state {
  text-align: center;
  color: #999;
  padding: 3rem 0;
  font-size: 1rem;
}

/* ==================== Sidebar ==================== */
.sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 2rem;
}

.sidebar-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==================== Campaign Stats ==================== */
.campaign-stats {
  margin-bottom: 1.5rem;
}

.stats-label {
  font-size: 0.875rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.stats-value {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.25rem;
}

.stats-meta {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.stat-label-small {
  font-size: 0.8125rem;
  color: #666;
}

/* ==================== Donation Options ==================== */
.donation-options {
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.donation-options-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-align: center;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.donation-button {
  padding: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  background: #f9f9f9;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.donation-button:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  transform: translateY(-1px);
}

.donation-button:active {
  transform: translateY(0);
}

/* ==================== Security Badge ==================== */
.security-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  margin-top: 1.5rem;
}

.security-icon {
  width: 24px;
  height: 24px;
  color: #10b981;
  flex-shrink: 0;
}

.security-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.125rem;
}

.security-desc {
  font-size: 0.8125rem;
  color: #666;
}

/* ==================== Footer ==================== */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #999;
}

.footer-links {
  font-size: 0.8125rem;
  color: #666;
}

/* ==================== Sticky Footer Mobile ==================== */
.sticky-footer-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
}

.mobile-stats {
  margin-bottom: 0.75rem;
}

.mobile-progress {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.mobile-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.mobile-meta {
  font-size: 0.875rem;
  color: #666;
}

.btn-donate-mobile {
  width: 100%;
  font-size: 1.125rem;
  padding: 1rem;
}

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  backdrop-filter: blur(0px);
}

.modal-overlay.show .modal-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s;
  z-index: 10001;
  padding: 0;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.modal-close-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.modal-title.blink {
  animation: blink 1.5s infinite;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: #666;
}

.modal-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 0.5rem;
}

.modal-qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  margin-bottom: 1.5rem;
  min-height: 240px;
}

.modal-qrcode svg,
.modal-qrcode img {
  max-width: 240px;
  height: auto;
}

.modal-input-group {
  margin-bottom: 1rem;
}

.modal-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-input {
  width: 100%;
  padding: 0.875rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #f9f9f9;
  color: #333;
}

.modal-input:focus {
  outline: none;
  border-color: #10b981;
  background: #fff;
}

.modal-btn-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #10b981;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1rem;
}

.modal-btn-copy:hover {
  background: #059669;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.modal-timer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.timer-icon {
  width: 16px;
  height: 16px;
  color: #666;
}

.timer-label {
  font-size: 0.875rem;
  color: #666;
}

.timer-value {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
}

.modal-instructions {
  padding: 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.instructions-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.instructions-list {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #333;
  line-height: 1.8;
}

.modal-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
}

.success-icon {
  width: 24px;
  height: 24px;
  color: #10b981;
  flex-shrink: 0;
}

.success-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1a1a;
}

.success-text {
  font-size: 0.875rem;
  color: #666;
}

.hidden {
  display: none !important;
}

/* ==================== Donation Modal ==================== */
.modal-donation-content {
  max-width: 600px;
}

.donation-modal-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.donation-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.donation-modal-subtitle {
  font-size: 0.9375rem;
  color: #666;
}

.donation-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.donation-amount-btn {
  padding: 1.25rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  background: #f9f9f9;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.donation-amount-btn:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.donation-amount-btn.selected {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.donation-amount-btn:nth-child(7) {
  grid-column: 1 / -1;
}

.donation-custom-amount {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.custom-amount-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.range-display {
  text-align: center;
  margin-bottom: 1rem;
}

.range-value {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
  padding: 0.5rem 1.5rem;
  background: #fff;
  border-radius: 8px;
  border: 2px solid #10b981;
}

.donation-range-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #e5e5e5;
  border-radius: 999px;
  outline: none;
  margin-bottom: 0.5rem;
}

.donation-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.donation-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.donation-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #10b981;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.donation-range-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #666;
}

.btn-continue-pix {
  width: 100%;
  font-size: 1.25rem;
  padding: 1.25rem;
}

/* ==================== Animations ==================== */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
  }
  
  .sidebar-sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-title h1 {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sidebar {
    order: 2;
  }
  
  .content-column {
    order: 1;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .sticky-footer-mobile {
    display: block;
  }
  
  body {
    padding-bottom: 120px;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-amount {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title h1 {
    font-size: 1.25rem;
  }
  
  .subtitle {
    font-size: 0.9375rem;
  }
  
  .tab-button {
    font-size: 0.875rem;
    padding: 0.875rem 0.5rem;
  }
  
  .btn-donate {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
  
  .donation-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .donation-modal-title {
    font-size: 1.5rem;
  }
  
  .range-value {
    font-size: 1.5rem;
  }
}
