:root {
    color-scheme: dark;
    --bg: #07111f;
    --panel: rgba(15, 23, 42, .78);
    --panel-strong: rgba(15, 23, 42, .94);
    --line: rgba(148, 163, 184, .22);
    --text: #eef6ff;
    --muted: #94a3b8;
    --accent: #22d3ee;
    --accent-2: #a3e635;
    --danger: #fb7185;
    --radius: 16px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 211, 238, .20), transparent 26%),
        radial-gradient(circle at 82% 4%, rgba(163, 230, 53, .16), transparent 24%),
        linear-gradient(135deg, #06101e 0%, #0b1728 45%, #0f172a 100%);
    letter-spacing: 0;
    overflow-x: hidden;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .68;
    background-image:
        linear-gradient(rgba(125, 211, 252, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, .06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
}

.topbar nav,
.button-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: transparent;
    color: #04111f;
    box-shadow: none;
    overflow: visible;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(34, 211, 238, .22));
}

.pill,
.button,
.icon-button,
.danger-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 16px;
    background: rgba(15, 23, 42, .66);
    color: var(--text);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 800;
}

.button:hover,
.icon-button:hover,
.danger-button:hover,
.pill:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, .62);
}

.button.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04111f;
    border: 0;
    box-shadow: 0 18px 48px rgba(34, 211, 238, .24);
}

.button.ghost {
    background: rgba(15, 23, 42, .55);
}

.danger-button {
    color: #fecdd3;
    border-color: rgba(251, 113, 133, .42);
}

main {
    position: relative;
    z-index: 1;
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 92px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
    align-items: center;
    gap: 56px;
    padding: 36px 0 76px;
}

.hero-showcase {
    min-height: calc(100vh - 86px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #bff6ff;
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, .58);
    font-size: 13px;
}

.hero h1 {
    margin: 24px 0 18px;
    max-width: 860px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    color: #b8c6d8;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.qgroup-button {
    border-color: rgba(163, 230, 53, .34);
}

.qgroup-link.disabled {
    cursor: default;
    opacity: .62;
    pointer-events: none;
}

.release-hero .hero-copy {
    min-width: 0;
}

.release-hero .hero-actions {
    margin-top: 28px;
}

.release-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 720px;
    margin-top: 26px;
}

.release-checks span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 999px;
    background: rgba(15, 23, 42, .48);
    color: #cbd5e1;
    padding: 10px 13px;
    font-size: 14px;
    font-weight: 800;
}

.release-checks span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 18px rgba(34, 211, 238, .26);
}

.release-phone-note {
    position: relative;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 16px;
    background: rgba(15, 23, 42, .58);
    color: #d9fff7;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    padding: 14px 16px;
    text-align: center;
}

.release-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.release-module-grid article {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(2, 6, 23, .52));
    padding: 22px;
}

.release-module-grid span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04111f;
    font-weight: 900;
    margin-bottom: 18px;
}

.release-module-grid strong {
    display: block;
    color: #f8fafc;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.release-module-grid p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

.release-section {
    margin-top: 20px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 680px;
    margin-top: 28px;
}

.hero-metrics span {
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 14px;
    background: rgba(15, 23, 42, .48);
    color: #cbd5e1;
    padding: 14px;
}

.hero-metrics b {
    display: block;
    color: #d9fff7;
    font-size: 22px;
    line-height: 1.1;
}

.hero-phone,
.phone-preview {
    position: relative;
    width: min(390px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 34px;
    background: rgba(7, 17, 31, .78);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .38), inset 0 0 0 10px rgba(255, 255, 255, .03);
    padding: 34px 24px;
    overflow: hidden;
}

.hero-phone {
    min-height: 560px;
}

.phone-glow {
    position: absolute;
    top: -90px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 68%);
    animation: pulse 4s ease-in-out infinite;
}

.landing-preview {
    transform: rotate(1.5deg);
}

.orbit-ring {
    position: absolute;
    inset: 26px;
    border: 1px solid rgba(34, 211, 238, .16);
    border-radius: 30px;
    pointer-events: none;
}

.mini-profile {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 26px 0;
}

.avatar,
.preview-avatar,
.profile-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04111f;
    font-weight: 900;
}

.avatar {
    width: 82px;
    height: 82px;
}

.logo-avatar {
    background: transparent;
    border-radius: 18px;
    overflow: visible;
}

.logo-avatar img {
    width: 112%;
    height: 112%;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(34, 211, 238, .22));
}

.mini-link,
.preview-link {
    position: relative;
    display: block;
    margin: 14px 0;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 16px;
    background: rgba(15, 23, 42, .72);
    padding: 16px 18px;
    text-align: center;
}

.signal-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.signal-row span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 1.4s ease-in-out infinite;
}

.signal-row span:nth-child(2) {
    animation-delay: .18s;
}

.signal-row span:nth-child(3) {
    animation-delay: .36s;
}

.feature-grid {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 80px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-grid-rich {
    margin-bottom: 44px;
}

.feature-grid-rich article {
    position: relative;
    overflow: hidden;
}

.feature-grid-rich article::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .54;
}

.feature-grid article,
.panel,
.auth-panel,
.stats-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.feature-grid article {
    padding: 20px;
}

.feature-grid p,
.panel p,
.auth-panel p,
.page-heading p,
small {
    color: var(--muted);
    line-height: 1.7;
}

.auth-panel {
    width: min(520px, calc(100% - 32px));
    margin: 82px auto;
    padding: 28px;
}

.landing-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 80px;
}

.section-heading {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.12;
}

.section-heading p {
    margin: 0;
    color: #b8c6d8;
    font-size: 17px;
    line-height: 1.8;
}

.landing-template-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.landing-template-card {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--tpl-accent) 34%, transparent);
    border-radius: 18px;
    background:
        radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--tpl-accent) 28%, transparent), transparent 34%),
        color-mix(in srgb, var(--tpl-bg) 82%, #020617);
    color: var(--tpl-text);
    min-height: 220px;
    padding: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.landing-template-preview {
    position: relative;
    height: 138px;
    border: 1px solid color-mix(in srgb, var(--tpl-accent) 36%, transparent);
    border-radius: 16px;
    background:
        linear-gradient(color-mix(in srgb, var(--tpl-accent) 10%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--tpl-accent) 10%, transparent) 1px, transparent 1px),
        color-mix(in srgb, var(--tpl-bg) 88%, transparent);
    background-size: 22px 22px;
    margin-bottom: 14px;
}

.landing-template-preview span {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tpl-accent), #a3e635);
    transform: translateX(-50%);
}

.landing-template-preview b,
.landing-template-preview i {
    position: absolute;
    left: 18px;
    right: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--tpl-button);
    border: 1px solid color-mix(in srgb, var(--tpl-accent) 34%, transparent);
}

.landing-template-preview b {
    bottom: 42px;
}

.landing-template-preview i {
    bottom: 16px;
}

.landing-template-card strong,
.landing-template-card small {
    display: block;
}

.landing-template-card small {
    color: color-mix(in srgb, var(--tpl-text) 64%, transparent);
    margin-top: 5px;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.flow-grid article {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(2, 6, 23, .52));
    padding: 22px;
}

.flow-grid b {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04111f;
    margin-bottom: 18px;
}

.flow-grid strong {
    display: block;
    font-size: 20px;
}

.flow-grid p {
    color: var(--muted);
    line-height: 1.7;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.auth-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.auth-actions .button {
    width: 100%;
}

label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 12px;
    background: rgba(2, 6, 23, .68);
    color: var(--text);
    padding: 12px 13px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(34, 211, 238, .7);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.panel-heading h2 {
    margin: 0 0 4px;
}

.panel-heading p {
    margin: 0;
}

.generated-codes textarea {
    min-height: 128px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.side-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: 246px;
    border-right: 1px solid var(--line);
    background: rgba(2, 6, 23, .76);
    backdrop-filter: blur(20px);
    padding: 22px;
    z-index: 10;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-radius: 12px;
    padding: 0 12px;
    color: #d6e4f5;
}

.side-nav a:hover {
    background: rgba(125, 211, 252, .10);
}

.side-nav a.active {
    color: #0f172a;
    background: rgba(10, 132, 255, .12);
}

.side-nav .brand {
    margin-bottom: 22px;
    padding: 0;
}

.workspace {
    min-height: 100vh;
    margin-left: 246px;
    padding: clamp(18px, 3vw, 34px);
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.page-heading h1,
.panel h2,
.auth-panel h1 {
    margin: 8px 0 6px;
    letter-spacing: 0;
}

.editor-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 20px;
    align-items: start;
}

.panel {
    padding: 22px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.phone-preview {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--preview-accent) 35%, transparent), transparent 34%),
        var(--preview-bg);
    color: var(--preview-text);
    min-height: 560px;
}

.preview-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    background: var(--preview-accent);
}

.preview-avatar img,
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-preview h3,
.phone-preview p {
    text-align: center;
}

.phone-preview p {
    color: color-mix(in srgb, var(--preview-text) 72%, transparent);
}

.preview-link {
    background: var(--preview-button);
    border-color: color-mix(in srgb, var(--preview-accent) 45%, transparent);
}

.item-list {
    display: grid;
    gap: 12px;
}

.editable-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    padding: 12px;
    background: rgba(2, 6, 23, .36);
}

.editable-row.dragging {
    opacity: .55;
    border-color: var(--accent);
}

.row-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 8px;
}

.short-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stats-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid article {
    padding: 22px;
}

.stats-grid strong {
    display: block;
    font-size: 34px;
}

.stats-grid span {
    color: var(--muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
}

.table-wrap .data-table {
    min-width: 760px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    padding: 13px 10px;
    text-align: left;
    vertical-align: top;
}

.empty-state {
    border: 1px dashed rgba(59, 130, 246, .28);
    border-radius: 16px;
    background: rgba(255, 255, 255, .46);
    color: #475569;
    line-height: 1.7;
    padding: 18px;
}

.mini-form,
.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-form input {
    width: 126px;
}

.admin-user-form input[name="ban_reason"] {
    width: 180px;
}

.admin-user-results {
    display: grid;
    gap: 16px;
}

.admin-user-search {
    grid-template-columns: minmax(280px, 1fr) auto;
}

.admin-user-grid {
    display: grid;
    gap: 16px;
}

.admin-user-card {
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .52)),
        radial-gradient(circle at top right, rgba(10, 132, 255, .16), transparent 34%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .86);
    padding: 18px;
}

