/* Video Gallery Styles */
/* Designed for full-screen video viewing experience */

/* Full-screen video container - responsive for mobile/desktop */
.video-gallery-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Desktop: constrain to viewport, not expand beyond window */
@media screen and (min-width: 769px) {
    .video-gallery-container {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Mobile: full viewport coverage */
@media screen and (max-width: 768px) {
    .video-gallery-container {
        width: 100vw;
        height: 100vh;
    }
}

.video-gallery-container.active {
    opacity: 1;
    visibility: visible;
}

/* Video player container */
.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
    max-height: 100vh;
}

/* Video element styles */
.video-player {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    background-color: #000;
    border-radius: 0;
    box-shadow: none;
}

/* Maintain aspect ratio for responsive video */
.video-responsive {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Play button overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.video-play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 3px;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-loading.visible {
    opacity: 1;
}

/* Spinner animation */
.video-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #fff;
    border-radius: 50%;
    animation: video-spin 1s linear infinite;
}

@keyframes video-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation controls */
.video-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 11;
}

/* Close button */
.video-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    pointer-events: all;
    transition: all 0.3s ease;
    z-index: 12;
}

.video-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-close-btn:active {
    transform: scale(0.95);
}

.video-close-btn::before {
    content: '×';
    font-size: 24px;
    line-height: 1;
}

/* Fullscreen toggle button */
.video-fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: all;
    transition: all 0.3s ease;
    z-index: 12;
}

.video-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.video-fullscreen-btn::before {
    content: '⛶';
    font-size: 18px;
}

/* Video info overlay */
.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 20px 20px;
    pointer-events: all;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 11;
}

.video-info-overlay.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-info-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-info-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Navigation hints */
.video-nav-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: all;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 11;
    user-select: none;
}

.video-nav-hint.visible {
    opacity: 1;
}

.video-nav-hint:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.2);
}

.video-nav-prev {
    left: 20px;
}

.video-nav-prev::before {
    content: '‹';
}

.video-nav-next {
    right: 20px;
}

.video-nav-next::before {
    content: '›';
}

/* Mobile-optimized styles */
@media screen and (max-width: 768px) {
    /* Larger touch targets for mobile */
    .video-close-btn,
    .video-fullscreen-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .video-play-overlay {
        width: 90px;
        height: 90px;
    }
    
    .video-play-overlay::after {
        border-left-width: 24px;
        border-top-width: 15px;
        border-bottom-width: 15px;
    }
    
    /* Adjust positioning for mobile */
    .video-close-btn {
        top: 15px;
        right: 15px;
    }
    
    .video-fullscreen-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .video-nav-hint {
        font-size: 32px;
    }
    
    .video-nav-prev {
        left: 15px;
    }
    
    .video-nav-next {
        right: 15px;
    }
    
    /* Info overlay adjustments */
    .video-info-overlay {
        padding: 30px 15px 15px;
    }
    
    .video-info-title {
        font-size: 16px;
    }
    
    .video-info-description {
        font-size: 13px;
    }
}

