:root {
    --bg: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-soft: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --border: rgba(255, 255, 255, 0.12);
    --primary: #f97316;
    --primary-dark: #ea580c;
    --danger: #ef4444;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Outfit", sans-serif;
    background:
        radial-gradient(circle at top, rgba(249, 115, 22, 0.18), transparent 34%),
        linear-gradient(135deg, #020617, #0f172a 45%, #1e293b);
    color: var(--text);
}

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

.landing-page,
.auth-page,
.dashboard-page,
.public-page {
    min-height: 100vh;
}

.landing-shell,
.auth-shell,
.public-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 20px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 32px 20px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.panel,
.hero-card,
.public-card {
    background: var(--panel);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    border-radius: 28px;
}

.hero-card,
.form-panel,
.public-card {
    width: min(100%, 560px);
    padding: 36px;
}

.panel {
    padding: 28px;
}

.hero-card h1,
.form-panel h1,
.section-header h1,
.public-card h1 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 3vw, 3.6rem);
    line-height: 1;
}

.hero-card p,
.public-bio,
.link-row p,
.empty-state,
.form-footnote {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: #fdba74;
}

.hero-actions,
.link-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.primary {
    background: linear-gradient(135deg, var(--primary), #fb7185);
    color: white;
}

.secondary,
.tertiary {
    background: var(--panel-soft);
    color: var(--text);
}

.danger {
    background: rgba(239, 68, 68, 0.18);
}

.stack-form,
.form-panel {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}

.links-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.link-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.link-row.is-inactive {
    opacity: 0.6;
}

.link-row strong,
.public-link {
    word-break: break-word;
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    color: #fdba74;
}

.public-shell {
    padding: 28px 16px;
}

.public-card {
    text-align: center;
}

.public-card h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.profile-logo {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    object-fit: cover;
    margin-bottom: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.public-links {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.public-link {
    display: block;
    padding: 16px 18px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent-color, #ffffff) 14%, rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.flash-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    display: grid;
    gap: 10px;
    z-index: 30;
}

.flash {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--border);
}

.flash-success {
    border-color: rgba(74, 222, 128, 0.5);
}

.flash-error {
    border-color: rgba(248, 113, 113, 0.5);
}

.theme-sunset {
    background:
        radial-gradient(circle at top, rgba(251, 146, 60, 0.35), transparent 30%),
        linear-gradient(145deg, #431407, #7c2d12 45%, #0f172a);
}

.theme-forest {
    background:
        radial-gradient(circle at top, rgba(74, 222, 128, 0.26), transparent 32%),
        linear-gradient(145deg, #052e16, #14532d 50%, #0f172a);
}

.theme-ocean {
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 30%),
        linear-gradient(145deg, #082f49, #0c4a6e 48%, #172554);
}

.theme-midnight {
    background:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(145deg, #020617, #0f172a);
    background-size: 40px 40px, 40px 40px, auto;
}

@media (max-width: 720px) {
    .hero-card,
    .form-panel,
    .public-card,
    .panel {
        padding: 24px;
        border-radius: 22px;
    }

    .section-header,
    .link-row {
        flex-direction: column;
        align-items: stretch;
    }
}