.admin-user-card.status-suspended {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .54)),
        radial-gradient(circle at top right, rgba(245, 158, 11, .18), transparent 34%);
}

.admin-user-card.status-banned {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .54)),
        radial-gradient(circle at top right, rgba(239, 68, 68, .18), transparent 34%);
}

.admin-user-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.admin-user-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #0a84ff, #7c3aed);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(10, 132, 255, .24);
}

.admin-user-card h2 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
}

.admin-user-card p,
.admin-user-links span {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.status-pill {
    justify-self: end;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 999px;
    background: rgba(15, 23, 42, .06);
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
    white-space: nowrap;
}

.status-pill.status-active {
    border-color: rgba(22, 163, 74, .18);
    background: rgba(34, 197, 94, .12);
    color: #15803d;
}

.status-pill.status-suspended {
    border-color: rgba(217, 119, 6, .20);
    background: rgba(245, 158, 11, .14);
    color: #b45309;
}

.status-pill.status-banned {
    border-color: rgba(220, 38, 38, .20);
    background: rgba(239, 68, 68, .13);
    color: #b91c1c;
}

.admin-user-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .44);
    padding: 12px;
    margin-bottom: 14px;
}

.admin-user-links a {
    color: #2563eb;
    font-weight: 800;
    word-break: break-all;
}

.admin-user-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.admin-user-form label {
    min-width: 0;
}

.admin-user-form input,
.admin-user-form select {
    width: 100%;
}

.admin-user-form .wide {
    grid-column: span 2;
}

.admin-user-form .button {
    min-height: 46px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

[data-user-target] {
    gap: 10px;
}

.inline-form label {
    min-width: 170px;
}

.flash-stack {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 6000;
    display: grid;
    gap: 12px;
    width: min(420px, calc(100vw - 36px));
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.flash {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 18px;
    padding: 17px 20px;
    text-align: center;
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: 0;
    box-shadow: 0 26px 86px rgba(15, 23, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .82);
    backdrop-filter: blur(26px) saturate(1.36);
    -webkit-backdrop-filter: blur(26px) saturate(1.36);
    animation: flashPop .18s ease-out;
    transition: transform .18s ease, opacity .18s ease;
    pointer-events: auto;
}

.flash-stack.is-leaving .flash {
    opacity: 0;
    transform: translateY(10px) scale(.97);
}

.flash::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: currentColor;
    opacity: .72;
}

.flash.success {
    background: linear-gradient(180deg, rgba(220, 252, 231, .98), rgba(134, 239, 172, .88));
    color: #064e3b;
}

.flash.error {
    background: linear-gradient(180deg, rgba(254, 226, 226, .98), rgba(252, 165, 165, .90));
    color: #7f1d1d;
}

.profile-body {
    background:
        radial-gradient(circle at top, color-mix(in srgb, var(--profile-accent) 32%, transparent), transparent 38%),
        var(--profile-bg);
}

.profile-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    color: var(--profile-text);
}

.profile-card {
    width: min(460px, 100%);
    text-align: center;
}

.profile-avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto 18px;
    background: var(--profile-accent);
    box-shadow: 0 18px 60px color-mix(in srgb, var(--profile-accent) 34%, transparent);
}

.profile-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.profile-card p {
    color: color-mix(in srgb, var(--profile-text) 74%, transparent);
    line-height: 1.7;
}

.public-links {
    display: grid;
    gap: 13px;
    margin-top: 24px;
}

.public-link,
.public-text,
.public-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--profile-accent) 35%, transparent);
    background: color-mix(in srgb, var(--profile-button) 86%, transparent);
    color: var(--profile-text);
    padding: 14px 16px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, .20);
}

.profile-page.line .public-link,
.profile-page.line .public-text {
    background: transparent;
}

.profile-page.solid .public-link,
.profile-page.solid .public-text {
    border-color: transparent;
}

.public-link span,
.public-text {
    text-align: left;
}

.public-link small,
.public-text span {
    display: block;
    color: color-mix(in srgb, var(--profile-text) 62%, transparent);
    margin-top: 3px;
}

.public-divider {
    min-height: auto;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    letter-spacing: 0;
}