/* Safe area handling for iOS devices */
@supports (padding: max(0px)) {
    .video-gallery-container {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    .video-close-btn {
        top: max(20px, env(safe-area-inset-top) + 10px);
        right: max(20px, env(safe-area-inset-right) + 10px);
    }
    
    .video-fullscreen-btn {
        bottom: max(20px, env(safe-area-inset-bottom) + 10px);
        right: max(20px, env(safe-area-inset-right) + 10px);
    }
}

/* Prevent unwanted scrolling */
.video-gallery-active {
    overflow: hidden;
    height: 100vh;
}

/* Landscape mobile optimization */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .video-player {
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .video-close-btn,
    .video-fullscreen-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .video-close-btn {
        top: 10px;
        right: 10px;
    }
    
    .video-fullscreen-btn {
        bottom: 10px;
        right: 10px;
    }
    
    .video-info-overlay {
        padding: 20px 15px 10px;
    }
    
    .video-info-title {
        font-size: 14px;
    }
    
    .video-info-description {
        font-size: 12px;
    }
}

/* Smooth transitions and animations */
.video-fade-in {
    animation: videoFadeIn 0.3s ease forwards;
}

.video-fade-out {
    animation: videoFadeOut 0.3s ease forwards;
}

.video-slide-in-left {
    animation: videoSlideInLeft 0.4s ease forwards;
}

.video-slide-in-right {
    animation: videoSlideInRight 0.4s ease forwards;
}

.video-slide-out-left {
    animation: videoSlideOutLeft 0.4s ease forwards;
}

.video-slide-out-right {
    animation: videoSlideOutRight 0.4s ease forwards;
}

.hide {
  display:none;
}

/* Keyframe animations */
@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes videoFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes videoSlideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes videoSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes videoSlideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes videoSlideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Loading states */
.video-buffering .video-play-overlay {
    opacity: 0.5;
    pointer-events: none;
}

.video-error .video-play-overlay {
    background: rgba(200, 0, 0, 0.7);
}

.video-error .video-play-overlay::after {
    content: '!';
    border: none;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-close-btn,
    .video-fullscreen-btn,
    .video-play-overlay {
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid #fff;
    }
    
    .video-nav-hint {
        text-shadow: 0 0 4px #000, 0 0 4px #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .video-gallery-container,
    .video-play-overlay,
    .video-close-btn,
    .video-fullscreen-btn,
    .video-info-overlay,
    .video-nav-hint,
    .video-loading {
        transition: none;
        animation: none;
    }
    
    .video-spinner {
        animation: none;
        border-left-color: rgba(255, 255, 255, 0.8);
    }
}

/* Print styles (hide video gallery) */
@media print {
    .video-gallery-container {
        display: none !important;
    }
}

/* Floating Action Buttons (FABs) */
.fab-container {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

.fab {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0.95;
}

.fab:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  opacity: 1;
}

.fab:active {
  transform: translateY(0) scale(1);
}

.fab-donate {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.fab-donate:hover {
  background: linear-gradient(135deg, #ff5252 0%, #e53e3e 100%);
  box-shadow: 0 8px 25px rgba(238, 90, 36, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.fab-comments {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  box-shadow: 0 6px 20px rgba(68, 160, 141, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.fab-comments:hover {
  background: linear-gradient(135deg, #40c9c6 0%, #3d8b85 100%);
  box-shadow: 0 8px 25px rgba(68, 160, 141, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.comment-count {
  position: absolute !important;
  top: -10px !important;
  right: -10px !important;
  background: #dc3545 !important;
  color: white !important;
  border-radius: 50% !important;
  min-width: 24px !important;
  height: 24px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  padding: 0 5px !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  z-index: 10002 !important;
}

.fab-share {
  background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
  box-shadow: 0 6px 20px rgba(254, 202, 87, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.fab-share:hover {
  background: linear-gradient(135deg, #febb42 0%, #ff8ce8 100%);
  box-shadow: 0 8px 25px rgba(254, 202, 87, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.comments-modal {
  padding:10px;
}
/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #ffffff !important;
  border-radius: 12px !important;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.98) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}

.modal-header h2 {
  color: #212529;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h2 i {
  font-size: 15px;
  color: #6c757d;
}

.modal-close {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #495057;
}

.modal-body {
  padding: 20px;
  color: #222;
}

/* Donation Modal Styles */
.donation-modal {
  width: 92vw;
  max-width: 680px;
  background: #ffffff;
  color: #222;
  border-radius: 18px;
  margin: auto;
  margin-top: auto; /* anchor to bottom */
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* slide-up effect specifically for donation sheet */
.modal-overlay.active .donation-modal {
  animation: donationSlideUp 280ms ease-out;
}

@keyframes donationSlideUp {
  from { transform: translateY(30%); opacity: 0.95; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* Grid-only header inside donation modal */
.grid-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px 12px; background: #ffffff; z-index: 2; border-top-left-radius: 18px; border-top-right-radius: 18px; }

.close-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; color: #333; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.total-pill { background: linear-gradient(180deg,#ff5a47 0%, #c82333 100%); color: #fff; font-weight: 900; border-radius: 24px; padding: 10px 18px; border: 4px solid #ffffff; box-shadow: 0 6px 16px rgba(0,0,0,0.25); position: absolute; right: 12px; }

.donation-instructions { padding: 4px 16px 12px 16px; }

.continue-fixed {
  position: fixed;
  max-width: 680px;
  margin: 0 auto;
  left: 16px;
  right: 16px;
  bottom: 80px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  z-index: 11002; /* above modal content */
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(13,110,253,0.35), 0 3px 8px rgba(0,0,0,0.25);
}

.contact-modal { width: 100vw; max-width: 720px; background: #ffffff; color: #222; border-radius: 16px 16px 0 0; margin: auto; margin-top: auto; }
.contact-modal .modal-header { background: #ffffff; padding:10px 20px; border-bottom: 1px solid #e9ecef; }
.contact-modal .modal-body { color: #222; padding:10px 20px;}

.campaign-info {
  margin-bottom: 20px;
}

.campaign-info h3 {
  margin: 0 0 15px 0;
  color: #222;
  font-size: 24px;
}

.goal-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.goal-item {
  flex: 1;
}

.goal-item .label {
  display: block;
  font-size: 14px;
  color: #bbb;
  margin-bottom: 5px;
}

.goal-item .value {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #4ecdc4;
}

.tiles-left {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 2px;
}

/* Grid Styles for Modal */
.grid-container {
    margin: 0 12px 16px 12px;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border: 1px solid #dcdfe3;
    border-radius: 14px;
    padding: 12px;
    padding-bottom: 120px;
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  /* Button mode: single column layout */
  .grid-container-buttons {
    grid-template-columns: repeat(1, 1fr);
  }

.modal-don-box { height: 72px; margin: 1%; background:
  linear-gradient(180deg,#6fb0ff 0%,#2e6eda 55%,#1e5cc2 100%); color: #ffffff; text-align: center;
  line-height: 72px; cursor: pointer; border-radius: 10px; transition: all 0.12s ease; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }

.modal-don-box:hover { filter: brightness(1.05); }

.modal-don-box.don-box-on { background: linear-gradient(180deg,#ff6b6b 0%,#ee5a24 100%) !important; color:
  #ffffff; transform: scale(1.02); box-shadow: 0 3px 10px rgba(238,90,36,0.3),
  inset 0 1px 0 rgba(255,255,255,0.35); }

.modal-don-box.don-box-taken { background: #f1f3f5 !important; color: #adb5bd; cursor: default; border-color: #e5e7eb; }

.modal-don-box.don-box-taken-no-i {
  background: #f1f3f5 !important;
  color: #868e96;
  cursor: default;
}

/* Form Styles for Modal */
.modal-checkout {
  margin-top: 20px;
}

.checkout-header {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.checkout-title {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.checkout-price {
  display: none;
  color: #dc3545;
  font-weight: 800;
}

.checkout-input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ced4da;
  border-radius: 10px;
  background: #ffffff;
  color: #222;
  font-size: 16px;
  box-sizing: border-box;
}

.checkout-input:focus {
  outline: none;
  border-color: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.checkout-input::placeholder {
  color: #888;
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #40c9c6 0%, #3d8b85 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Comments Modal Styles - Simplified */
.comments-modal {
  width: 90vw;
  max-width: 500px;
  max-height: 80vh;
}

#commentsContainer {
  max-height: 60vh;
  overflow-y: auto;
  padding-top: 5px;
}

.comment-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e9ecef;
}

.comment-header {
  margin-bottom: 8px;
}

.comment-donor {
  font-weight: 600;
  color: #212529;
  font-size: 15px;
  margin-bottom: 2px;
}

.comment-amounts {
  font-size: 13px;
  color: #6c757d;
}

.comment-text {
  color: #495057;
  line-height: 1.5;
  font-size: 14px;
  margin: 10px 0 8px 0;
}

.comment-date {
  font-size: 12px;
  color: #adb5bd;
}

.no-comments {
  text-align: center;
  color: #6c757d;
  padding: 40px 20px;
  font-size: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 20px;
}

/* Share Modal Styles */
.share-modal {
  width: 90vw;
  max-width: 400px;
}

.share-modal .modal-header {
  padding: 30px 30px 20px 30px;
}

.share-modal .modal-body {
  padding: 30px;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.share-btn {
  padding: 16px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.facebook-share {
  background: #3b5998;
  color: white;
}

.facebook-share:hover {
  background: #2d4373;
  transform: translateY(-2px);
}

.email-share {
  background: #34495e;
  color: white;
}

.email-share:hover {
  background: #2c3e50;
  transform: translateY(-2px);
}

.sms-share {
  background: #27ae60;
  color: white;
}

.sms-share:hover {
  background: #229954;
  transform: translateY(-2px);
}

.share-link-container {
  margin-top: 10px;
}

.share-link-container label {
  display: block;
  margin-bottom: 8px;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.link-copy-container {
  display: flex;
  gap: 10px;
}

.link-copy-container input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: #f8f9fa;
  color: #212529;
  font-size: 14px;
}

.copy-btn {
  padding: 12px 20px;
  background: #4ecdc4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #40c9c6;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .fab-container {
    right: 15px;
    bottom: 70px;
    gap: 12px;
    z-index: 10000;
  }
  
  .fab {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  
  .comment-count {
    min-width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    top: -8px !important;
    right: -8px !important;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    margin: 10px;
  }
  
  .donation-modal {
    width: 95vw;
  }
  
  .comments-modal {
    width: 95vw;
  }
  
  .share-modal {
    width: 95vw;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .goal-info {
    flex-direction: column;
    gap: 10px;
  } 
  
  .grid-container {
    max-height: 500px;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
  }

  /* Keep button mode as single column on mobile */
  .grid-container-buttons {
    grid-template-columns: repeat(1, 1fr);
  }
}
