:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --g1: #4f46e5;
  --g2: #7c3aed;
  --g3: #db2777;
  --g4: #0891b2;
  --grad: linear-gradient(120deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g1));
}

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

html { background: var(--bg); }

/* The live, always-visible animated background lives on body itself —
   no pseudo-element stacking tricks, so every browser paints it. */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #6366f1, #9333ea, #ec4899, #06b6d4, #22c55e, #f59e0b, #e11d48, #6366f1);
  background-size: 400% 400%;
  animation: bgShift 16s ease-in-out infinite;
  color: var(--ink);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 0%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

/* Translucent wash keeps content readable while the colors show through.
   Every body child is lifted above it so nothing gets covered. */
body > * { position: relative; z-index: 1; }
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(249, 250, 253, .42);
  pointer-events: none;
  animation: none;
}

/* page-wide entrance + pulse animations */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.note-card, .card, .stat, .proof-card, .ticker, .stats-band {
  animation: cardIn .55s ease-out both;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); }
  50%      { box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); }
}
.wa-float { animation: pulseGlow 2.6s ease-in-out infinite; }
@keyframes spinHue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* animated gradient text + brand */
.gradient-text {
  background: var(--grad);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.brand { font-weight: 800; font-size: 1.15rem; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; width: 100%; }
.narrow { max-width: 640px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted-link { font-size: .9rem; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g1));
  background-size: 300% 100%;
  animation: gradientShift 6s ease-in-out infinite;
  pointer-events: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 18px; font-size: .92rem; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.inline { display: inline; }
.link-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: .92rem; padding: 0; }

main { flex: 1; }