.profile-page footer {
    margin-top: 28px;
    color: color-mix(in srgb, var(--profile-text) 52%, transparent);
    font-size: 13px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-line input {
    width: auto;
}

.dashboard-lower {
    margin-top: 20px;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    min-height: 220px;
    align-items: end;
    padding-top: 12px;
}

.bar-chart.large {
    grid-template-columns: repeat(14, minmax(0, 1fr));
}

.bar-day {
    display: grid;
    gap: 8px;
    text-align: center;
}

.bar-pair {
    height: 170px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    border-radius: 12px;
    background: rgba(2, 6, 23, .34);
    padding: 8px;
}

.bar-pair span,
.bar-pair b {
    display: block;
    width: 13px;
    min-height: 4px;
    border-radius: 999px 999px 2px 2px;
}

.bar-pair span {
    background: linear-gradient(180deg, #67e8f9, #0891b2);
}

.bar-pair b {
    background: linear-gradient(180deg, #bef264, #65a30d);
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.chart-legend span,
.chart-legend b {
    display: inline-block;
    width: 24px;
    height: 10px;
    border-radius: 999px;
}

.chart-legend span {
    background: #22d3ee;
}

.chart-legend b {
    background: #a3e635;
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 28%, rgba(34, 211, 238, .18), transparent 34%),
        rgba(2, 6, 23, .82);
    backdrop-filter: blur(16px);
    animation: modalFade .18s ease-out;
}

.notice-dialog {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    max-height: min(72vh, 620px);
    overflow: auto;
    border: 1px solid rgba(125, 211, 252, .32);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(8, 18, 32, .98)),
        #0f172a;
    box-shadow:
        0 34px 110px rgba(0, 0, 0, .62),
        0 0 0 1px rgba(255, 255, 255, .04) inset;
    padding: 30px;
    transform: translateY(0) scale(1);
    animation: modalPop .22s ease-out;
}

.notice-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 50%;
    background: rgba(2, 6, 23, .72);
    color: var(--text);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.notice-dialog h2 {
    margin: 18px 0 10px;
    font-size: 28px;
}

.notice-dialog p {
    color: #dbeafe;
    line-height: 1.8;
    white-space: normal;
}

.notice-dialog .button-row {
    margin-top: 22px;
}

.notice-list,
.notice-admin-row {
    display: grid;
    gap: 12px;
}

.notice-list article,
.notice-admin-row {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    padding: 14px;
    background: rgba(2, 6, 23, .34);
}

.notice-list article.unread {
    border-color: rgba(34, 211, 238, .54);
}

.notice-admin-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

/* Frosted notice modal, aligned with the current iOS/macOS style. */
.notice-modal {
    background:
        radial-gradient(circle at 50% 20%, rgba(10, 132, 255, .16), transparent 34%),
        rgba(241, 246, 255, .72);
    backdrop-filter: blur(26px) saturate(1.28);
    -webkit-backdrop-filter: blur(26px) saturate(1.28);
}

.notice-dialog {
    color: #111827;
    border-color: rgba(255, 255, 255, .72);
    background:
        radial-gradient(circle at 82% 0%, rgba(10, 132, 255, .10), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .66));
    box-shadow:
        0 28px 90px rgba(15, 23, 42, .18),
        inset 0 1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(28px) saturate(1.34);
    -webkit-backdrop-filter: blur(28px) saturate(1.34);
}

.notice-dialog .eyebrow {
    border-color: rgba(255, 255, 255, .68);
    background: rgba(34, 48, 68, .58);
    color: #dff7ff;
}

.notice-dialog h2 {
    color: #111827;
}

.notice-dialog p {
    color: #475569;
}

.notice-close {
    color: #475569;
    border-color: rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.notice-dialog .button.primary {
    color: #fff;
    background: linear-gradient(135deg, #0a84ff, #30d158);
    box-shadow: 0 16px 36px rgba(10, 132, 255, .22);
}

.notice-dialog .button.ghost {
    color: #111827;
    border-color: rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .48);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.template-tile {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(2, 6, 23, .34);
    padding: 14px;
}

.disabled-profile .profile-avatar {
    background: #fb7185;
    color: #fff;
}

.disabled-profile h1 {
    color: #fecdd3;
}

.dashboard-body,
.admin-body {
    color-scheme: light;
    --bg: #f5f7fb;
    --panel: rgba(255, 255, 255, .72);
    --panel-strong: rgba(255, 255, 255, .92);
    --line: rgba(15, 23, 42, .10);
    --text: #0f172a;
    --muted: #64748b;
    --accent: #0a84ff;
    --accent-2: #30d158;
    background:
        radial-gradient(circle at 12% 0%, rgba(10, 132, 255, .16), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(48, 209, 88, .12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
}

.dashboard-body .ambient,
.admin-body .ambient {
    opacity: .24;
    background-size: 64px 64px;
    background-image:
        linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
}

.dashboard-body .side-nav,
.admin-body .side-nav {
    border-right-color: rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .72);
    box-shadow: 18px 0 60px rgba(15, 23, 42, .08);
}

.dashboard-body .side-nav a,
.admin-body .side-nav a {
    color: #334155;
}

.dashboard-body .side-nav a:hover,
.admin-body .side-nav a:hover {
    background: rgba(10, 132, 255, .10);
    color: #0f172a;
}

.dashboard-body .panel,
.dashboard-body .auth-panel,
.dashboard-body .stats-grid article,
.admin-body .panel,
.admin-body .auth-panel,
.admin-body .stats-grid article {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(15, 23, 42, .08);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .08);
}

.dashboard-body label,
.admin-body label {
    color: #334155;
}

.dashboard-body input,
.dashboard-body textarea,
.dashboard-body select,
.admin-body input,
.admin-body textarea,
.admin-body select {
    background: rgba(248, 250, 252, .86);
    border-color: rgba(15, 23, 42, .10);
    color: #0f172a;
}

.dashboard-tabs {
    position: sticky;
    top: 18px;
    z-index: 8;
    display: flex;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 20px;
    padding: 7px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
    overflow-x: auto;
}

.dashboard-tabs a {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 15px;
    color: #475569;
    font-weight: 800;
}

.dashboard-tabs a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0a84ff, #38bdf8);
    box-shadow: 0 10px 28px rgba(10, 132, 255, .26);
}

.ios-heading h1 {
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: 0;
}

.profile-studio {
    align-items: stretch;
}

.preview-column {
    display: grid;
    gap: 18px;
    align-content: start;
    position: sticky;
    top: 86px;
}

.phone-dynamic-island {
    width: 92px;
    height: 28px;
    margin: 0 auto 28px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .76);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.preview-links {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.preview-link,
.public-link,
.public-text {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.preview-link:hover,
.public-link:hover {
    transform: translateY(-2px);
}

.segmented-field {
    display: grid;
    gap: 10px;
}

.segmented-field > span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.segmented-control {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(15, 23, 42, .06);
    border: 1px solid rgba(15, 23, 42, .08);
}

.segmented-control.wrap {
    flex-wrap: wrap;
}

.segmented-control label {
    display: block;
    flex: 1 1 auto;
    min-width: 86px;
    color: inherit;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-control span {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 14px;
    padding: 0 12px;
    color: #475569;
    font-weight: 800;
    cursor: pointer;
}

.segmented-control input:checked + span {
    color: #0f172a;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.profile-page.avatar-circle .profile-avatar,
.phone-preview.avatar-circle .preview-avatar {
    border-radius: 50%;
}

.profile-page.avatar-rounded .profile-avatar,
.phone-preview.avatar-rounded .preview-avatar {
    border-radius: 28px;
}

.profile-page.avatar-square .profile-avatar,
.phone-preview.avatar-square .preview-avatar {
    border-radius: 10px;
}

.profile-page.effect-aurora .profile-avatar,
.profile-page.effect-pink .profile-avatar,
.profile-page.effect-cyan .profile-avatar,
.profile-page.effect-gold .profile-avatar,
.profile-page.effect-pulse .profile-avatar,
.phone-preview.effect-aurora .preview-avatar,
.phone-preview.effect-pink .preview-avatar,
.phone-preview.effect-cyan .preview-avatar,
.phone-preview.effect-gold .preview-avatar,
.phone-preview.effect-pulse .preview-avatar {
    position: relative;
    isolation: isolate;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    --avatar-ring-width: 3px;
    --avatar-ring-offset: -4px;
    --avatar-ring-glow: 0 0 14px rgba(244, 114, 182, .54), 0 0 24px rgba(139, 92, 246, .22);
}

.profile-page.effect-aurora .profile-avatar > img,
.profile-page.effect-pink .profile-avatar > img,
.profile-page.effect-cyan .profile-avatar > img,
.profile-page.effect-gold .profile-avatar > img,
.profile-page.effect-pulse .profile-avatar > img,
.profile-page.effect-aurora .profile-avatar > span,
.profile-page.effect-pink .profile-avatar > span,
.profile-page.effect-cyan .profile-avatar > span,
.profile-page.effect-gold .profile-avatar > span,
.profile-page.effect-pulse .profile-avatar > span,
.phone-preview.effect-aurora .preview-avatar > img,
.phone-preview.effect-pink .preview-avatar > img,
.phone-preview.effect-cyan .preview-avatar > img,
.phone-preview.effect-gold .preview-avatar > img,
.phone-preview.effect-pulse .preview-avatar > img,
.phone-preview.effect-aurora .preview-avatar > span,
.phone-preview.effect-pink .preview-avatar > span,
.phone-preview.effect-cyan .preview-avatar > span,
.phone-preview.effect-gold .preview-avatar > span,
.phone-preview.effect-pulse .preview-avatar > span {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--profile-accent, var(--preview-accent)), rgba(15, 23, 42, .92));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.profile-page.effect-aurora .profile-avatar::before,
.profile-page.effect-pink .profile-avatar::before,
.profile-page.effect-cyan .profile-avatar::before,
.profile-page.effect-gold .profile-avatar::before,
.profile-page.effect-pulse .profile-avatar::before,
.phone-preview.effect-aurora .preview-avatar::before,
.phone-preview.effect-pink .preview-avatar::before,
.phone-preview.effect-cyan .preview-avatar::before,
.phone-preview.effect-gold .preview-avatar::before,
.phone-preview.effect-pulse .preview-avatar::before {
    content: "";
    position: absolute;
    inset: var(--avatar-ring-offset);
    z-index: 3;
    border-radius: inherit;
    padding: var(--avatar-ring-width);
    background: var(--avatar-ring);
    box-shadow: var(--avatar-ring-glow);
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: avatar-ring-flow 3.8s linear infinite;
}

.profile-page.effect-aurora .profile-avatar::after,
.profile-page.effect-pink .profile-avatar::after,
.profile-page.effect-cyan .profile-avatar::after,
.profile-page.effect-gold .profile-avatar::after,
.profile-page.effect-pulse .profile-avatar::after,
.phone-preview.effect-aurora .preview-avatar::after,
.phone-preview.effect-pink .preview-avatar::after,
.phone-preview.effect-cyan .preview-avatar::after,
.phone-preview.effect-gold .preview-avatar::after,
.phone-preview.effect-pulse .preview-avatar::after {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: 0;
    border-radius: inherit;
    background: var(--avatar-edge-glow);
    filter: blur(7px);
    opacity: .58;
    pointer-events: none;
    animation: avatar-edge-breathe 2.6s ease-in-out infinite;
}

.profile-page.effect-aurora .profile-avatar,
.phone-preview.effect-aurora .preview-avatar {
    --avatar-ring: conic-gradient(from var(--avatar-angle), #f9a8d4, #60a5fa, #34d399, #a78bfa, #f9a8d4);
    --avatar-edge-glow: conic-gradient(from 0deg, rgba(249, 168, 212, .72), rgba(96, 165, 250, .48), rgba(52, 211, 153, .42), rgba(167, 139, 250, .58), rgba(249, 168, 212, .72));
    --avatar-ring-glow: 0 0 12px rgba(96, 165, 250, .45), 0 0 22px rgba(52, 211, 153, .22);
}

.profile-page.effect-pink .profile-avatar,
.phone-preview.effect-pink .preview-avatar {
    --avatar-ring: conic-gradient(from var(--avatar-angle), #ff5f91, #ff9ac8, #8b5cf6, #f472b6, #ff5f91);
    --avatar-edge-glow: conic-gradient(from 0deg, rgba(255, 95, 145, .78), rgba(255, 154, 200, .52), rgba(139, 92, 246, .62), rgba(244, 114, 182, .7), rgba(255, 95, 145, .78));
    --avatar-ring-glow: 0 0 12px rgba(255, 95, 145, .66), 0 0 22px rgba(139, 92, 246, .32);
}

.profile-page.effect-cyan .profile-avatar,
.phone-preview.effect-cyan .preview-avatar {
    --avatar-ring: conic-gradient(from var(--avatar-angle), #38bdf8, #22d3ee, #2dd4bf, #60a5fa, #38bdf8);
    --avatar-edge-glow: conic-gradient(from 0deg, rgba(56, 189, 248, .72), rgba(34, 211, 238, .5), rgba(45, 212, 191, .46), rgba(96, 165, 250, .58), rgba(56, 189, 248, .72));
    --avatar-ring-glow: 0 0 12px rgba(34, 211, 238, .58), 0 0 22px rgba(59, 130, 246, .28);
}

.profile-page.effect-gold .profile-avatar,
.phone-preview.effect-gold .preview-avatar {
    --avatar-ring: conic-gradient(from var(--avatar-angle), #fde68a, #f59e0b, #fb7185, #facc15, #fde68a);
    --avatar-edge-glow: conic-gradient(from 0deg, rgba(253, 230, 138, .72), rgba(245, 158, 11, .5), rgba(251, 113, 133, .46), rgba(250, 204, 21, .6), rgba(253, 230, 138, .72));
    --avatar-ring-glow: 0 0 12px rgba(250, 204, 21, .58), 0 0 22px rgba(251, 113, 133, .24);
}

.profile-page.effect-pulse .profile-avatar,
.phone-preview.effect-pulse .preview-avatar {
    --avatar-ring: conic-gradient(from var(--avatar-angle), rgba(255, 255, 255, .95), var(--profile-accent, var(--preview-accent)), rgba(255, 255, 255, .95));
    --avatar-edge-glow: conic-gradient(from 0deg, rgba(255, 255, 255, .58), color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 62%, transparent), rgba(255, 255, 255, .58));
    --avatar-ring-glow: 0 0 13px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 58%, transparent);
}

.profile-page.effect-pulse .profile-avatar::before,
.phone-preview.effect-pulse .preview-avatar::before {
    animation: avatar-edge-breathe 2.1s ease-in-out infinite;
}

@property --avatar-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes avatar-ring-flow {
    from {
        --avatar-angle: 0deg;
    }
    to {
        --avatar-angle: 360deg;
    }
}

@keyframes avatar-edge-breathe {
    0%,
    100% {
        transform: scale(.985);
        opacity: .4;
    }
    50% {
        transform: scale(1.02);
        opacity: .72;
    }
}

.profile-page.buttons-filled .public-link,
.profile-page.buttons-filled .public-text,
.phone-preview.buttons-filled .preview-link {
    border-color: transparent;
    background: var(--profile-button, var(--preview-button));
}

.profile-page.buttons-outline .public-link,
.profile-page.buttons-outline .public-text,
.phone-preview.buttons-outline .preview-link {
    background: transparent;
    border-width: 2px;
}

.profile-page.buttons-soft .public-link,
.profile-page.buttons-soft .public-text,
.phone-preview.buttons-soft .preview-link {
    background: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 16%, transparent);
    border-color: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 22%, transparent);
    box-shadow: none;
}

.profile-page.buttons-neon .public-link,
.profile-page.buttons-neon .public-text,
.phone-preview.buttons-neon .preview-link {
    border-color: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 70%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 25%, transparent), 0 18px 56px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 30%, transparent);
}

.profile-page.buttons-flat .public-link,
.profile-page.buttons-flat .public-text,
.phone-preview.buttons-flat .preview-link {
    border-color: transparent;
    border-radius: 10px;
    box-shadow: none;
}

.link-manager-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.item-list-panel {
    margin-top: 18px;
}

.list-row,
.short-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, .54);
}

.list-row strong,
.list-row small {
    display: block;
}

.floating-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 5000;
    min-width: 168px;
    max-width: calc(100vw - 48px);
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 18px;
    background: rgba(15, 23, 42, .88);
    color: #fff;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .26), inset 0 1px 0 rgba(255, 255, 255, .12);
    padding: 14px 18px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 0;
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    animation: toastPop .18s ease-out;
}

