.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(55,33,30,.45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(570px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 22px; background: white; box-shadow: 0 28px 80px rgba(50,28,24,.26); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; margin: 0; }
.modal-header p { color: var(--soft-muted); font-size: 11px; margin: 5px 0 0; }
.modal-form { padding: 20px 24px 24px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.field > span { font-size: 11px; font-weight: 700; }
.field b { color: var(--brand); margin-left: 3px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #e3d7d0; border-radius: 11px; background: #fffcfa; padding: 11px 12px; color: var(--ink); outline: none; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #dd8a78; box-shadow: 0 0 0 3px rgba(228,95,72,.09); }
.card-upload { min-height: 83px; border: 1px dashed #d9c9c0; border-radius: 14px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fffbf8; }
.card-upload > div { display: grid; grid-template-columns: 35px 1fr; column-gap: 10px; align-items: center; }
.card-upload svg { grid-row: 1 / 3; color: var(--brand); }
.card-upload strong { font-size: 11px; }
.card-upload span { color: var(--soft-muted); font-size: 9px; margin-top: 3px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 21px; }
.photo-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-option { height: 88px; border: 2px solid transparent; border-radius: 12px; padding: 0; }
.photo-option.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(228,95,72,.11); }
.photo-option > span:last-child { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: white; display: grid; place-items: center; }
.notify-preview { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 12px; color: #5e6957; background: #edf3ea; }
.notify-preview > div { display: flex; flex-direction: column; }
.notify-preview strong { font-size: 10px; }
.notify-preview span { font-size: 9px; line-height: 1.4; margin-top: 3px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 25px; transform: translateX(-50%); min-height: 44px; border-radius: 13px; padding: 0 16px 0 8px; display: flex; align-items: center; gap: 9px; color: white; background: #493732; box-shadow: 0 15px 40px rgba(55,33,30,.25); font-size: 11px; font-weight: 600; animation: toastIn .25s ease-out; }
.toast > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

.giver-shell { min-height: 100vh; background: #fffaf5; }
.giver-topbar { height: 70px; max-width: 1180px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.giver-brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; }
.giver-brand .brand-mark { width: 35px; height: 35px; border-radius: 12px; }
.giver-main { max-width: 1080px; margin: 0 auto; padding: 45px 28px 80px; }
.giver-hero { text-align: center; max-width: 720px; margin: 0 auto 65px; }
.giver-hero h1 { font-size: clamp(45px, 7vw, 76px); margin-top: 15px; }
.giver-hero > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.giver-profile { width: max-content; max-width: 100%; margin: 25px auto 0; border: 1px solid var(--line); border-radius: 15px; padding: 9px 14px 9px 9px; display: flex; align-items: center; gap: 10px; background: white; box-shadow: 0 8px 25px rgba(77,44,37,.05); }
.giver-profile > div:last-child { display: flex; flex-direction: column; text-align: left; }
.giver-profile strong { font-size: 11px; }
.giver-profile span { color: var(--soft-muted); font-size: 9px; margin-top: 3px; }
.giver-gallery { display: grid; gap: 70px; }
.giver-story { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 65px; }
.giver-story.reverse .giver-photo { order: 2; }
.giver-photo { height: 430px; border-radius: 27px; box-shadow: var(--shadow); }
.giver-story-copy h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; line-height: 1.1; margin: 10px 0 13px; }
.giver-story-copy > p { color: var(--muted); font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.55; }
.heart-button { margin-top: 20px; min-height: 42px; border-radius: 12px; border: 1px solid #ead7cf; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); background: white; font-weight: 700; font-size: 11px; }
.giver-note { margin-top: 80px; padding: 55px 30px; text-align: center; border-radius: 28px; background: linear-gradient(145deg, #f8e3d8, #fff0e6); }
.giver-note .helper-icon { margin: 0 auto 16px; background: white; }
.giver-note h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 31px; margin: 0; }
.giver-note p { color: var(--muted); font-size: 12px; margin: 10px 0 20px; }
.giver-footer { min-height: 65px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; color: var(--soft-muted); font-size: 9px; padding: 0 28px; }

@media (max-width: 1100px) {
  .hero-panel { padding: 40px; }
  .hero-art { width: 350px; transform: scale(.9); transform-origin: right center; margin-left: -10px; }
  .moment-grid { grid-template-columns: repeat(2, 1fr); }
  .moment-grid .moment-card:nth-child(3) { display: none; }
  .updates-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 25px 0 70px rgba(45,25,20,.15); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-close { display: inline-grid !important; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 29; border: 0; background: rgba(55,33,30,.35); }
  .main-content { width: 100%; margin-left: 0; }
  .mobile-menu { display: inline-grid !important; }
  .topbar-title { margin-right: auto; margin-left: 8px; }
  .dashboard-grid, .thanks-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-art { display: none; }
  .hero-copy { max-width: 670px; }
  .giver-story { gap: 35px; }
}

@media (max-width: 650px) {
  .topbar { padding: 0 16px; height: 66px; }
  .topbar-title span, .hide-mobile { display: none !important; }
  .hide-small { display: none; }
  .show-small { display: inline; }
  .page-wrap { padding: 20px 15px 40px; }
  .hero-panel { min-height: auto; padding: 32px 24px; border-radius: 20px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy p { font-size: 13px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 132px; padding: 15px; }
  .content-card { padding: 17px; border-radius: 17px; }
  .moment-grid { grid-template-columns: 1fr; }
  .moment-grid .moment-card:nth-child(3), .moment-grid .moment-card:nth-child(2) { display: block; }
  .section-heading, .page-header { align-items: flex-start; flex-direction: column; }
  .section-actions { width: 100%; flex-wrap: wrap; }
  .section-actions .secondary-button, .section-actions .primary-button { flex: 1; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-field { min-width: 0; width: 100%; }
  .updates-full-grid { grid-template-columns: 1fr; }
  .updates-full-grid .moment-image { height: 210px; }
  .thank-title { flex-direction: column; gap: 3px; }
  .photo-picker { grid-template-columns: repeat(2, 1fr); }
  .card-upload { align-items: flex-start; flex-direction: column; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { border-radius: 21px 21px 0 0; max-height: 92vh; }
  .giver-topbar { padding: 0 15px; }
  .giver-topbar .secondary-button { font-size: 0; padding: 0 11px; }
  .giver-topbar .secondary-button svg { margin: 0; }
  .giver-main { padding: 35px 18px 60px; }
  .giver-hero { margin-bottom: 45px; }
  .giver-hero h1 { font-size: 48px; }
  .giver-story, .giver-story.reverse { grid-template-columns: 1fr; gap: 25px; }
  .giver-story.reverse .giver-photo { order: 0; }
  .giver-photo { height: 330px; }
  .giver-story-copy h2 { font-size: 29px; }
  .giver-gallery { gap: 55px; }
  .giver-note { margin-top: 60px; padding: 40px 20px; }
  .giver-footer { flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
}

.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:middle;flex:none}.icon.small{width:17px;height:17px}.icon.tiny{width:14px;height:14px}.icon.fill{fill:currentColor}.hidden{display:none!important}.tab-page{display:none}.tab-page.active{display:block}.nav-backdrop{display:none}.nav-backdrop.show{display:block}.caret{color:var(--soft-muted);font-size:20px}