/* Hero */
.hero { padding: 64px 0 20px; text-align: center; }
.hero-card {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  padding: 44px 28px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(16, 24, 40, .08);
  animation: heroIn 1s ease-out both, heroGlow 6s ease-in-out infinite;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes heroGlow {
  0%, 100% { box-shadow: 0 8px 30px rgba(16, 24, 40, .08), 0 0 0 1px rgba(99, 102, 241, 0); }
  50%      { box-shadow: 0 8px 30px rgba(16, 24, 40, .1), 0 0 40px 2px rgba(124, 58, 237, .35); }
}
.hero h1 { font-size: 2.6rem; letter-spacing: -.02em; margin-bottom: 14px; line-height: 1.15; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.typewriter .caret {
  display: inline-block;
  width: 3px;
  margin-left: 2px;
  background: var(--g2);
  border-radius: 2px;
  animation: caretBlink 1s steps(2, start) infinite;
  vertical-align: baseline;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 30px auto 0;
  max-width: 760px;
}
.stat {
  background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  padding: 16px 12px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-num { font-size: 1.7rem; font-weight: 800; display: block; }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Activity ticker */
.activity-ticker {
  margin-top: 26px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 56px;
  box-shadow: var(--shadow);
}
.ticker-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.ticker-list { display: grid; gap: 4px; max-height: 140px; overflow: hidden; }
.ticker-item { font-size: .88rem; color: var(--ink); display: flex; gap: 8px; align-items: baseline; animation: tickerIn .5s ease both; }
.ticker-item .t-time { color: var(--muted); font-size: .74rem; flex-shrink: 0; }
@keyframes tickerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.ticker-empty { color: var(--muted); font-size: .88rem; }

/* Sections */
.section { padding: 26px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.sub-head { margin: 34px 0 14px; font-size: 1.15rem; }

/* Search + filter */
.search-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search-input {
  flex: 1 1 260px;
  font: inherit;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--g2);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .18), 0 0 22px rgba(124, 58, 237, .35);
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--grad); background-size: 200% 200%; animation: gradientShift 6s ease infinite; color: #fff; border-color: transparent; }
.notes-count { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.no-match { text-align: center; padding: 30px; color: var(--muted); }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.note-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; position: relative; }
.note-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 30px rgba(16,24,40,.14); border-color: rgba(79,70,229,.35); }
.note-card > a { display: block; color: var(--ink); }
.note-card > a:hover { text-decoration: none; }
.note-thumb { aspect-ratio: 3 / 4; background: #eef0f5; overflow: hidden; }
.note-thumb img { width: 100%; height: 100%; object-fit: cover; }
.note-meta { padding: 12px 14px 16px; }
.badge { display: inline-block; background: linear-gradient(120deg, #eef2ff, #fae8ff); color: var(--primary-dark); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-bottom: 8px; }
.note-title { font-size: 1rem; margin-bottom: 6px; }
.note-price { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.note-desc { color: var(--muted); font-size: .85rem; }

/* Wishlist heart */
.wish-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.wish-btn:hover { transform: scale(1.12); }
.wish-btn.saved { color: var(--danger); border-color: rgba(220,38,38,.4); animation: heartPop .3s ease; }
@keyframes heartPop { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Request board */
.request-list { display: grid; gap: 12px; }
.request-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.request-card { padding: 16px; }
.request-top { display: flex; align-items: center; justify-content: space-between; }
.request-top .badge { margin-bottom: 0; }
.request-meta, .request-status { font-size: .82rem; color: var(--muted); }
.request-status { text-transform: capitalize; font-weight: 700; }
.request-status.pending { color: #b45309; }
.request-status.fulfilled { color: var(--success); }
.request-status.declined { color: var(--danger); }
.request-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; }

/* Social proof */
.social-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.proof-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.rating-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 8px; }
.testimonial { color: var(--muted); font-size: .92rem; font-style: italic; }
.testimonial-author { font-weight: 700; margin-top: 10px; font-size: .86rem; }
.recent-unlocks { display: grid; gap: 10px; }
.unlock-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); background-size: 200% 200%; animation: gradientShift 6s ease infinite;
  color: #fff; font-weight: 700; font-size: .85rem;
  display: grid; place-items: center; flex-shrink: 0;
}

/* Animated feature scene */
.feature-scene {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  min-height: 220px;
}
.float-field { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.floating-emoji {
  position: absolute; bottom: 12px; font-size: 2.1rem; opacity: .35;
  animation-name: floatUp; animation-timing-function: linear; animation-iteration-count: infinite;
  filter: drop-shadow(0 2px 6px rgba(79, 70, 229, .25));
}
@keyframes floatUp {
  0%   { transform: translateY(30px) scale(.9) rotate(-8deg); opacity: 0; }
  12%  { opacity: .4; }
  55%  { opacity: .35; }
  100% { transform: translateY(-190px) scale(1.15) rotate(8deg); opacity: 0; }
}
.marquee-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid var(--line); padding: 16px 0;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(6px);
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; color: var(--ink); font-size: .95rem; white-space: nowrap;
}
.marquee-track span::before { content: "\2726"; color: var(--g3); font-size: .8rem; }
.marquee-track span:nth-child(3n)::before { color: var(--g1); }
.marquee-track span:nth-child(3n+1)::before { color: var(--g2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.unlock-row .note { flex: 1; min-width: 0; }
.unlock-row .note strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unlock-row .note span { color: var(--muted); font-size: .78rem; }

/* Note detail */
.crumbs { margin: 18px 0 8px; font-size: .9rem; }
.note-detail { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 34px; padding: 16px 0 40px; }
.note-detail-preview img { width: 100%; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.preview-caption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }
.note-detail-info h1 { margin: 8px 0 10px; font-size: 1.6rem; }
.request-origin { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.note-detail-info .note-desc { font-size: .98rem; margin-bottom: 20px; }

.price-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 12px; }
.price-amount { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.price-alt { color: var(--muted); }
.price-note { font-size: .8rem; color: var(--muted); margin-top: 6px; }

.buy-area { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* Buttons */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font-size: .95rem; font-weight: 600; cursor: pointer; text-align: center; transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; }
.btn:hover { text-decoration: none; opacity: .94; transform: translateY(-1px); }
.btn-primary { background: var(--grad); background-size: 220% 220%; color: #fff; animation: gradientShift 7s ease infinite; }
.btn-primary:hover { background-color: transparent; color: #fff; }
.btn-outline { background: rgba(255,255,255,.85); color: var(--primary); border-color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }

/* Forms */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input[type="text"], .form input[type="email"], .form input[type="password"], .form input[type="number"], .form select, .form textarea, .form input[type="file"] {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.form textarea { resize: vertical; }
.req { color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Alerts / empty / misc */
.alert { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }
.muted { color: var(--muted); }

/* Dashboard tables */
.table-list { display: grid; gap: 10px; }
.table-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 14px; }
.tiny-thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; }
.table-info { flex: 1; display: grid; gap: 2px; min-width: 0; }
.table-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Preview box on upload */
.preview-box { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.preview-box img { max-width: 240px; border: 1px solid var(--line); border-radius: 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 22px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

/* ---- Toast stack ---- */
.toast-stack { position: fixed; right: 18px; bottom: 90px; z-index: 60; display: grid; gap: 10px; max-width: min(340px, 90vw); }
.toast {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(16,24,40,.16);
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem;
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2) both;
}
.toast .t-icon { font-size: 1.2rem; }
.toast.leaving { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---- WhatsApp float button ---- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }

/* ---- WhatsApp link page ---- */
.wa-card { display: grid; gap: 18px; text-align: center; }
.qr-box { margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-width: 320px; width: 100%; }
.qr-box img { width: 100%; image-rendering: pixelated; }
.wa-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .84rem; }
.wa-status-pill .wa-dot { width: 9px; height: 9px; border-radius: 50%; }
.wa-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- Admin chat inbox ---- */
.inbox { display: grid; grid-template-columns: 280px 1fr; gap: 16px; height: 560px; }
.thread-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow-y: auto; padding: 8px; display: grid; gap: 6px; align-content: start; }
.thread-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.thread-item:hover { background: #f6f7fb; }
.thread-item.active { background: #eef2ff; border-color: rgba(79,70,229,.3); }
.thread-item .t-title { font-weight: 700; font-size: .88rem; display: flex; justify-content: space-between; gap: 8px; }
.thread-item .t-preview { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item .t-unread { background: var(--danger); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; }
.conv { background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.conv-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fafbfe; }
.conv-empty { display: grid; place-items: center; color: var(--muted); height: 100%; }
.conv-msg { max-width: 76%; padding: 9px 12px; border-radius: 14px; font-size: .9rem; }
.conv-msg.admin { align-self: flex-end; background: var(--primary); color: #fff; }
.conv-msg.visitor { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.conv-msg .m-name { font-size: .72rem; font-weight: 700; opacity: .75; }
.conv-msg .m-time { font-size: .68rem; opacity: .6; display: block; margin-top: 3px; text-align: right; }
.conv-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.conv-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; outline: none; }
.conv-input-row input:focus { border-color: var(--primary); }

/* ---- Announcement bar ---- */
.announcement-bar {
  background: var(--grad); background-size: 220% 220%;
  animation: gradientShift 7s ease infinite;
  color: #fff; text-align: center; font-size: .9rem; font-weight: 600;
  padding: 9px 16px; position: relative; z-index: 5;
}

/* ---- Sort / search row ---- */
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.sort-select {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--card); font: inherit; color: var(--ink); cursor: pointer;
}
.search-input { flex: 1; min-width: 220px; }

/* ---- Footer links ---- */
.footer-links { margin-top: 6px; font-size: .84rem; }
.footer-links a { color: var(--muted); text-decoration: underline; margin: 0 4px; }

/* ---- Ratings & reviews ---- */
.note-stars { color: #f59e0b; font-size: .82rem; letter-spacing: 2px; display: inline-flex; align-items: center; gap: 5px; }
.note-stars small { color: var(--muted); letter-spacing: 0; font-size: .74rem; }
.note-stars.lg { font-size: 1.05rem; }
.star-picker { display: flex; gap: 4px; margin-bottom: 10px; }
.star-btn {
  background: none; border: none; font-size: 1.6rem; color: #d1d5db;
  cursor: pointer; transition: transform .1s ease; padding: 2px;
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.active { color: #f59e0b; }
.review-msg { margin-top: 8px; }
.review-list { display: grid; gap: 12px; }
.review-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-date { margin-left: auto; font-size: .76rem; }
.review-comment { color: var(--ink); font-size: .92rem; line-height: 1.5; }

/* ---- GPay / payment options ---- */
.pay-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.btn-gpay { background: #25D366; color: #fff; }
.btn-gpay:hover { background: #1fb858; color: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fb858; color: #fff; }
.share-row { margin-top: 12px; display: flex; }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 80;
  display: grid; place-items: center; padding: 18px;
  animation: fadeIn .15s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--card); border-radius: 18px; padding: 22px;
  width: min(420px, 100%); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(16,24,40,.3);
  animation: modalIn .18s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal h3 { margin-bottom: 8px; }
.modal .modal-close {
  position: absolute; top: 12px; right: 12px; background: none; border: none;
  font-size: 1.1rem; color: var(--muted); cursor: pointer;
}
.modal { position: relative; }
.gpay-qr { display: block; margin: 12px auto; width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.upi-id { text-align: center; margin-bottom: 8px; }
.gpay-form { margin-top: 10px; }

@media (max-width: 720px) {
  .hero h1 { font-size: 1.7rem; }
  .note-detail { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; }
  .inbox { grid-template-columns: 1fr; grid-template-rows: 180px 1fr; }
}