.analytics-summary strong {
    font-size: 38px;
}

.analytics-panel {
    margin-bottom: 18px;
}

.analytics-chart {
    grid-template-columns: repeat(14, minmax(46px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
}

.bar-chart.mini {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 160px;
}

.bar-triple {
    height: 210px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .05);
    padding: 8px;
}

.bar-triple span,
.bar-triple b,
.bar-triple i {
    display: block;
    width: 11px;
    min-height: 4px;
    border-radius: 999px 999px 3px 3px;
}

.bar-triple span {
    background: linear-gradient(180deg, #64d2ff, #0a84ff);
}

.bar-triple b {
    background: linear-gradient(180deg, #7ee787, #30d158);
}

.bar-triple i,
.chart-legend i {
    background: linear-gradient(180deg, #d8b4fe, #8b5cf6);
}

.chart-legend i {
    display: inline-block;
    width: 24px;
    height: 10px;
    border-radius: 999px;
}

@keyframes pulse {
    0%, 100% { transform: scale(.92); opacity: .62; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes blink {
    0%, 100% { transform: translateY(0); opacity: .35; }
    50% { transform: translateY(-5px); opacity: 1; }
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop {
    from { transform: translateY(18px) scale(.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toastPop {
    from { transform: translate(-50%, -44%) scale(.96); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes flashPop {
    from { transform: translateY(12px) scale(.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 980px) {
    .hero,
    .feature-grid,
    .landing-template-grid,
    .release-module-grid,
    .flow-grid,
    .editor-grid,
    .split-grid,
    .link-manager-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 40px;
    }

    .feature-grid {
        margin-top: 0;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .landing-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .side-nav {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 12px;
    }

    .side-nav .brand {
        margin: 0;
        min-width: max-content;
    }

    .side-nav a {
        min-width: max-content;
    }

    .workspace {
        margin-left: 0;
        padding: 22px 16px;
    }

    .preview-column {
        position: static;
    }

    .row-form,
    .editable-row {
        grid-template-columns: 1fr;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .bar-chart.large {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        overflow-x: auto;
    }
}

@media (max-width: 620px) {
    body {
        background:
            radial-gradient(circle at 50% 0%, rgba(34, 211, 238, .16), transparent 34%),
            linear-gradient(135deg, #06101e 0%, #0b1728 100%);
    }

    .topbar {
        width: min(100% - 24px, 1180px);
        align-items: center;
        flex-direction: row;
        gap: 10px;
        padding: 18px 0 12px;
    }

    .topbar .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .topbar .brand span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        flex: 0 0 auto;
    }

    .topbar nav {
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .topbar nav a {
        white-space: nowrap;
        font-size: 16px;
        font-weight: 800;
    }

    .topbar nav .pill {
        padding: 10px 14px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero {
        width: min(100% - 24px, 1180px);
        gap: 28px;
        padding-bottom: 42px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .landing-section {
        width: min(100% - 24px, 1180px);
        margin-bottom: 48px;
    }

    .landing-template-grid,
    .release-module-grid,
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .landing-template-card {
        min-height: 0;
    }

    .landing-preview {
        transform: none;
    }

    .hero-phone,
    .phone-preview {
        border-radius: 24px;
        min-height: auto;
        padding: 26px 18px;
    }

    .release-checks {
        gap: 8px;
    }

    .release-checks span {
        width: 100%;
        justify-content: flex-start;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading h1 {
        font-size: 28px;
    }

    .panel,
    .auth-panel {
        border-radius: 14px;
        padding: 18px;
    }

    .color-grid {
        grid-template-columns: 1fr;
    }

    .data-table th,
    .data-table td {
        padding: 11px 8px;
        min-width: 118px;
    }

    .mini-form,
    .inline-form,
    .row-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mini-form input,
    .mini-form select,
    .inline-form label,
    .admin-user-form input[name="ban_reason"] {
        width: 100%;
    }

    .stats-grid.compact,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .bar-chart,
    .bar-chart.large {
        gap: 8px;
    }

    .analytics-chart {
        grid-template-columns: repeat(14, minmax(42px, 1fr));
    }

    .bar-pair {
        height: 132px;
        padding: 6px;
    }

    .bar-triple {
        height: 150px;
        padding: 6px;
    }

    .short-link-row {
        grid-template-columns: 1fr;
    }

    .notice-admin-row {
        grid-template-columns: 1fr;
    }

    .notice-modal {
        align-items: flex-end;
        padding: 14px;
    }

    .notice-dialog {
        width: 100%;
        max-height: 84vh;
        border-radius: 20px;
        padding: 24px 18px 18px;
    }

    .notice-dialog h2 {
        font-size: 24px;
        padding-right: 38px;
    }

    .notice-dialog .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .notice-dialog .button,
    .notice-dialog form {
        width: 100%;
    }

}

@media (max-width: 380px) {
    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .topbar nav {
        width: 100%;
        justify-content: flex-end;
    }

    .topbar nav a {
        font-size: 14px;
    }

    .topbar nav .pill {
        padding: 9px 12px;
    }
}

/* Final mobile polish: frosted glass, no horizontal drift, compact form controls. */
@media (max-width: 900px) {
    html,
    body,
    .dashboard-body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .dashboard-body {
        color: #111827;
        background:
            radial-gradient(circle at 18% 6%, rgba(10, 132, 255, .12), transparent 32%),
            radial-gradient(circle at 86% 0%, rgba(255, 255, 255, .96), transparent 34%),
            linear-gradient(180deg, #fbfdff 0%, #edf4ff 48%, #f8fbff 100%) !important;
    }

    .dashboard-body .ambient {
        opacity: .10 !important;
        background-size: 96px 96px !important;
    }

    .dashboard-body .workspace {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: clip !important;
        padding-top: 22px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: calc(124px + env(safe-area-inset-bottom)) !important;
    }

    .dashboard-body .panel,
    .dashboard-body .stats-grid article,
    .dashboard-body .notice-list article,
    .dashboard-body .notice-admin-row,
    .dashboard-body .editable-row,
    .dashboard-body .list-row,
    .dashboard-body .short-link-row {
        max-width: 100% !important;
        min-width: 0 !important;
        border-color: rgba(255, 255, 255, .72) !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .62)) !important;
        box-shadow: 0 18px 58px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
        backdrop-filter: blur(24px) saturate(1.28) !important;
        -webkit-backdrop-filter: blur(24px) saturate(1.28) !important;
    }

    .dashboard-body .side-nav {
        position: fixed !important;
        top: auto !important;
        left: max(12px, env(safe-area-inset-left)) !important;
        right: max(12px, env(safe-area-inset-right)) !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: auto !important;
        height: 76px !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(52px, 1fr)) !important;
        gap: 4px !important;
        padding: 8px !important;
        border-radius: 30px !important;
        border-color: rgba(255, 255, 255, .78) !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .66)) !important;
        box-shadow: 0 18px 58px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
        backdrop-filter: blur(32px) saturate(1.48) !important;
        -webkit-backdrop-filter: blur(32px) saturate(1.48) !important;
        overflow: visible !important;
        z-index: 1000 !important;
    }

    .dashboard-body .side-nav .brand,
    .dashboard-body .side-nav a[href="/logout"] {
        display: none !important;
    }

    .dashboard-body .side-nav a {
        min-width: 0 !important;
        min-height: 58px !important;
        display: grid !important;
        place-items: center !important;
        gap: 2px !important;
        padding: 6px 4px !important;
        border-radius: 22px !important;
        color: #475569 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .dashboard-body .side-nav a::before {
        display: block;
        font-size: 22px;
        line-height: 1;
        color: #0a84ff;
    }

    .dashboard-body .side-nav a:hover,
    .dashboard-body .side-nav a:active,
    .dashboard-body .side-nav a.active {
        background: rgba(10, 132, 255, .12) !important;
        color: #0f172a !important;
        transform: translateY(-1px);
    }

    .dashboard-tabs {
        display: none !important;
    }

    .ios-heading {
        margin-top: 4px;
    }

    .ios-heading h1 {
        font-size: 42px;
        line-height: 1.05;
    }

    .dashboard-body .side-nav a[href="/dashboard"]::before {
        content: "\2302" !important;
    }

    .dashboard-body .side-nav a[href="/dashboard/links"]::before {
        content: "\002B" !important;
    }

    .dashboard-body .side-nav a[href="/dashboard/analytics"]::before {
        content: "\25A6" !important;
    }

    .dashboard-body .side-nav a[href="/dashboard/notifications"]::before {
        content: "\25CF" !important;
    }

    .dashboard-body input,
    .dashboard-body textarea,
    .dashboard-body select {
        max-width: 100% !important;
        min-width: 0 !important;
        border-color: rgba(15, 23, 42, .10) !important;
        background: rgba(255, 255, 255, .58) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74) !important;
    }

    .dashboard-body .eyebrow {
        border-color: rgba(255, 255, 255, .64) !important;
        background: rgba(34, 48, 68, .58) !important;
        color: #dff7ff !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
    }

    .dashboard-body .button.primary {
        color: #fff !important;
        background: linear-gradient(135deg, #0a84ff, #4f9cff) !important;
        box-shadow: 0 16px 36px rgba(10, 132, 255, .24) !important;
    }

    .dashboard-body .button.ghost,
    .dashboard-body .icon-button {
        color: #111827 !important;
        background: rgba(255, 255, 255, .50) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    .editor-grid,
    .split-grid,
    .link-manager-grid,
    .stats-grid,
    .row-form,
    .editable-row,
    .short-link-row,
    .list-row {
        grid-template-columns: 1fr !important;
    }

    .preview-column {
        position: static !important;
    }

    .button,
    .icon-button,
    .danger-button {
        min-height: 48px;
    }

    .row-form,
    .button-row,
    .item-list,
    .stack-form,
    .panel-heading,
    .mini-form,
    .inline-form,
    .editable-row form {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .row-form input,
    .row-form select,
    .row-form button,
    .editable-row form,
    .short-link-row form,
    .list-row form {
        width: 100% !important;
        min-width: 0 !important;
    }

    .short-link-row .button-row,
    .list-row .button-row {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .analytics-chart,
    .table-wrap {
        max-width: 100% !important;
        overflow-x: auto !important;
    }
}

.avatar-remove-button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    cursor: pointer;
}

.avatar-remove-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.avatar-remove-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(251, 113, 133, .34);
    border-radius: 999px;
    color: #be123c;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 12px 28px rgba(190, 18, 60, .08);
    font-weight: 900;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.avatar-remove-button input:checked + span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.public-address-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -6px 0 22px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62));
    box-shadow: 0 16px 46px rgba(15, 23, 42, .09), inset 0 1px 0 rgba(255, 255, 255, .84);
    backdrop-filter: blur(22px) saturate(1.28);
    -webkit-backdrop-filter: blur(22px) saturate(1.28);
}

.public-address-card div {
    min-width: 0;
}

.public-address-card span {
    display: block;
    margin-bottom: 4px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.public-address-card a {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-body .panel p,
.dashboard-body .page-heading p,
.dashboard-body small,
.dashboard-body .panel-heading p,
.dashboard-body .phone-preview p {
    color: #475569;
}

.dashboard-body label,
.dashboard-body .segmented-field > span {
    color: #1f2937;
}

.dashboard-body .editable-row .icon-button,
.dashboard-body .list-row .icon-button,
.dashboard-body .short-link-row .icon-button,
.dashboard-body .mini-form button,
.dashboard-body .row-form button {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #2563eb, #0a84ff) !important;
    box-shadow: 0 12px 28px rgba(10, 132, 255, .20) !important;
}

.dashboard-body .editable-row form[action="/dashboard/links/toggle"] .icon-button {
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .08) !important;
    background: rgba(255, 255, 255, .76) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 10px 24px rgba(15, 23, 42, .08) !important;
}

.dashboard-body .danger-button {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #fb7185, #e11d48) !important;
    box-shadow: 0 12px 28px rgba(225, 29, 72, .20) !important;
}

@media (max-width: 900px) {
    .public-address-card {
        align-items: stretch;
        flex-direction: column;
        margin: 0 0 18px;
        border-radius: 26px;
        padding: 16px;
    }

    .public-address-card .button {
        width: 100%;
    }
}

/* Unified frosted theme for public pages, auth pages, and admin workspace. */
.public-body,
.admin-body {
    color-scheme: light;
    --bg: #f8fbff;
    --panel: rgba(255, 255, 255, .70);
    --panel-strong: rgba(255, 255, 255, .88);
    --line: rgba(15, 23, 42, .10);
    --text: #111827;
    --muted: #667085;
    --accent: #0a84ff;
    --accent-2: #30d158;
    background:
        radial-gradient(circle at 14% 4%, rgba(10, 132, 255, .14), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .95), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #edf4ff 46%, #f8fbff 100%);
}

.public-body .ambient,
.admin-body .ambient {
    opacity: .12;
    background-size: 92px 92px;
    background-image:
        linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
}

.public-body .topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    width: min(1180px, calc(100% - 28px));
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .58));
    box-shadow: 0 18px 58px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(28px) saturate(1.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
}

.public-body .topbar nav a,
.public-body .pill,
.public-body .button,
.admin-body .button,
.admin-body .icon-button,
.admin-body .danger-button {
    color: #111827;
    border-color: rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .54);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.public-body .topbar nav .qgroup-link {
    border-color: rgba(10, 132, 255, .14);
    background: rgba(10, 132, 255, .08);
    color: #1d4ed8;
    font-weight: 900;
}

.public-body .button.primary,
.admin-body .button.primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #0a84ff, #4f9cff);
    box-shadow: 0 16px 36px rgba(10, 132, 255, .24);
}

.public-body .hero {
    min-height: auto;
    width: min(1180px, calc(100% - 28px));
    margin-top: 18px;
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 34px;
    background:
        radial-gradient(circle at 78% 4%, rgba(10, 132, 255, .12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .54));
    box-shadow: 0 22px 70px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .82);
    backdrop-filter: blur(24px) saturate(1.26);
    -webkit-backdrop-filter: blur(24px) saturate(1.26);
}

.public-body .hero h1,
.public-body .section-heading h2,
.public-body .auth-panel h1,
.admin-body .page-heading h1,
.admin-body .panel h1,
.admin-body .panel h2 {
    color: #111827;
}

.public-body .hero p,
.public-body .section-heading p,
.public-body .feature-grid p,
.public-body .panel p,
.public-body .auth-panel p,
.admin-body .panel p,
.admin-body .page-heading p,
.admin-body small {
    color: #667085;
}

.public-body .eyebrow,
.admin-body .eyebrow {
    border-color: rgba(255, 255, 255, .64);
    background: rgba(34, 48, 68, .58);
    color: #dff7ff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.public-body .hero-metrics span,
.public-body .feature-grid article,
.public-body .landing-section,
.public-body .auth-panel,
.admin-body .panel,
.admin-body .auth-panel,
.admin-body .stats-grid article {
    border-color: rgba(255, 255, 255, .72);
    background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .60));
    box-shadow: 0 18px 58px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .82);
    backdrop-filter: blur(24px) saturate(1.26);
    -webkit-backdrop-filter: blur(24px) saturate(1.26);
}

.public-body .feature-grid {
    margin-top: 20px;
}

.public-body .landing-section {
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 32px;
}

.public-body .landing-template-card,
.public-body .flow-grid article {
    border-color: rgba(255, 255, 255, .58);
    background:
        radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--tpl-accent, #0a84ff) 18%, transparent), transparent 34%),
        rgba(255, 255, 255, .54);
    color: #111827;
    box-shadow: 0 16px 46px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.public-body .hero-phone,
.public-body .phone-preview {
    border-color: rgba(255, 255, 255, .62);
    background:
        radial-gradient(circle at 80% 0%, rgba(10, 132, 255, .16), transparent 34%),
        rgba(255, 255, 255, .58);
    color: #111827;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .78);
    backdrop-filter: blur(24px) saturate(1.28);
    -webkit-backdrop-filter: blur(24px) saturate(1.28);
}

.public-body .mini-link,
.public-body .preview-link {
    color: #111827;
    border-color: rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .54);
}

.public-body .release-checks span {
    border-color: rgba(10, 132, 255, .12);
    background: rgba(255, 255, 255, .58);
    color: #475569;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.public-body .release-phone-note {
    color: #2563eb;
    border-color: rgba(10, 132, 255, .12);
    background: rgba(10, 132, 255, .07);
}

.public-body .release-module-grid strong {
    color: #111827;
}

.public-body .release-module-grid article {
    border-color: rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .54);
    box-shadow: 0 16px 46px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.public-body .release-module-grid p {
    color: #667085;
}

.public-body input,
.public-body textarea,
.public-body select,
.admin-body input,
.admin-body textarea,
.admin-body select {
    color: #111827;
    border-color: rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .60);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
}

.public-body label,
.admin-body label {
    color: #334155;
}

.admin-body .side-nav {
    border-right-color: rgba(255, 255, 255, .68);
    background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62));
    box-shadow: 18px 0 58px rgba(15, 23, 42, .10), inset 1px 0 0 rgba(255, 255, 255, .80);
    backdrop-filter: blur(26px) saturate(1.35);
    -webkit-backdrop-filter: blur(26px) saturate(1.35);
}

.admin-body .side-nav a {
    color: #475569;
}

.admin-body .side-nav a:hover {
    color: #111827;
    background: rgba(10, 132, 255, .10);
}

.admin-body .workspace {
    background: transparent;
}

.admin-body .data-table th,
.admin-body .data-table td {
    border-bottom-color: rgba(15, 23, 42, .08);
}

.admin-body .notice-admin-row,
.admin-body .editable-row,
.admin-body .template-tile {
    border-color: rgba(255, 255, 255, .60);
    background: rgba(255, 255, 255, .54);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

@media (max-width: 900px) {
    .admin-user-search {
        grid-template-columns: 1fr;
    }

    .admin-user-card-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-user-card-head .status-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .admin-user-form {
        grid-template-columns: 1fr;
    }

    .admin-user-form .wide {
        grid-column: auto;
    }

    .public-body .topbar {
        width: min(100% - 24px, 1180px);
        top: 8px;
        border-radius: 24px;
    }

    .public-body .hero {
        width: min(100% - 24px, 1180px);
        padding: 28px 18px;
        border-radius: 28px;
        grid-template-columns: 1fr;
    }

    .public-body .feature-grid,
    .public-body .landing-section {
        width: min(100% - 24px, 1180px);
    }

    .public-body .auth-panel {
        width: min(100% - 24px, 520px);
        margin: 46px auto;
        border-radius: 28px;
    }

    .admin-body .side-nav {
        border-bottom-color: rgba(255, 255, 255, .68);
        border-right: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .64));
    }

    .admin-body .workspace {
        margin-left: 0;
        padding: 18px 14px 28px;
        max-width: 100vw;
        overflow-x: hidden;
    }
}


/* Five-section user dashboard navigation. */
@media (max-width: 900px) {
    .dashboard-body .side-nav a[href="/dashboard/web-apps"] {
        display: grid !important;
    }

    .dashboard-body .side-nav a[href="/dashboard/web-apps"]::before {
        content: "\21E9" !important;
        display: block;
        font-size: 22px;
        line-height: 1;
        color: #0a84ff;
    }

    .dashboard-body .side-nav a[href="/dashboard/short-links"] {
        display: grid !important;
    }

    .dashboard-body .side-nav a[href="/dashboard/short-links"]::before {
        content: "\2192" !important;
        display: block;
        font-size: 22px;
        line-height: 1;
        color: #0a84ff;
    }

    .dashboard-body .side-nav a {
        min-width: 0 !important;
        font-size: 11px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

.web-app-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 16px;
}

.web-app-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.web-app-preview {
    grid-column: 1 / -1;
    min-width: 0;
    display: grid;
    gap: 10px;
}

.web-app-card .button-row {
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
}

.web-app-titleline {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.web-app-titleline strong {
    color: #0f172a;
    font-size: 21px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.web-app-titleline span {
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(10, 132, 255, .16);
    border-radius: 999px;
    background: rgba(10, 132, 255, .08);
    color: #2563eb;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.web-app-download-tile {
    display: grid;
    gap: 5px;
    min-width: 0;
    border: 1px solid rgba(10, 132, 255, .12);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10, 132, 255, .08), rgba(34, 211, 238, .05));
    padding: 12px 14px;
    text-decoration: none;
}

.web-app-download-tile b {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
}

.web-app-download-tile span {
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.web-app-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.web-app-meta span {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .58);
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}

.web-app-meta b {
    color: #0f172a;
    font-size: 12px;
    line-height: 1.2;
}

.web-app-lock {
    min-width: 0;
    border: 1px solid rgba(245, 158, 11, .18);
    border-radius: 13px;
    background: rgba(245, 158, 11, .08);
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}

.web-app-icon,
.webclip-icon {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #22d3ee, #a3e635);
    color: #04111f;
    font-weight: 900;
}

.web-app-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(10, 132, 255, .18);
    font-size: 28px;
}

.web-app-icon img,
.webclip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.web-app-form .web-app-policy {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    border: 1px solid rgba(10, 132, 255, .16);
    border-radius: 16px;
    background: rgba(10, 132, 255, .06);
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    padding: 13px 14px;
}

.web-app-form .web-app-policy input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #0a84ff;
}

.web-app-form .web-app-policy span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.link-stats-preview {
    margin-bottom: 18px;
}

.webclip-body {
    min-height: 100vh;
    color: #e6fbff;
    background:
        linear-gradient(rgba(34, 211, 238, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 114, 182, .08) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, .26), transparent 34%),
        linear-gradient(135deg, #020617 0%, #090b2a 48%, #160b24 100%);
    background-size: 34px 34px, 34px 34px, auto, auto;
}

.webclip-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 28px);
}

.webclip-card {
    position: relative;
    width: min(500px, 100%);
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, .36);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .78)),
        linear-gradient(90deg, rgba(34, 211, 238, .16), rgba(244, 114, 182, .12));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .44), inset 0 0 0 1px rgba(255, 255, 255, .06);
    padding: clamp(22px, 5vw, 34px);
    text-align: center;
}

