:root {
  --primary: #e5057e;
  --primary-hover: #c40469;
  --primary-active: #a8035b;
  --primary-soft: #fdeaf3;
  --primary-gradient: linear-gradient(135deg, #e5057e 0%, #ff5e62 100%);

  --ink: #1b1b3a;
  --text: #4a4a68;
  --muted: #8a8aa3;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --border: #e8e8f0;

  --success: #00b67a;
  --success-soft: #e6f7f0;
  --warning: #ffb020;
  --danger: #e5484d;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(27, 27, 58, 0.08);
  --shadow-md: 0 6px 20px rgba(27, 27, 58, 0.1);
  --shadow-lg: 0 16px 44px rgba(27, 27, 58, 0.14);

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --transition: 0.25s ease;
  --header-height: 76px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 96px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn:focus-visible {
  outline: 3px solid rgba(229, 5, 126, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(229, 5, 126, 0.32);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(229, 5, 126, 0.38);
}

.btn-primary:active {
  background: var(--primary-active);
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 17px;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 6px 16px rgba(229, 5, 126, 0.35);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.logo-dot {
  color: var(--primary);
}

.logo-light .logo-text {
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-block: 72px 56px;
}

.footer-desc {
  margin-top: 18px;
  max-width: 320px;
  font-size: 15px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.55);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  background:
    radial-gradient(55% 75% at 88% 8%, rgba(229, 5, 126, 0.09), transparent 62%),
    radial-gradient(45% 65% at 6% 92%, rgba(255, 94, 98, 0.09), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero-content > * {
  animation: fadeUp 0.7s ease both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }
.hero-content > *:nth-child(5) { animation-delay: 0.4s; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 18px;
  max-width: 520px;
  font-size: 18px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  max-width: 580px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(229, 5, 126, 0.12), var(--shadow-lg);
}

.hero-search-icon {
  flex-shrink: 0;
  color: var(--muted);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}

.hero-search input::placeholder {
  color: var(--muted);
}

.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.tag {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
}

.mock-card {
  max-width: 420px;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(2deg);
  transition: transform var(--transition);
}

.mock-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.mock-cover {
  display: grid;
  place-items: center;
  height: 190px;
  background: var(--primary-gradient);
}

.mock-body {
  padding: 26px;
}

.mock-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mock-body h3 {
  margin-top: 14px;
  font-size: 19px;
}

.mock-progress {
  height: 10px;
  margin-top: 18px;
  border-radius: var(--radius-full);
  background: #f0f0f5;
  overflow: hidden;
}

.mock-progress-bar {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  animation: mockGrow 1.4s ease-out both;
}

@keyframes mockGrow {
  from { width: 0; }
}

.mock-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.mock-meta strong {
  font-size: 19px;
  color: var(--ink);
}

.mock-meta span {
  font-size: 13px;
  color: var(--muted);
}

.mock-float {
  position: absolute;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  animation: float 5s ease-in-out infinite;
}

.mock-float-success {
  top: 28px;
  left: -6px;
}

.mock-float-hearts {
  right: -4px;
  bottom: 40px;
  animation-delay: 2.5s;
}

@keyframes float {
  50% { transform: translateY(-12px); }
}

.hero-stats {
  margin-top: 84px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 36px;
}

.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.stat > span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

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

.section-head {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1px;
}

.section-head p {
  margin-top: 14px;
  font-size: 17px;
}

.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

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

.pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(229, 5, 126, 0.3);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  padding: 11px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(229, 5, 126, 0.12);
}

.filter-search svg {
  flex-shrink: 0;
  color: var(--muted);
}

.filter-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

.filter-search input::placeholder {
  color: var(--muted);
}

.results-count {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

.fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.fund-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.fund-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 180px;
  overflow: hidden;
}

.fund-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fund-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(27, 27, 58, 0.75);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

.fund-delete:hover {
  background: #d92662;
}

.fund-emoji {
  font-size: 64px;
  filter: drop-shadow(0 8px 16px rgba(27, 27, 58, 0.25));
  transition: transform var(--transition);
}

.image-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-preview {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition);
}

.image-preview:hover {
  border-color: var(--primary);
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.image-preview-empty {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.image-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.image-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
}

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

.image-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(27, 27, 58, 0.7);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.image-add {
  width: 100%;
  padding: 12px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.image-add:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.fund-gallery {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.detail-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(27, 27, 58, 0.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.gallery-nav:hover {
  background: rgba(27, 27, 58, 0.8);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(27, 27, 58, 0.6);
  color: #fff;
  font-size: 12px;
}

.detail-main .detail-gallery .gallery-nav {
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.modal-admin .modal {
  max-width: 720px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  max-height: 60vh;
  overflow-y: auto;
}

.admin-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.admin-thumb {
  width: 84px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.admin-row-info {
  flex: 1;
  min-width: 0;
}

.admin-row-info strong {
  display: block;
  font-size: 15px;
}

.admin-row-info span {
  font-size: 12.5px;
  color: var(--text);
}

.admin-row-info p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text);
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fund-card:hover .fund-emoji {
  transform: scale(1.12) rotate(-4deg);
}

.fund-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.fund-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.fund-title {
  font-size: 17.5px;
  line-height: 1.35;
}

.fund-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.fund-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.fund-progress {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: #f0f0f5;
  overflow: hidden;
}

.fund-progress span {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
}

.fund-percent {
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--primary);
}

.fund-stats strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  color: var(--ink);
}

.fund-stats span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.fund-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 13.5px;
  color: var(--muted);
}

.fund-body .btn {
  margin-top: 18px;
}

.empty-state {
  margin-top: 24px;
  padding: 64px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

.empty-state span {
  font-size: 48px;
}

.empty-state h3 {
  margin-top: 14px;
}

.empty-state p {
  margin-top: 6px;
  color: var(--muted);
}

.empty-state .btn {
  margin-top: 22px;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.scroll-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
}

[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(27, 27, 58, 0.55);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalUp 0.3s ease;
}

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

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.modal-head {
  text-align: center;
}

.modal-logo {
  margin-inline: auto;
}

.modal-head h2 {
  margin-top: 16px;
  font-size: 26px;
}

.modal-sub {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.form-group > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-control {
  position: relative;
}

.form-control input {
  width: 100%;
  padding: 12px 46px 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(229, 5, 126, 0.1);
}

.form-control input.is-invalid {
  border-color: var(--danger);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--danger);
}

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

.form-hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.link-btn {
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 12px);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-success {
  background: var(--success);
}

.toast-error {
  background: var(--danger);
}

.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
  min-height: 110px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(229, 5, 126, 0.1);
}

.form-group textarea.is-invalid {
  border-color: var(--danger);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(27, 27, 58, 0.22);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(27, 27, 58, 0.28);
}

.modal-wizard {
  max-width: 560px;
}

.wizard-head h2 {
  font-size: 24px;
}

.wizard-progress {
  height: 8px;
  margin-top: 18px;
  border-radius: var(--radius-full);
  background: #f0f0f5;
  overflow: hidden;
}

.wizard-progress-bar {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  transition: width 0.35s ease;
}

.wizard-step-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.wizard-step h3 {
  margin-top: 26px;
  font-size: 19px;
}

.wizard-hint {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.wizard-step:not([hidden]) {
  animation: fadeIn 0.3s ease;
}

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

.template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
}

.template-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.template-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(229, 5, 126, 0.12);
}

.template-emoji {
  font-size: 30px;
}

.template-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.template-category {
  font-size: 12px;
  color: var(--muted);
}

.wizard-preview {
  margin-top: 18px;
}

.wizard-nav {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.wizard-nav .btn {
  flex: 1;
}

.modal-detail {
  max-width: 600px;
  padding: 0;
}

.modal-detail .modal-close {
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
}

.detail-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
}

.detail-emoji {
  font-size: 84px;
  filter: drop-shadow(0 10px 20px rgba(27, 27, 58, 0.3));
}

.detail-body {
  padding: 30px;
}

.detail-body h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}

.detail-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.detail-progress-row .fund-progress {
  height: 10px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.detail-stat {
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  text-align: center;
}

.detail-stat strong {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
}

.detail-stat span {
  font-size: 12px;
  color: var(--muted);
}

.detail-story {
  margin-top: 22px;
  font-size: 15px;
  white-space: pre-line;
}

.detail-donations {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.detail-donations h4 {
  font-size: 15px;
}

.donation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

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

.donation-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.donation-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.donation-info strong {
  font-size: 14px;
  color: var(--ink);
}

.donation-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}

.donation-amount {
  white-space: nowrap;
  font-size: 14.5px;
  color: var(--success);
}

.donations-empty {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.detail-body .btn {
  margin-top: 24px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.amount-btn {
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
}

.amount-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.amount-btn.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(229, 5, 126, 0.3);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
}

.payment-btn:hover {
  border-color: var(--primary);
}

.payment-btn.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(229, 5, 126, 0.12);
}

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

.payment-icon svg {
  width: 26px;
  height: 26px;
}

.payment-btn.is-selected .payment-icon {
  color: var(--primary);
}

.donation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 14.5px;
  color: var(--muted);
}

.donation-summary strong {
  font-size: 20px;
  color: var(--ink);
}

.payment-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.donation-success {
  padding: 24px 0 8px;
  text-align: center;
}

.success-icon {
  display: inline-block;
  font-size: 64px;
  animation: popIn 0.45s cubic-bezier(0.68, -0.55, 0.27, 1.55) both;
}

@keyframes popIn {
  from { transform: scale(0); }
}

.donation-success h2 {
  margin-top: 18px;
}

.donation-success p {
  margin-top: 10px;
  color: var(--text);
}

.donation-success .btn {
  margin-top: 26px;
}

.donation-success .btn + .btn {
  margin-top: 10px;
}

.donation-success .link-btn {
  margin-top: 14px;
}

.pending-timer-wrap {
  margin-top: 20px;
}

.pending-timer-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.pending-timer-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 1s linear;
}

.pending-timer-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.pending-warning {
  margin-top: 10px;
  font-size: 13px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

.blik-code {
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  background: #f0fdf4;
  border: 2px dashed var(--primary);
  border-radius: 10px;
  padding: 10px 20px;
  margin: 8px 0;
  font-family: monospace;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.how-card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.how-number {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--primary-soft);
}

.how-icon {
  font-size: 40px;
}

.how-card h3 {
  margin-top: 18px;
  font-size: 19px;
}

.how-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.trust-card {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.trust-card span {
  font-size: 34px;
}

.trust-card h3 {
  margin-top: 14px;
  font-size: 17px;
}

.trust-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.cta-section {
  padding-block: 40px 96px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  border-radius: var(--radius-lg);
  background: var(--primary-gradient);
  box-shadow: 0 24px 60px rgba(229, 5, 126, 0.35);
  text-align: center;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
}

.cta-box::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
}

.cta-box p {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-box .btn {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

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

  .main-nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .mock-card {
    margin-inline: auto;
    transform: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search {
    min-width: 0;
  }

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

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .section {
    padding-block: 64px;
  }

  .modal {
    padding: 30px 22px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 8px;
  }

  .modal-overlay {
    padding: 12px;
  }

  #createFundraiserBtn {
    display: none;
  }

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

  .cta-box {
    padding: 48px 22px;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-search {
    flex-wrap: wrap;
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .hero-search input {
    flex: 1 1 100%;
    padding: 8px 4px;
  }

  .hero-search .btn {
    flex: 1 1 100%;
  }

  .stat strong {
    font-size: 24px;
  }

  .mock-float-success {
    left: 0;
  }

  .mock-float-hearts {
    right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 56px 40px;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 400px) {

  .detail-body {
    padding: 22px 18px;
  }

  .detail-stats {
    gap: 8px;
  }

  .wizard-nav {
    flex-direction: column-reverse;
  }
}

body.detail-open main,
body.detail-open .site-footer {
  display: none;
}

.detail-page {
  display: none;
}

body.detail-open .detail-page {
  display: block;
  padding-block: 40px 96px;
  animation: fadeIn 0.3s ease;
}

.detail-back {
  margin-bottom: 28px;
}

.detail-category {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-heading {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.detail-main .detail-cover {
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail-story {
  margin-top: 28px;
  font-size: 16.5px;
  white-space: pre-line;
}

.detail-donations {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.donate-box {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.donate-box-stats strong {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  color: var(--ink);
}

.donate-box-stats span {
  font-size: 13.5px;
  color: var(--muted);
}

.donate-box .btn {
  margin-top: 22px;
}

.donate-box .payment-note {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    order: -1;
  }

  .donate-box {
    position: static;
  }

  .detail-main .detail-cover {
    height: 220px;
  }
}

.main-nav a.is-active {
  color: var(--primary);
}

.main-nav a.is-active::after {
  transform: scaleX(1);
}

.home-more {
  margin-top: 36px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.contact-card {
  padding: 34px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.contact-card span {
  font-size: 38px;
}

.contact-card h3 {
  margin-top: 14px;
  font-size: 17px;
}

.contact-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin: 56px auto 0;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

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

@media (max-width: 560px) {
  .contact-form {
    padding: 26px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.how-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background: var(--primary-gradient);
  box-shadow: 0 20px 50px rgba(229, 5, 126, 0.32);
}

.how-fact {
  text-align: center;
}

.how-fact strong {
  display: block;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}

.how-fact span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 720px) {
  .admin-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-thumb {
    width: 100%;
    height: 120px;
  }

  .admin-actions {
    flex-direction: row;
  }
}

.faq-head {
  margin-top: 96px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
  margin: 48px auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-item.is-open {
  border-color: rgba(229, 5, 126, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 19px;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.faq-item.is-open .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 320px;
}

.faq-answer p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.compare-wrap {
  max-width: 860px;
  margin: 72px auto 0;
}

.compare-wrap h3,
.fees-explainer h3 {
  text-align: center;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.table-scroll {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

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

.compare-table th {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.compare-table .highlight {
  background: var(--primary-soft);
}

.compare-table thead .highlight {
  color: var(--primary);
}

.compare-table .ok {
  font-weight: 700;
  color: var(--success);
}

.compare-table .bad {
  color: var(--muted);
}

.fees-explainer {
  max-width: 860px;
  margin: 56px auto 0;
  padding: 44px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.fee-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.fee-step {
  flex: 1 1 180px;
  max-width: 220px;
  padding: 24px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.fee-step strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.fee-step span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.fee-step-final {
  background: var(--success-soft);
}

.fee-step-final strong {
  color: var(--success);
}

.fee-arrow {
  align-self: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.fees-note {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .how-banner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 28px;
  }
}

@media (max-width: 560px) {
  .fee-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .fee-step {
    max-width: none;
  }

  .fee-arrow {
    transform: rotate(90deg);
  }

  .fees-explainer {
    padding: 32px 22px;
  }

  .compare-table th,
  .compare-table td {
    padding: 13px 14px;
  }
}
