/* ===== General Reset and Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #ff4500;
    --primary-color-rgb: 255, 69, 0;
    --primary-dark: #cc3700;
    --primary-light: #ff6a33;
    --text-color: #fff;
    --text-secondary: #ccc;
    --bg-color: #000;
    --bg-secondary: #111;
    --bg-light: #222;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --info-color: #2196F3;
    --border-color: rgba(255, 69, 0, 0.3);
    --modal-bg: rgba(0, 0, 0, 0.8);
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    
    /* New variables */
    --accent-color: #ff4500;
    --accent-hover-color: #cc3700;
    --accent-color-rgb: 255, 69, 0;
    --glass-bg: rgba(0, 0, 0, 0.6);
    --glass-border: rgba(255, 69, 0, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.light-mode {
    --primary-color: #ff4500;
    --primary-color-rgb: 255, 69, 0;
    --primary-dark: #cc3700;
    --primary-light: #ff6a33;
    --text-color: #333;
    --text-secondary: #666;
    --bg-color: #f5f5f5;
    --bg-secondary: #e0e0e0;
    --bg-light: #fff;
    --border-color: rgba(255, 69, 0, 0.3);
    --modal-bg: rgba(255, 255, 255, 0.9);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
                url('../images/background.jpg');
    background-size: cover;
    background-position: center top;
    filter: hue-rotate(340deg) brightness(0.8);
    z-index: -1;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.light-mode::before {
    filter: hue-rotate(340deg) brightness(0.9) opacity(0.3);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    flex: 1;
}

/* ===== Header and Navigation ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    animation: fireAnimation 3s infinite;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color var(--transition-speed);
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
    color: var(--primary-color);
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-speed);
}

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 1000;
    transition: right var(--transition-speed);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.mobile-nav-close:hover {
    color: var(--primary-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    flex-grow: 1;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    transition: color var(--transition-speed);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: var(--primary-color);
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    z-index: 100; /* Ensure dropdown appears above other elements */
}

.language-dropdown-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.language-dropdown-btn:hover {
    background-color: var(--bg-light);
}

.language-dropdown-btn img.flag-png {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border-radius: 2px;
}

.current-lang-code {
    margin: 0 5px;
    text-transform: uppercase;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 160px;
    background-color: var(--bg-secondary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    z-index: 100;
    border: 1px solid var(--border-color);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.language-dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.language-dropdown-content a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color var(--transition-speed);
}

.language-dropdown-content a:hover {
    background-color: var(--bg-light);
}

.language-dropdown-content a.active {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.language-dropdown-content a img.flag-png {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    border-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.theme-btn:hover {
    color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 40px 0;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 69, 0, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 69, 0, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
}

.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.8);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--primary-color-rgb), 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn i {
    margin-right: 8px;
}

/* ===== Download Page Styles ===== */
.download-container {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

/* Make the glass panel more visually appealing */
.download-container .glass-panel {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 50px 30px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-container .glass-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.download-container .glass-panel .hero-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.download-container .section-title {
    margin: 70px auto 35px;
}

.download-container .section-title h2 {
    color: var(--primary-color);
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.download-container .section-title p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

/* Add a subtle animation for the download cards */
@keyframes floatUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-card {
    animation: floatUp 0.5s ease forwards;
    opacity: 0;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.download-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.download-card:hover .download-icon {
    transform: scale(1.1);
}

.download-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.download-description {
    margin-bottom: 15px;
    color: var(--text-secondary);
    flex-grow: 1;
    line-height: 1.6;
}

.download-size, 
.download-version {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.download-card .btn {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
}

.download-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.info-cards-container {
    position: relative;
    overflow: hidden;
}

.info-cards-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.info-card {
    background-color: rgba(20, 20, 20, 0.95);
    background-image: linear-gradient(to bottom, rgba(30, 30, 30, 0.6), rgba(10, 10, 10, 0.9));
    border-radius: var(--border-radius);
    padding: 40px;
    border-top: 2px solid var(--primary-color);
    border-left: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-right: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    width: 100%;
    flex: 0 0 100%;
}

.info-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), rgba(var(--primary-color-rgb), 0.2));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    z-index: 1;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.2rem;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.3);
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.info-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.info-card li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-card li strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    grid-column: 1;
    font-size: 1.2rem;
    text-align: right;
    padding-right: 20px;
    position: relative;
}

.info-card li strong:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(var(--primary-color-rgb), 0.5), transparent);
    transform: translateY(-50%);
}

.info-content {
    grid-column: 2;
    display: flex;
    align-items: center;
    text-align: left;
}

.icon-info {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s ease;
}

.info-content:hover .icon-info {
    transform: scale(1.2);
}

.info-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 40px;
    gap: 30px;
}