.webclip-card::before,
.webclip-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22d3ee, #f472b6, transparent);
}

.webclip-card::before {
    top: 0;
}

.webclip-card::after {
    bottom: 0;
}

.webclip-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .32;
    background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, .08) 11px);
    mix-blend-mode: screen;
}

.webclip-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 24px;
    box-shadow: 0 0 34px rgba(34, 211, 238, .34), 0 0 72px rgba(244, 114, 182, .22);
    font-size: 38px;
}

.webclip-card .eyebrow {
    position: relative;
    color: #d9fff7;
    border-color: rgba(34, 211, 238, .34);
    background: rgba(2, 6, 23, .62);
}

.webclip-card h1 {
    position: relative;
    margin: 16px 0 8px;
    color: #ffffff;
    font-size: clamp(30px, 7vw, 48px);
    line-height: 1.08;
}

.webclip-card p {
    position: relative;
    overflow-wrap: anywhere;
    color: #a7f3ff;
    font-size: 17px;
    line-height: 1.55;
    margin: 0;
}

.webclip-actions {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 28px 0 16px;
}

.webclip-actions .button {
    border-radius: 14px;
    min-height: 54px;
    font-size: 17px;
}

.webclip-guide {
    position: relative;
    margin: 18px 0 16px;
    border: 1px solid rgba(34, 211, 238, .24);
    border-radius: 14px;
    background: rgba(2, 6, 23, .42);
    padding: 15px 16px;
    text-align: left;
}

