/* Bundle: bundle-components.css - Consolidated from: auth-modal.css, auth.css, auth-review-button.css, sticky-bottom-ad.css, donation-button.css, trustviewz-loader.css, error-handler.css, tooltip-system.css */

/* === Source: auth-modal.css === */
/* Authentication Modal Styles - Theme Aware */
.auth-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.auth-modal-overlay.active {
  display: flex;
}

.auth-modal {
  background: var(--bg-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  border: 1px solid var(--border-primary);
  position: relative;
}

/* Dark mode support for auth modal */
@media (prefers-color-scheme: dark) {
  .auth-modal {
    background: var(--gray-900);
    border-color: var(--gray-700);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  }
}

.dark-mode .auth-modal {
  background: var(--gray-900);
  border-color: var(--gray-700);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.auth-modal-header {
  text-align: center;
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--border);
}

.auth-modal-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
}

.auth-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.auth-modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.auth-modal-body {
  padding: 32px 24px;
}

.auth-phone-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  border: 1px solid var(--border-primary);
}

@media (prefers-color-scheme: dark) {
  .auth-phone-section {
    background: var(--gray-800);
    border-color: var(--gray-700);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

.dark-mode .auth-phone-section {
  background: var(--gray-800);
  border-color: var(--gray-700);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.phone-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.country-code-input {
  width: 100px;
  padding: 12px;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  font-size: 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
}

.country-code-input:focus {
  border-color: var(--brand-primary);
  outline: none;
}

.country-code-input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.phone-number-input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  font-size: 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.phone-number-input::placeholder {
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  .country-code-input,
  .phone-number-input {
    background: var(--gray-800);
    border-color: var(--gray-600);
    color: var(--gray-100);
  }
  
  .country-code-input::placeholder,
  .phone-number-input::placeholder {
    color: var(--gray-400);
  }
}

.dark-mode .country-code-input,
.dark-mode .phone-number-input {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--gray-100);
}

.dark-mode .country-code-input::placeholder,
.dark-mode .phone-number-input::placeholder {
  color: var(--gray-400);
}

.otp-section {
  display: none;
  margin-top: 16px;
}

.otp-section.active {
  display: block;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.otp-input:focus {
  border-color: var(--brand-primary);
  outline: none;
}

@media (prefers-color-scheme: dark) {
  .otp-input {
    background: var(--gray-800);
    border-color: var(--gray-600);
    color: var(--gray-100);
  }
}

.dark-mode .otp-input {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--gray-100);
}

.otp-timer {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.resend-otp-btn {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.resend-otp-btn:disabled {
  color: var(--text-secondary);
  cursor: not-allowed;
  text-decoration: none;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.auth-btn-primary:hover {
  background: var(--brand-primary-dark);
}

.auth-btn-primary:disabled {
  background: #6c757d;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 1;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-primary);
}

.auth-divider::before {
  margin-right: 16px;
}

.auth-divider::after {
  margin-left: 16px;
}

.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: var(--brand-primary);
}

@media (prefers-color-scheme: dark) {
  .google-signin-btn {
    background: var(--gray-800);
    border-color: var(--gray-700);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .google-signin-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
}

.dark-mode .google-signin-btn {
  background: var(--gray-800);
  border-color: var(--gray-700);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-mode .google-signin-btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.google-signin-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.google-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.google-signin-content span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1;
}

.auth-modal-close:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  .auth-modal-close:hover {
    background: var(--gray-700);
  }
}

.dark-mode .auth-modal-close:hover {
  background: var(--gray-700);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 768px) {
  .auth-modal {
    width: 92%;
    max-width: 420px;
  }
  
  .auth-modal-logo {
    max-width: 160px;
  }
  
  .auth-modal-title {
    font-size: 22px;
  }
  
  .google-signin-content span {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .auth-modal {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .auth-modal-header {
    padding: 20px 16px 16px;
  }
  
  .auth-modal-body {
    padding: 20px 16px;
  }
  
  .auth-modal-logo {
    max-width: 140px;
  }
  
  .auth-modal-title {
    font-size: 20px;
  }
  
  .auth-modal-subtitle {
    font-size: 13px;
  }
  
  .auth-phone-section {
    padding: 16px;
  }
  
  .phone-input-group {
    gap: 8px;
  }
  
  .country-code-input {
    width: 85px;
    padding: 10px 8px;
    font-size: 15px;
  }
  
  .phone-number-input {
    padding: 10px;
    font-size: 15px;
  }
  
  .otp-inputs {
    gap: 6px;
  }
  
  .otp-input {
    width: 44px;
    height: 52px;
    font-size: 20px;
  }
  
  .google-signin-btn {
    padding: 14px 16px;
  }
  
  .google-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  
  .google-signin-content {
    gap: 12px;
  }
  
  .google-signin-content span {
    font-size: 14px;
  }
  
  .auth-btn {
    padding: 12px;
    font-size: 15px;
  }
  
  .auth-modal-close {
    top: 12px;
    right: 12px;
    font-size: 24px;
    width: 36px;
    height: 36px;
  }
}

/* Small Mobile */
@media (max-width: 360px) {
  .auth-modal {
    width: 98%;
  }
  
  .auth-modal-header {
    padding: 16px 12px 12px;
  }
  
  .auth-modal-body {
    padding: 16px 12px;
  }
  
  .auth-phone-section {
    padding: 12px;
  }
  
  .phone-input-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .country-code-input {
    width: 100%;
    text-align: left;
  }
  
  .otp-inputs {
    gap: 4px;
  }
  
  .otp-input {
    width: 42px;
    height: 50px;
    font-size: 18px;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .auth-modal {
    max-height: 98vh;
    width: 85%;
    max-width: 600px;
  }
  
  .auth-modal-header {
    padding: 16px 20px 12px;
  }
  
  .auth-modal-body {
    padding: 16px 20px;
  }
  
  .auth-modal-logo {
    max-width: 120px;
    margin-bottom: 8px;
  }
  
  .auth-modal-title {
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .auth-modal-subtitle {
    font-size: 12px;
  }
  
  .auth-phone-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .google-signin-content span {
    font-size: 13px;
  }
  
  .auth-divider {
    margin: 16px 0;
  }
}


/* === Source: auth.css === */
/* Authentication Styles */

.login-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-popup {
  background-color: white;
  padding: 20px;
  border: 2px solid var(--primary-blue);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 450px;
  position: relative;
}

.login-popup h2 {
  color: var(--primary-blue);
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
}

.login-popup .close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
  font-weight: bold;
  color: #999;
  transition: color 0.3s ease;
}

.login-popup .close-btn:hover {
  color: red;
}

.phone-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.phone-container label {
  flex: 0 0 120px;
  font-weight: 500;
}

.phone-container input {
  flex: 1;
  min-width: 150px;
  height: 40px;
  border: 1px solid var(--primary-blue);
  border-radius: 7px;
  padding: 0 10px;
}

.phone-container button {
  padding: 10px 20px;
  height: 40px;
}

#otpButton:disabled {
  background-color: #6c757d;
  color: #ffffff;
  cursor: wait;
}

/* Circular Timer Container */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 0;
}

/* CircularTimerView component styles are handled internally */
.circular-timer-view {
  display: inline-block;
}

.timer-container p {
  font-size: 12px;
  color: var(--primary-blue);
  margin-top: 10px;
  text-align: center;
}

#otpAttempts {
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 500;
}

.error-text {
  color: red;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
}

/* International Phone Input Styling */
.iti {
  width: 100%;
}

.iti__flag-container {
  padding: 0;
}

.iti__selected-flag {
  padding: 0 8px;
}

@media only screen and (max-width: 768px) {
  .login-popup {
    width: 95%;
    max-width: 400px;
    padding: 15px;
  }

  .login-popup h2 {
    font-size: 16px;
  }

  .phone-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .phone-container label {
    flex: none;
    font-size: 14px;
  }

  .phone-container input,
  .phone-container button {
    width: 100%;
    min-width: 100%;
  }

  .timer-container p {
    font-size: 11px;
  }

  #otpAttempts {
    font-size: 11px;
  }
}

@media only screen and (max-width: 480px) {
  .login-popup {
    width: 98%;
    padding: 12px;
  }

  .login-popup h2 {
    font-size: 15px;
  }

  .phone-container label {
    font-size: 13px;
  }

  .phone-container input {
    height: 36px;
    font-size: 14px;
  }

  .phone-container button {
    height: 36px;
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .login-popup {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #0088ff;
  }

  .login-popup h2 {
    color: #0088ff;
  }

  .phone-container input {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-color: #0088ff;
  }

  .phone-container input::placeholder {
    color: #888;
  }

  #otpAttempts {
    color: #0088ff;
  }

  .error-text {
    color: #ff6b6b;
  }
}


/* OTP Timer Styles */
.base-timer {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.base-timer__svg {
  transform: scaleX(-1);
}

.base-timer__circle {
  fill: none;
  stroke: none;
}

.base-timer__path-elapsed {
  stroke-width: 7px;
  stroke: #e0e0e0;
}

.base-timer__path-remaining {
  stroke-width: 7px;
  stroke-linecap: round;
  transform: rotate(90deg);
  transform-origin: center;
  transition: 1s linear all;
}

.base-timer__path-remaining.green {
  stroke: #4caf50;
}

.base-timer__path-remaining.orange {
  stroke: #ff9800;
}

.base-timer__path-remaining.red {
  stroke: #f44336;
}

.base-timer__label {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  .base-timer__path-elapsed {
    stroke: #424242;
  }
  
  .base-timer__label {
    color: #e0e0e0;
  }
}


/* === Source: auth-review-button.css === */
.auth-review-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  margin-bottom: 12px;
}

.auth-review-btn:hover {
  background: linear-gradient(135deg, #357ae8 0%, #2a5fc7 100%);
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
  transform: translateY(-2px);
}

.auth-review-btn:disabled {
  background: #4caf50;
  cursor: not-allowed;
  opacity: 1;
}

.auth-review-btn i {
  font-size: 20px;
}

.auth-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 6px;
  border-left: 3px solid #4285f4;
}

.auth-info i {
  color: #4285f4;
  margin-top: 2px;
  flex-shrink: 0;
}

.submit-actions {
  margin-top: 24px;
}

.submit-actions .primary-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.submit-actions .primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-actions .primary-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* === Source: sticky-bottom-ad.css === */
/* Floating Bottom Ad - Theme Aware & Responsive */
.sticky-bottom-ad {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: var(--bg-primary, #ffffff);
  border-top: 2px solid var(--border-primary, rgba(0, 0, 0, 0.1));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100px !important;
  max-height: 100px !important;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  transform: translateY(100%);
}

.sticky-bottom-ad.show {
  opacity: 1;
  transform: translateY(0);
}

.sticky-bottom-ad.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.sticky-bottom-ad-close {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: var(--error, #ef4444);
  color: var(--white, #ffffff);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sticky-bottom-ad-close:hover {
  background: var(--error-dark, #dc2626);
  transform: scale(1.1);
}

.sticky-bottom-ad-close:active {
  transform: scale(0.95);
}

.sticky-bottom-ad-content {
  width: 100% !important;
  max-width: 728px !important;
  height: 90px !important;
  max-height: 90px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  padding: 0 32px 0 8px !important;
  overflow: hidden !important;
}

.sticky-bottom-ad-content > * {
  max-height: 90px !important;
  overflow: hidden !important;
}

/* Body padding when ad is visible */
body.has-sticky-ad {
  padding-bottom: 110px;
  transition: padding-bottom 0.3s ease;
}

/* Dark mode support */
.dark-mode .sticky-bottom-ad,
body[data-theme="dark"] .sticky-bottom-ad {
  background: var(--gray-800, #1f2937);
  border-top-color: var(--gray-700, #374151);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

/* Light mode explicit */
.light-mode .sticky-bottom-ad,
body[data-theme="light"] .sticky-bottom-ad {
  background: var(--white, #ffffff);
  border-top-color: var(--gray-200, #e5e7eb);
}

/* Tablet responsive */
@media (max-width: 768px) {
  .sticky-bottom-ad {
    height: 80px !important;
    max-height: 80px !important;
    padding: 6px !important;
  }
  
  .sticky-bottom-ad-close {
    width: 26px;
    height: 26px;
    font-size: 15px;
    top: 6px !important;
    right: 6px !important;
  }
  
  .sticky-bottom-ad-content {
    max-width: 100% !important;
    height: 70px !important;
    max-height: 70px !important;
    padding: 0 28px 0 6px !important;
  }
  
  .sticky-bottom-ad-content > * {
    max-height: 70px !important;
  }
  
  body.has-sticky-ad {
    padding-bottom: 90px;
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .sticky-bottom-ad {
    height: 70px !important;
    max-height: 70px !important;
    padding: 5px !important;
  }
  
  .sticky-bottom-ad-close {
    width: 24px;
    height: 24px;
    font-size: 14px;
    top: 4px !important;
    right: 4px !important;
  }
  
  .sticky-bottom-ad-content {
    height: 60px !important;
    max-height: 60px !important;
    padding: 0 26px 0 5px !important;
  }
  
  .sticky-bottom-ad-content > * {
    max-height: 60px !important;
  }
  
  body.has-sticky-ad {
    padding-bottom: 80px;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .sticky-bottom-ad {
    border-top-width: 2px;
  }
  
  .sticky-bottom-ad-close {
    border: 2px solid var(--white, #ffffff);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sticky-bottom-ad {
    transition: none;
  }
  
  .sticky-bottom-ad-close {
    transition: none;
  }
}


/* === Source: donation-button.css === */
/* Donation Button Styles */
.donation-container {
    margin: var(--space-6) 0;
    text-align: center;
}

.donation-card {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    border-radius: var(--radius-2xl);
    padding: var(--space-6) var(--space-4);
    box-shadow: 0 10px 30px rgba(57, 129, 164, 0.3);
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.donation-header {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.donation-header h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.donation-header p {
    font-size: var(--font-size-base);
    opacity: 0.95;
    max-width: 500px;
    margin: 0 auto;
}

.donation-button-form {
    display: inline-block;
    position: relative;
    z-index: 2;
}

.donation-button-container {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    display: flex;
    padding: 12px;
    width: fit-content;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.donation-button-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.donation-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 12px;
    justify-content: center;
    margin-right: 12px;
}

.donation-logo-container {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.donation-secondary-logo-container {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 6px;
}

.donation-impact {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    margin-top: var(--space-4);
    border: 2px solid var(--border-primary);
}

.donation-impact h4 {
    color: var(--brand-primary);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--font-size-lg);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.impact-stat {
    text-align: center;
    padding: var(--space-2);
}

.impact-stat .number {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--brand-primary);
    display: block;
}

.impact-stat .label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.global-support {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    margin-top: var(--space-4);
    text-align: center;
}

.global-support h4 {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.global-flags {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    flex-wrap: wrap;
}

.flag {
    font-size: var(--font-size-xl);
    animation: wave 2s ease-in-out infinite;
}

.flag:nth-child(2) { animation-delay: 0.2s; }
.flag:nth-child(3) { animation-delay: 0.4s; }
.flag:nth-child(4) { animation-delay: 0.6s; }
.flag:nth-child(5) { animation-delay: 0.8s; }

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

/* Floating Donation Button */
.floating-donation {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-donation .donation-button-container {
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(57, 129, 164, 0.4);
}

.floating-donation .donation-logo-container {
    width: 35px;
    height: 35px;
}

.floating-donation .donation-text-container {
    margin-left: 8px;
    margin-right: 8px;
}

.floating-donation .donation-secondary-logo-container {
    width: 14px;
    height: 14px;
}

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

/* Sticky Top Banner */
.donation-banner {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-dark));
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.donation-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    max-width: 1200px;
    margin: 0 auto;
}

.donation-banner .donation-button-container {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: var(--font-size-sm);
}

.donation-banner .donation-logo-container {
    width: 25px;
    height: 25px;
}

.donation-banner .donation-text-container {
    margin-left: 6px;
    margin-right: 6px;
}

.donation-banner .donation-secondary-logo-container {
    width: 12px;
    height: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donation-card {
        padding: var(--space-4) var(--space-3);
        margin: var(--space-4) var(--space-2);
    }
    
    .donation-header h3 {
        font-size: var(--font-size-lg);
    }
    
    .donation-button-container {
        padding: 10px;
    }
    
    .donation-logo-container {
        width: 40px;
        height: 40px;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .floating-donation {
        bottom: 80px;
        right: 15px;
    }
    
    .donation-banner-content {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .donation-banner-content p {
        font-size: var(--font-size-sm);
        margin: 0;
    }
}

@media (max-width: 480px) {
    .donation-card {
        padding: var(--space-3);
        margin: var(--space-3) var(--space-1);
    }
    
    .donation-header h3 {
        font-size: var(--font-size-base);
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .donation-button-container {
        padding: 8px;
        border-radius: 12px;
    }
    
    .donation-logo-container {
        width: 35px;
        height: 35px;
    }
    
    .donation-text-container {
        margin-left: 8px;
        margin-right: 8px;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .global-flags {
        gap: var(--space-1);
    }
    
    .floating-donation {
        bottom: 70px;
        right: 10px;
    }
    
    .donation-banner {
        padding: var(--space-1) var(--space-2);
    }
}

/* Dark mode support */
.dark-mode .donation-impact {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.dark-mode .impact-stat .label {
    color: var(--gray-400);
}

/* === Source: trustviewz-loader.css === */
/* TrustViewz Custom Loader - Performance Optimized */

.trustviewz-loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  position: relative;
  will-change: transform;
}

.trustviewz-loader-ring {
  width: 100%;
  height: 100%;
  border: 3px solid var(--border-primary);
  border-top: 3px solid var(--brand-primary);
  border-radius: 50%;
  animation: trustviewz-spin 1s linear infinite;
  position: absolute;
}

.trustviewz-loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-image: url('../img/trustviewz_logo_circular.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
  animation: trustviewz-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Fallback for slow connections */
.trustviewz-loader-simple {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-primary);
  border-top: 3px solid var(--brand-primary);
  border-radius: 50%;
  animation: trustviewz-spin 1s linear infinite;
}

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

@keyframes trustviewz-pulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Theme awareness */
.dark-mode .trustviewz-loader-logo {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .trustviewz-loader-ring,
  .trustviewz-loader-simple {
    animation: trustviewz-spin 3s linear infinite;
  }
  
  .trustviewz-loader-logo {
    animation: none;
    opacity: 0.8;
  }
}

/* Size variants */
.trustviewz-loader.small { width: 24px; height: 24px; }
.trustviewz-loader.small .trustviewz-loader-logo { width: 16px; height: 16px; }

.trustviewz-loader.large { width: 60px; height: 60px; }
.trustviewz-loader.large .trustviewz-loader-logo { width: 36px; height: 36px; }

/* === Source: error-handler.css === */
/* Error Handler Styles */
.error-report-toast {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: white;
  border-left: 4px solid #f44336;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  z-index: 9999;
  animation: slideInRight 0.3s ease;
  max-width: 350px;
}

.error-report-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-report-content p {
  margin: 0;
  font-size: 14px;
  color: #333;
  flex: 1;
}

.error-report-toast .report-btn {
  background: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.error-report-toast .report-btn:hover {
  background: #d32f2f;
}

.error-report-toast .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.error-report-toast .close-btn:hover {
  color: #333;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .error-report-toast {
    right: 10px;
    left: 10px;
    max-width: none;
    bottom: 80px;
  }
  
  .error-report-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .error-report-toast .report-btn {
    width: 100%;
    justify-content: center;
  }
}


/* === Source: tooltip-system.css === */
/* ===================================
   TOOLTIP SYSTEM - Adaptive & Responsive
   =================================== */

.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color, #0074D9);
    color: white;
    font-size: 11px;
    font-weight: 600;
    cursor: help;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tooltip-icon:hover {
    transform: scale(1.1);
    background: var(--primary-hover, #005197);
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 10000;
    min-width: 200px;
    max-width: 280px;
    padding: 10px 14px;
    background: var(--tooltip-bg, #1a1a2e);
    color: var(--tooltip-text, #ffffff);
    font-size: 13px;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: normal;
    word-wrap: break-word;
}

.tooltip-text::before {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}

/* Tooltip Positions */
.tooltip-text.top {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
}

.tooltip-text.top::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--tooltip-bg, #1a1a2e);
}

.tooltip-text.bottom {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-text.bottom::before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--tooltip-bg, #1a1a2e);
}

.tooltip-text.left {
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(5px);
}

.tooltip-text.left::before {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: var(--tooltip-bg, #1a1a2e);
}

.tooltip-text.right {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
}

.tooltip-text.right::before {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--tooltip-bg, #1a1a2e);
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .tooltip-text,
.tooltip-icon:hover + .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-wrapper:hover .tooltip-text.top {
    transform: translateX(-50%) translateY(0);
}

.tooltip-wrapper:hover .tooltip-text.bottom {
    transform: translateX(-50%) translateY(0);
}

.tooltip-wrapper:hover .tooltip-text.left {
    transform: translateY(-50%) translateX(0);
}

.tooltip-wrapper:hover .tooltip-text.right {
    transform: translateY(-50%) translateX(0);
}

/* Theme Support */
[data-theme="dark"] .tooltip-text {
    --tooltip-bg: #2d2d44;
    --tooltip-text: #e8e8e8;
}

[data-theme="light"] .tooltip-text {
    --tooltip-bg: #1a1a2e;
    --tooltip-text: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tooltip-text {
        min-width: 180px;
        max-width: 240px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .tooltip-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    /* Force bottom position on mobile for better visibility */
    .tooltip-text.top,
    .tooltip-text.left,
    .tooltip-text.right {
        bottom: auto;
        right: auto;
        left: 50%;
        top: calc(100% + 8px);
        transform: translateX(-50%) translateY(-5px);
    }
    
    .tooltip-text.top::before,
    .tooltip-text.left::before,
    .tooltip-text.right::before {
        border: 6px solid transparent;
        border-bottom-color: var(--tooltip-bg, #1a1a2e);
        border-top-color: transparent;
        border-left-color: transparent;
        border-right-color: transparent;
        bottom: 100%;
        left: 50%;
        top: auto;
        right: auto;
        transform: translateX(-50%);
    }
    
    .tooltip-wrapper:hover .tooltip-text.top,
    .tooltip-wrapper:hover .tooltip-text.left,
    .tooltip-wrapper:hover .tooltip-text.right {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .tooltip-text {
        min-width: 160px;
        max-width: 200px;
        font-size: 11px;
        padding: 7px 10px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .tooltip-icon {
        border: 2px solid currentColor;
    }
    
    .tooltip-text {
        border: 2px solid var(--tooltip-text, #ffffff);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .tooltip-text,
    .tooltip-icon {
        transition: none;
    }
    
    .tooltip-wrapper:hover .tooltip-text {
        transform: none;
    }
}

/* Touch Device Support */
@media (hover: none) and (pointer: coarse) {
    .tooltip-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    /* Show tooltip on tap for touch devices */
    .tooltip-icon:active + .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
}

/* Accessibility - Focus visible */
.tooltip-icon:focus-visible {
    outline: 2px solid var(--primary-color, #0074D9);
    outline-offset: 2px;
}

.tooltip-icon:focus-visible + .tooltip-text {
    visibility: visible;
    opacity: 1;
}
