/* ============================================
   Caribbean Community Support Platform
   Warm Caribbean Theme — Charity/Trust Site
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette */
  --coral: #FF6B6B;
  --teal: #4ECDC4;
  --gold: #F7DC6F;
  --green: #82E0AA;
  --purple: #B39DDB;
  --slate: #90A4AE;
  --bg-dark: #0d0d0d;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f0f0;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--coral);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

/* ---------- Animated Background Blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 20s infinite ease-in-out;
}

.blob--coral {
  width: 500px;
  height: 500px;
  background: var(--coral);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.blob--teal {
  width: 400px;
  height: 400px;
  background: var(--teal);
  top: 40%;
  right: -8%;
  animation-delay: -7s;
}

.blob--gold {
  width: 350px;
  height: 350px;
  background: var(--gold);
  bottom: -5%;
  left: 30%;
  animation-delay: -14s;
}

/* ---------- Keyframes ---------- */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(15px, 30px) scale(1.02);
  }
}

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
}

@keyframes progressFill {
  from {
    width: 0%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

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

/* ---------- Scroll-triggered Fade ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.3s var(--ease);
}

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

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-glass);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 20px 80px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
}

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

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

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

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

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

.btn-primary:hover {
  background: #e55a5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background: var(--teal);
  color: #0d0d0d;
}

.btn-secondary:hover {
  background: #3dbdb5;
  color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

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

.btn-danger:hover {
  background: #e04545;
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

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

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--teal);
  color: #0d0d0d;
  border-color: var(--teal);
}

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

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Case Card ---------- */
.case-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: fadeInUp 0.5s var(--ease) both;
}

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

.case-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-image .placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  color: var(--text-muted);
}

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

.case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.case-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.case-card-country {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.case-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.case-card-footer .btn-primary,
.case-card-footer .btn-outline {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* ---------- Category Badge ---------- */
.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.category-badge.medical {
  background: rgba(255, 107, 107, 0.15);
  color: var(--coral);
}

.category-badge.disability {
  background: rgba(78, 205, 196, 0.15);
  color: var(--teal);
}

.category-badge.disaster {
  background: rgba(247, 220, 111, 0.15);
  color: var(--gold);
}

.category-badge.education {
  background: rgba(130, 224, 170, 0.15);
  color: var(--green);
}

.category-badge.housing {
  background: rgba(179, 157, 219, 0.15);
  color: var(--purple);
}

.category-badge.other {
  background: rgba(144, 164, 174, 0.15);
  color: var(--slate);
}

/* ---------- Progress Bar ---------- */
.progress-bar-wrap {
  margin-bottom: 4px;
}

.progress-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.progress-bar-header .amount {
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  animation: progressFill 1s var(--ease) both;
  transition: width 0.5s var(--ease);
}

.progress-percentage {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  text-align: right;
  margin-top: 4px;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 1.05rem;
}

/* ---------- Load More ---------- */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #1a1a1a;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: fadeInUp 0.3s var(--ease);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  padding-right: 40px;
}

.modal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  white-space: pre-line;
}

.modal-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.modal-photos img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
}

.modal-progress {
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn-primary,
.modal-actions .btn-outline {
  flex: 1;
}

/* ---------- Help Form ---------- */
.help-form {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--teal);
}

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

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

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .help-form {
    padding: 24px;
  }
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--coral);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.08);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2390A4AE' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option {
  background: #1a1a1a;
  color: var(--text-primary);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--coral);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: var(--coral);
}

.form-group.has-error .form-error {
  display: block;
}

/* ---------- Urgency Selector ---------- */
.urgency-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .urgency-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

.urgency-option {
  padding: 12px 8px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s var(--ease);
  font-size: 0.85rem;
  font-weight: 500;
}

.urgency-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.urgency-option .urgency-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 6px;
}

.urgency-option .urgency-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.urgency-option[data-urgency="low"] .urgency-dot {
  background: var(--green);
}

.urgency-option[data-urgency="medium"] .urgency-dot {
  background: var(--gold);
}

.urgency-option[data-urgency="high"] .urgency-dot {
  background: var(--coral);
}

.urgency-option[data-urgency="critical"] .urgency-dot {
  background: #e53935;
  animation: pulse 1.5s infinite;
}

.urgency-option.selected {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.urgency-option[data-urgency="low"].selected {
  color: var(--green);
  border-color: var(--green);
}

.urgency-option[data-urgency="medium"].selected {
  color: var(--gold);
  border-color: var(--gold);
}

.urgency-option[data-urgency="high"].selected {
  color: var(--coral);
  border-color: var(--coral);
}

.urgency-option[data-urgency="critical"].selected {
  color: #e53935;
  border-color: #e53935;
}

input[name="urgency"] {
  display: none;
}

/* ---------- File Dropzone ---------- */
.file-dropzone {
  border: 2px dashed var(--border-glass);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  background: rgba(255, 255, 255, 0.02);
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--teal);
  background: rgba(78, 205, 196, 0.05);
}

