:root {
  font-family: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  color: #1f1d1b;
  background: #f4eee5;
  font-synthesis: none;
  --ink: #1f1d1b;
  --muted: #716b65;
  --surface: rgba(255, 252, 247, .72);
  --surface-strong: rgba(255, 252, 247, .92);
  --border: rgba(53, 44, 34, .12);
  --button-shadow: 0 12px 28px rgba(67, 50, 31, .08);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: #eee9e2; transition: background .4s ease, color .4s ease; }
body::before { content: ""; position: fixed; z-index: 0; inset: 0; background: radial-gradient(circle at 12% 2%, rgba(255,255,255,.95), transparent 28%), radial-gradient(circle at 88% 18%, rgba(197,170,134,.24), transparent 30%), repeating-linear-gradient(115deg, rgba(120,100,75,.025) 0 1px, transparent 1px 6px); pointer-events: none; }
body::after { content: ""; position: fixed; z-index: 0; inset: 0; opacity: .78; pointer-events: none; }
body[data-theme="celadon"] { --ink: #20382f; --muted: #5b7168; --surface: rgba(245, 249, 244, .68); --surface-strong: rgba(249, 252, 247, .94); --border: rgba(35, 67, 50, .16); --button-shadow: 0 12px 28px rgba(28, 72, 48, .10); background: #d9e5dc; }
body[data-theme="celadon"]::before { background: radial-gradient(circle at 85% 4%, rgba(255,255,255,.78), transparent 30%), radial-gradient(circle at 0% 72%, rgba(136, 177, 148, .34), transparent 35%), repeating-linear-gradient(145deg, rgba(47,92,66,.035) 0 1px, transparent 1px 7px); }
body[data-theme="obsidian"] { --ink: #f8f0e3; --muted: #b7aa9a; --surface: rgba(35, 33, 30, .72); --surface-strong: rgba(48, 44, 39, .95); --border: rgba(232, 207, 168, .2); --button-shadow: 0 14px 34px rgba(0,0,0,.32); background: #121311; }
body[data-theme="obsidian"]::before { background: radial-gradient(circle at 24% 0%, rgba(173, 133, 74, .30), transparent 30%), radial-gradient(circle at 90% 42%, rgba(82, 55, 43, .34), transparent 34%), repeating-linear-gradient(125deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px); }
body[data-theme="champagne"] { --ink: #432b2d; --muted: #896f72; --surface: rgba(255, 248, 243, .72); --surface-strong: rgba(255, 251, 247, .95); --border: rgba(130, 80, 76, .16); --button-shadow: 0 12px 28px rgba(128, 73, 81, .11); background: #f1dfd3; }
body[data-theme="champagne"]::before { background: radial-gradient(circle at 7% 15%, rgba(255,255,255,.84), transparent 28%), radial-gradient(circle at 95% 65%, rgba(214, 145, 139, .32), transparent 34%), repeating-linear-gradient(135deg, rgba(126,73,70,.03) 0 1px, transparent 1px 7px); }
body[data-theme="pearl"]::after { background: radial-gradient(circle at 4% 22%, rgba(255,255,255,.84) 0 7px, transparent 8px), radial-gradient(circle at 92% 10%, rgba(255,255,255,.7) 0 11px, transparent 12px), radial-gradient(circle at 88% 78%, rgba(210,181,142,.28) 0 23px, transparent 24px), linear-gradient(118deg, transparent 0 28%, rgba(255,255,255,.26) 28.2% 28.8%, transparent 29% 65%, rgba(196,164,119,.13) 65.2% 65.8%, transparent 66%); }
body[data-theme="celadon"]::after { background: radial-gradient(ellipse at 4% 29%, transparent 0 29px, rgba(85,131,99,.2) 30px 31px, transparent 32px), radial-gradient(ellipse at 9% 24%, transparent 0 18px, rgba(85,131,99,.16) 19px 20px, transparent 21px), radial-gradient(ellipse at 96% 78%, transparent 0 34px, rgba(85,131,99,.15) 35px 36px, transparent 37px), linear-gradient(66deg, transparent 0 11%, rgba(104,151,115,.1) 11.2% 11.7%, transparent 12% 87%, rgba(104,151,115,.09) 87.2% 87.7%, transparent 88%); }
body[data-theme="obsidian"]::after { background: conic-gradient(from 210deg at 8% 8%, transparent 0 12%, rgba(204,160,84,.23) 12.2% 12.6%, transparent 12.8% 21%, rgba(243,213,161,.13) 21.2% 21.5%, transparent 21.7% 100%), conic-gradient(from 30deg at 93% 82%, transparent 0 16%, rgba(204,160,84,.18) 16.2% 16.7%, transparent 16.9% 100%), radial-gradient(circle at 18% 37%, rgba(238,205,143,.7) 0 1px, transparent 2px), radial-gradient(circle at 82% 16%, rgba(238,205,143,.65) 0 1px, transparent 2px), radial-gradient(circle at 90% 57%, rgba(238,205,143,.55) 0 1px, transparent 2px); }
body[data-theme="champagne"]::after { background: radial-gradient(ellipse at 0% 8%, rgba(255,255,255,.72) 0 42px, transparent 43px), radial-gradient(ellipse at 100% 24%, rgba(213,143,146,.22) 0 58px, transparent 59px), radial-gradient(ellipse at 8% 87%, rgba(232,173,164,.26) 0 52px, transparent 53px), radial-gradient(circle at 87% 91%, rgba(255,255,255,.56) 0 13px, transparent 14px), linear-gradient(145deg, transparent 0 56%, rgba(255,255,255,.2) 56.2% 56.7%, transparent 57%); }
button, a { font: inherit; }
button { cursor: pointer; }
.page-shell { width: 100%; max-width: 580px; min-height: 100vh; margin: 0 auto; padding: 26px 16px 30px; position: relative; z-index: 1; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; height: 36px; }
.edit-button { flex: 0 0 auto; height: 34px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: 12px; backdrop-filter: blur(12px); }
body.public-mode .edit-button, body.public-mode .theme-picker { display: none; }
.icon-button { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--ink); background: var(--surface); backdrop-filter: blur(12px); transition: transform .2s, background .2s; }
.icon-button:hover { transform: translateY(-2px); background: var(--surface-strong); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0 24px; animation: rise .7s ease both; }
.profile::before, .profile::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
body[data-theme="pearl"] .profile::before { width: 230px; height: 125px; left: -145px; top: 24px; border: 2px solid rgba(174, 143, 98, .28); border-radius: 50%; transform: rotate(-28deg); box-shadow: 0 0 0 11px rgba(255,255,255,.24), 0 0 0 22px rgba(174,143,98,.10); }
body[data-theme="pearl"] .profile::after { width: 145px; height: 145px; right: -90px; top: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.82) 0 8px, transparent 9px), radial-gradient(circle, rgba(198,165,115,.22) 0 48%, transparent 49%); box-shadow: inset 0 0 0 1px rgba(174,143,98,.22); }
body[data-theme="celadon"] .profile::before { width: 170px; height: 225px; left: -108px; top: 5px; border: 2px solid rgba(82, 132, 99, .25); border-radius: 70% 30% 68% 32%; transform: rotate(24deg); box-shadow: 30px 36px 0 -2px rgba(82,132,99,.08), 20px 22px 0 -1px rgba(82,132,99,.15); }
body[data-theme="celadon"] .profile::after { width: 130px; height: 190px; right: -89px; top: 62px; border: 2px solid rgba(82, 132, 99, .2); border-radius: 32% 68% 34% 66%; transform: rotate(-28deg); box-shadow: -24px 20px 0 -2px rgba(82,132,99,.08); }
body[data-theme="obsidian"] .profile::before { width: 230px; height: 230px; left: -137px; top: -12px; border: 1px solid rgba(224, 177, 94, .62); border-radius: 50%; box-shadow: 0 0 0 12px rgba(224,177,94,.13), 0 0 0 25px rgba(224,177,94,.08); }
body[data-theme="obsidian"] .profile::after { width: 120px; height: 120px; right: -68px; top: 84px; background: radial-gradient(circle at 50% 4%, rgba(238,205,143,.9) 0 2px, transparent 3px), radial-gradient(circle at 15% 52%, rgba(238,205,143,.7) 0 2px, transparent 3px), radial-gradient(circle at 78% 72%, rgba(238,205,143,.8) 0 2px, transparent 3px); }
body[data-theme="champagne"] .profile::before { width: 185px; height: 185px; left: -116px; top: -18px; border-radius: 50%; background: radial-gradient(circle at 60% 58%, rgba(255,255,255,.58) 0 25%, rgba(234,174,166,.25) 26% 48%, transparent 49%); box-shadow: 20px 18px 0 -2px rgba(255,255,255,.22); }
body[data-theme="champagne"] .profile::after { width: 230px; height: 120px; right: -148px; top: 70px; border-radius: 50%; background: radial-gradient(ellipse, rgba(220,148,145,.28) 0 42%, transparent 43%); transform: rotate(-20deg); box-shadow: 0 22px 0 -4px rgba(255,255,255,.3); }
.avatar { width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; margin-bottom: 13px; border: 4px solid var(--surface-strong); border-radius: 50%; background: linear-gradient(135deg, #1d1a17, #a88763 62%, #e4c9a7); color: #fffaf4; box-shadow: 0 8px 25px rgba(42, 29, 17, .18); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { display: none; font: 600 37px Georgia, serif; }
.verified { width: 21px; height: 21px; display: grid; place-items: center; margin: -30px -55px 12px 0; border: 2px solid var(--surface-strong); border-radius: 50%; color: #fff; background: #7a9a72; font-size: 12px; font-weight: 700; }
.profile h1 { margin: 0; font-size: clamp(27px, 7vw, 34px); line-height: 1; letter-spacing: .18em; font-weight: 700; }
.handle { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.bio { margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--ink); background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }
.socials a:hover { transform: translateY(-3px); background: var(--surface-strong); }
.trust-stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.sticker { display: inline-flex; align-items: center; min-height: 23px; padding: 4px 9px; border: 1px solid rgba(83, 58, 33, .16); border-radius: 6px 9px 7px 10px; color: #5b4028; background: #ead7bb; box-shadow: 0 4px 10px rgba(77, 51, 29, .1); font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 1; transform: rotate(-2deg); }
.sticker:nth-child(2) { transform: rotate(2deg); }
.sticker:nth-child(3) { transform: rotate(-1deg); }
.sticker-rose { color: #754448; background: #edd1cf; }
.sticker-green { color: #345b47; background: #d7e4d7; }
.region-picker { margin: 2px 0 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); backdrop-filter: blur(10px); }
.region-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.region-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; padding: 4px; border-radius: 11px; background: rgba(127, 108, 87, .08); }
.region-button { height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 13px; }
.region-button.is-active { color: var(--ink); background: var(--surface-strong); box-shadow: 0 3px 10px rgba(56, 43, 29, .1); font-weight: 600; }
.region-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.link-list { display: grid; gap: 12px; }
.link-card { position: relative; min-height: 64px; display: flex; align-items: center; gap: 13px; padding: 0 49px 0 11px; border: 1px solid var(--border); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: var(--button-shadow); backdrop-filter: blur(10px); transition: transform .22s ease, background .22s ease, box-shadow .22s ease; animation: rise .55s ease both; }
.link-card:hover { transform: translateY(-3px) scale(1.01); background: var(--surface-strong); box-shadow: 0 16px 32px rgba(57, 43, 27, .12); }
.link-main { min-width: 0; display: flex; flex: 1; align-items: center; gap: 13px; padding: 10px 0; color: inherit; text-decoration: none; }
.empty-card { padding: 20px; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); background: var(--surface); text-align: center; font-size: 13px; }
.link-card:focus-visible, .socials a:focus-visible, .theme-dot:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(112, 143, 103, .5); outline-offset: 3px; }
.link-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; background: var(--icon-bg, #e9dfd1); color: var(--icon-fg, #4c3d2d); font-size: 19px; }
.link-icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: inherit; background: #fff; }
.link-copy { display: grid; gap: 3px; min-width: 0; }
.link-title, .link-subtitle { overflow-wrap: anywhere; }
.link-title { font-size: 15px; font-weight: 600; }
.link-subtitle { color: var(--muted); font-size: 12px; }
.product-sticker { display: inline-flex; width: max-content; margin-top: 3px; padding: 3px 7px; border-radius: 5px 7px 5px 7px; color: var(--badge-color, #5b4028); background: var(--badge-bg, #ead7bb); font-size: 8px; font-weight: 700; letter-spacing: .1em; line-height: 1; transform: rotate(-1deg); }
.link-more { position: absolute; right: 10px; width: 30px; height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 18px; cursor: pointer; }
.link-more:hover { color: var(--ink); background: rgba(127, 108, 87, .1); }
.theme-picker { margin-top: 28px; padding: 16px 17px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); backdrop-filter: blur(10px); }
.theme-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.theme-hint { opacity: .72; }
.theme-options { display: flex; gap: 10px; margin-top: 13px; }
.theme-dot { width: 30px; height: 30px; padding: 3px; border: 1px solid var(--border); border-radius: 50%; background: transparent; }
.theme-dot span { display: block; width: 100%; height: 100%; border-radius: inherit; background: #d9c5a7; }
.theme-dot[data-theme="celadon"] span { background: #a8c2ad; }
.theme-dot[data-theme="obsidian"] span { background: #2a2823; }
.theme-dot[data-theme="champagne"] span { background: #e4b4ae; }
.theme-dot.is-active { box-shadow: 0 0 0 2px var(--surface-strong), 0 0 0 4px var(--ink); }
.footer-mark { margin-top: 26px; color: var(--muted); text-align: center; font-size: 10px; letter-spacing: .2em; opacity: .8; }
.footer-mark span { margin: 0 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 3; padding: 10px 16px; border-radius: 999px; color: #fff; background: rgba(28, 26, 24, .9); font-size: 13px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.editor { width: min(100% - 24px, 560px); max-height: min(90vh, 780px); padding: 0; border: 1px solid var(--border); border-radius: 22px; color: var(--ink); background: var(--surface-strong); box-shadow: 0 24px 70px rgba(31, 24, 17, .25); }
.editor::backdrop { background: rgba(20, 17, 14, .42); backdrop-filter: blur(5px); }
.editor form { padding: 22px; }
.editor-head, .link-editor-head, .editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-head { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.editor h2 { margin: 5px 0 0; font-size: 21px; }
.close-button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 25px; line-height: 1; }
.editor-fields { display: grid; gap: 11px; padding: 18px 0; }
.editor label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.editor input, .editor textarea, .editor select { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: 10px; outline: 0; color: var(--ink); background: rgba(255,255,255,.48); }
.editor input:focus, .editor textarea:focus { border-color: #94a98d; box-shadow: 0 0 0 3px rgba(148,169,141,.18); }
.link-editor-head { padding-bottom: 10px; }
.link-editor-head h3 { margin: 0; font-size: 14px; }
.add-link { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); background: transparent; font-size: 12px; }
.editable-links { display: grid; gap: 10px; max-height: 280px; overflow: auto; padding: 2px 2px 10px; }
.editable-item { display: grid; grid-template-columns: 40px 1fr 28px; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.3); }
.editable-item .mini-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: rgba(224,211,194,.7); font-size: 17px; }
.editable-item .item-fields { display: grid; gap: 7px; }
.editable-item input { padding: 8px 9px; font-size: 12px; }
.editable-item select { padding: 8px 9px; font-size: 12px; }
.remove-link { width: 26px; height: 26px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 17px; }
.editor-foot { padding-top: 14px; border-top: 1px solid var(--border); }
.secondary-button, .save-button { height: 38px; padding: 0 13px; border-radius: 9px; font-size: 12px; }
.secondary-button { border: 1px solid var(--border); color: var(--muted); background: transparent; }
.save-button { border: 1px solid var(--ink); color: var(--surface-strong); background: var(--ink); }
.share-dialog { width: min(100% - 24px, 430px); padding: 0; border: 1px solid var(--border); border-radius: 22px; color: var(--ink); background: var(--surface-strong); box-shadow: 0 24px 70px rgba(31, 24, 17, .25); }
.share-dialog::backdrop { background: rgba(20, 17, 14, .5); backdrop-filter: blur(6px); }
.share-dialog form { padding: 22px; }
.share-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.share-head h2 { margin: 0; font-size: 20px; }
.share-preview { margin: 18px 0; padding: 18px; display: flex; align-items: center; gap: 13px; border-radius: 16px; background: linear-gradient(145deg, rgba(111,74,48,.96), rgba(50,32,27,.96)); color: #fff8ef; }
.share-preview-image { width: 74px; height: 74px; flex: 0 0 74px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: rgba(255,255,255,.92); color: #694b36; font: 600 27px Georgia, serif; }
.share-preview-image img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.share-preview-copy { min-width: 0; display: grid; gap: 5px; }
.share-preview-copy strong { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.share-preview-copy span { color: rgba(255,248,239,.72); font-size: 11px; overflow-wrap: anywhere; }
.share-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.share-tool { min-width: 0; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; }
.share-tool > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #282522; font-size: 17px; font-weight: 600; }
.share-tool small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; text-align: center; }
.copy-tool > span { color: var(--ink); background: #e5e1d8; }
#shareFacebook > span { background: #287be5; }
#shareWhatsapp > span { background: #12cf79; }
#shareLinkedin > span { background: #146ab7; font-size: 14px; }
.share-footnote { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 640px) { .page-shell { padding-top: 34px; } .profile { padding-top: 22px; } .link-card { min-height: 72px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
