 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-red: #3d62da;
            --primary-blue: #ffa033;
            --dark-bg: #0a0a0f;
            --card-bg: #1a1a2e;
            --text-primary: #ffffff;
            --text-secondary: #b8b8d0;
            --gradient: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
            --success: #00ff88;
            --warning: #ffaa00;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--dark-bg);
            color: var(--text-primary);
            overflow-x: hidden;
        }

        body.light-theme {
            --dark-bg: #f5f5f5;
            --card-bg: #ffffff;
            --text-primary: #1a1a2e;
            --text-secondary: #666;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(10, 10, 15, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            z-index: 1000;
            border-bottom: 2px solid transparent;
            border-image: var(--gradient) 1;
        }

        body.light-theme nav {
            background: rgba(255, 255, 255, 0.95);
        }

        nav .container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.3s;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 500;
        }

        .nav-links a:hover, .nav-links a.active {
            background: var(--gradient);
            color: white !important;
            -webkit-text-fill-color: white;
            transform: translateY(-2px);
        }

        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: var(--text-primary);
            transition: 0.3s;
        }

        body.light-theme .hamburger span {
            background: var(--text-primary);
        }

        /* Pages */
        .page {
            display: none;
            min-height: 100vh;
            padding-top: 80px;
        }

        .page.active {
            display: block;
        }

        /* Homepage */
        #homepage {
            overflow: hidden;
        }

        .hero {
            height: 100vh;
            min-height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--gradient);
            border-radius: 50%;
            opacity: 0.6;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            padding: 2rem;
        }

        .hero h1 {
            font-size: clamp(2rem, 8vw, 4rem);
            margin-bottom: 1rem;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero p {
            font-size: clamp(1rem, 4vw, 1.5rem);
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .cta-button {
            padding: 1rem 3rem;
            font-size: 1.2rem;
            background: var(--gradient);
            border: none;
            border-radius: 50px;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 10px 30px rgba(255, 51, 102, 0.3);
        }

        .cta-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(255, 51, 102, 0.5);
        }

        .features-section {
            padding: 5rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .feature-card {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 20px;
            transition: all 0.3s;
            border: 2px solid transparent;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            border-image: var(--gradient) 1;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .feature-card i {
            font-size: 3rem;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

        .about-section {
            padding: 5rem 2rem;
            background: var(--card-bg);
            text-align: center;
        }

        .about-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .avatar {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: var(--gradient);
            margin: 0 auto 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        /* Dashboard */
        .dashboard-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .dashboard-card {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .contribution-graph {
            display: grid;
            grid-template-columns: repeat(52, 1fr);
            gap: 5px;
            margin-top: 1rem;
            padding: 1.5rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 15px;
            border: 2px solid rgba(255, 51, 102, 0.2);
        }

        .contribution-graph.mobile-vertical {
            grid-template-columns: repeat(7, 1fr);
            grid-auto-flow: column;
            max-height: 400px;
            overflow-y: auto;
        }

        .contribution-cell {
            aspect-ratio: 1;
            background: #2a2a3e;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid rgba(255, 51, 102, 0.1);
        }

        .contribution-cell:hover {
            transform: scale(1.3);
            box-shadow: 0 0 15px rgba(255, 51, 102, 0.8);
            z-index: 10;
        }

        .level-0 { 
            background: #2a2a3e;
            border-color: rgba(255, 51, 102, 0.2);
        }
        .level-1 { 
            background: #ff3366;
            opacity: 0.3;
            box-shadow: 0 0 5px rgba(255, 51, 102, 0.3);
        }
        .level-2 { 
            background: #ff3366;
            opacity: 0.5;
            box-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
        }
        .level-3 { 
            background: #ff3366;
            opacity: 0.75;
            box-shadow: 0 0 10px rgba(255, 51, 102, 0.7);
        }
        .level-4 { 
            background: #ff3366;
            opacity: 1;
            box-shadow: 0 0 12px rgba(255, 51, 102, 0.9);
        }

        /* Sticky Notes */
        .sticky-notes-container {
            position: relative;
            min-height: 80vh;
            padding: 2rem;
            touch-action: none;
        }

        .sticky-note {
            position: absolute;
            width: 250px;
            min-height: 200px;
            padding: 1.5rem;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            cursor: move;
            transition: transform 0.2s;
        }

        .sticky-note:hover {
            transform: scale(1.05);
            z-index: 100;
        }

        .note-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .note-content {
            width: 100%;
            background: transparent;
            border: none;
            color: inherit;
            font-size: 1rem;
            resize: none;
            min-height: 120px;
        }

        .note-content:focus {
            outline: none;
        }

        .add-note-btn {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--gradient);
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            box-shadow: 0 10px 30px rgba(255, 51, 102, 0.5);
            transition: all 0.3s;
        }

        .add-note-btn:hover {
            transform: scale(1.1) rotate(90deg);
        }

        /* Timer */
        .timer-container {
            text-align: center;
            max-width: 500px;
            margin: 0 auto;
        }

        .timer-display {
            font-size: 6rem;
            font-weight: bold;
            margin: 2rem 0;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .timer-progress {
            width: 300px;
            height: 300px;
            margin: 0 auto;
            position: relative;
        }

        .timer-circle {
            transform: rotate(-90deg);
        }

        .timer-controls {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 2rem;
        }

        .timer-btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .timer-btn.start {
            background: var(--success);
            color: var(--dark-bg);
        }

        .timer-btn.pause {
            background: var(--warning);
            color: var(--dark-bg);
        }

        .timer-btn.reset {
            background: var(--primary-red);
            color: white;
        }

        /* Settings */
        .settings-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem;
        }

        .setting-group {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 20px;
            margin-bottom: 2rem;
        }

        .toggle-switch {
            position: relative;
            width: 60px;
            height: 30px;
            background: #333;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .toggle-switch.active {
            background: var(--gradient);
        }

        .toggle-slider {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 24px;
            height: 24px;
            background: white;
            border-radius: 50%;
            transition: all 0.3s;
        }

        .toggle-switch.active .toggle-slider {
            left: 33px;
        }

        .api-input {
            width: 100%;
            padding: 1rem;
            background: var(--dark-bg);
            border: 2px solid var(--card-bg);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 1rem;
            margin-top: 1rem;
        }

        /* Analytics */
        .analytics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .chart-container {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 20px;
        }

        /* Badges */
        .badges-container {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        .badge {
            padding: 0.5rem 1rem;
            background: var(--gradient);
            border-radius: 20px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            animation: badgePop 0.5s ease;
        }

        @keyframes badgePop {
            0% { transform: scale(0); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 15px;
            text-align: center;
            border: 2px solid transparent;
            transition: all 0.3s;
        }

        .stat-card:hover {
            border-image: var(--gradient) 1;
            transform: translateY(-5px);
        }

        .stat-value {
            font-size: 2.5rem;
            font-weight: bold;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Notes Manager */
        .notes-manager {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .search-bar {
            width: 100%;
            padding: 1rem;
            background: var(--card-bg);
            border: 2px solid var(--primary-blue);
            border-radius: 50px;
            color: var(--text-primary);
            font-size: 1rem;
            margin-bottom: 2rem;
        }

        .notes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }

        .note-card {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 15px;
            transition: all 0.3s;
        }

        .note-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 20px;
            max-width: 500px;
            width: 90%;
        }

        /* Responsive */
                    @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                top: 70px;
                left: -100%;
                flex-direction: column;
                background: var(--dark-bg);
                width: 100%;
                padding: 2rem;
                transition: 0.3s;
                border-top: 2px solid var(--primary-blue);
            }

            body.light-theme .nav-links {
                background: #ffffff;
            }

            .nav-links.active {
                left: 0;
            }

            .hamburger {
                display: flex;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .timer-display {
                font-size: 4rem;
            }

            .analytics-grid {
                grid-template-columns: 1fr;
            }
        }

        .tooltip {
            position: fixed;
            background: var(--card-bg);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            pointer-events: none;
            z-index: 1000;
            display: none;
            border: 1px solid var(--primary-blue);
        }