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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header & Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: #8a2be2;
    text-decoration: none;
    background: linear-gradient(135deg, #8a2be2, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #b8b8b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8a2be2;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icons i {
    color: #b8b8b8;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-icons i:hover {
    color: #8a2be2;
}

.btn-login {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.profile-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.profile-link:hover {
    border-color: #8a2be2;
    transform: scale(1.1);
}

.profile-avatar-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #b8b8b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: #b8b8b8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #8a2be2;
    padding: 15px 30px;
    border: 2px solid #8a2be2;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-3px);
}

/* Browser Window */
.browser-window {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.browser-header {
    background: rgba(30, 30, 30, 0.95);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.browser-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }

.browser-title {
    color: #b8b8b8;
    font-weight: 500;
}

.new-badge {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.browser-content {
    padding: 20px;
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-item {
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.game-item:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.5);
}

.game-info h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 5px;
}

.game-info p {
    color: #b8b8b8;
    font-size: 14px;
}

.btn-view {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    padding: 30px 0;
    text-align: center;
}

footer p {
    color: #b8b8b8;
}

/* Auth Section */
.auth-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8a2be2, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #b8b8b8;
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #b8b8b8;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
}

.form-group input::placeholder {
    color: #666;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #8a2be2;
}

.form-checkbox label {
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.4;
}

.form-checkbox a {
    color: #8a2be2;
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    color: #8a2be2;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-auth {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.auth-footer p {
    color: #b8b8b8;
    font-size: 14px;
}

.auth-footer a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Дополнительные стили для анимаций */
.hero-text, .hero-browser, .game-item {
    transition: all 0.8s ease;
}

.game-item {
    transition: all 0.3s ease;
}

.btn-primary, .btn-secondary, .btn-view {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

/* Анимация загрузки страницы */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Анимация для навбара */
.navbar {
    transition: all 0.3s ease;
}

/* Эффект свечения для кнопок */
.btn-primary:hover, .btn-secondary:hover, .btn-view:hover {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* Анимация для game-item при наведении */
.game-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

/* Games Section */
.games-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8a2be2, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: #b8b8b8;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Enhanced Search */
.search-container {
    margin-bottom: 30px;
}

.search-bar {
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 10px 0 0 10px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #9370db, #8a2be2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    color: #b8b8b8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(138, 43, 226, 0.1);
    color: #ffffff;
}

.suggestion-item.active {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
}

/* Filters */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #b8b8b8;
    font-size: 14px;
    font-weight: 500;
}

.filter-group select {
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-tag:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: translateY(-2px);
}

.filter-tag.active {
    background: #8a2be2;
    color: white;
    border-color: #8a2be2;
}

.clear-filters {
    background: transparent;
    color: #b8b8b8;
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: rgba(138, 43, 226, 0.1);
    color: #8a2be2;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.config-btn {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-btn:hover {
    background: linear-gradient(135deg, #9370db, #8a2be2);
    transform: translateY(-2px);
}

/* Version Badges */
.game-versions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.version-badge {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

/* Config Button */
.btn-config {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a2be2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-config:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: scale(1.1);
}

/* Enhanced Game Cards */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffd700;
    font-size: 14px;
}

.rating-text {
    color: #b8b8b8;
    font-size: 12px;
}

.game-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b8b8b8;
    font-size: 12px;
}

.stat i {
    color: #8a2be2;
}

.game-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-favorite {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a2be2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: scale(1.1);
}

.btn-favorite.active {
    background: #8a2be2;
    color: white;
}

.btn-favorite.active i {
    color: white;
}

/* Light Theme Updates */
body.light-theme .filter-group select {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #333;
}

body.light-theme .filter-group select:focus {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.05);
}

body.light-theme .filter-group label {
    color: #333;
}

body.light-theme .clear-filters {
    color: #666;
    border-color: rgba(138, 43, 226, 0.2);
}

body.light-theme .clear-filters:hover {
    background: rgba(138, 43, 226, 0.05);
    color: #8a2be2;
}

body.light-theme .search-suggestions {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(138, 43, 226, 0.2);
}

body.light-theme .suggestion-item {
    color: #666;
}

body.light-theme .suggestion-item:hover {
    background: rgba(138, 43, 226, 0.05);
    color: #333;
}

body.light-theme .suggestion-item.active {
    background: rgba(138, 43, 226, 0.1);
    color: #8a2be2;
}

body.light-theme .rating-text,
body.light-theme .stat {
    color: #666;
}

body.light-theme .btn-favorite {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.2);
}

body.light-theme .btn-favorite:hover {
    background: rgba(138, 43, 226, 0.2);
}

/* Configuration Modal */
.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.config-modal.active {
    display: flex;
}

.config-overlay {
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.config-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 0;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.config-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
}

