:root {
    --bg-deep: #050508;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.06);
    --accent-gold: #FFB800;
    --accent-gold-glow: rgba(255, 184, 0, 0.4);
    --accent-cyan: #00D1FF;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --rad-lg: 24px;
    --rad-md: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 50px;
}

/* Background Atmosphere */
.bg-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floating 20s infinite alternate ease-in-out;
}

.blob-gold {
    width: 40vw;
    height: 40vw;
    background: var(--accent-gold);
    top: -10vh;
    right: -5vw;
}

.blob-cyan {
    width: 35vw;
    height: 35vw;
    background: var(--accent-cyan);
    bottom: -5vh;
    left: -10vw;
    animation-delay: -5s;
}

@keyframes floating {
    to { transform: translate(10vw, 5vh) scale(1.1); }
}

/* Layout */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.user-status-bar {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

.status-badge.online {
    color: var(--accent-gold);
    border-color: rgba(255, 184, 0, 0.2);
}

.btn-login-redirect {
    background: var(--accent-gold);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0 15px var(--accent-gold-glow);
    transition: 0.3s;
}

.btn-login-redirect:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-gold-glow);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 24px;
    transition: 0.3s;
}

.btn-back-home:hover {
    background: rgba(255, 184, 0, 0.1);
    border-color: var(--accent-gold);
    color: #fff;
}

.header h1 {

    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Input Section */
.glass-input-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--rad-lg);
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    margin-bottom: 40px;
}

.input-row {
    display: flex;
    gap: 12px;
}

input {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--rad-md);
    padding: 14px 20px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus {
    border-color: var(--accent-gold);
    outline: none;
    background: rgba(0,0,0,0.3);
}

.btn-add {
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: var(--rad-md);
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

/* Filter Pills */
.filter-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 8px;
}

.filter-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.scroll-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: #fff;
}

.pill {
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.pill.active {
    background: rgba(255, 184, 0, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* List Items */
.bucket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bucket-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--rad-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: 0.3s var(--ease);
    cursor: pointer;
    animation: slideIn 0.5s var(--ease) backwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
}

.bucket-item:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

.check-circle {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: transparent;
}

.bucket-item.done .check-circle {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 500;
    transition: 0.3s;
}

.bucket-item.done .item-title {
    text-decoration: line-through;
    opacity: 0.3;
}

.item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-delete {
    opacity: 0;
    color: var(--text-muted);
    transition: 0.3s;
    background: none;
    border: none;
    cursor: pointer;
}

.bucket-item:hover .btn-delete {
    opacity: 1;
}

/* Progress Footer */
.progress-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5,5,8,0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-glass);
    padding: 15px 0;
    z-index: 100;
}

.progress-bar-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.progress-track {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #fff);
    width: 0%;
    transition: width 1s var(--ease);
}
