/* Purple Theme (Default) */
:root,
[data-theme="purple"] {
    --primary-color: #6366f1;
    --primary-hover: #5855eb;
    --secondary-color: #1f2937;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border: #475569;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Blue Theme */
[data-theme="blue"] {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
}

/* Green Theme */
[data-theme="green"] {
    --primary-color: #10b981;
    --primary-hover: #059669;
}

/* Red Theme */
[data-theme="red"] {
    --primary-color: #ef4444;
    --primary-hover: #dc2626;
}

/* Orange Theme */
[data-theme="orange"] {
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
}

/* Light Mode */
body.light-mode {
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-light: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

body.light-mode .hero h1 {
    background: linear-gradient(135deg, #0f172a 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

body.light-mode .info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

body.light-mode .info-card .info-icon {
    color: white;
}

body.light-mode .info-card .info-value {
    color: white;
}

body.light-mode .info-card .info-label {
    color: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 70px; /* Компенсация за fixed navbar */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    padding-top: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 150px;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s;
}

.user-dropdown a:hover {
    background: var(--surface-light);
}

.user-dropdown a::after {
    display: none;
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.btn-register:hover {
    transform: translateY(-2px);
}

.btn-register::after {
    display: none;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: calc(100vh - 70px); /* Отчитане на navbar височината */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: -70px; /* Негативен margin за компенсация на body padding */
    padding-top: 70px; /* Вътрешен padding за правилно центриране */
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 5px 15px var(--primary-color));
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 8px 20px var(--primary-color));
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding-top: 5px;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.1);
}

.feature-content {
    padding: 30px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Server Info Section */
.server-info {
    background: var(--surface);
}

.server-info-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 24px;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.news-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Widgets Section */
.widgets-section {
    background: var(--surface);
    padding: 80px 0;
}

.widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.widget {
    background: var(--background);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.widget-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Top Donors Widget */
.donor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--surface);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.donor-item:hover {
    background: var(--surface-light);
    transform: translateX(5px);
}

.donor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.donor-rank {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.donor-rank.first {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1f2937;
}

.donor-rank.second {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #1f2937;
}

.donor-rank.third {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}

.donor-name {
    font-weight: 500;
    color: var(--text-primary);
}

.donor-amount {
    font-weight: 600;
    color: var(--accent-color);
}

.donor-stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Chat Widget */
.chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    overflow-y: auto;
    margin-bottom: 15px;
    max-height: 300px;
}

.chat-message {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.chat-message:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.chat-username {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.chat-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.chat-text {
    color: var(--text-primary);
    margin-top: 4px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-login-prompt {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.chat-login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.chat-login-prompt a:hover {
    text-decoration: underline;
}

/* Servers Widget */
.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--surface);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.server-item:hover {
    background: var(--surface-light);
    transform: translateX(5px);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.server-status.online {
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.server-status.offline {
    background: var(--danger-color);
    animation: none;
}

.server-status.maintenance {
    background: var(--warning-color);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.server-details h4 {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

.server-ip {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 2px;
    font-family: 'Courier New', monospace;
}

.server-status-text {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-status-text.online {
    color: var(--accent-color);
}

.server-status-text.offline {
    color: var(--danger-color);
}

.server-status-text.maintenance {
    color: var(--warning-color);
}

/* Stats Widgets */
.stats-widgets-section {
    background: var(--background);
    padding: 60px 0;
}

.stats-widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-widget {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-widget:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stats-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.stats-widget-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.stats-widget-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.stats-widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Page Header (Shop) */
.page-header {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    margin-bottom: 80px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Server Selection */
.server-selection {
    margin-bottom: 40px;
}

.server-selection h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.server-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.server-tab {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.server-tab:hover {
    border-color: var(--primary-color);
    background: var(--surface-light);
    transform: translateY(-2px);
}

.server-tab.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.current-server-info {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
}

.current-server-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.current-server-info p {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.product-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-content {
    padding: 30px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 8px 0;
}

.feature-item i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 16px;
    font-size: 0.75rem;
}

.buy-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.buy-button:hover::before {
    left: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform: scale(0.9);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.steamid-help {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.steamid-help h4 {
    color: #3b82f6;
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steamid-help ul {
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.steamid-help li {
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.steamid-help li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
    overscroll-behavior: contain;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Prevent body scroll when menu is open on mobile */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
        height: 100vh;
        touch-action: none;
    }
    
    body.menu-open .nav-links {
        touch-action: auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        padding-bottom: 80px;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--border);
        z-index: 99;
    }
    
    body.light-mode .nav-links {
        background: var(--surface);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a,
    .nav-links button {
        display: block;
        padding: 15px 10px;
        width: 100%;
        text-align: left;
        text-decoration: none;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        position: static !important;
    }
    
    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a:active,
    .nav-links button:focus,
    .nav-links button:active {
        text-decoration: none;
        outline: none;
    }
    
    /* Remove underline effect on mobile */
    .nav-links a::after,
    .nav-links a::before {
        display: none !important;
    }
    
    .nav-links a:hover::after,
    .nav-links a.active::after {
        display: none !important;
    }
    
    /* Theme and language toggle buttons in mobile */
    .nav-links .theme-toggle {
        width: 100%;
        height: auto;
        border-radius: 8px;
        justify-content: flex-start;
        padding: 15px 10px;
        gap: 10px;
        border: none;
        background: transparent;
    }
    
    .nav-links .theme-toggle:hover {
        background: var(--surface-light);
        transform: none;
    }
    
    .nav-links .theme-toggle i {
        font-size: 1.2rem;
        width: 24px;
    }
    
    /* Show language icon on mobile */
    .nav-links .theme-toggle .fa-language {
        display: inline-block;
    }
    
    .nav-links .theme-toggle .mobile-label {
        display: inline;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .nav-links .theme-toggle .desktop-label {
        display: none;
    }
    
    /* Cart badge in mobile */
    .nav-links .cart-badge {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .user-menu {
        position: relative;
    }
    
    .user-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 10px;
    }
    
    .user-dropdown a {
        padding: 10px 20px;
    }
    
    .products-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .widgets-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(20deg);
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle .mobile-label {
    display: none;
}

.theme-toggle .desktop-label {
    display: inline;
}

/* Hide language icon on desktop, show only text */
.theme-toggle .fa-language {
    display: none;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li:last-child {
    display: flex;
    align-items: center;
}