.config-close {
    background: none;
    border: none;
    color: #b8b8b8;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-close:hover {
    color: #8a2be2;
}

.config-body {
    padding: 30px;
}

.config-section {
    margin-bottom: 30px;
}

.config-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.version-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.version-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8b8b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.version-selector input[type="radio"] {
    accent-color: #8a2be2;
}

.version-selector label:hover {
    color: #8a2be2;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.function-item {
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.function-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}

.function-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #b8b8b8;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.function-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: #8a2be2;
}

.function-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    left: 28px;
    background: white;
}

.function-name {
    color: #ffffff;
    font-weight: 500;
}

.function-settings {
    padding-left: 62px;
}

.function-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8b8b8;
    font-size: 14px;
}

.function-settings input[type="range"] {
    accent-color: #8a2be2;
    flex: 1;
}

.extra-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.extra-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8b8b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.extra-settings input[type="checkbox"] {
    accent-color: #8a2be2;
}

.extra-settings label:hover {
    color: #8a2be2;
}

.config-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #b8b8b8;
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(138, 43, 226, 0.1);
    color: #8a2be2;
}

.btn-primary {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9370db, #8a2be2);
    transform: translateY(-2px);
}

/* Light Theme Updates for Config */
body.light-theme .config-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(138, 43, 226, 0.2);
}

body.light-theme .config-header {
    border-color: rgba(138, 43, 226, 0.1);
}

body.light-theme .config-header h3 {
    color: #333;
}

body.light-theme .config-close {
    color: #666;
}

body.light-theme .config-close:hover {
    color: #8a2be2;
}

body.light-theme .config-section h4 {
    color: #333;
}

body.light-theme .version-selector label {
    color: #666;
}

