@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f6f7fc;
  --bg-soft: #eef1ff;
  --panel: rgba(255,255,255,.88);
  --panel-solid: #fff;
  --panel-2: #f5f6ff;
  --text: #171a35;
  --muted: #646b8a;
  --soft: #8b91aa;
  --accent: #705cf6;
  --accent-2: #27b6cf;
  --accent-3: #ff8ab8;
  --accent-dark: #4935cf;
  --line: rgba(82,88,145,.13);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Manrope', 'DM Sans', Arial, sans-serif;
  --shadow: 0 24px 70px rgba(47,54,115,.10);
  --shadow-hover: 0 25px 65px rgba(91,77,207,.16);
  --scroll-progress: 0%;
  --scroll-drift: 0px;
  --pointer-x: 50%;
  --pointer-y: 20%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 10% 2%, rgba(151,137,255,.12), transparent 32%),
    radial-gradient(ellipse at 93% 32%, rgba(61,198,220,.11), transparent 29%),
    linear-gradient(180deg, #fbfbff 0%, var(--bg) 50%, #f8f9ff 100%);
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }

/* Ambient light follows the page as it scrolls. */
.page-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(82px);
  opacity: .58;
  transform: translate3d(0, var(--scroll-drift), 0);
  will-change: transform;
  animation: glowBreathe 12s ease-in-out infinite alternate;
}
.glow-one { width: 470px; height: 470px; left: -250px; top: 3%; background: #a99bff; }
.glow-two { width: 440px; height: 440px; right: -260px; top: 44%; background: #8be4ee; animation-delay: -5s; }
.page-glow::after { content: ''; position: absolute; inset: 18%; border-radius: inherit; background: rgba(255,255,255,.48); filter: blur(35px); }
.scroll-progress { position: fixed; z-index: 60; top: 0; left: 0; width: var(--scroll-progress); height: 3px; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, var(--accent), #8c79ff 55%, var(--accent-2)); box-shadow: 0 0 14px rgba(112,92,246,.45); }

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(92,99,160,.12);
  position: relative;
}
.topbar::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 22%; height: 1px; background: linear-gradient(90deg, rgba(112,92,246,.5), transparent); }
.wordmark { display: flex; align-items: center; gap: 11px; font: 800 12px var(--display); letter-spacing: .17em; color: #24264a; }
.wordmark-mark {
  height: 34px; width: 34px; border-radius: 11px;
  background: linear-gradient(140deg, #7a68ff, #4e47c8);
  color: #fff; display: grid; place-items: center;
  font-size: 11px; letter-spacing: -.04em;
  box-shadow: 0 7px 18px rgba(103,88,230,.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-note { font-size: 9px; letter-spacing: .19em; color: #747b9a; font-weight: 800; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #32c49a; margin: 0 7px 1px 0; box-shadow: 0 0 0 4px rgba(50,196,154,.12), 0 0 12px rgba(50,196,154,.55); }
.owner-edit {
  border: 1px solid rgba(112,92,246,.25); border-radius: 999px; padding: 9px 15px;
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(112,92,246,.11), rgba(39,182,207,.08));
  color: var(--accent-dark); font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 0 5px 16px rgba(112,92,246,.08); transition: transform .22s, box-shadow .22s, background .22s;
}
.owner-edit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(112,92,246,.17); background: #fff; }
.owner-edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.owner-edit[hidden] { display: none !important; }
.main-shell { padding-top: 35px; }

.hero-card {
  position: relative; overflow: hidden; border-radius: 25px;
  border: 1px solid rgba(255,255,255,.9);
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 0 1px rgba(102,93,205,.045);
  backdrop-filter: blur(18px);
  transition: box-shadow .35s, transform .35s;
}
.hero-card:hover { box-shadow: var(--shadow-hover), 0 0 0 1px rgba(112,92,246,.09); }
.hero-banner {
  height: 245px; position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 76% 42%, rgba(123,224,245,.62), transparent 30%),
    radial-gradient(ellipse at 25% 110%, rgba(255,151,205,.28), transparent 35%),
    linear-gradient(112deg, #5147c7 0%, #6958e9 43%, #328cae 100%);
  background-size: cover; background-position: center;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(27,23,91,.18), transparent 72%), linear-gradient(0deg, rgba(21,35,93,.16), transparent 55%);
}
.hero-banner::after {
  content: ''; position: absolute; width: 360px; height: 360px; right: 12%; top: -180px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 22px rgba(255,255,255,.045), 0 0 0 48px rgba(255,255,255,.035), 0 0 75px rgba(173,236,255,.2);
  animation: orbitFloat 16s ease-in-out infinite alternate;
}
.banner-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, black, transparent 95%); }
.banner-orbit { position: absolute; border: 1px solid rgba(255,255,255,.29); border-radius: 50%; transform: rotate(-28deg); }
.orbit-a { width: 430px; height: 240px; right: 7%; top: 4%; box-shadow: 0 0 0 19px rgba(255,255,255,.035), 0 0 0 40px rgba(255,255,255,.025); }
.orbit-b { width: 270px; height: 410px; right: 20%; top: -35%; transform: rotate(48deg); border-color: rgba(255,255,255,.16); }
.banner-copy { position: absolute; left: 45px; top: 37px; display: flex; flex-direction: column; gap: 13px; z-index: 1; }
.eyebrow, .banner-index, .profile-kicker, .aside-label, .section-overline, .section-count, .smart-label, .note-bottom, .ad-label, .footer-copy { font-weight: 800; letter-spacing: .16em; font-size: 9px; }
.eyebrow { color: rgba(255,255,255,.83); }
.banner-line { font: 600 39px/1.04 var(--display); letter-spacing: -.055em; color: #fff; text-shadow: 0 5px 24px rgba(35,27,108,.2); }
.banner-line em { font-family: var(--serif); font-weight: 400; color: #c9f8ff; letter-spacing: -.04em; }
.banner-index { position: absolute; bottom: 24px; right: 28px; color: rgba(255,255,255,.8); z-index: 1; }
.banner-index span { color: rgba(255,255,255,.55); margin: 0 7px; }
.profile-main { display: grid; grid-template-columns: 112px minmax(0,1fr) 180px; align-items: center; gap: 24px; padding: 0 42px 34px; position: relative; }
.avatar-wrap { width: 112px; height: 112px; margin-top: -39px; position: relative; z-index: 2; }
.avatar {
  width: 112px; height: 112px; border-radius: 28px; border: 5px solid #fff;
  background: linear-gradient(135deg, #d8d2ff, #9de8f0); color: #4337ae;
  display: grid; place-items: center; font: 800 34px var(--display); letter-spacing: -.1em;
  box-shadow: 0 12px 28px rgba(60,58,145,.2); background-size: cover; background-position: center;
}
.avatar-ring { position: absolute; inset: -8px; border: 1px solid rgba(112,92,246,.4); border-radius: 34px; pointer-events: none; box-shadow: 0 0 20px rgba(112,92,246,.12); }
.profile-copy { padding-top: 20px; }
.profile-kicker { color: #858bad; font-size: 8px; display: flex; align-items: center; gap: 7px; }
.tiny-star { font-size: 13px; color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.profile-copy h1 { font: 800 clamp(27px,4vw,37px)/1.15 var(--display); letter-spacing: -.055em; margin: 8px 0 2px; color: #202344; }
.profile-role { margin: 0; color: #6653df; font-size: 12px; font-weight: 700; }
.profile-bio { color: #68708f; max-width: 560px; font-size: 13px; line-height: 1.8; margin: 11px 0 0; }
.profile-contact { display: flex; gap: 8px; align-items: center; margin-top: 13px; font-size: 12px; }
.profile-contact a { color: #4e42c6; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.contact-icon { color: var(--accent); }
.contact-label { font-size: 8px; letter-spacing: .13em; color: #9096b0; margin-left: 4px; font-weight: 800; }
.profile-aside { align-self: center; border-left: 1px solid var(--line); padding-left: 21px; display: flex; flex-direction: column; gap: 7px; }
.aside-label { font-size: 8px; color: #8b91ad; line-height: 1.6; }
.aside-arrow { font: 28px var(--serif); color: var(--accent); line-height: 1; }
.aside-caption { font-size: 11px; color: #727995; line-height: 1.55; }

.ad-section { position: relative; }
.ad-top { margin: 25px 0 38px; }
.ad-label { font-size: 8px; color: #969bb4; margin-bottom: 8px; text-align: center; }
.ad-slot { position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; margin-inline: auto; border: 1px dashed rgba(112,92,246,.23); background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(241,243,255,.72)); border-radius: 10px; box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(68,70,142,.045); }
.ad-728 { width: min(728px,100%); min-height: 90px; }
.ad-placeholder { color: #a0a5bd; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 42px; align-items: start; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-overline { color: #898fad; font-size: 8px; }
.section-heading h2 { font: 800 31px/1.16 var(--display); letter-spacing: -.055em; margin: 5px 0 0; color: #242648; }
.section-heading h2 span { color: var(--accent); }
.section-count { font-size: 8px; color: #7e84a5; border: 1px solid rgba(112,92,246,.17); background: rgba(255,255,255,.66); padding: 7px 10px; border-radius: 999px; margin-bottom: 2px; }
.social-list { display: grid; gap: 11px; }
.social-link {
  position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 34px; gap: 14px; align-items: center;
  border: 1px solid rgba(107,111,172,.12); background: rgba(255,255,255,.83);
  padding: 13px 15px; border-radius: 15px; box-shadow: 0 7px 22px rgba(56,63,130,.045);
  transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}
.social-link::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; opacity: 0; pointer-events: none; background: linear-gradient(110deg, rgba(112,92,246,.06), rgba(39,182,207,.07)); transition: opacity .24s; }
.social-link:hover { transform: translateY(-4px); border-color: rgba(112,92,246,.29); background: #fff; box-shadow: 0 16px 32px rgba(85,77,180,.12), 0 0 20px rgba(112,92,246,.055); }
.social-link:hover::before { opacity: 1; }
.social-icon { height: 45px; width: 45px; border-radius: 13px; background: linear-gradient(145deg, #f0edff, #e8f9fc); color: #6454df; display: grid; place-items: center; box-shadow: inset 0 1px 0 #fff; position: relative; z-index: 1; }
.social-icon svg { height: 21px; width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social-meta { min-width: 0; position: relative; z-index: 1; }
.social-platform { font-size: 13px; font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #292c50; }
.social-handle { font-size: 11px; color: #8b91ab; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.social-followers { display: inline-flex; align-items: center; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(100deg, rgba(112,92,246,.09), rgba(39,182,207,.09)); color: #6254c8; font-size: 9px; font-weight: 800; letter-spacing: .01em; }
.social-open { height: 31px; width: 31px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(112,92,246,.16); background: #f8f7ff; color: #7060de; font-size: 15px; position: relative; z-index: 1; transition: transform .24s, background .24s, color .24s; }
.social-link:hover .social-open { transform: translate(2px,-2px); background: var(--accent); color: #fff; }
.empty-links { padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: 13px; color: #8b91a8; background: rgba(255,255,255,.58); }
.empty-icon { font-size: 24px; color: var(--accent); }
.empty-links strong { display: block; font-size: 13px; color: #333657; margin-top: 8px; }
.empty-links p { font-size: 11px; margin: 4px 0 0; }
.smart-card {
  min-height: 148px; border-radius: 17px; margin-top: 24px; padding: 22px;
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 15px;
  background: radial-gradient(circle at 86% 15%, rgba(255,255,255,.34), transparent 27%), linear-gradient(112deg, #6d5be8, #4d73d9 58%, #28a9bd);
  box-shadow: 0 14px 34px rgba(91,87,206,.2), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .28s, box-shadow .28s;
}
.smart-card:hover { transform: translateY(-3px); box-shadow: 0 19px 42px rgba(91,87,206,.26), 0 0 30px rgba(80,154,220,.16); }
.smart-copy { position: relative; z-index: 1; }
.smart-label { font-size: 8px; color: rgba(255,255,255,.79); }
.sparkle { font-size: 12px; margin-right: 5px; }
.smart-card h3 { font: 800 21px/1.2 var(--display); letter-spacing: -.045em; margin: 9px 0 3px; color: #fff; }
.smart-card p { font-size: 11px; color: rgba(255,255,255,.8); margin: 0; }
.smart-button { position: relative; z-index: 1; white-space: nowrap; border-radius: 999px; background: #fff; color: #5145c3; padding: 10px 14px; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 15px; box-shadow: 0 7px 18px rgba(30,33,95,.17); transition: transform .22s, box-shadow .22s; }
.smart-button:hover { transform: translateY(-2px); box-shadow: 0 10px 23px rgba(30,33,95,.25); }
.smart-button span { font-size: 15px; }
.smart-decoration { position: absolute; right: 20%; top: -64px; font: 200px/1 var(--serif); color: rgba(255,255,255,.105); transform: rotate(-15deg); }
.ad-native { margin-top: 25px; }
.ad-native-slot { width: 100%; aspect-ratio: 4/1; min-height: 110px; }
.right-column { display: grid; gap: 22px; }
.note-card {
  min-height: 265px; position: relative; overflow: hidden; padding: 24px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.88); background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(242,244,255,.92));
  box-shadow: 0 13px 32px rgba(56,62,133,.075), inset 0 1px 0 #fff;
}
.note-card::after { content: ''; position: absolute; right: -38px; top: 72px; height: 145px; width: 145px; border: 1px solid rgba(112,92,246,.18); border-radius: 50%; box-shadow: 0 0 0 17px rgba(112,92,246,.035), 0 0 0 35px rgba(39,182,207,.025), 0 0 55px rgba(112,92,246,.09); }
.note-icon { height: 36px; width: 36px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#eeeaff,#e2f8fb); color: #6756df; margin-bottom: 23px; box-shadow: inset 0 1px 0 #fff; }
.note-card h3 { font: 800 25px/1.12 var(--display); letter-spacing: -.055em; margin: 7px 0 11px; position: relative; z-index: 1; color: #292c50; }
.note-card p { font-size: 11px; line-height: 1.8; color: #7b829f; max-width: 200px; position: relative; z-index: 1; }
.note-bottom { display: flex; justify-content: space-between; align-items: center; color: #9ba0b7; font-size: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 21px; }
.note-bottom span:last-child { font-size: 15px; color: #ed80ad; }
.ad-square .ad-300 { width: 300px; max-width: 100%; height: 250px; }
.footer { margin-top: 50px; padding-bottom: 35px; }
.footer-rule { height: 1px; background: linear-gradient(90deg, rgba(112,92,246,.2), rgba(112,92,246,.06), transparent); }
.footer-content { display: flex; align-items: center; gap: 15px; padding-top: 18px; }
.footer-brand { font: 800 21px var(--display); letter-spacing: -.08em; color: #272a4b; }
.footer-brand span { color: var(--accent); }
.footer-content p { font-size: 10px; color: #8b91a9; margin: 0; }
.footer-copy { margin-left: auto; font-size: 8px; color: #999fb5; }

/* Owner dialogs use the same bright visual language. */
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(30,33,75,.35); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal-backdrop[hidden] { display: none !important; }
.modal { position: relative; width: min(440px,100%); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.9); border-radius: 21px; box-shadow: 0 30px 100px rgba(39,40,94,.24); padding: 32px; color: var(--text); }
.modal-close { position: absolute; right: 18px; top: 15px; border: 0; background: transparent; color: #858ba5; font-size: 27px; cursor: pointer; line-height: 1; }
.modal-mark { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg,#7b69ff,#4d48c9); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 22px; box-shadow: 0 8px 20px rgba(100,83,223,.25); }
.modal h2 { font: 800 28px var(--display); letter-spacing: -.055em; margin: 5px 0 7px; color: #242646; }
.modal-intro, .editor-intro { font-size: 12px; color: #7d839e; line-height: 1.7; margin-bottom: 22px; }
.login-modal form { display: grid; gap: 8px; }
.modal label, .field label { font-size: 10px; color: #606785; font-weight: 800; margin-top: 5px; }
.modal input, .field input, .field textarea, .social-editor-row input, .social-editor-row select { width: 100%; border: 1px solid rgba(107,111,172,.2); border-radius: 10px; background: #f8f9ff; color: #242646; padding: 11px 12px; outline: none; font-size: 12px; transition: border-color .2s, box-shadow .2s, background .2s; }
.modal input:focus, .field input:focus, .field textarea:focus, .social-editor-row input:focus, .social-editor-row select:focus { border-color: rgba(112,92,246,.65); background: #fff; box-shadow: 0 0 0 4px rgba(112,92,246,.09); }
.primary-button { border: 0; background: linear-gradient(110deg,#7160f1,#4e66d7); color: #fff; border-radius: 10px; padding: 12px 15px; font-weight: 800; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 18px; box-shadow: 0 8px 20px rgba(92,83,207,.2); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(92,83,207,.28); }
.primary-button span { font-size: 16px; }
.login-modal .primary-button { margin-top: 12px; }
.form-message { font-size: 11px; min-height: 16px; color: #c06b58; margin: 3px 0; }
.secure-note { font-size: 9px; color: #949ab0; margin: 20px 0 0; }
.secure-note span { color: #2dbb95; font-size: 8px; margin-right: 5px; }
.editor-backdrop { align-items: start; }
.editor-modal { width: min(760px,100%); margin: 24px auto; padding: 27px 30px; }
.editor-header { display: flex; justify-content: space-between; align-items: start; }
.editor-header h2 { margin: 4px 0 0; }
.editor-close { position: static; font-size: 25px; }
.editor-intro { margin: 8px 0 18px; }
.editor-section { border-top: 1px solid var(--line); padding: 17px 0 19px; }
.editor-section h3 { font: 800 14px var(--display); margin: 0 0 13px; color: #333657; }
.form-grid, .upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 11px; }
.field small { font-size: 9px; color: #9298af; }
.field textarea { resize: vertical; min-height: 82px; }
.upload-grid { margin-top: 4px; }
.upload-grid input { font-size: 10px; padding: 8px; }
.links-editor-heading { display: flex; justify-content: space-between; align-items: center; }
.links-editor-heading h3 { margin: 0; }
.add-link-button { border: 1px solid rgba(112,92,246,.24); background: rgba(112,92,246,.08); color: #5d4bd3; border-radius: 999px; padding: 7px 11px; font-size: 10px; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.add-link-button:hover { background: rgba(112,92,246,.14); transform: translateY(-1px); }
.links-editor-help { margin: 8px 0 0; max-width: 650px; color: #858ba5; font-size: 10px; line-height: 1.65; }
.social-editor-list { display: grid; gap: 9px; margin-top: 14px; }
.social-editor-row { display: grid; grid-template-columns: 118px minmax(120px,.8fr) minmax(180px,1.5fr) minmax(145px,.9fr) 32px; gap: 8px; align-items: center; }
.social-editor-row select { appearance: auto; }
.social-editor-row input, .social-editor-row select { padding: 9px; font-size: 10px; }
.remove-link { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(231,99,129,.22); background: rgba(231,99,129,.07); color: #ca5e7d; cursor: pointer; font-size: 16px; }
.editor-actions { border-top: 1px solid var(--line); padding-top: 15px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.editor-actions .form-message { margin: 0; }
.editor-buttons { display: flex; gap: 9px; }
.secondary-button { border: 1px solid rgba(107,111,172,.2); background: #fff; color: #68708d; border-radius: 9px; padding: 11px 14px; font-size: 11px; cursor: pointer; }
.save-button { min-width: 135px; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 25px; transform: translate(-50%,20px); background: #292b63; color: #fff; padding: 11px 17px; border-radius: 999px; font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 10px 30px rgba(38,39,91,.25); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

/* Scroll-in reveals and gentle activity feedback. */
.motion-ready [data-reveal] { opacity: 0; transform: translate3d(0,22px,0); transition: opacity .72s cubic-bezier(.2,.75,.25,1), transform .72s cubic-bezier(.2,.75,.25,1); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translate3d(0,0,0); }
.motion-ready [data-reveal="scale"] { transform: translate3d(0,14px,0) scale(.975); }
.motion-ready [data-reveal="scale"].is-visible { transform: translate3d(0,0,0) scale(1); }
.social-link:nth-child(2) { transition-delay: .07s; }
.social-link:nth-child(3) { transition-delay: .13s; }
.social-link:nth-child(4) { transition-delay: .19s; }
@keyframes glowBreathe { from { opacity: .38; } to { opacity: .66; } }
@keyframes orbitFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-15px,12px,0) scale(1.04); } }

@media (max-width: 820px) {
  .profile-main { grid-template-columns: 100px minmax(0,1fr); padding-inline: 28px; }
  .avatar-wrap, .avatar { width: 100px; height: 100px; }
  .profile-aside { display: none; }
  .content-grid { grid-template-columns: minmax(0,1fr) 250px; gap: 23px; }
  .note-card { padding: 20px; }
  .social-link { grid-template-columns: 42px minmax(0,1fr) 30px; padding: 11px; }
  .social-icon { width: 42px; height: 42px; }
}
@media (max-width: 650px) {
  .shell { width: min(520px, calc(100% - 30px)); }
  .topbar { height: 67px; }
  .topbar-note { font-size: 8px; }
  .topbar-right { gap: 10px; }
  .main-shell { padding-top: 20px; }
  .hero-banner { height: 190px; }
  .banner-copy { left: 24px; top: 30px; }
  .banner-line { font-size: 31px; }
  .banner-index { right: 18px; bottom: 15px; font-size: 8px; }
  .profile-main { grid-template-columns: 75px minmax(0,1fr); gap: 15px; padding: 0 20px 24px; }
  .avatar-wrap, .avatar { width: 75px; height: 75px; }
  .avatar-wrap { margin-top: -27px; }
  .avatar { border-width: 4px; border-radius: 19px; font-size: 25px; }
  .avatar-ring { border-radius: 24px; }
  .profile-copy { padding-top: 13px; }
  .profile-kicker { font-size: 7px; letter-spacing: .1em; }
  .profile-copy h1 { font-size: 26px; }
  .profile-role { font-size: 10px; }
  .profile-bio { font-size: 11px; line-height: 1.65; }
  .profile-contact { flex-wrap: wrap; font-size: 11px; }
  .contact-label { width: 100%; margin-left: 20px; }
  .ad-top { margin: 18px 0 28px; }
  .ad-728 { min-height: 72px; }
  .content-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .links-column, .right-column { min-width: 0; }
  .ad-native-slot { min-height: 80px; }
  .section-heading h2 { font-size: 27px; }
  .section-count { font-size: 7px; }
  .right-column { grid-template-columns: 1fr 1fr; align-items: start; gap: 13px; }
  .note-card { min-height: 250px; padding: 17px; }
  .note-card h3 { font-size: 22px; }
  .note-card p { font-size: 10px; }
  .note-icon { margin-bottom: 17px; }
  .note-bottom { margin-top: 15px; }
  .ad-square .ad-300 { width: 100%; height: auto; aspect-ratio: 1/1; }
  .ad-square { padding-top: 2px; }
  .ad-square .ad-label { margin-bottom: 8px; }
  .smart-card { padding: 18px; min-height: 135px; }
  .smart-card h3 { font-size: 18px; }
  .smart-card p { font-size: 10px; }
  .smart-button { padding: 9px 11px; font-size: 10px; gap: 8px; }
  .footer { margin-top: 35px; }
  .footer-content { gap: 10px; }
  .footer-content p { font-size: 9px; }
  .footer-copy { font-size: 7px; }
  .editor-modal { padding: 23px 18px; margin: 8px auto; }
  .form-grid, .upload-grid { grid-template-columns: 1fr; gap: 0; }
  .social-editor-row { grid-template-columns: 1fr 1fr 32px; }
  .social-editor-row select { grid-column: 1; grid-row: 1; }
  .social-editor-row input:nth-child(2) { grid-column: 2; grid-row: 1; }
  .social-editor-row input:nth-child(3) { grid-column: 1/3; grid-row: 2; }
  .social-editor-row input:nth-child(4) { grid-column: 1/3; grid-row: 3; }
  .social-editor-row .remove-link { grid-column: 3; grid-row: 1; }
  .editor-actions { display: block; }
  .editor-actions .form-message { margin-bottom: 8px; }
  .editor-buttons { justify-content: space-between; }
  .editor-buttons > * { flex: 1; }
  .modal { padding: 28px 23px; }
}
@media (max-width: 380px) {
  .right-column { grid-template-columns: 1fr; }
  .note-card { min-height: 220px; }
  .profile-main { grid-template-columns: 1fr; gap: 0; }
  .avatar-wrap { margin-top: -30px; }
  .profile-copy { padding-top: 10px; }
  .profile-bio { max-width: 100%; }
  .banner-line { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}

/* Owner MFA verification panel */
.mfa-panel { margin-top: 18px; padding: 18px; border: 1px solid rgba(112,92,246,.18); border-radius: 15px; background: linear-gradient(145deg,rgba(112,92,246,.055),rgba(74,196,208,.055)); }
.mfa-panel h3 { margin: 0 0 7px; color: #303456; font: 800 16px var(--display); }
.mfa-panel .modal-intro { margin: 0 0 13px; }
.mfa-panel form { display: grid; gap: 9px; }
.mfa-panel input { width: 100%; border: 1px solid rgba(107,111,172,.2); border-radius: 10px; background: #fff; color: #242646; padding: 12px; outline: none; text-align: center; letter-spacing: .28em; font-size: 18px; font-weight: 800; }
.mfa-qr { display: block; width: 190px; height: 190px; object-fit: contain; margin: 12px auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mfa-secret-wrap { margin: 10px 0 14px; color: #777e99; font-size: 10px; overflow-wrap: anywhere; }
.mfa-secret-wrap code { display: block; margin-top: 6px; padding: 9px; background: #fff; border-radius: 8px; color: #34365c; font-size: 11px; user-select: all; }
.mfa-cancel { width: 100%; }
