:root {
  --ink: #1e2925;
  --muted: #68746e;
  --cream: #fff9f2;
  --paper: #fffdf9;
  --lime: #d8f267;
  --coral: #ff765d;
  --pink: #ffc7d1;
  --teal: #84d8c6;
  --line: rgba(30, 41, 37, .13);
  --shadow: 0 22px 55px rgba(65, 54, 40, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Manrope, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

.topbar { height: 82px; max-width: 1240px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.5px; }
.brand span { font-family: "Playfair Display", serif; color: var(--coral); }
.add-top, .primary, .secondary { border: 0; border-radius: 999px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.add-top { padding: 12px 18px; background: var(--ink); color: white; }
.add-top span { color: var(--lime); font-size: 20px; vertical-align: -1px; }
button:hover { transform: translateY(-2px); }

main { overflow: hidden; }
.hero { min-height: 610px; padding: 55px max(28px, calc((100vw - 1184px) / 2)) 75px; display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: max(-100px, calc((100vw - 1450px) / 2)); top: 18px; background: #f2a78e; opacity: .2; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 2.2px; font-size: 11px; font-weight: 800; color: #50645b; margin-bottom: 16px; }
h1 { font-size: clamp(51px, 6.4vw, 91px); line-height: .96; letter-spacing: -5px; margin: 0; max-width: 760px; }
h1 em { font-family: "Playfair Display", serif; font-weight: 700; color: var(--coral); }
.hero-copy > p { max-width: 590px; margin: 30px 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.primary { background: var(--ink); color: white; padding: 16px 23px; box-shadow: 0 10px 25px rgba(30, 41, 37, .17); }
.primary span { margin-left: 12px; color: var(--lime); }
.primary:hover { box-shadow: 0 14px 30px rgba(30, 41, 37, .25); }

.hero-art { width: min(100%, 500px); height: 490px; position: relative; justify-self: end; }
.sun { position: absolute; right: 35px; top: 20px; font-size: 76px; filter: saturate(.7); }
.orbit { position: absolute; border: 1.5px solid rgba(30, 41, 37, .2); border-radius: 50%; transform: rotate(-12deg); }
.orbit-one { width: 450px; height: 270px; left: 20px; top: 105px; }
.orbit-two { width: 370px; height: 390px; left: 75px; top: 55px; transform: rotate(31deg); }
.jar { position: absolute; width: 265px; height: 330px; left: 105px; top: 105px; transform: rotate(-3deg); filter: drop-shadow(0 23px 22px rgba(67, 63, 51, .14)); }
.jar-lid { width: 175px; height: 54px; margin: 0 auto -15px; border-radius: 18px 18px 10px 10px; background: var(--ink); position: relative; z-index: 2; }
.jar-lid::after { content: ""; position: absolute; left: 16px; right: 16px; top: 13px; height: 6px; border-top: 2px solid rgba(255,255,255,.3); border-bottom: 2px solid rgba(255,255,255,.2); }
.jar-glass { height: 290px; border: 5px solid var(--ink); border-radius: 28px 28px 65px 65px; background: rgba(255, 255, 255, .54); backdrop-filter: blur(3px); display: flex; flex-wrap: wrap; align-content: end; justify-content: center; gap: 8px; padding: 30px 20px; font-size: 42px; }
.jar-glass span:nth-child(2) { transform: translateY(-50px) rotate(12deg); }
.jar-glass span:nth-child(4) { transform: rotate(-12deg); }
.coin { position: absolute; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.coin-one { background: var(--lime); top: 65px; left: 76px; transform: rotate(-17deg); }
.coin-two { background: var(--pink); right: 8px; bottom: 60px; transform: rotate(16deg); }
.spark { position: absolute; color: var(--coral); font-size: 30px; }
.s1 { left: 8px; top: 200px; }.s2 { right: 50px; top: 180px; }.s3 { left: 60px; bottom: 27px; }

.quick-panel { width: 100%; max-width: 490px; justify-self: end; position: relative; padding: 33px; border: 1px solid rgba(30,41,37,.12); border-radius: 30px; background: rgba(255,253,249,.92); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.quick-panel h2 { margin: 0; font-size: 35px; letter-spacing: -1.6px; }
.quick-panel > p { margin: 8px 0 22px; color: var(--muted); font-size: 13px; }
.quick-smile { position: absolute; right: 25px; top: 22px; width: 51px; height: 51px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 28px; transform: rotate(5deg); }
.quick-url-row { display: flex; gap: 8px; }
.quick-url-row input { min-width: 0; font-size: 14px; padding: 15px; }
.quick-url-row button { flex: 0 0 51px; border: 0; border-radius: 13px; background: var(--ink); color: var(--lime); font-size: 23px; font-weight: 800; }
.quick-status { min-height: 22px; margin: 11px 2px 0; color: var(--muted); font-size: 12px; }
.quick-status.loading::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border: 2px solid var(--coral); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.quick-preview { display: grid; grid-template-columns: 84px 1fr; gap: 13px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 16px; background: #f4f0e6; }
.quick-preview img { width: 84px; height: 84px; border-radius: 12px; object-fit: contain; background: white; }
.quick-preview div { min-width: 0; }.quick-preview span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.quick-preview strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.35; }
.quick-preview b { display: block; margin-top: 6px; color: var(--coral); font-size: 17px; }
.quick-save { width: 100%; margin-top: 13px; }
.manual-link { width: 100%; margin-top: 10px; border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.dashboard { background: #f2eddf; border-radius: 52px 52px 0 0; padding: 78px max(28px, calc((100vw - 1184px) / 2)) 100px; min-height: 580px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-head h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); letter-spacing: -2.5px; }
.section-head h2 span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px; margin-left: 8px; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 15px; vertical-align: 8px; }
.summary { text-align: right; border-left: 1px solid var(--line); padding-left: 28px; }
.summary span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.summary strong { font-size: 25px; }
.filters { display: flex; gap: 8px; margin: 34px 0 26px; }
.filter { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-weight: 700; font-size: 13px; }
.filter.active { background: var(--ink); color: white; }
.dream-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dream-card { background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(71, 61, 49, .07); transition: transform .25s, box-shadow .25s; animation: rise .45s both; }
.dream-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-image { position: relative; height: 225px; background: #e4e0d5; overflow: hidden; display: grid; place-items: center; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { font-size: 65px; }
.status-chip { position: absolute; left: 14px; top: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); font-weight: 800; font-size: 11px; }
.more { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 18px; }
.card-body { padding: 20px; }
.card-title-row { display: flex; gap: 14px; justify-content: space-between; align-items: start; }
.card-title-row h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card-title-row a { color: var(--muted); text-decoration: none; font-size: 19px; }
.price { margin: 7px 0 17px; color: var(--muted); font-size: 13px; }
.progress-line { height: 8px; background: #e7e4dc; border-radius: 999px; overflow: hidden; }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
.progress-meta { margin-top: 9px; display: flex; justify-content: space-between; font-size: 12px; }
.progress-meta strong { color: var(--coral); }
.deposit { margin-top: 18px; width: 100%; border: 0; border-radius: 14px; padding: 11px; background: #edf6bd; color: var(--ink); font-weight: 800; }
.done-card .progress-line span { background: var(--teal); }
.done-card .deposit { background: var(--teal); }
.empty { display: none; max-width: 470px; text-align: center; margin: 70px auto 0; }
.empty.show { display: block; }
.empty-icon { font-size: 60px; }.empty h3 { font-size: 25px; margin: 12px 0 8px; }.empty p { color: var(--muted); line-height: 1.6; }
.secondary { padding: 13px 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px max(28px, calc((100vw - 1184px) / 2)); font-size: 12px; color: var(--muted); background: #f2eddf; border-top: 1px solid var(--line); }

dialog { border: 0; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 35px 90px rgba(20, 25, 22, .3); }
dialog::backdrop { background: rgba(23, 31, 28, .58); backdrop-filter: blur(5px); }
dialog[open] { animation: pop .25s both; }
dialog form { padding: 35px; position: relative; overflow: auto; }
dialog h2 { margin: 0 40px 25px 0; font-size: 30px; letter-spacing: -1.2px; }
.close { position: absolute; right: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: 23px; }
label { display: block; font-weight: 800; font-size: 12px; margin: 16px 0 7px; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 118, 93, .12); }
.url-row { display: flex; gap: 7px; }
.url-row button { border: 0; border-radius: 13px; padding: 0 15px; background: var(--lime); font-weight: 800; }
#fetch-status { display: block; color: var(--muted); margin-top: 7px; }
.form-grid { display: grid; grid-template-columns: 1.5fr .5fr; gap: 0 13px; }
.preview { height: 125px; margin-top: 8px; border: 1px dashed rgba(30,41,37,.22); border-radius: 15px; display: grid; place-items: center; color: var(--muted); overflow: hidden; background: #f5f2ea; font-size: 12px; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.submit { width: 100%; margin-top: 22px; }
.small-dialog { width: min(430px, calc(100vw - 24px)); text-align: center; }
.small-dialog p { color: var(--muted); }.small-dialog label { text-align: left; }.deposit-emoji { display: block; font-size: 55px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 120px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white; font-weight: 700; font-size: 13px; box-shadow: var(--shadow); transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: translateY(15px) scale(.98); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 35px; gap: 30px; }
  .hero-art { justify-self: center; margin-top: 30px; transform: scale(.88); transform-origin: top center; height: 430px; }
  .quick-panel { justify-self: center; max-width: 620px; }
  .dream-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 590px) {
  .topbar { height: 70px; padding: 0 18px; }.add-top { font-size: 0; width: 42px; height: 42px; padding: 0; }.add-top span { font-size: 24px; }
  .hero { padding: 38px 20px 35px; min-height: auto; }.hero-copy > p { font-size: 15px; }.hero-art { width: 430px; margin-left: -20px; transform: scale(.75); height: 370px; }
  .quick-panel { padding: 25px 19px; border-radius: 23px; }.quick-panel h2 { font-size: 29px; }.quick-smile { right: 18px; top: 18px; width: 43px; height: 43px; font-size: 23px; }
  h1 { letter-spacing: -3px; }.dashboard { padding: 55px 18px 70px; border-radius: 32px 32px 0 0; }.section-head { align-items: start; }.summary { padding-left: 12px; min-width: 120px; }.summary strong { font-size: 18px; }
  .dream-grid { grid-template-columns: 1fr; }.filters { overflow-x: auto; }.filter { flex: 0 0 auto; }.card-image { height: 245px; }
  dialog form { padding: 28px 20px; }.form-grid { grid-template-columns: 1fr 95px; }.url-row { display: grid; }.url-row button { padding: 11px; } footer { flex-direction: column; }
}
