/* Google Fonts - English & Indic Scripts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Kannada:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Telugu:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

/* macOS-Inspired Design System */
:root {
  /* Base colors - Clean, modern palette inspired by macOS */
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --bg-dark: #1d1d1f;

  /* Primary - Warm saffron with Apple-like vibrancy */
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #ff8f66;
  --primary-gradient: linear-gradient(180deg, #ff8f66 0%, #ff6b35 100%);

  /* Accent - Golden amber */
  --accent: #ffb84d;
  --accent-gradient: linear-gradient(180deg, #ffc966 0%, #ffb84d 100%);

  /* Text */
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --muted: #86868b;

  /* Borders & Surfaces */
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(255, 255, 255, 0.2);
  --divider: #d2d2d7;

  /* Radius - macOS style rounded corners */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows - Soft, layered macOS-style */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.15);

  /* Glass effect - macOS frosted glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-dark: rgba(29, 29, 31, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: blur(20px);
  --glass-saturate: saturate(180%);

  /* Layout */
  --max-width: 1120px;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-kannada: 'Noto Sans Kannada', var(--font-main);
  --font-tamil: 'Noto Sans Tamil', var(--font-main);
  --font-telugu: 'Noto Sans Telugu', var(--font-main);
  --font-hindi: 'Noto Sans Devanagari', var(--font-main);

  /* Transitions - Smooth macOS-like animations */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Language-specific font override */
html[lang="kn"] body,
html[lang="kn"] .site-nav,
html[lang="kn"] .form,
html[lang="kn"] .card,
html[lang="kn"] .btn,
html[lang="kn"] h1,
html[lang="kn"] h2,
html[lang="kn"] h3,
html[lang="kn"] h4,
html[lang="kn"] p,
html[lang="kn"] li,
html[lang="kn"] label,
html[lang="kn"] span {
  font-family: var(--font-kannada) !important;
}

html[lang="ta"] body,
html[lang="ta"] .site-nav,
html[lang="ta"] .form,
html[lang="ta"] .card,
html[lang="ta"] .btn,
html[lang="ta"] h1,
html[lang="ta"] h2,
html[lang="ta"] h3,
html[lang="ta"] h4,
html[lang="ta"] p,
html[lang="ta"] li,
html[lang="ta"] label,
html[lang="ta"] span {
  font-family: var(--font-tamil) !important;
}

html[lang="te"] body,
html[lang="te"] .site-nav,
html[lang="te"] .form,
html[lang="te"] .card,
html[lang="te"] .btn,
html[lang="te"] h1,
html[lang="te"] h2,
html[lang="te"] h3,
html[lang="te"] h4,
html[lang="te"] p,
html[lang="te"] li,
html[lang="te"] label,
html[lang="te"] span {
  font-family: var(--font-telugu) !important;
}

html[lang="hi"] body,
html[lang="hi"] .site-nav,
html[lang="hi"] .form,
html[lang="hi"] .card,
html[lang="hi"] .btn,
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] p,
html[lang="hi"] li,
html[lang="hi"] label,
html[lang="hi"] span {
  font-family: var(--font-hindi) !important;
}

/* Global reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  /* macOS-inspired subtle mesh gradient */
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(255, 184, 77, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 107, 53, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  opacity: 0;
  animation: pageFadeIn 0.4s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header - macOS Frosted Glass */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffb84d 0%, #ff6b35 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  box-shadow:
    0 2px 8px rgba(255, 107, 53, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Navigation - Clean macOS Style */

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.site-nav a.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 4px 0;
  border-radius: 999px;
  transition: all var(--transition-fast);
}

/* Hero (home page) */

.hero {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(circle closest-side, rgba(243, 156, 18, 0.03), transparent);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7e7c5, #e6cfaa);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #5a4630;
}

/* Generic sections */

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
}

/* Cards and grids - macOS Style */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-alt);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Glossy highlight effect */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.8) 20%,
      rgba(255, 255, 255, 0.8) 80%,
      transparent);
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Two-column layout */

.columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Branch cards */

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.branch-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.branch-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA box - macOS Frosted Glass */

.cta-box {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 248, 240, 0.85));
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  box-shadow:
    var(--shadow-lg),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay for depth */
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  pointer-events: none;
}

.cta-box h2 {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.cta-box p {
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  position: relative;
  z-index: 1;
}

/* Buttons - macOS Glossy Style */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 12px rgba(255, 107, 53, 0.35);
  position: relative;
  overflow: hidden;
}

/* Glossy shine overlay */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 20px rgba(255, 107, 53, 0.45),
    var(--shadow-glow);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.btn-outline::before {
  display: none;
}