.info-card-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.info-card-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-card-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.info-card-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary-color), #ff6a00);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--primary-color-rgb), 0.3);
    transition: all 0.3s ease;
    opacity: 0.95;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.info-card-button:hover {
    background: linear-gradient(145deg, #ff6a00, var(--primary-color));
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7), 0 0 30px rgba(var(--primary-color-rgb), 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(var(--primary-color-rgb), 0.6);
}

.info-card:hover:before {
    background: linear-gradient(to right, var(--primary-color), rgba(var(--primary-color-rgb), 0.8));
}

.info-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(var(--primary-color-rgb), 0.1), transparent 60%);
    pointer-events: none;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.info-card li {
    padding: 16px 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.7;
    font-size: 1.15rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    position: relative;
}

.info-card li:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    transform: translateX(5px);
    border-bottom-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.info-card li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* ===== Rankings Page Styles ===== */
.rankings-container {
    padding: 30px 0;
    max-width: 100%;
}

.mobile-notice {
    display: none;
    text-align: center;
    margin-bottom: 15px;
    padding: 8px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

.mobile-notice i {
    margin-right: 5px;
    color: var(--primary-color);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: none;
    padding: 12px 25px;
    margin: 0 5px 10px;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.tab-btn:hover {
    background-color: var(--bg-light);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.rankings-table-container {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    overflow-x: auto;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    color: var(--text-color);
    background-color: var(--bg-secondary);
}

.rankings-table th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    text-align: left;
    padding: 15px;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
}

.rankings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.rankings-table thead tr th:first-child {
    border-top-left-radius: var(--border-radius);
}

.rankings-table thead tr th:last-child {
    border-top-right-radius: var(--border-radius);
}

.rankings-table tbody tr:hover {
    background-color: var(--bg-light);
}

.rankings-table tr.rank-1,
.rankings-table tr.rank-2,
.rankings-table tr.rank-3 {
    font-weight: bold;
}

.rankings-table tr.rank-1 td:first-child {
    color: gold;
    position: relative;
}

.rankings-table tr.rank-2 td:first-child {
    color: silver;
    position: relative;
}

.rankings-table tr.rank-3 td:first-child {
    color: #cd7f32; /* bronze */
    position: relative;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: var(--success-color);
}

.status-offline {
    background-color: var(--error-color);
}

.class-icon, .gender-icon {
    margin-right: 5px;
    font-size: 1.2em;
}

.guild-rank-1 {
    color: gold;
}

.guild-rank-2 {
    color: silver;
}

.guild-rank-3 {
    color: #cd7f32; /* bronze */
}

/* ===== Notification Styles ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    padding: 16px 20px;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    background-color: rgba(255, 76, 76, 0.15);
    border: 1px solid rgba(255, 76, 76, 0.3);
}

.notification.success {
    background-color: rgba(46, 213, 115, 0.15);
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.notification.info {
    background-color: rgba(54, 162, 235, 0.15);
    border: 1px solid rgba(54, 162, 235, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.notification-content i {
    margin-right: 12px;
    font-size: 1.3rem;
}

.notification.error i {
    color: var(--error-color);
}

.notification.success i {
    color: var(--success-color);
}

.notification.info i {
    color: var(--info-color);
}

/* Add a close button for notifications */
.notification-close {
    margin-left: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
}

.notification-close:hover {
    opacity: 1;
}

/* Add animation for notifications */
@keyframes notificationPulse {
    0% { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
    100% { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
}

.notification.show {
    animation: notificationPulse 2s infinite;
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    z-index: 1000;
    overflow-y: auto;
    padding: 50px 0;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal responsive styles */
@media screen and (max-width: 768px) {
    .modal-dialog {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .modal {
        padding: 20px 0;
    }
}

/* Форма в модальном окне */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.25);
}

.form-group input.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.has-error .error-message {
    display: block;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* Character card styles */
.character-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.character-card {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.character-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.character-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 15px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.character-info {
    flex: 1;
}

.character-info h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.character-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.character-details .level {
    color: var(--primary-color);
    font-weight: bold;
}

.last-login {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.profile-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.no-characters {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-radius: var(--border-radius);
    margin: 20px;
}

.no-characters p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.no-characters p:first-child {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

/* ===== Footer Styles ===== */
footer {
    background-color: var(--bg-secondary);
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

footer .container {
    padding: 0;
    width: 90%;
    max-width: 1200px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Utility Classes ===== */
.font-small {
    font-size: 0.9rem;
}

.font-medium {
    font-size: 1rem;
}

.font-large {
    font-size: 1.1rem;
}

.loading-text {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.error-text {
    text-align: center;
    padding: 20px;
    color: var(--error-color);
}

.no-data {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.password-requirements {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* ===== Animations ===== */
@keyframes fireAnimation {
    0% {
        text-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 69, 0, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
    }
}

/* ===== Media Queries ===== */
@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .glass-panel {
        padding: 25px;
    }
    
    .download-grid,
    .download-info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* News section is styled in the dedicated responsive section */
    
    /* Make rankings responsive */
    .rankings-container {
        display: block;
    }
    
    .mobile-notice {
        display: block;
    }
    
    .rankings-table-container {
        padding: 10px;
    }
    
    .rankings-table {
        font-size: 0.9rem;
    }
    
    .rankings-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        margin-bottom: 10px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px 0;
    }
    
    header {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 24px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Ensure footer is properly displayed */
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ===== Additional Styles for New Components ===== */

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-title p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    opacity: 0;
    transform: translateY(20px);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* News Section Styles */
.news-section {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: color 0.3s;
    line-height: 1.4;
}

.news-card:hover .news-title {
    color: var(--primary-dark);
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.news-excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    margin-top: auto;
}

.news-read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.news-read-more:hover {
    color: var(--primary-dark);
}

.news-read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
}

.pagination-link:hover {
    background: var(--primary-light);
    color: var(--text-inverse);
}

.pagination-link.active {
    background: var(--primary-color);
    color: white;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--text-secondary);
}

/* Single News Page */
.news-detail {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin: 2rem auto;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.news-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.news-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 400px;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: cover;
}

.news-full-content {
    line-height: 1.8;
}

.news-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.news-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
}

.news-list li:before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.news-navigation {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.news-empty {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* Responsive styles for news features */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-card {
        margin: 0;
    }
    
    .news-detail {
        padding: 1.5rem;
        margin: 1rem;
        width: auto;
    }
    
    .pagination {
        margin-top: 1.5rem;
    }
    
    .pagination-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .section-title h1 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .news-card {
        max-width: 100%;
    }
    
    .news-image {
        height: 220px;
    }
    
    .news-featured-image {
        max-height: 250px;
    }
    
    .news-featured-image img {
        max-height: 250px;
    }
    
    .section-title h1 {
        font-size: 1.75rem;
    }
}

/* Add these form styles at the end of the file */

/* Form styles */
.form-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.25);
    background-color: rgba(0, 0, 0, 0.3);
}

.form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

.password-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.password-note {
    color: #999;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* Alerts for messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: var(--error-color);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--success-color);
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert ul li {
    margin-bottom: 5px;
}

.alert ul li:last-child {
    margin-bottom: 0;
}

/* Styles for checkboxes in forms */
.form-group.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-group.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

.form-group.form-checkbox label {
    display: inline;
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
}

/* Styling for links in the forms */
.form-group a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.form-group a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Remember me checkbox specific styling */
.form-group.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-group.remember-me input {
    width: auto;
    margin-right: 10px;
}

.form-group.remember-me label {
    display: inline;
    margin-bottom: 0;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Form Buttons */
.modal .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.modal .form-actions .btn {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .form-actions .btn i {
    margin-right: 8px;
}

.modal .btn.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.modal .btn.btn-primary:hover {
    background-color: var(--primary-dark);
}

.modal .btn.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.modal .btn.btn-secondary:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
}

/* FAQ Section Styles */
.download-container .faq-section {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.download-container .faq-section .section-title {
    margin-bottom: 40px;
}

.faq-section {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive styles for FAQ section */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 15px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }
}

/* Responsive styles for download page */
@media (max-width: 768px) {
    .download-container {
        padding: 20px;
    }
    
    .download-container .glass-panel {
        padding: 20px;
    }
    
    .download-container .glass-panel h1 {
        font-size: 1.8rem;
    }
    
    .download-container .glass-panel .hero-text {
        font-size: 1rem;
    }
    
    .download-container .section-title h2 {
        font-size: 1.5rem;
    }
    
    .download-container .section-title p {
        font-size: 0.95rem;
    }
    
    .download-info-grid,
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .info-card {
        padding: 25px;
        min-height: 400px;
    }
    
    .info-card h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .info-card li {
        font-size: 1rem;
        padding: 15px 0;
    }
    
    .info-content {
        line-height: 1.5;
    }
    
    .icon-info {
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    .info-card-footer {
        gap: 15px;
    }
    
    .info-card-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Дополнительные настройки для очень маленьких экранов */
@media (max-width: 480px) {
    .download-container .glass-panel h1 {
        font-size: 1.6rem;
    }
    
    .download-container .glass-panel .hero-text {
        font-size: 0.95rem;
    }
    
    .download-container .section-title h2 {
        font-size: 1.4rem;
    }
    
    .info-card {
        padding: 15px;
        min-height: 450px;
    }
    
    .info-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .info-card li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 8px;
        margin-bottom: 15px;
    }
    
    .info-card li strong {
        margin-bottom: 8px;
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.3);
    }
    
    .info-card li strong:after {
        display: none;
    }
    
    .info-content {
        width: 100%;
    }
    
    .info-card-footer {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .info-card-button {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .faq-section {
        margin-top: 20px;
    }
}

.download-card:nth-child(1) { animation-delay: 0.1s; }
.download-card:nth-child(2) { animation-delay: 0.2s; }
.download-card:nth-child(3) { animation-delay: 0.3s; }
.download-card:nth-child(4) { animation-delay: 0.4s; }

/* CTA Section Styles */
.cta-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.cta-section .glass-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 30px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section .glass-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-section .glass-panel p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Lore Panel Styles */
.lore-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.lore-panel {
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url('../images/lore-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lore-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.lore-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    color: var(--text-color);
}

.lore-title {
    text-align: center;
    margin-bottom: 40px;
}

.lore-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.lore-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.lore-text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lore-text p {
    margin-bottom: 1.5rem;
}

.lore-text p:last-child {
    margin-bottom: 0;
}

.lore-quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-color);
    text-align: center;
    padding: 20px 0;
    margin: 30px 0;
    position: relative;
}

.lore-quote::before,
.lore-quote::after {
    content: '';
    display: block;
    height: 1px;
    width: 100px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 0 auto;
}

.lore-quote::before {
    margin-bottom: 20px;
}

.lore-quote::after {
    margin-top: 20px;
}

/* Responsive styles for CTA and Lore sections */
@media (max-width: 768px) {
    .cta-section, 
    .lore-section {
        padding: 60px 20px;
    }
    
    .cta-section .glass-panel,
    .lore-content {
        padding: 40px 25px;
    }
    
    .cta-section .glass-panel h2,
    .lore-title h2 {
        font-size: 2rem;
    }
    
    .cta-section .glass-panel p,
    .lore-title p {
        font-size: 1.1rem;
    }
    
    .lore-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .lore-quote {
        font-size: 1.2rem;
        padding: 15px 0;
        margin: 25px 0;
    }
}

@media (max-width: 480px) {
    .cta-section .glass-panel,
    .lore-content {
        padding: 30px 20px;
    }
    
    .cta-section .glass-panel h2,
    .lore-title h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .lore-text {
        font-size: 0.95rem;
    }
    
    .lore-quote {
        font-size: 1.1rem;
    }
}

/* Profile Page Styles */
.profile-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section {
    margin-bottom: 30px;
    width: 100%;
}

.profile-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.3);
    padding-bottom: 10px;
}

.profile-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
}

.info-item .label {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 120px;
}

.info-item .value {
    flex-grow: 1;
    word-break: break-word;
}

.status-active {
    color: var(--success-color);
}

.status-blocked {
    color: var(--error-color);
}

.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.profile-actions .btn {
    padding: 12px 20px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-actions .btn i {
    margin-right: 8px;
}

.no-characters {
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.no-characters p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.no-characters p:first-child {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Modal styles specific to profile */
#edit-profile-modal .modal-dialog {
    max-width: 500px;
    width: 100%;
}

#edit-profile-modal .modal-body {
    padding: 20px;
}

#edit-profile-modal .form-group {
    margin-bottom: 20px;
}

#edit-profile-modal .password-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

#edit-profile-modal .password-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

#edit-profile-modal .password-note {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

#edit-profile-modal .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: space-between;
}

#edit-profile-modal .form-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

/* Responsive styles for profile */
@media (max-width: 768px) {
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .info-item .label {
        margin-bottom: 8px;
        min-width: auto;
    }
    
    .info-item .value {
        width: 100%;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions .btn {
        width: 100%;
    }
    
    #edit-profile-modal .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    #edit-profile-modal .form-actions .btn {
        width: 100%;
    }
}

/* Characters table and status indicators */
.characters-table-container {
    overflow-x: auto;
    margin-top: 20px;
    width: 100%;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #2ecc71;
    box-shadow: 0 0 5px #2ecc71;
}

.status-offline {
    background-color: #e74c3c;
    box-shadow: 0 0 5px #e74c3c;
}

/* Rankings table styles for profile page */
.profile-section .rankings-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    table-layout: fixed;
}

.profile-section .rankings-table th, 
.profile-section .rankings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-section .rankings-table th {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.profile-section .rankings-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Column width adjustments */
.profile-section .rankings-table th:nth-child(1), 
.profile-section .rankings-table td:nth-child(1) { width: 18%; } /* Name */

.profile-section .rankings-table th:nth-child(2), 
.profile-section .rankings-table td:nth-child(2) { width: 15%; } /* Class */

.profile-section .rankings-table th:nth-child(3), 
.profile-section .rankings-table td:nth-child(3) { width: 8%; } /* Level */

.profile-section .rankings-table th:nth-child(4), 
.profile-section .rankings-table td:nth-child(4) { width: 12%; } /* Gender */

.profile-section .rankings-table th:nth-child(5), 
.profile-section .rankings-table td:nth-child(5) { width: 12%; } /* Money */

.profile-section .rankings-table th:nth-child(6), 
.profile-section .rankings-table td:nth-child(6) { width: 15%; } /* Status */

.profile-section .rankings-table th:nth-child(7), 
.profile-section .rankings-table td:nth-child(7) { width: 20%; } /* Last played */

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-section .rankings-table {
        min-width: 600px;
    }
}

/* Form styles inside modals */
.modal .form-group {
    margin-bottom: 15px;
}

.modal .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.modal .form-actions .btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 1;
}

.modal .form-actions .btn i {
    margin-right: 8px;
}

.modal .switch-form {
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.modal .switch-form p {
    margin: 5px 0;
}

.modal .switch-form a {
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.2s ease;
}

.modal .switch-form a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}