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

        body {
            font-family: "Georgia", serif;
            min-height: 100vh;
            padding: 20px;
            transition: all 0.3s ease;
        }

        body.light { background: #f5f5f5; color: #000; }
        body.dark { background: #1a1a1a; color: #fff; }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header with Logo */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 15px;
            text-decoration: none;
            color: inherit;
        }

        .logo-image {
            width: 50px;
            height: 50px;
            transition: transform 0.3s ease;
            border-radius: 50%;
        }

        .logo-container:hover .logo-image {
            transform: scale(1.1);
        }

        .logo-text {
            font-size: 24px;
            font-weight: bold;
        }

        .logo-tagline {
            font-size: 12px;
            opacity: 0.7;
            display: block;
        }

        .controls {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .user-badge {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        body.light .user-badge { 
            background: #e3f2fd; 
            color: #1976d2; 
        }

        body.dark .user-badge { 
            background: #1a237e; 
            color: #64b5f6; 
        }

        /* Search Bar */
        .search-container {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin: 30px auto;
        }

        .search-bar {
            width: 100%;
            padding: 15px 50px 15px 20px;
            border: 2px solid;
            border-radius: 30px;
            font-size: 18px;
            font-family: inherit;
            transition: all 0.3s;
        }

        body.light .search-bar {
            background: #fff;
            color: #000;
            border-color: #ddd;
        }

        body.dark .search-bar {
            background: #2a2a2a;
            color: #fff;
            border-color: #444;
        }

        .search-bar:focus {
            outline: none;
            border-color: #4CAF50;
        }

        .search-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 20px;
            opacity: 0.5;
        }

        .search-results {
            margin-top: 20px;
            padding: 20px;
            border-radius: 10px;
            display: none;
        }

        body.light .search-results { background: #f9f9f9; }
        body.dark .search-results { background: #2a2a2a; }

        /* Buttons */
        .btn {
            padding: 10px 20px;
            border: 2px solid;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            background: transparent;
        }

        body.light .btn { border-color: #000; color: #000; }
        body.dark .btn { border-color: #fff; color: #fff; }

        .btn:hover { transform: scale(1.05); }
        body.light .btn:hover { background: #000; color: #fff; }
        body.dark .btn:hover { background: #fff; color: #000; }

        .btn-logout {
            padding: 10px 20px;
            border: 2px solid #f44336;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            background: transparent;
            color: #f44336;
        }

        .btn-logout:hover {
            background: #f44336;
            color: #fff;
            transform: scale(1.05);
        }

        /* Word Display - WITH COLORFUL BACKGROUNDS */
        .word-section {
            text-align: center;
            padding: 60px 0;
        }

        .word-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 60px 40px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            margin-bottom: 40px;
            animation: fadeIn 1s;
        }

        .word {
            font-size: 80px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #fff;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .phonetic {
            font-size: 24px;
            color: #fff;
            opacity: 0.9;
            font-style: italic;
            margin-bottom: 10px;
        }

        .pronunciation {
            font-size: 20px;
            color: #fff;
            opacity: 0.8;
            margin-bottom: 30px;
        }

        .meaning-card {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            margin-bottom: 30px;
        }

        .meaning {
            font-size: 24px;
            line-height: 1.8;
            color: #fff;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Stats */
        .stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        .stat-item {
            background: rgba(255,255,255,0.1);
            padding: 15px 30px;
            border-radius: 15px;
            font-size: 16px;
            backdrop-filter: blur(10px);
        }

        body.light .stat-item {
            background: rgba(0,0,0,0.05);
        }

        /* Previous Words Section */
        .previous-words-section {
            margin: 60px 0;
        }

        .section-title {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 30px;
            text-align: center;
        }

        .words-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .word-item {
            padding: 25px;
            border-radius: 15px;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

        body.light .word-item {
            background: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        body.dark .word-item {
            background: #2a2a2a;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .word-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        }

        .word-item-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #667eea;
        }

        .word-item-date {
            font-size: 12px;
            opacity: 0.6;
            margin-bottom: 10px;
        }

        .word-item-meaning {
            font-size: 16px;
            line-height: 1.5;
            opacity: 0.8;
        }

        /* Trending Section */
        .trending-section {
            margin: 60px 0;
        }

        .trending-tabs {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 30px;
        }

        .trending-tab {
            padding: 12px 30px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
            border: 2px solid;
        }

        body.light .trending-tab {
            border-color: #ddd;
            color: #666;
        }

        body.dark .trending-tab {
            border-color: #444;
            color: #aaa;
        }

        .trending-tab.active {
            background: #4CAF50;
            border-color: #4CAF50;
            color: #fff;
        }

        .trending-list {
            display: none;
        }

        .trending-list.active {
            display: block;
        }

        .trending-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            margin-bottom: 15px;
            border-radius: 10px;
            transition: all 0.3s;
        }

        body.light .trending-item {
            background: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        body.dark .trending-item {
            background: #2a2a2a;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        }

        .trending-item:hover {
            transform: translateX(10px);
        }

        .trending-rank {
            font-size: 32px;
            font-weight: bold;
            color: #4CAF50;
            width: 60px;
        }

        .trending-content {
            flex: 1;
        }

        .trending-word {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .trending-stats {
            font-size: 14px;
            opacity: 0.6;
        }

        /* Newsletter Signup */
        .newsletter {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            padding: 40px;
            border-radius: 15px;
            margin: 60px 0;
            text-align: center;
        }

        .newsletter h2 {
            margin-bottom: 10px;
        }

        .newsletter p {
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .newsletter-form {
            display: flex;
            gap: 10px;
            max-width: 500px;
            margin: 0 auto;
            flex-wrap: wrap;
        }

        .newsletter-input {
            flex: 1;
            min-width: 200px;
            padding: 12px 20px;
            border: none;
            border-radius: 25px;
            font-size: 16px;
        }

        .newsletter-btn {
            padding: 12px 30px;
            background: #fff;
            color: #667eea;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .newsletter-btn:hover {
            transform: scale(1.05);
        }

        /* Theme Toggle */
        .theme-toggle {
            width: 50px;
            height: 26px;
            background: #ccc;
            border-radius: 13px;
            position: relative;
            cursor: pointer;
            transition: background 0.3s;
        }

        .theme-toggle.active { background: #000; }

        .theme-toggle::before {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #fff;
            top: 3px;
            left: 3px;
            transition: transform 0.3s;
        }

        .theme-toggle.active::before {
            transform: translateX(24px);
        }

        /* Footer */
        .footer {
            text-align: center;
            padding: 40px 20px;
            margin-top: 60px;
            border-top: 1px solid;
            opacity: 0.6;
        }

        body.light .footer { border-color: #ddd; }
        body.dark .footer { border-color: #333; }

        @media (max-width: 768px) {
            .word { font-size: 50px; }
            .meaning { font-size: 18px; }
            .newsletter-form { flex-direction: column; }
            .logo-image { width: 40px; height: 40px; }
            .logo-text { font-size: 18px; }
            .words-grid { grid-template-columns: 1fr; }
        }

/* Part of Speech Badge */
.part-of-speech-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 10px 0 20px;
    color: #fff;
    letter-spacing: 1px;
}

/* Synonyms & Antonyms Section */
.syn-ant-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.syn-ant-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
}

.syn-ant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.syn-ant-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s;
    cursor: pointer;
}

.syn-ant-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.syn-ant-tag.antonym {
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.4);
}

.syn-ant-tag.antonym:hover {
    background: rgba(255, 100, 100, 0.25);
}

/* Suggestion Jumbotron */
.suggestion-jumbotron {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s;
}

.jumbotron-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.jumbotron-content h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
}

.jumbotron-content p {
    font-size: 18px;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 30px;
}

.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-input,
.suggestion-textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s;
}

.suggestion-input:focus,
.suggestion-textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.suggestion-textarea {
    min-height: 120px;
    resize: vertical;
}

.suggestion-btn {
    padding: 15px 40px;
    background: #fff;
    color: #11998e;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.suggestion-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    display: none;
}

.suggestion-note {
    margin-top: 20px;
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
}

.suggestion-note strong {
    color: #fff;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .suggestion-jumbotron {
        padding: 40px 20px;
    }
    
    .jumbotron-content h2 {
        font-size: 28px;
    }
    
    .jumbotron-content p {
        font-size: 16px;
    }
    
    .syn-ant-tag {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Word Count Badge */
.word-count-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    animation: fadeIn 1s;
}

.word-count-number {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.word-count-label {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.light .word-count-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (max-width: 768px) {
    .word-count-badge {
        padding: 15px 20px;
    }
    
    .word-count-number {
        font-size: 36px;
    }
    
    .word-count-label {
        font-size: 12px;
    }
}