:root {
    color-scheme: dark;
    --bg: #10120e;
    --ink: #f5f7ee;
    --muted: #a9afa0;
    --accent: #d5fc68;
    --line: #31382a;
    font-family: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(ellipse 560px 460px at 50% 5%, #313d1f 0%, transparent 80%),
        linear-gradient(#ffffff06 1px, transparent 1px) center top / 42px 42px,
        linear-gradient(90deg, #ffffff06 1px, transparent 1px) center top / 42px 42px,
        var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif; overflow-wrap: anywhere; }
svg { flex: none; vertical-align: middle; }

.bio {
    width: min(100%, 580px);
    position: relative;
    margin-inline: auto;
    padding: max(64px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.intro { text-align: center; }
.share {
    position: absolute;
    top: max(24px, env(safe-area-inset-top));
    right: max(24px, env(safe-area-inset-right));
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #20271b;
    color: var(--accent);
}
.emblem {
    display: grid;
    width: 136px;
    height: 136px;
    margin: 0 auto 29px;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, #b1e94733, transparent 72%);
}
.orbit {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    position: relative;
    border: 1px solid #a9dc5463;
    border-radius: 34px;
    transform: rotate(-13deg);
    background: linear-gradient(140deg, #3d5526 0%, #202d16 65%);
    color: var(--accent);
    box-shadow: inset 0 1px #dbff8d2e, 0 8px 35px #a4df4826;
}
.orbit::before { content: ""; position: absolute; inset: 8px; border: 1px solid #d5fc6825; border-radius: 27px; }
.orbit svg { width: 51px; height: 51px; fill: currentColor; transform: rotate(13deg); filter: drop-shadow(0 0 14px #d5fc6855); }
.orbit i { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.handle { margin-bottom: 9px; color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .16em; overflow-wrap: anywhere; }
.intro h1 { font-size: clamp(2.75rem, 11vw, 3.9rem); line-height: 1.02; letter-spacing: -.065em; }
.description { max-width: 34ch; margin: 15px auto 0; color: var(--muted); font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.link-section { margin-top: 42px; }
.link-section h2 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
    color: #c2c8b9;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.link-section h2::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.links, .manage-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.link-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 77px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(115deg, #20251c, #181c15);
    transition: border-color .2s, transform .2s, background .2s;
}
.tile {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: #333d21;
}
.tile.instagram { color: #f6b5ea; background: #482a44; }
.tile.youtube { color: #ffb2a7; background: #452823; }
.tile.linkedin { color: #adceff; background: #26364b; }
.link-content { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.link-content strong { font-size: 1rem; }
.link-content > span { color: var(--muted); font-size: .82rem; }
.arrow { color: #adb6a1; }
.arrow svg { width: 18px; height: 18px; }
@media (hover: hover) {
    .link-card:hover { transform: translateY(-2px); border-color: #88a956; background: #272e20; }
    .link-card:hover .arrow, footer a:hover, .topbar a:hover { color: var(--accent); }
}
.share-status { color: var(--accent); text-align: center; font-size: .82rem; }
.share-status:not(:empty) { margin-top: 16px; }
footer { margin-top: 24px; text-align: center; }
footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .76rem; }
.empty { color: var(--muted); }

.admin { width: min(100%, 1040px); margin: auto; padding: 28px clamp(16px, 4vw, 44px) 48px; }
.admin.login { max-width: 460px; }
.admin h1 { margin: 20px 0; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.055em; }
.admin h2 { font-size: 1.2rem; margin-bottom: 16px; }
.topbar, .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topbar { justify-content: space-between; color: var(--muted); }
.topbar a { display: inline-flex; min-height: 44px; align-items: center; }
.admin-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 16px; }
.panel { min-width: 0; padding: clamp(15px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: 18px; background: #1b2018; }
.profile-panel { grid-column: 1 / -1; }
.stack { display: grid; gap: 13px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: grid; gap: 6px; font-size: .85rem; color: #d1d6c7; }
input, select, textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #414b37;
    border-radius: 9px;
    background: #12160f;
    color: var(--ink);
    font-size: 1rem;
}
textarea { resize: vertical; }
.primary, .subtle, .danger {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: #242b1f;
    font-size: .86rem;
    font-weight: 700;
}
.primary { background: var(--accent); color: #19200b; border-color: var(--accent); }
.danger { color: #ffb7aa; }
.manage-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.manage-list .row-actions { grid-column: 2; }
.message { margin-bottom: 16px; padding: 13px; border: 1px solid #576c35; border-radius: 10px; color: var(--accent); background: #242e1b; overflow-wrap: anywhere; }
.message.error { color: #ffd0c9; border-color: #784f45; background: #34211d; }
@media (max-width: 720px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) {
    .bio { padding-inline: 17px; }
    .link-card { padding-inline: 11px; gap: 11px; }
}
@media (prefers-reduced-motion: reduce) { .link-card { transition: none; } }
