:root {
            --accent: #d4af37;
            --bg-dark: #0f172a;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-dark);
            color: #f8fafc;
            overflow-x: hidden;
            margin: 0;
        }

        .serif {
            font-family: 'Playfair Display', serif;
        }

        .story-card {
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(30, 41, 59, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .story-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
            border-color: var(--accent);
        }

        .filter-pill {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .filter-pill:hover,
        .filter-pill.active {
            background-color: var(--accent);
            color: #000;
            transform: scale(1.05);
        }

        .reveal-section {
            animation: fadeIn 0.8s ease-out forwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .new-story-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 20;
            padding: 5px 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.18);
            color: #facc15;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            border: 1px solid rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(6px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #1e293b;
        }

        ::-webkit-scrollbar-thumb {
            background: #475569;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent);
        }

        * {
            box-sizing: border-box;
        }

        @media (max-width: 767px) {
            #navSearchContainer.expanded {
                display: block !important;
                flex: 1;
                margin-left: 0.5rem;
                margin-right: 0.5rem;
            }

            #navSearchContainer.expanded input {
                width: 100%;
            }
        }

        .series-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 20;
            padding: 5px 12px;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.253);
            color: #facc15;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            border: 1px solid rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(6px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }

        /* Eye icon inside password fields */
#loginModal .relative button,
#signupModal .relative button {
    background: transparent;
    border: none;
    padding: 0 8px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
}

#loginModal .relative button:hover,
#signupModal .relative button:hover {
    color: #d4af37; /* gold on hover */
}