.webclip-guide h2 {
    margin: 0 0 8px;
    color: #ecfeff;
    font-size: 16px;
    line-height: 1.3;
}

.webclip-guide ol {
    margin: 0;
    padding-left: 18px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.65;
}

.webclip-card small {
    position: relative;
    display: block;
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .web-app-card {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
    }

    .web-app-head {
        align-items: start;
        gap: 12px;
    }

    .web-app-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .web-app-card .button-row {
        grid-column: auto;
        align-items: stretch;
        flex-direction: column;
    }

    .web-app-card .button-row .icon-button,
    .web-app-card .button-row .danger-button,
    .web-app-card .button-row form {
        width: 100%;
    }

    .web-app-titleline strong {
        font-size: 20px;
    }

    .web-app-meta {
        grid-template-columns: 1fr;
    }

    .web-app-download-tile,
    .web-app-meta span,
    .web-app-lock {
        border-radius: 12px;
        padding: 11px 12px;
    }

    .webclip-page {
        align-items: start;
        padding-top: 58px;
    }

    .webclip-card {
        border-radius: 16px;
        padding: 22px 18px;
    }
}

/* Built-in profile templates. */
.profile-page.template-cyber_core,
.profile-page.template-liquid_holo,
.profile-page.template-obsidian_blade,
.profile-page.template-quantum_stack,
.profile-page.template-neon_halo,
.phone-preview.template-cyber_core,
.phone-preview.template-liquid_holo,
.phone-preview.template-obsidian_blade,
.phone-preview.template-quantum_stack,
.phone-preview.template-neon_halo {
    --cyber-alt: #7b61ff;
    --cyber-line: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 46%, transparent);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--profile-text, var(--preview-text));
    background:
        radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 24%, transparent), transparent 27%),
        radial-gradient(circle at 16% 78%, color-mix(in srgb, var(--cyber-alt) 22%, transparent), transparent 34%),
        linear-gradient(180deg, var(--profile-bg, var(--preview-bg)), #02030a);
}

.profile-page.template-liquid_holo,
.phone-preview.template-liquid_holo { --cyber-alt: #7b61ff; }

.profile-page.template-obsidian_blade,
.phone-preview.template-obsidian_blade { --cyber-alt: #f43f5e; }

.profile-page.template-quantum_stack,
.phone-preview.template-quantum_stack { --cyber-alt: #a78bfa; }

.profile-page.template-neon_halo,
.phone-preview.template-neon_halo { --cyber-alt: #f0abfc; }

.profile-page.template-cyber_core::after,
.phone-preview.template-cyber_core::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 12%, transparent), transparent 34%),
        radial-gradient(circle at 78% 70%, color-mix(in srgb, var(--cyber-alt) 10%, transparent), transparent 28%);
}

.profile-page.template-cyber_core::before,
.profile-page.template-liquid_holo::before,
.profile-page.template-obsidian_blade::before,
.profile-page.template-quantum_stack::before,
.profile-page.template-neon_halo::before,
.phone-preview.template-cyber_core::before,
.phone-preview.template-liquid_holo::before,
.phone-preview.template-obsidian_blade::before,
.phone-preview.template-quantum_stack::before,
.phone-preview.template-neon_halo::before {
    content: "";
    position: absolute;
    inset: -24%;
    z-index: -2;
    pointer-events: none;
    background: conic-gradient(from 120deg, transparent, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 20%, transparent), transparent, color-mix(in srgb, var(--cyber-alt) 16%, transparent), transparent);
    filter: blur(34px);
    opacity: .78;
    animation: cyber-core-rotate 18s linear infinite;
}

.profile-page.template-liquid_holo::after,
.phone-preview.template-liquid_holo::after {
    content: "";
    position: absolute;
    inset: -10% -18%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(90% 12% at 40% 28%, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 42%, transparent), transparent 62%),
        radial-gradient(82% 12% at 58% 74%, color-mix(in srgb, var(--cyber-alt) 36%, transparent), transparent 64%);
    transform: rotate(-6deg);
}

.profile-page.template-obsidian_blade::after,
.phone-preview.template-obsidian_blade::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(168deg, transparent 0 24%, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 16%, transparent) 24% 34%, transparent 34% 100%),
        linear-gradient(162deg, transparent 0 62%, color-mix(in srgb, var(--cyber-alt) 18%, transparent) 62% 73%, transparent 73% 100%);
}

.profile-page.template-quantum_stack::after,
.phone-preview.template-quantum_stack::after {
    content: "";
    position: absolute;
    inset: 9% 8%;
    z-index: -1;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 36%, transparent);
    border-radius: 52px;
    box-shadow:
        0 0 0 26px color-mix(in srgb, var(--cyber-alt) 10%, transparent),
        0 0 0 52px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 9%, transparent),
        0 0 0 78px color-mix(in srgb, var(--cyber-alt) 8%, transparent);
}

.profile-page.template-neon_halo::after,
.phone-preview.template-neon_halo::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18%;
    z-index: -1;
    width: min(72vw, 560px);
    aspect-ratio: 1;
    border: 2px solid color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 40%, transparent);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 8%, transparent),
        0 0 0 78px color-mix(in srgb, var(--cyber-alt) 8%, transparent);
    transform: translate(-50%, -16%);
    pointer-events: none;
}

.profile-page.template-cyber_core .profile-card,
.profile-page.template-liquid_holo .profile-card,
.profile-page.template-obsidian_blade .profile-card,
.profile-page.template-quantum_stack .profile-card,
.profile-page.template-neon_halo .profile-card {
    position: relative;
    overflow: hidden;
    width: min(430px, 100%);
    border: 1px solid var(--cyber-line);
    border-radius: 34px;
    padding: 44px 26px 30px;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--profile-accent) 15%, transparent), transparent 32%),
        linear-gradient(180deg, rgba(8, 18, 38, .78), rgba(5, 8, 22, .88));
    box-shadow:
        0 42px 120px rgba(0, 0, 0, .58),
        0 0 84px color-mix(in srgb, var(--profile-accent) 14%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(28px) saturate(1.24);
    -webkit-backdrop-filter: blur(28px) saturate(1.24);
}

.profile-page.template-cyber_core .profile-card::before,
.profile-page.template-liquid_holo .profile-card::before,
.profile-page.template-obsidian_blade .profile-card::before,
.profile-page.template-quantum_stack .profile-card::before,
.profile-page.template-neon_halo .profile-card::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid color-mix(in srgb, var(--profile-accent) 24%, transparent);
    border-radius: 24px;
    pointer-events: none;
}

.profile-page.template-cyber_core .profile-card::after {
    content: none;
}

.profile-page.template-cyber_core .profile-avatar,
.profile-page.template-liquid_holo .profile-avatar,
.profile-page.template-obsidian_blade .profile-avatar,
.profile-page.template-quantum_stack .profile-avatar,
.profile-page.template-neon_halo .profile-avatar,
.phone-preview.template-cyber_core .preview-avatar,
.phone-preview.template-liquid_holo .preview-avatar,
.phone-preview.template-obsidian_blade .preview-avatar,
.phone-preview.template-quantum_stack .preview-avatar,
.phone-preview.template-neon_halo .preview-avatar {
    padding: 4px;
    background: linear-gradient(135deg, var(--profile-accent, var(--preview-accent)), var(--cyber-alt));
    box-shadow:
        0 0 30px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 42%, transparent),
        0 0 68px color-mix(in srgb, var(--cyber-alt) 26%, transparent);
}

