:root {
  --bg: #f8f9fc;
  --bg-soft: #ffffff;
  --ink: #182036;
  --ink-muted: #5c667d;
  --brand: #152cff;
  --brand-strong: #0819c7;
  --brand-soft: #152cff12;
  --accent: #ff1738;
  --accent-soft: #ff173812;
  --line: #e1e5ee;
  --danger: #d40c2f;
  --success: #15803d;
  --shadow: 0 12px 30px #2632580d;
  --shadow-strong: 0 18px 50px #26325818;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, #ffffff 0%, #ffffff 28%, #f2f5ff 28%, #f2f5ff 29%, transparent 29%),
    var(--bg);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .7rem; letter-spacing: 0; }
p { margin: 0 0 1rem; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1rem;
  background: #ffffffed;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px #2632580a;
}
.logo { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.nav-links a, .nav-cta, .nav-logout {
  color: var(--ink);
  border-radius: 6px;
  padding: .42rem .65rem;
  font-size: .94rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.nav-logout {
  min-height: 0;
  background: transparent;
  cursor: pointer;
}
.nav-links a:hover, .nav-logout:hover { color: var(--brand-strong); background: var(--brand-soft); border-color: #cbd2ff; text-decoration: none; }
.nav-links .nav-cta { color: #fff; background: var(--brand); border-color: var(--brand); }

.main-content { width: min(1200px, 100%); margin: 0 auto; padding: 1.7rem 1rem 2.5rem; }
.hero-shell { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 460px); gap: 1.2rem; align-items: center; margin-top: .5rem; }
.hero-copy, .auth-copy { border-left: 4px solid var(--accent); padding: 1rem 1.2rem; animation: rise-in 260ms ease-out; }
.hero-kicker { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin-bottom: .55rem; }
.hero-copy h1, .auth-copy h1 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); max-width: 18ch; }
.hero-lead, .description { color: var(--ink-muted); font-size: 1.03rem; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.hero-points span { border-radius: 6px; border: 1px solid #dce1ec; background: #fff; color: var(--brand-strong); font-size: .84rem; font-weight: 700; padding: .2rem .68rem; }

.button, button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-height: 42px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: .67rem .9rem;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 750;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--brand-strong); text-decoration: none; }
.secondary-button, .ghost-button { background: transparent; color: var(--brand); }
.secondary-button:hover, .ghost-button:hover { background: var(--brand-soft); color: var(--brand-strong); }
.danger-button { background: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .58; cursor: not-allowed; }
.button:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.phone-preview { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-strong); padding: .8rem; animation: float-in 420ms ease-out both; }
.mini-profile { display: grid; gap: .55rem; min-height: 500px; border-radius: 7px; background: linear-gradient(180deg, #ffffff, #eef3ff); padding: 2rem 1rem; text-align: center; }
.avatar-mark, .avatar-fallback { display: grid; place-items: center; margin: 0 auto .3rem; width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; text-transform: uppercase; }
.mini-profile a { display: block; border: 1px solid #cbd2ff; border-radius: 8px; background: #fff; color: var(--ink); padding: .85rem; font-weight: 750; }

.feature-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.feature-card, .panel, .link-card, .stat-card, .policy-terms-page, .auth-form, .loading-card, .not-found-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.feature-card p, .small-font { color: var(--ink-muted); }
.feature-card, .panel, .link-card, .stat-card { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.feature-card:hover, .link-card:hover, .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); border-color: #cbd2ff; }

.auth-shell { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 480px); gap: 1rem; align-items: start; }
form { display: grid; gap: .7rem; }
label { display: grid; gap: .28rem; font-size: .93rem; font-weight: 700; color: var(--ink-muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: .68rem .75rem;
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.password-field {
  position: relative;
  display: block;
  width: 100%;
}
.password-field input { padding-right: 2.75rem; }
.password-peek {
  position: absolute;
  right: .45rem;
  top: 50%;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
}
.password-peek svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-peek:hover, .password-peek.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.form-status { min-height: 1.4rem; margin: 0; font-weight: 700; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }
.advanced-fields { border: 1px solid var(--line); border-radius: 6px; padding: .65rem; background: #f9fbff; }
.advanced-fields summary { cursor: pointer; color: var(--brand-strong); font-weight: 800; }
.advanced-fields .form-grid { margin-top: .65rem; }
.toggle-row { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 700; }
.toggle-row input { width: auto; }
.avatar-uploader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbff;
  padding: .85rem;
}
.avatar-current {
  width: 92px;
  height: 92px;
}
.avatar-current img,
.avatar-current .avatar-fallback {
  width: 92px;
  height: 92px;
  margin: 0;
  border: 4px solid #fff;
  box-shadow: 0 12px 26px #152cff1c, 0 0 0 1px #cbd2ff;
  object-fit: cover;
}
.avatar-upload-copy { display: grid; gap: .5rem; min-width: 0; }
.avatar-upload-copy p { margin: 0; }
.avatar-upload-copy button { width: fit-content; min-height: 36px; padding: .45rem .75rem; }

.dashboard-root { display: grid; gap: 1rem; }
.dashboard-shell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.dashboard-shell-single { grid-template-columns: 1fr; }
.dashboard-main { display: grid; gap: 1rem; min-width: 0; }
.dashboard-preview { position: sticky; top: 76px; }
.panel h2 { font-size: 1.15rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.full-span { grid-column: 1 / -1; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabs button { width: auto; min-height: 36px; padding: .45rem .7rem; background: #fff; color: var(--ink); border-color: var(--line); }
.tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.security-shell {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  gap: .9rem;
}
.security-shell > h2 {
  text-align: center;
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0;
}
.security-card {
  display: grid;
  gap: .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.security-card h3 { margin-bottom: 0; }
.security-card p { margin-bottom: 0; }
.security-card button:not(.password-peek) { width: 100%; }
.danger-zone {
  border-color: #ffb3bf;
  background: #fff8fa;
}
.danger-zone .danger-button {
  background: var(--danger);
  border-color: var(--danger);
}
.danger-zone .danger-button:hover {
  background: #ae0928;
  border-color: #ae0928;
}
.link-list { display: grid; gap: .55rem; }
.link-card { display: grid; gap: .55rem; }
.link-card.dragging { opacity: .5; }
.link-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.link-title { font-weight: 800; }
.feature-dot { display: inline-flex; margin-right: .45rem; border-radius: 999px; padding: .08rem .4rem; background: var(--accent); color: #fff; font-size: .68rem; text-transform: uppercase; vertical-align: middle; }
.link-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.link-actions button { width: auto; min-height: 34px; padding: .38rem .55rem; font-size: .84rem; }
.chip-stack { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .28rem; }
.status-chip { border-radius: 999px; padding: .16rem .5rem; font-size: .78rem; font-weight: 800; background: #16a34a22; color: #15803d; }
.status-chip.inactive { background: #64748b22; color: #64748b; }
.safety-chip { border-radius: 999px; padding: .16rem .5rem; font-size: .78rem; font-weight: 800; background: #64748b22; color: #475569; }
.safety-chip.safe { background: #16a34a22; color: #15803d; }
.safety-chip.pending { background: #f59e0b24; color: #9a5b00; }
.safety-chip.unsafe { background: #ff17381c; color: var(--danger); }
.empty-state { border: 1px dashed #bdd0dc; border-radius: 6px; padding: .8rem; color: var(--ink-muted); background: #f7f8fc; }

.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .55rem; }
.stat-card h3 { margin-bottom: .25rem; color: var(--ink-muted); font-size: .84rem; }
.stat-card strong { display: block; color: var(--brand-strong); font-size: 1.7rem; line-height: 1.1; }
.trend { width: 100%; height: 160px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.bar-view { fill: #152cff; }
.bar-click { fill: #ff1738; }
.modern-table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.modern-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); }
.modern-table tr:last-child td { border-bottom: 0; }
.modern-table td:last-child { text-align: right; color: var(--ink-muted); font-weight: 800; white-space: nowrap; }

.share-box { display: grid; gap: .65rem; justify-items: start; }
.qr-image { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: .4rem; }
.preview-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1206 / 2622;
  margin: .85rem auto 0;
  border: 10px solid #111827;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}
.preview-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: 76px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111827;
  box-shadow: 0 1px 0 #ffffff12;
}
.preview-frame .preview-public-body {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden auto;
  scrollbar-width: thin;
}
.preview-frame .preview-public-profile {
  min-height: 100%;
  padding: 2rem .9rem 1rem;
}

.public-body {
  min-height: 100vh;
  background:
    linear-gradient(150deg, #ffffff 0%, #eef3ff 42%, #f9fbff 42%, #ffffff 100%),
    #eef3ff;
}
.public-body.theme-paper { background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%); }
.public-body.theme-midnight { background: linear-gradient(180deg, #111827 0%, #182036 100%); color: #fff; }
.public-body.theme-mint { background: linear-gradient(180deg, #effff8 0%, #e9fff5 100%); }
.public-body.theme-velvet { background: radial-gradient(circle at 20% 0%, #ff173833 0 22%, transparent 34%), linear-gradient(160deg, #2a0f45 0%, #16204a 48%, #08122d 100%); color: #fff; }
.public-body.theme-sunrise { background: radial-gradient(circle at 82% 8%, #ffcf5a66 0 18%, transparent 32%), linear-gradient(150deg, #ffffff 0%, #fff3e4 44%, #eef3ff 100%); }
.public-body.theme-graphite { background: radial-gradient(circle at 72% 0%, #152cff26 0 20%, transparent 34%), linear-gradient(180deg, #0f172a 0%, #1f2937 100%); color: #fff; }
.public-body.theme-glass { background: linear-gradient(135deg, #f8fbff 0%, #e8eeff 46%, #ffffff 100%); }
.public-profile {
  width: min(560px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.4rem) 1rem 1.4rem;
  animation: profile-rise 320ms ease-out both;
}
.public-header { text-align: center; display: grid; justify-items: center; gap: .45rem; margin-bottom: 1.25rem; }
.public-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 18px 45px #152cff24, 0 0 0 1px #cbd2ff;
  animation: avatar-pop 420ms ease-out both;
}
.public-header h1 { margin-bottom: .05rem; font-size: clamp(1.65rem, 7vw, 2.15rem); letter-spacing: 0; }
.public-header p { width: min(34rem, 100%); color: var(--ink-muted); margin-bottom: .35rem; font-size: 1rem; }
.theme-midnight .public-header p { color: #d1d5db; }
.social-row { display: flex; flex-wrap: wrap; gap: .42rem; justify-content: center; }
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: .25rem .62rem;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px #2632580c;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.social-chip:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 12px 24px #2632581a; text-decoration: none; }
.social-icon { width: 15px; height: 15px; flex: 0 0 15px; fill: currentColor; }
.social-instagram .social-icon { fill: none; }
.youtube-icon .youtube-play, .spotify-icon .spotify-line { fill: #fff; stroke: none; }
.spotify-icon .spotify-line { fill: none; stroke: #fff; stroke-width: 1.25; stroke-linecap: round; }
.social-instagram { background: linear-gradient(135deg, #833ab4 0%, #e1306c 48%, #f77737 100%); color: #fff; }
.social-tiktok { background: #010101; color: #fff; box-shadow: 0 8px 18px #25f4ee22, 0 0 0 1px #ff005022 inset; }
.social-youtube { background: #ff0000; color: #fff; }
.social-x { background: #000; color: #fff; }
.social-github { background: #24292f; color: #fff; }
.social-linkedin { background: #0a66c2; color: #fff; }
.social-facebook { background: #1877f2; color: #fff; }
.social-spotify { background: #1db954; color: #111827; }
.social-spotify .spotify-line { stroke: #111827; }
.social-spotify .spotify-icon circle { fill: #111827; }
.public-links { display: grid; gap: .78rem; }
.public-link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem .72rem;
  min-height: 68px;
  padding: 1rem 1rem;
  border: 1px solid #cbd2ff;
  border-radius: 8px;
  background: #fffffff2;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px #26325812;
  font-weight: 800;
  animation: link-rise 320ms ease-out both;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.public-link:not(.has-thumb) { grid-template-columns: minmax(0, 1fr) auto; }
.public-link:nth-child(2) { animation-delay: 35ms; }
.public-link:nth-child(3) { animation-delay: 70ms; }
.public-link:nth-child(4) { animation-delay: 105ms; }
.public-link:nth-child(5) { animation-delay: 140ms; }
.public-link:hover { border-color: var(--brand); box-shadow: 0 16px 34px #152cff1c; text-decoration: none; transform: translateY(-2px); background: #fff; }
.public-link img { grid-row: span 2; width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #eef3ff; }
.public-link span { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.public-link small { grid-column: 2; color: var(--ink-muted); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.public-link:not(.has-thumb) small { grid-column: 1; }
.public-link b {
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: .2rem .5rem;
  font-size: .72rem;
  font-weight: 800;
}
.public-link em { display: inline-flex; border-radius: 999px; background: var(--accent); color: #fff; padding: .06rem .38rem; font-style: normal; font-size: .68rem; text-transform: uppercase; }
.public-link code { display: inline-flex; margin-left: .35rem; padding: .08rem .35rem; border: 1px dashed #cbd2ff; border-radius: 5px; color: var(--brand-strong); background: #f7f8ff; }
.featured-link { border-color: var(--accent); box-shadow: 0 16px 34px #ff17381a; }
.featured-link::after { content: ""; position: absolute; inset: 0; border-top: 3px solid var(--accent); pointer-events: none; }
.motion-pulse { animation: pulse-link 1.8s ease-in-out infinite; }
.motion-lift:hover { transform: translateY(-3px); }
.motion-shine::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 0%, #ffffff66 45%, transparent 60%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
.video-link { border-color: #ffd0d6; }
.buttons-outline .public-link { background: transparent; border-width: 2px; }
.buttons-soft .public-link { background: #f9fbff; border-color: transparent; }
.buttons-glass .public-link { background: #ffffffb8; border-color: #ffffff8a; backdrop-filter: blur(12px); }
.theme-midnight .public-link, .theme-velvet .public-link, .theme-graphite .public-link { background: #ffffffed; color: var(--ink); }
.theme-midnight .public-footer, .theme-velvet .public-footer, .theme-graphite .public-footer,
.theme-midnight .public-footer a, .theme-velvet .public-footer a, .theme-graphite .public-footer a,
.theme-velvet .public-header p, .theme-graphite .public-header p { color: #e5e7eb; }
.theme-glass .public-link { background: #ffffffb8; backdrop-filter: blur(14px); }
.public-link-disabled { opacity: .72; cursor: not-allowed; }
.public-link-disabled:hover { transform: none; box-shadow: 0 12px 28px #26325812; border-color: #cbd2ff; }
.public-section { margin: .55rem 0 -.05rem; color: var(--ink-muted); text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; text-align: center; font-weight: 800; }
.public-form, .public-faq { display: grid; gap: .55rem; border: 1px solid #cbd2ff; border-radius: 8px; background: #fff; padding: 1rem; box-shadow: 0 12px 28px #26325812; animation: link-rise 320ms ease-out both; }
.public-form strong { font-size: 1rem; }
.public-form p { margin-bottom: 0; color: var(--ink-muted); }
.public-faq summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.public-faq p { margin: .3rem 0 0; color: var(--ink-muted); }
.public-demo-cta { width: 100%; margin-top: 1rem; }
.public-footer {
  margin-top: 1.25rem;
  display: grid;
  justify-items: center;
  gap: .45rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: .78rem;
}
.public-footer p { max-width: 32rem; margin-bottom: 0; }
.public-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .8rem; }
.public-footer a { color: var(--ink-muted); font-weight: 700; }

.management-root { width: min(1180px, 100%); margin: 0 auto; padding: 1rem; }
.management-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 1rem; margin-bottom: .8rem; }
.management-hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.management-tabs { margin-bottom: .8rem; }
.management-shell { display: grid; gap: 1rem; }
.inline-form { display: flex; flex-direction: row; gap: .45rem; align-items: center; }
.inline-form input { min-width: min(320px, 60vw); }

.policy-terms-page { width: min(900px, 100%); margin: 0 auto; }
.policy-updated { color: var(--ink-muted); font-size: .9rem; }
.contact-shell { width: min(680px, 100%); margin: 0 auto; }
.not-found-shell { display: grid; place-items: center; min-height: 58vh; }
.not-found-card { width: min(640px, 100%); text-align: center; }
.not-found-code { margin: 0 0 .5rem; font-size: clamp(2.2rem, 9vw, 4rem); color: var(--brand-strong); font-weight: 800; }
.footer { border-top: 1px solid var(--line); background: #fff; color: var(--ink-muted); text-align: center; padding: 1rem; }
.footer p { margin-bottom: .25rem; }
.footer-disclaimer { font-size: .86rem; }
.footer a { color: var(--ink-muted); }

@media (max-width: 960px) {
  .hero-shell, .auth-shell, .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-preview { position: static; }
  .feature-grid { grid-template-columns: 1fr; }
  .preview-frame { width: min(100%, 330px); }
}

@media (max-width: 680px) {
  .nav-links { gap: .1rem; }
  .nav-links a, .nav-logout { padding: .38rem .45rem; font-size: .86rem; }
  .main-content { padding: 1rem .75rem 1.7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-card, .panel, .link-card, .auth-form { padding: .82rem; }
  .hero-copy, .auth-copy { padding: .85rem 1rem; }
  .management-hero { align-items: flex-start; flex-direction: column; }
  .inline-form { width: 100%; flex-direction: column; align-items: stretch; }
  .modern-table td { display: block; text-align: left; }
  .modern-table td:last-child { text-align: left; white-space: normal; }
  .avatar-uploader { grid-template-columns: 1fr; justify-items: start; }
  .public-profile { padding-inline: .82rem; }
  .public-link { min-height: 64px; padding: .88rem .86rem; }
  .public-link b { font-size: 0; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; }
  .public-link b::before { content: ">"; font-size: .9rem; }
  .social-chip { min-height: 34px; padding-inline: .58rem; }
}

@media (max-width: 520px) {
  .logo { height: 36px; }
  .nav-links a:first-child { display: none; }
  .nav-links .nav-cta { padding-inline: .58rem; }
  .public-avatar { width: 94px; height: 94px; }
  .public-header { margin-bottom: 1rem; }
  .public-header p { font-size: .96rem; }
  .public-links { gap: .65rem; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(12px) rotate(-.6deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes link-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes profile-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes avatar-pop {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-link {
  0%, 100% { box-shadow: 0 8px 20px #26325812; }
  50% { box-shadow: 0 12px 30px #ff173826; }
}

@keyframes shine {
  0%, 45% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