.file-dropzone-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.file-dropzone-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.file-dropzone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.file-dropzone input[type="file"] {
  display: none;
}

.file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.file-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview .file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.file-preview .file-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.file-preview:hover .file-remove {
  opacity: 1;
}

/* ---------- Form Success ---------- */
.form-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--green);
}

.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
}

/* ---------- Success Stories Section ---------- */
.success-stories {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.stories-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.stories-scroll::-webkit-scrollbar {
  height: 6px;
}

.stories-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.stories-scroll::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 3px;
}

.story-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.story-card:hover {
  transform: translateY(-4px);
}

.story-card-image {
  height: 160px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green);
  color: #0d0d0d;
}

.story-card-body {
  padding: 16px;
}

.story-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.story-card-amount {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
}

.footer-brand h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

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

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
  }
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--teal);
  color: #0d0d0d;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  min-width: 280px;
  max-width: 400px;
  animation: toastIn 0.3s var(--ease);
  font-size: 0.9rem;
}

.toast.removing {
  animation: toastOut 0.3s var(--ease) forwards;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.success .toast-icon {
  color: var(--green);
}

.toast.error {
  border-left: 3px solid var(--coral);
}

.toast.error .toast-icon {
  color: var(--coral);
}

.toast.info {
  border-left: 3px solid var(--teal);
}

.toast.info .toast-icon {
  color: var(--teal);
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ===========================================================
   ADMIN PANEL STYLES
   =========================================================== */

/* ---------- Admin Login ---------- */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.login-card .form-group {
  text-align: left;
}

.login-error {
  color: var(--coral);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.login-error.show {
  display: block;
}

/* ---------- Admin Layout ---------- */
.admin-layout {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.admin-layout.active {
  display: flex;
}

.admin-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.admin-topbar h1 {
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-topbar h1 span {
  color: var(--teal);
}

.admin-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 220px;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  padding: 20px 0;
  z-index: 90;
}

.admin-sidebar-nav {
  list-style: none;
}

.admin-sidebar-nav li {
  margin-bottom: 4px;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  border-left: 3px solid transparent;
}

.admin-sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.admin-sidebar-nav a.active {
  background: rgba(78, 205, 196, 0.08);
  color: var(--teal);
  border-left-color: var(--teal);
}

.admin-main {
  flex: 1;
  margin-left: 220px;
  margin-top: 60px;
  padding: 32px;
  min-height: calc(100vh - 60px);
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
  animation: fadeInUp 0.3s var(--ease);
}

/* ---------- Admin Stats Cards ---------- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px;
}

.admin-stat-card .stat-label {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.admin-stat-card .stat-number {
  font-size: 2rem;
}

/* ---------- Request Card (Admin) ---------- */
.request-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.3s var(--ease);
}

.request-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.request-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.request-card-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.request-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.request-card-preview {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.request-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.request-card-expand {
  background: none;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 0;
}

.request-card-expand:hover {
  text-decoration: underline;
}

.request-card-details {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.request-card-details.open {
  display: block;
}

.request-detail-row {
  margin-bottom: 12px;
}

.request-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.request-detail-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.request-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ---------- Status Pill ---------- */
.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pill.pending {
  background: rgba(247, 220, 111, 0.15);
  color: var(--gold);
}

.status-pill.reviewing {
  background: rgba(78, 205, 196, 0.15);
  color: var(--teal);
}

.status-pill.approved {
  background: rgba(130, 224, 170, 0.15);
  color: var(--green);
}

.status-pill.rejected {
  background: rgba(255, 107, 107, 0.15);
  color: var(--coral);
}

.status-pill.completed {
  background: rgba(179, 157, 219, 0.15);
  color: var(--purple);
}

/* Urgency badges */
.urgency-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.urgency-badge.low {
  background: rgba(130, 224, 170, 0.15);
  color: var(--green);
}

.urgency-badge.medium {
  background: rgba(247, 220, 111, 0.15);
  color: var(--gold);
}

.urgency-badge.high {
  background: rgba(255, 107, 107, 0.15);
  color: var(--coral);
}

.urgency-badge.critical {
  background: rgba(229, 57, 53, 0.2);
  color: #e53935;
  animation: pulse 1.5s infinite;
}

/* ---------- Donation Form (Inline) ---------- */
.donation-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
}

.donation-form h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--teal);
}

/* ---------- Admin Table ---------- */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table .total-row td {
  font-weight: 700;
  background: rgba(78, 205, 196, 0.05);
  color: var(--teal);
}

/* ---------- Admin Config / Settings ---------- */
.config-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .config-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scrollbar Styles ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Approve Modal ---------- */
.approve-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

/* ---------- Misc helpers ---------- */
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