.profile-page.template-cyber_core .profile-avatar > img,
.profile-page.template-liquid_holo .profile-avatar > img,
.profile-page.template-obsidian_blade .profile-avatar > img,
.profile-page.template-quantum_stack .profile-avatar > img,
.profile-page.template-neon_halo .profile-avatar > img,
.profile-page.template-cyber_core .profile-avatar > span,
.profile-page.template-liquid_holo .profile-avatar > span,
.profile-page.template-obsidian_blade .profile-avatar > span,
.profile-page.template-quantum_stack .profile-avatar > span,
.profile-page.template-neon_halo .profile-avatar > span,
.phone-preview.template-cyber_core .preview-avatar > img,
.phone-preview.template-liquid_holo .preview-avatar > img,
.phone-preview.template-obsidian_blade .preview-avatar > img,
.phone-preview.template-quantum_stack .preview-avatar > img,
.phone-preview.template-neon_halo .preview-avatar > img,
.phone-preview.template-cyber_core .preview-avatar > span,
.phone-preview.template-liquid_holo .preview-avatar > span,
.phone-preview.template-obsidian_blade .preview-avatar > span,
.phone-preview.template-quantum_stack .preview-avatar > span,
.phone-preview.template-neon_halo .preview-avatar > span {
    border-radius: inherit;
    background: linear-gradient(135deg, #111827, #1d1041);
}

.profile-page.template-cyber_core h1,
.profile-page.template-liquid_holo h1,
.profile-page.template-obsidian_blade h1,
.profile-page.template-quantum_stack h1,
.profile-page.template-neon_halo h1,
.phone-preview.template-cyber_core h3,
.phone-preview.template-liquid_holo h3,
.phone-preview.template-obsidian_blade h3,
.phone-preview.template-quantum_stack h3,
.phone-preview.template-neon_halo h3 {
    text-shadow: 0 0 22px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 42%, transparent);
}

.profile-page.template-cyber_core .profile-card > p,
.profile-page.template-liquid_holo .profile-card > p,
.profile-page.template-obsidian_blade .profile-card > p,
.profile-page.template-quantum_stack .profile-card > p,
.profile-page.template-neon_halo .profile-card > p,
.phone-preview.template-cyber_core > p,
.phone-preview.template-liquid_holo > p,
.phone-preview.template-obsidian_blade > p,
.phone-preview.template-quantum_stack > p,
.phone-preview.template-neon_halo > p {
    color: color-mix(in srgb, var(--profile-text, var(--preview-text)) 78%, var(--profile-accent, var(--preview-accent)));
}

.profile-page.template-cyber_core .public-links::before,
.profile-page.template-liquid_holo .public-links::before,
.profile-page.template-obsidian_blade .public-links::before,
.profile-page.template-quantum_stack .public-links::before,
.profile-page.template-neon_halo .public-links::before,
.phone-preview.template-cyber_core .preview-links::before,
.phone-preview.template-liquid_holo .preview-links::before,
.phone-preview.template-obsidian_blade .preview-links::before,
.phone-preview.template-quantum_stack .preview-links::before,
.phone-preview.template-neon_halo .preview-links::before {
    content: "PROFILE   LINKS   DATA";
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 4px;
    border: 1px solid color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 10%, transparent);
    color: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 72%, #fff);
    padding: 8px 13px;
    font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .12em;
}

.profile-page.template-cyber_core .public-link,
.profile-page.template-cyber_core .public-text,
.profile-page.template-liquid_holo .public-link,
.profile-page.template-liquid_holo .public-text,
.profile-page.template-obsidian_blade .public-link,
.profile-page.template-obsidian_blade .public-text,
.profile-page.template-quantum_stack .public-link,
.profile-page.template-quantum_stack .public-text,
.profile-page.template-neon_halo .public-link,
.profile-page.template-neon_halo .public-text,
.phone-preview.template-cyber_core .preview-link,
.phone-preview.template-liquid_holo .preview-link,
.phone-preview.template-obsidian_blade .preview-link,
.phone-preview.template-quantum_stack .preview-link,
.phone-preview.template-neon_halo .preview-link {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 30%, transparent);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(8, 20, 42, .88), rgba(20, 12, 54, .72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 18px 44px rgba(0, 0, 0, .28);
}

.profile-page.template-cyber_core .public-link::before,
.profile-page.template-liquid_holo .public-link::before,
.profile-page.template-obsidian_blade .public-link::before,
.profile-page.template-quantum_stack .public-link::before,
.profile-page.template-neon_halo .public-link::before,
.phone-preview.template-cyber_core .preview-link::before,
.phone-preview.template-liquid_holo .preview-link::before,
.phone-preview.template-obsidian_blade .preview-link::before,
.phone-preview.template-quantum_stack .preview-link::before,
.phone-preview.template-neon_halo .preview-link::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 22%, transparent), transparent);
    transform: translateX(-120%);
}

.profile-page.template-cyber_core .public-link:hover::before,
.profile-page.template-liquid_holo .public-link:hover::before,
.profile-page.template-obsidian_blade .public-link:hover::before,
.profile-page.template-quantum_stack .public-link:hover::before,
.profile-page.template-neon_halo .public-link:hover::before,
.phone-preview.template-cyber_core .preview-link:hover::before,
.phone-preview.template-liquid_holo .preview-link:hover::before,
.phone-preview.template-obsidian_blade .preview-link:hover::before,
.phone-preview.template-quantum_stack .preview-link:hover::before,
.phone-preview.template-neon_halo .preview-link:hover::before {
    animation: cyber-core-sweep .78s ease;
}

.profile-page.template-cyber_core .public-link b,
.profile-page.template-liquid_holo .public-link b,
.profile-page.template-obsidian_blade .public-link b,
.profile-page.template-quantum_stack .public-link b,
.profile-page.template-neon_halo .public-link b,
.phone-preview.template-cyber_core .preview-link b,
.phone-preview.template-liquid_holo .preview-link b,
.phone-preview.template-obsidian_blade .preview-link b,
.phone-preview.template-quantum_stack .preview-link b,
.phone-preview.template-neon_halo .preview-link b {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #020617;
    background: var(--profile-accent, var(--preview-accent));
    box-shadow: 0 0 24px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 52%, transparent);
}

.phone-preview.template-cyber_core,
.phone-preview.template-liquid_holo,
.phone-preview.template-obsidian_blade,
.phone-preview.template-quantum_stack,
.phone-preview.template-neon_halo {
    border: 1px solid color-mix(in srgb, var(--preview-accent) 36%, transparent);
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16), 0 0 54px color-mix(in srgb, var(--preview-accent) 12%, transparent);
}

.phone-preview.template-cyber_core .phone-dynamic-island,
.phone-preview.template-liquid_holo .phone-dynamic-island,
.phone-preview.template-obsidian_blade .phone-dynamic-island,
.phone-preview.template-quantum_stack .phone-dynamic-island,
.phone-preview.template-neon_halo .phone-dynamic-island {
    background: color-mix(in srgb, var(--preview-accent) 80%, #fff);
    box-shadow: 0 0 24px color-mix(in srgb, var(--preview-accent) 42%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .profile-page.template-cyber_core::before,
    .profile-page.template-liquid_holo::before,
    .profile-page.template-obsidian_blade::before,
    .profile-page.template-quantum_stack::before,
    .profile-page.template-neon_halo::before,
    .phone-preview.template-cyber_core::before,
    .phone-preview.template-liquid_holo::before,
    .phone-preview.template-obsidian_blade::before,
    .phone-preview.template-quantum_stack::before,
    .phone-preview.template-neon_halo::before,
    .profile-page.template-cyber_core .public-link:hover::before,
    .profile-page.template-liquid_holo .public-link:hover::before,
    .profile-page.template-obsidian_blade .public-link:hover::before,
    .profile-page.template-quantum_stack .public-link:hover::before,
    .profile-page.template-neon_halo .public-link:hover::before,
    .phone-preview.template-cyber_core .preview-link:hover::before,
    .phone-preview.template-liquid_holo .preview-link:hover::before,
    .phone-preview.template-obsidian_blade .preview-link:hover::before,
    .phone-preview.template-quantum_stack .preview-link:hover::before,
    .phone-preview.template-neon_halo .preview-link:hover::before {
        animation: none;
    }
}

/* Light cyber profile templates. */
.profile-page.template-pearl_glass,
.profile-page.template-aurora_milk,
.profile-page.template-silver_cloud,
.profile-page.template-mint_holo,
.profile-page.template-sunrise_tech,
.phone-preview.template-pearl_glass,
.phone-preview.template-aurora_milk,
.phone-preview.template-silver_cloud,
.phone-preview.template-mint_holo,
.phone-preview.template-sunrise_tech {
    --light-alt: #a78bfa;
    --light-ink: var(--profile-text, var(--preview-text));
    --light-card: rgba(255, 255, 255, .68);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--light-ink);
    background:
        radial-gradient(circle at 18% 4%, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 28%, transparent), transparent 28%),
        radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--light-alt) 26%, transparent), transparent 30%),
        radial-gradient(circle at 50% 86%, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 16%, transparent), transparent 34%),
        linear-gradient(180deg, var(--profile-bg, var(--preview-bg)), #eef6ff);
}

