/**
 * LINKZY.LOL — Premium Stylesheet
 * Dark design with light blue accents, clean and minimal.
 */

/* ── CSS Custom Properties ──────────────────────────── */
:root {
    --bg-primary: #060810;
    --bg-secondary: #0b0e17;
    --bg-card: rgba(56, 189, 248, 0.03);
    --bg-card-hover: rgba(56, 189, 248, 0.06);
    --bg-input: rgba(255, 255, 255, 0.04);
    --bg-input-focus: rgba(255, 255, 255, 0.08);

    --text-primary: #e2e8f0;
    --text-secondary: rgba(226, 232, 240, 0.5);
    --text-muted: rgba(226, 232, 240, 0.25);

    --border-color: rgba(56, 189, 248, 0.08);
    --border-focus: rgba(56, 189, 248, 0.4);

    --accent: #38bdf8;
    --accent-dark: #0ea5e9;
    --accent-glow: rgba(56, 189, 248, 0.2);

    --success: #22c55e;
    --error: #ef4444;

    --nav-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #7dd3fc;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Navigation ─────────────────────────────────────── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(6, 8, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-icon {
    display: none;
}

.brand-dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link--muted {
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(6, 8, 16, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition-slow);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn--glow {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
    color: #fff;
}

.btn--glow:active {
    transform: translateY(0);
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn--ghost:hover {
    border-color: rgba(56, 189, 248, 0.2);
    color: var(--text-primary);
    background: var(--bg-card);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--small {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn--large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn--full {
    width: 100%;
}

/* ── Main Content ───────────────────────────────────── */
.main-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero Section ───────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(56, 189, 248, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #7dd3fc, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-preview {
    margin-top: 0;
}

.hero-url {
    display: inline-block;
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Inter', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.hero-url .typing-text {
    color: var(--accent);
    font-weight: 600;
    border-right: 2px solid var(--accent);
    padding-right: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ── Features ───────────────────────────────────────── */
.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(56, 189, 248, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    display: none;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── CTA ────────────────────────────────────────────── */
.cta {
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

/* ── Alerts / Flash Messages ────────────────────────── */
.alert {
    max-width: 700px;
    margin: 20px auto 0;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.4s ease;
    position: relative;
    z-index: 100;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ── Auth Pages ─────────────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand {
    display: inline-block;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-decoration: none;
}

.auth-brand span {
    color: var(--accent);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
}

/* ── Forms ──────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.input-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.input-prefix:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.prefix-text {
    padding: 12px 0 12px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
    user-select: none;
}

.input-prefix input {
    border: none;
    background: transparent;
    padding-left: 2px;
}

.input-prefix input:focus {
    box-shadow: none;
    border-color: transparent;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group--grow {
    flex: 1;
}

.form-group--icon {
    width: 160px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .form-group--icon {
        width: 100%;
    }
}

/* ── Dashboard ──────────────────────────────────────── */
.dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.form-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.url-display {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.url-prefix {
    color: var(--text-muted);
}

.url-username {
    color: var(--accent);
    font-weight: 600;
}

.char-count {
    text-align: right;
}

.link-count {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-badge {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ── Links List ─────────────────────────────────────── */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.link-card:hover {
    background: var(--bg-card-hover);
}

.link-card.dragging {
    opacity: 0.5;
    border-color: var(--accent);
}

.link-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 1.2rem;
    user-select: none;
    padding: 4px;
    line-height: 1;
}

.link-drag-handle:active {
    cursor: grabbing;
}

.link-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-url {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.inline-form {
    display: inline;
}

.link-action-btn {
    background: none;
    border: 1px solid transparent;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition);
    line-height: 1;
}

.link-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
}

.link-action-btn--danger:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.06);
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* ── Modal ──────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin: 24px;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ── Analytics ──────────────────────────────────────── */
.analytics-chart-card {
    margin-bottom: 24px;
}

.chart-container {
    width: 100%;
    min-height: 250px;
}

.analytics-table-wrap {
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.analytics-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.analytics-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.analytics-table tr:hover td {
    background: var(--bg-card-hover);
}

.analytics-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-link-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.analytics-link-title {
    font-weight: 500;
}

.text-right {
    text-align: right;
}

.stat-num {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.stat-num--total {
    color: var(--accent);
}

/* ── Public Profile Page ────────────────────────────── */
.profile-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

.profile-container {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.profile-avatar-wrap {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

.profile-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-handle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition);
    animation: linkFadeIn 0.4s ease backwards;
}

.profile-link:nth-child(1) {
    animation-delay: 0.05s;
}

.profile-link:nth-child(2) {
    animation-delay: 0.1s;
}

.profile-link:nth-child(3) {
    animation-delay: 0.15s;
}

.profile-link:nth-child(4) {
    animation-delay: 0.2s;
}

.profile-link:nth-child(5) {
    animation-delay: 0.25s;
}

.profile-link:nth-child(6) {
    animation-delay: 0.3s;
}

.profile-link:nth-child(7) {
    animation-delay: 0.35s;
}

.profile-link:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes linkFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-link:hover {
    background: var(--bg-card-hover);
    border-color: rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profile-link-icon {
    color: var(--accent);
    flex-shrink: 0;
    transition: color var(--transition);
}

.profile-link-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-link-arrow {
    color: var(--text-muted);
    transition: all var(--transition);
}

.profile-link:hover .profile-link-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.profile-empty {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 40px 0;
}

.profile-branding {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.4;
    transition: opacity var(--transition);
}

.profile-branding:hover {
    opacity: 1;
    color: var(--text-muted);
}

/* ── 404 Page ───────────────────────────────────────── */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    text-align: center;
    padding: 40px 24px;
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ── Footer ─────────────────────────────────────────── */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Utilities ──────────────────────────────────────── */
.add-link-card {
    border-color: rgba(56, 189, 248, 0.1);
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

::selection {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .auth-card {
        padding: 36px 28px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .link-card {
        flex-wrap: wrap;
    }

    .link-info {
        order: -1;
        width: calc(100% - 80px);
    }

    .link-actions {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn--large {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 28px 20px;
    }
}