.btn-outline:hover {
  background: rgba(255, 107, 53, 0.08);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Lists */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  top: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Page hero (inner pages) */

.page-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 0.4rem;
}

.page-hero p {
  margin-top: 0;
  color: var(--muted);
}

/* Forms - macOS Clean Style */

.form {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
  background: #fff;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted);
}

.form-row input:hover,
.form-row textarea:hover,
.form-row select:hover {
  border-color: #b0b0b5;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  background: #fff;
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* Checkbox and Radio Button Styles - macOS Clean Style */

/* Label container for checkboxes and radio buttons */
.form-row label:has(input[type="checkbox"]),
.form-row label:has(input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
  position: relative;
  padding: 0.5rem 0;
}

/* Hide default checkbox and radio */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--divider);
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Checkbox specific - rounded square */
input[type="checkbox"] {
  border-radius: 5px;
}

/* Radio specific - circle */
input[type="radio"] {
  border-radius: 50%;
}

/* Hover state */
input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: #b0b0b5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Focus state */
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* Checked state */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--primary-gradient);
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

/* Checkbox checkmark */
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}

/* Radio dot */
input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Disabled state */
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="checkbox"]:disabled+label,
input[type="radio"]:disabled+label {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Proper alignment for inline checkbox/radio groups */
.form-row:has(input[type="checkbox"]),
.form-row:has(input[type="radio"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Form messages - macOS style alerts */

.form-message {
  padding: 0.875rem 1rem;
  margin: 1rem 0 0 0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  background: rgba(52, 199, 89, 0.12);
  color: #1d7a34;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.form-message.error {
  background: rgba(255, 59, 48, 0.12);
  color: #c41e16;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

/* Footer - macOS Dark Style */

.site-footer {
  padding: 3rem 0 1.5rem;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */

@media (max-width: 800px) {

  .hero-grid,
  .columns-2,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .cta-box {
    padding: 1.4rem 1.1rem;
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1.25rem 0.9rem;
    gap: 0.4rem;
  }

  .nav-toggle {
    display: block;
  }

}

/* Donor portal specific styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-alt);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Glossy highlight effect */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.8) 20%,
      rgba(255, 255, 255, 0.8) 80%,
      transparent);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.donation-table {
  width: 100%;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.donation-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.donation-table th,
.donation-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.donation-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.donation-table tbody tr {
  transition: background var(--transition-fast);
}

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

.donation-table tbody tr:hover {
  background: rgba(255, 107, 53, 0.04);
}

@media (max-width: 720px) {

  .donation-table th,
  .donation-table td {
    padding: 0.75rem 0.875rem;
    font-size: 0.85rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-success {
  background: rgba(52, 199, 89, 0.15);
  color: #1d7a34;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.badge-pending {
  background: rgba(255, 184, 77, 0.15);
  color: #9b6d0c;
  border: 1px solid rgba(255, 184, 77, 0.3);
}

.profile-section {
  background: var(--bg-alt);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Glossy highlight effect */
.profile-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.8) 20%,
      rgba(255, 255, 255, 0.8) 80%,
      transparent);
}

.profile-section h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logout-link {
  color: #dc3545;
  transition: color var(--transition-fast);
}

.logout-link:hover {
  color: #a52834;
  text-decoration: none;
}

/* Additional responsive improvements */
@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .profile-section {
    padding: 1.5rem;
  }

  .branches-grid {
    grid-template-columns: 1fr;
  }
}

/* Language Switcher - macOS Style */
.lang-container {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}

.custom-select-wrapper {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-main);
  min-width: 100px;
}

.custom-select-trigger:hover {
  border-color: #b0b0b5;
  background: #fff;
}

.custom-select-trigger[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  background: #fff;
}

.custom-select-arrow {
  display: block;
  width: 6px;
  height: 6px;
  border-bottom: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: all var(--transition-fast);
}

.custom-select-trigger:hover .custom-select-arrow {
  border-color: var(--text);
}

.custom-select-trigger[aria-expanded="true"] .custom-select-arrow {
  transform: rotate(-135deg) translateY(2px);
  border-color: var(--primary);
}

.custom-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg-alt);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  visibility: hidden;
  transition: all var(--transition);
  padding: 0.375rem;
}

.custom-options.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.custom-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-main);
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.custom-option:hover {
  background: rgba(0, 0, 0, 0.04);
}

.custom-option.selected {
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  font-weight: 600;
}

/* Checkmark for selected item */
.custom-option.selected::before {
  content: '✓';
  margin-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Hide native select visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}