:root {
    color-scheme: dark;
    --bg: #0d0f14;
    --bg-soft: #151925;
    --surface: #10131b;
    --surface-soft: #171c27;
    --text: #f6f2ee;
    --muted: #a1a8b4;
    --accent: #63f5ff;
    --accent-strong: #00d2ff;
    --accent-soft: rgba(99, 245, 255, 0.12);
    --glow: rgba(99, 245, 255, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.navbar {
    background: rgba(11, 13, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-section {
    position: relative;
    padding: 5.5rem 0 4rem;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(99, 245, 255, 0.18), transparent 55%),
        radial-gradient(circle at 70% 20%, rgba(0, 210, 255, 0.25), transparent 50%),
        linear-gradient(135deg, #0d0f14, #101827 55%, #0b0d12);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.hero-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: rgba(99, 245, 255, 0.08);
}

.hero-blobs {
    position: absolute;
    width: 480px;
    right: -80px;
    top: 40px;
    transform: rotate(10deg);
}

.hero-lines {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    opacity: 0.3;
    mask-image: repeating-linear-gradient(90deg, transparent 0 12px, rgba(0, 0, 0, 0.8) 12px 13px);
}

.eyebrow {
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--accent);
}

.hero-card {
    padding: 2.2rem;
    background: var(--surface-soft);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: -40% 40% auto -40%;
    height: 140%;
    background: radial-gradient(circle, rgba(99, 245, 255, 0.18), transparent 60%);
    opacity: 0.7;
}

.hero-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(99, 245, 255, 0.15);
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.progress-wrapper .progress {
    height: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 1.6s ease;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(12, 15, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1rem 1.2rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
}

.main-content {
    padding: 3.5rem 0 2rem;
}

.list-section {
    margin-bottom: 4rem;
}

.filters .search-group {
    min-width: 220px;
}

.filters .input-group-text {
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.filters .form-control {
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.filters .form-control:focus {
    box-shadow: 0 0 0 0.2rem var(--accent-soft);
    border-color: var(--accent);
}

.filter-group .btn {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.filter-group .btn.active,
.filter-group .btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.sort-select {
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.list-panel {
    background: var(--surface);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.panel-subtitle {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0;
}

.panel-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(99, 245, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.card-stack {
    display: grid;
    gap: 1rem;
}

.bucket-card {
    padding: 1.2rem 1.3rem;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.bucket-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 245, 255, 0.4);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35), 0 0 20px var(--glow);
}

.bucket-title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.bucket-detail {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.status-done {
    background: rgba(73, 255, 177, 0.16);
    color: #6ef5c0;
    border: 1px solid rgba(73, 255, 177, 0.3);
}

.status-todo {
    background: rgba(255, 196, 99, 0.14);
    color: #ffd08a;
    border: 1px solid rgba(255, 196, 99, 0.3);
}

.help-section {
    margin-bottom: 4rem;
}

.help-card {
    background: linear-gradient(135deg, rgba(99, 245, 255, 0.15), rgba(16, 19, 27, 0.9));
    border-radius: 28px;
    padding: 2.5rem;
    border: 1px solid rgba(99, 245, 255, 0.2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.help-art {
    position: relative;
}

.help-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(99, 245, 255, 0.18);
    position: absolute;
    right: 0;
    top: 10px;
}

.help-line {
    position: absolute;
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    right: 30px;
    bottom: 40px;
}

.btn-accent {
    background: var(--accent);
    color: #061019;
    border: none;
}

.btn-accent:hover {
    background: var(--accent-strong);
    color: #041018;
}

.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #071018;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 100;
}

.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--accent);
}

.text-muted {
    color: var(--muted) !important;
}

.bg-accent-soft {
    background: var(--accent-soft);
}

.text-accent {
    color: var(--accent);
}

.admin-body {
    background: var(--bg-soft);
}

.admin-wrapper {
    padding: 3.5rem 0 4rem;
    max-width: 1100px;
}

.admin-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.admin-inline-form {
    margin-bottom: 0;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
}

.table-dark th {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4.5rem 0 3rem;
    }

    .hero-blobs {
        width: 360px;
        right: -120px;
    }

    .filters {
        width: 100%;
    }

    .filters .search-group,
    .filters .filter-group,
    .filters .sort-select {
        flex: 1 1 100%;
    }
}