body.light-theme .version-selector label:hover {
    color: #8a2be2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navbar */
    .navbar .container {
        padding: 0 15px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .nav-links {
        display: none; /* Hide nav links on mobile */
    }

    .nav-icons .fa-bars {
        display: block !important; /* Show hamburger */
    }

    /* Mobile Menu */
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(138, 43, 226, 0.3);
        display: none;
        z-index: 999;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu li {
        border-bottom: 1px solid rgba(138, 43, 226, 0.1);
    }

    .mobile-menu li:last-child {
        border-bottom: none;
    }

    .mobile-menu a {
        display: block;
        padding: 15px 20px;
        color: #b8b8b8;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-menu a:hover {
        background: rgba(138, 43, 226, 0.1);
        color: #8a2be2;
    }

    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Browser Window */
    .browser-window {
        margin-top: 20px;
    }

    .browser-header {
        padding: 12px;
    }

    .browser-title {
        font-size: 14px;
    }

    .new-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .browser-content {
        padding: 15px;
    }

    .game-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .game-item .btn-view {
        align-self: stretch;
        text-align: center;
    }

    /* Auth Section */
    .auth-card {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    /* Games Section */
    .section-header h1 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .search-bar {
        max-width: 100%;
    }

    .filters-container {
        flex-direction: column;
        gap: 15px;
    }

    .filter-actions {
        justify-content: center;
    }

    /* Config Modal */
    .config-content {
        margin: 10px;
        max-height: 95vh;
    }

    .config-header {
        padding: 15px 20px;
    }

    .config-body {
        padding: 20px;
    }

    .config-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .config-footer .btn-primary,
    .config-footer .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .section-header h1 {
        font-size: 28px;
    }

    .browser-window {
        border-radius: 10px;
    }

    .game-item {
        padding: 12px;
    }

    .game-info h3 {
        font-size: 16px;
    }

    .game-info p {
        font-size: 13px;
    }
}

body.light-theme .function-item {
    background: rgba(240, 240, 240, 0.5);
    border-color: rgba(138, 43, 226, 0.1);
}

body.light-theme .function-name {
    color: #333;
}

body.light-theme .function-settings label {
    color: #666;
}

body.light-theme .extra-settings label {
    color: #666;
}

body.light-theme .extra-settings label:hover {
    color: #8a2be2;
}

body.light-theme .config-footer {
    border-color: rgba(138, 43, 226, 0.1);
}

body.light-theme .btn-secondary {
    color: #666;
    border-color: rgba(138, 43, 226, 0.2);
}

body.light-theme .btn-secondary:hover {
    background: rgba(138, 43, 226, 0.05);
    color: #8a2be2;
}

body.light-theme .version-badge {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.2);
}

/* Responsive Design for Config */
@media (max-width: 768px) {
    .function-grid {
        grid-template-columns: 1fr;
    }
    
    .version-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .config-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .config-body {
        padding: 20px;
    }
    
    .config-header,
    .config-footer {
        padding: 15px 20px;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .config-btn {
        width: 100%;
        justify-content: center;
    }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.game-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.game-status {
    background: linear-gradient(135deg, #27c93f, #20bf6b);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 10px;
}

.game-info p {
    color: #b8b8b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}


.btn-game {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
}

/* About Section */
.about-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    min-height: 100vh;
}

.about-hero {
    text-align: center;
    margin-bottom: 80px;
}

.about-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8a2be2, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero p {
    color: #b8b8b8;
    font-size: 18px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.about-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
}

.about-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8a2be2, #9370db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-icon i {
    color: white;
    font-size: 24px;
}

.about-card h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
}

.about-card p {
    color: #b8b8b8;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.stat-item {
    text-align: center;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 30px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #8a2be2;
    margin-bottom: 10px;
}

.stat-label {
    color: #b8b8b8;
    font-size: 14px;
}

.about-team h2 {
    text-align: center;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #8a2be2;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 10px;
}

.team-member p {
    color: #b8b8b8;
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    width: 40px;
    height: 40px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a2be2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background: #8a2be2;
    color: white;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    min-height: 100vh;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.faq-item {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(138, 43, 226, 0.1);
}

.faq-question h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.faq-question i {
    color: #8a2be2;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 25px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: #b8b8b8;
    line-height: 1.6;
}

.contact-support {
    text-align: center;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 40px;
}

.contact-support h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-support p {
    color: #b8b8b8;
    margin-bottom: 30px;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.support-buttons a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-buttons .btn-primary {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
}

.support-buttons .btn-secondary {
    background: transparent;
    color: #8a2be2;
    border: 2px solid #8a2be2;
}

.support-buttons a:hover {
    transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a2be2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: scale(1.1);
}

/* Light Theme */
body.light-theme {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .navbar-brand {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .nav-links a {
    color: #333;
}

body.light-theme .nav-links a:hover {
    color: #8a2be2;
}

body.light-theme .nav-icons i {
    color: #333;
}

body.light-theme .nav-icons i:hover {
    color: #8a2be2;
}

body.light-theme .theme-toggle {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
}

body.light-theme .btn-login {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    color: white;
}

body.light-theme .hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

body.light-theme .hero-text h1 {
    background: linear-gradient(135deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .hero-text p {
    color: #666;
}

body.light-theme .browser-window {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .browser-header {
    background: rgba(240, 240, 240, 0.95);
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

body.light-theme .browser-title {
    color: #333;
}

body.light-theme .game-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.1);
}

body.light-theme .game-item:hover {
    background: rgba(138, 43, 226, 0.05);
    border-color: rgba(138, 43, 226, 0.3);
}

body.light-theme .game-info h3 {
    color: #333;
}

body.light-theme .game-info p {
    color: #666;
}

body.light-theme .games-section,
body.light-theme .about-section,
body.light-theme .faq-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

body.light-theme .section-header h1,
body.light-theme .about-hero h1 {
    background: linear-gradient(135deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .section-header p,
body.light-theme .about-hero p {
    color: #666;
}

body.light-theme .search-bar input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #333;
}

body.light-theme .search-bar input:focus {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.05);
}

body.light-theme .game-card,
body.light-theme .about-card,
body.light-theme .stat-item,
body.light-theme .team-member,
body.light-theme .faq-item,
body.light-theme .contact-support {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .game-info h3,
body.light-theme .about-card h3,
body.light-theme .team-member h3,
body.light-theme .faq-question h3,
body.light-theme .contact-support h2 {
    color: #333;
}

body.light-theme .game-info p,
body.light-theme .about-card p,
body.light-theme .team-member p,
body.light-theme .faq-answer p,
body.light-theme .contact-support p {
    color: #666;
}

body.light-theme .auth-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .auth-header h2 {
    background: linear-gradient(135deg, #8a2be2, #9370db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .auth-header p {
    color: #666;
}

body.light-theme .form-group label {
    color: #333;
}

body.light-theme .form-group input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #333;
}

body.light-theme .form-group input:focus {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.05);
}

body.light-theme .form-checkbox label {
    color: #666;
}

body.light-theme .auth-footer p {
    color: #666;
}

body.light-theme footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme footer p {
    color: #666;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(138, 43, 226, 0.3);
    border-top: 3px solid #8a2be2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Hover Effects */
.game-card {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.game-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.btn-primary,
.btn-secondary,
.btn-game {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before,
.btn-game::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-game:hover::before {
    width: 300px;
    height: 300px;
}

/* Sound Effects */
.sound-toggle {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a2be2;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.sound-toggle:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: scale(1.1);
}

.sound-toggle.muted {
    color: #666;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .section-header h1,
    .about-hero h1 {
        font-size: 32px;
    }
    
    .games-grid,
    .about-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .theme-toggle,
    .sound-toggle {
        width: 35px;
        height: 35px;
    }
}