.profile-page.template-pearl_glass,
.phone-preview.template-pearl_glass { --light-alt: #a78bfa; }

.profile-page.template-aurora_milk,
.phone-preview.template-aurora_milk { --light-alt: #38bdf8; }

.profile-page.template-silver_cloud,
.phone-preview.template-silver_cloud { --light-alt: #38bdf8; }

.profile-page.template-mint_holo,
.phone-preview.template-mint_holo { --light-alt: #60a5fa; }

.profile-page.template-sunrise_tech,
.phone-preview.template-sunrise_tech { --light-alt: #38bdf8; }

.profile-page.template-pearl_glass::before,
.profile-page.template-aurora_milk::before,
.profile-page.template-silver_cloud::before,
.profile-page.template-mint_holo::before,
.profile-page.template-sunrise_tech::before,
.phone-preview.template-pearl_glass::before,
.phone-preview.template-aurora_milk::before,
.phone-preview.template-silver_cloud::before,
.phone-preview.template-mint_holo::before,
.phone-preview.template-sunrise_tech::before {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: -2;
    pointer-events: none;
    background:
        conic-gradient(from 145deg, transparent, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 20%, transparent), transparent, color-mix(in srgb, var(--light-alt) 18%, transparent), transparent);
    filter: blur(28px);
    opacity: .86;
    animation: cyber-core-rotate 22s linear infinite;
}

.profile-page.template-pearl_glass::after,
.phone-preview.template-pearl_glass::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18%;
    z-index: -1;
    width: min(76vw, 620px);
    aspect-ratio: 1.8;
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .82), 0 34px 80px rgba(56, 189, 248, .12);
    transform: translate(-50%, -28%);
}

.profile-page.template-aurora_milk::after,
.phone-preview.template-aurora_milk::after {
    content: "";
    position: absolute;
    inset: -8% -18%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(90% 12% at 40% 28%, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 32%, transparent), transparent 62%),
        radial-gradient(82% 12% at 58% 74%, color-mix(in srgb, var(--light-alt) 28%, transparent), transparent 64%);
    transform: rotate(-6deg);
}

.profile-page.template-silver_cloud::after,
.phone-preview.template-silver_cloud::after {
    content: "";
    position: absolute;
    inset: 9% 8%;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 52px;
    box-shadow:
        0 0 0 26px rgba(255, 255, 255, .34),
        0 0 0 52px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 10%, transparent),
        0 0 0 78px rgba(255, 255, 255, .22);
}

.profile-page.template-mint_holo::after,
.phone-preview.template-mint_holo::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18%;
    z-index: -1;
    width: min(72vw, 560px);
    aspect-ratio: 1;
    border: 2px solid color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 34%, transparent);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 8%, transparent),
        0 0 0 78px color-mix(in srgb, var(--light-alt) 10%, transparent);
    transform: translate(-50%, -16%);
}

.profile-page.template-sunrise_tech::after,
.phone-preview.template-sunrise_tech::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(168deg, transparent 0 24%, color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 18%, transparent) 24% 34%, transparent 34% 100%),
        linear-gradient(162deg, transparent 0 62%, color-mix(in srgb, var(--light-alt) 18%, transparent) 62% 73%, transparent 73% 100%);
}

.profile-page.template-pearl_glass .profile-card,
.profile-page.template-aurora_milk .profile-card,
.profile-page.template-silver_cloud .profile-card,
.profile-page.template-mint_holo .profile-card,
.profile-page.template-sunrise_tech .profile-card {
    position: relative;
    overflow: hidden;
    width: min(430px, 100%);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 34px;
    padding: 44px 26px 30px;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--profile-accent) 16%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .56));
    box-shadow:
        0 42px 110px rgba(15, 23, 42, .14),
        inset 0 1px 0 rgba(255, 255, 255, .92);
    backdrop-filter: blur(28px) saturate(1.28);
    -webkit-backdrop-filter: blur(28px) saturate(1.28);
}

.profile-page.template-pearl_glass .profile-card::before,
.profile-page.template-aurora_milk .profile-card::before,
.profile-page.template-silver_cloud .profile-card::before,
.profile-page.template-mint_holo .profile-card::before,
.profile-page.template-sunrise_tech .profile-card::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid color-mix(in srgb, var(--profile-accent) 20%, transparent);
    border-radius: 24px;
    pointer-events: none;
}

.profile-page.template-pearl_glass .profile-avatar,
.profile-page.template-aurora_milk .profile-avatar,
.profile-page.template-silver_cloud .profile-avatar,
.profile-page.template-mint_holo .profile-avatar,
.profile-page.template-sunrise_tech .profile-avatar,
.phone-preview.template-pearl_glass .preview-avatar,
.phone-preview.template-aurora_milk .preview-avatar,
.phone-preview.template-silver_cloud .preview-avatar,
.phone-preview.template-mint_holo .preview-avatar,
.phone-preview.template-sunrise_tech .preview-avatar {
    padding: 4px;
    background: linear-gradient(135deg, var(--profile-accent, var(--preview-accent)), var(--light-alt));
    box-shadow: 0 20px 48px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 20%, transparent);
}

.profile-page.template-pearl_glass .profile-avatar > img,
.profile-page.template-aurora_milk .profile-avatar > img,
.profile-page.template-silver_cloud .profile-avatar > img,
.profile-page.template-mint_holo .profile-avatar > img,
.profile-page.template-sunrise_tech .profile-avatar > img,
.profile-page.template-pearl_glass .profile-avatar > span,
.profile-page.template-aurora_milk .profile-avatar > span,
.profile-page.template-silver_cloud .profile-avatar > span,
.profile-page.template-mint_holo .profile-avatar > span,
.profile-page.template-sunrise_tech .profile-avatar > span,
.phone-preview.template-pearl_glass .preview-avatar > img,
.phone-preview.template-aurora_milk .preview-avatar > img,
.phone-preview.template-silver_cloud .preview-avatar > img,
.phone-preview.template-mint_holo .preview-avatar > img,
.phone-preview.template-sunrise_tech .preview-avatar > img,
.phone-preview.template-pearl_glass .preview-avatar > span,
.phone-preview.template-aurora_milk .preview-avatar > span,
.phone-preview.template-silver_cloud .preview-avatar > span,
.phone-preview.template-mint_holo .preview-avatar > span,
.phone-preview.template-sunrise_tech .preview-avatar > span {
    border-radius: inherit;
    background: rgba(255, 255, 255, .82);
    color: var(--light-ink);
}

.profile-page.template-pearl_glass h1,
.profile-page.template-aurora_milk h1,
.profile-page.template-silver_cloud h1,
.profile-page.template-mint_holo h1,
.profile-page.template-sunrise_tech h1,
.phone-preview.template-pearl_glass h3,
.phone-preview.template-aurora_milk h3,
.phone-preview.template-silver_cloud h3,
.phone-preview.template-mint_holo h3,
.phone-preview.template-sunrise_tech h3 {
    color: var(--light-ink);
    text-shadow: none;
}

.profile-page.template-pearl_glass .profile-card > p,
.profile-page.template-aurora_milk .profile-card > p,
.profile-page.template-silver_cloud .profile-card > p,
.profile-page.template-mint_holo .profile-card > p,
.profile-page.template-sunrise_tech .profile-card > p,
.phone-preview.template-pearl_glass > p,
.phone-preview.template-aurora_milk > p,
.phone-preview.template-silver_cloud > p,
.phone-preview.template-mint_holo > p,
.phone-preview.template-sunrise_tech > p {
    color: #475569;
}

.profile-page.template-pearl_glass .public-links::before,
.profile-page.template-aurora_milk .public-links::before,
.profile-page.template-silver_cloud .public-links::before,
.profile-page.template-mint_holo .public-links::before,
.profile-page.template-sunrise_tech .public-links::before,
.phone-preview.template-pearl_glass .preview-links::before,
.phone-preview.template-aurora_milk .preview-links::before,
.phone-preview.template-silver_cloud .preview-links::before,
.phone-preview.template-mint_holo .preview-links::before,
.phone-preview.template-sunrise_tech .preview-links::before {
    content: "PROFILE   LINKS   DATA";
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 4px;
    border: 1px solid color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 28%, transparent);
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    color: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 72%, #0f172a);
    padding: 8px 13px;
    font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .12em;
}

.profile-page.template-pearl_glass .public-link,
.profile-page.template-pearl_glass .public-text,
.profile-page.template-aurora_milk .public-link,
.profile-page.template-aurora_milk .public-text,
.profile-page.template-silver_cloud .public-link,
.profile-page.template-silver_cloud .public-text,
.profile-page.template-mint_holo .public-link,
.profile-page.template-mint_holo .public-text,
.profile-page.template-sunrise_tech .public-link,
.profile-page.template-sunrise_tech .public-text,
.phone-preview.template-pearl_glass .preview-link,
.phone-preview.template-aurora_milk .preview-link,
.phone-preview.template-silver_cloud .preview-link,
.phone-preview.template-mint_holo .preview-link,
.phone-preview.template-sunrise_tech .preview-link {
    border-color: color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 24%, rgba(15, 23, 42, .06));
    border-radius: 20px;
    background: rgba(255, 255, 255, .64);
    color: var(--light-ink);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .84);
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.profile-page.template-pearl_glass .public-link small,
.profile-page.template-aurora_milk .public-link small,
.profile-page.template-silver_cloud .public-link small,
.profile-page.template-mint_holo .public-link small,
.profile-page.template-sunrise_tech .public-link small,
.profile-page.template-pearl_glass .public-text span,
.profile-page.template-aurora_milk .public-text span,
.profile-page.template-silver_cloud .public-text span,
.profile-page.template-mint_holo .public-text span,
.profile-page.template-sunrise_tech .public-text span {
    color: #64748b;
}

.profile-page.template-pearl_glass .public-link b,
.profile-page.template-aurora_milk .public-link b,
.profile-page.template-silver_cloud .public-link b,
.profile-page.template-mint_holo .public-link b,
.profile-page.template-sunrise_tech .public-link b,
.phone-preview.template-pearl_glass .preview-link b,
.phone-preview.template-aurora_milk .preview-link b,
.phone-preview.template-silver_cloud .preview-link b,
.phone-preview.template-mint_holo .preview-link b,
.phone-preview.template-sunrise_tech .preview-link b {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--profile-accent, var(--preview-accent)), var(--light-alt));
    box-shadow: 0 12px 26px color-mix(in srgb, var(--profile-accent, var(--preview-accent)) 24%, transparent);
}

.phone-preview.template-pearl_glass,
.phone-preview.template-aurora_milk,
.phone-preview.template-silver_cloud,
.phone-preview.template-mint_holo,
.phone-preview.template-sunrise_tech {
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.phone-preview.template-pearl_glass .phone-dynamic-island,
.phone-preview.template-aurora_milk .phone-dynamic-island,
.phone-preview.template-silver_cloud .phone-dynamic-island,
.phone-preview.template-mint_holo .phone-dynamic-island,
.phone-preview.template-sunrise_tech .phone-dynamic-island {
    background: rgba(15, 23, 42, .76);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .16);
}
