/* static/style.css */
/* ==================== ОБЩИЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== ШАПКА ==================== */
header {
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    background-color: #2d2d2d;
    color: #e0e0e0;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #444;
}

.nav-btn:hover {
    background-color: #3d3d3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-btn.active {
    background-color: #3d3d3d;
    border-color: #00ff9d;
}

.profile-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2d2d2d;
    border: 1px solid #444;
}

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

/* ==================== ОСНОВНОЙ КОНТЕНТ ==================== */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.server-info {
    margin-bottom: 2rem;
    text-align: center;
}

.server-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.server-info p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

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

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 1px solid #333;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* ==================== ПОДВАЛ ==================== */
footer {
    background-color: #1a1a1a;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

/* ==================== COOKIE NOTIFICATION ==================== */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1e1e1e;
    padding: 1.5rem 2rem;
    border-top: 2px solid #444;
    z-index: 1000;
    display: none;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.cookie-notification.active {
    display: block;
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-description {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-description a {
    color: #6ea8fe;
    text-decoration: underline;
}

.cookie-description a:hover {
    color: #8bb9fe;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #444;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background-color: #2d7d46;
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #3a9a5a;
    transform: translateY(-2px);
}

.cookie-btn.reject {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.cookie-btn.reject:hover {
    background-color: #3d3d3d;
    transform: translateY(-2px);
}

/* ==================== INDEX PAGE ==================== */
.about-project, .lore-section, .modpack-section {
    padding: 5rem 0;
}

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

.feature-card {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #00ff9d;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.lore-section {
    background: linear-gradient(to bottom, #0f0f1a, #1a1a2e);
}

.lore-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d0d0e0;
}

.highlight {
    font-size: 1.4rem;
    color: #00ff9d;
    margin-top: 2rem;
    text-align: center;
    font-weight: bold;
}

/* ==================== SHOP PAGE ==================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.item-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.item-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.item-body {
    padding: 1.5rem;
    text-align: center;
}

.item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.item-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff9d;
    margin: 1rem 0;
}

.buy-btn {
    background: #ffffff;
    color: #121212;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.buy-btn:hover {
    background: #00cc7a;
    transform: scale(1.05);
}

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

.modal-content {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #333;
    
}

.modal-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff9d;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn {
    background: #00ff9d;
    color: #121212;
}

.confirm-btn:hover {
    background: #00cc7a;
}

.cancel-btn {
    background: #444;
    color: #fff;
}

.cancel-btn:hover {
    background: #555;
}

.promo-info {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

#modalItemTitle {
    color: #00ff9d;
    font-weight: bold;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message {
    color: #00ff9d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #00c853;
    border-left: 5px solid #00e676;
}

.notification.error {
    background: #d32f2f;
    border-left: 5px solid #f44336;
}

.notification.warning {
    background: #ff9800;
    border-left: 5px solid #ffb74d;
}

.notification-info {
    background: #2196f3;
    border-left: 5px solid #64b5f6;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0 0.5rem;
}

/* ==================== GALLERY PAGE ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.upload-section {
    max-width: 800px;
    margin: 4rem auto;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.upload-section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.upload-area {
    border: 2px dashed #444;
    border-radius: 10px;
    padding: 2rem;
    background-color: #2d2d2d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background-color: #3d3d3d;
    border-color: #555;
}

.preview-container {
    margin: 1.5rem 0;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #121212;
    border-radius: 8px;
    padding: 1rem;
}

.preview-image {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
}

.upload-status {
    margin-top: 1rem;
    min-height: 1.5em;
    font-size: 1.1rem;
}

.status-success { color: #88ff88; }
.status-error { color: #ff8888; }
.status-loading { color: #ffff88; }

.upload-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover:not(:disabled) {
    background-color: #3d3d3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Gallery Modal */
.modal-image {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.prev { left: 20px; }
.next { right: 20px; }

.image-info {
    position: absolute;
    bottom: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
}

/* ==================== AUTH PAGES (LOGIN/REGISTER) ==================== */
.auth-container { 
    max-width: 460px; 
    margin: 3rem auto; 
    background: #1e1e1e; 
    padding: 2.8rem 2.5rem; 
    border-radius: 20px; 
    border: 1px solid #333; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.7); 
}

.auth-title { 
    text-align: center; 
    font-size: 2.4rem; 
    margin-bottom: 2rem; 
    color: #fff; 
    font-weight: 700; 
}

.form-grid { 
    display: grid; 
    gap: 1.4rem; 
    margin-bottom: 1.5rem; 
}

.auth-container .form-group { 
    display: flex; 
    flex-direction: column; 
}

.auth-container label { 
    color: #c0c0c0; 
    font-size: 0.95rem; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
}

.required { 
    color: #ff3b30; 
}

.optional { 
    color: #888; 
    font-size: 0.85rem; 
}

.auth-container input {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-container input:focus {
    outline: none;
    border-color: #00ff9d;
    background: #2d2d2d;
    box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.15);
}

.agreements { 
    display: grid; 
    gap: 1rem; 
    margin: 1.8rem 0 2rem; 
}

.checkbox-label {
    display: flex; 
    align-items: flex-start; 
    gap: 6px;
    color: #d0d0d0; 
    font-size: 0.94rem; 
    line-height: 1.45;
    cursor: pointer; 
    user-select: none;
}

.checkbox-label a { 
    color: #00ff9d; 
    text-decoration: underline; 
    font-weight: 200; 
}

.checkbox-label a:hover { 
    color: #00cc7a; 
}

.checkbox-label input[type="checkbox"] { 
    position: absolute; 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.checkmark {
    width: 22px; 
    height: 22px; 
    flex-shrink: 0;
    background: #2a2a2a; 
    border: 2px solid #444;
    border-radius: 8px; 
    margin-top: 1px;
    transition: all 0.25s;
    position: relative;
}

.checkbox-label input:checked ~ .checkmark {
    background: #00ff9d; 
    border-color: #00ff9d;
}

.checkmark:after {
    content: ""; 
    position: absolute; 
    display: none;
    left: 7px; 
    top: 3px;
    width: 6px; 
    height: 11px;
    border: solid #121212; 
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after { 
    display: block; 
}

.submit-btn {
    width: 100%; 
    padding: 1.1rem;
    background: #00ff9d; 
    color: #121212;
    font-weight: bold; 
    font-size: 1.15rem;
    border: none; 
    border-radius: 14px;
    cursor: pointer; 
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.submit-btn:hover:not(:disabled) { 
    background: #00e68a; 
    transform: translateY(-2px); 
}

.submit-btn.loading {
    pointer-events: none; 
    opacity: 0.8; 
    cursor: not-allowed;
}

.loader {
    display: inline-block; 
    width: 18px; 
    height: 18px;
    border: 3px solid #121212; 
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    margin-right: 10px; 
    vertical-align: middle;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

.auth-footer { 
    text-align: center; 
    margin-top: 2rem; 
    color: #888; 
    font-size: 0.95rem; 
}

.auth-footer a { 
    color: #00ff9d; 
    font-weight: 500; 
    text-decoration: underline; 
}

.error-msg { 
    color: #ff3b30; 
    text-align: center; 
    margin-top: 1rem; 
    font-size: 0.95rem; 
}

.success-msg { 
    color: #00ff9d; 
    text-align: center; 
    margin-top: 1rem; 
    font-size: 0.95rem; 
}

/* ==================== PROFILE PAGE ==================== */
.profile-container {
    max-width: 1100px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-sidebar {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #333;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00ff9d;
    margin-bottom: 1.5rem;
}

.username {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.user-role {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.role-admin    { background: #ff3b30; color: #fff; }
.role-moder    { background: #ff9500; color: #fff; }
.role-premium  { background: #00ff9d; color: #121212; }
.role-vip      { background: #5ac8fa; color: #121212; }
.role-player   { background: #444; color: #e0e0e0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-big {
    background: #1e1e1e;
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
}

.stat-big-value {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffffff;
}

.stat-big-value-bank {
    font-size: 2.8rem;
    font-weight: bold;
    color: #00ff08;
}

.stat-big-value-green-way {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff08;
}

.stat-big-value-red-way {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
}

.stat-big-label {
    color: #b0b0b0;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.control-panel {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.control-btn {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.control-btn:hover { 
    transform: translateY(-3px); 
}

.btn-green { background: #00ff9d; color: #121212; }
.btn-blue  { background: #5ac8fa; color: #121212; }
.btn-red   { background: #ff3b30; color: #fff; }
.btn-yellow { background: #ffcc00; color: #121212; }

/* ==================== SETTINGS PAGE ==================== */
.settings-container {
    max-width: 800px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

.avatar-section {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #333;
}

.current-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00ff9d;
    margin-bottom: 1.5rem;
}

.upload-btn {
    background: #2d2d2d;
    color: #e0e0e0;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s;
}

.upload-btn:hover { 
    background: #3d3d3d; 
}

.remove-avatar {
    background: #ff3b30;
    color: #fff;
}

.remove-avatar:hover { 
    background: #d32f2f; 
}

.forms-section {
    display: grid;
    gap: 2rem;
}

.setting-card {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid #333;
}

.setting-card h3 {
    margin-bottom: 1.2rem;
    color: #fff;
    font-size: 1.5rem;
}

.save-btn {
    background: #00ff9d;
    color: #121212;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.save-btn:hover {
    background: #00cc7a;
    transform: translateY(-2px);
}

.message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.success { 
    background: rgba(0,255,157,0.15); 
    color: #00ff9d; 
    border: 1px solid #00ff9d; 
}

.error { 
    background: rgba(255,59,48,0.15); 
    color: #ff6b6b; 
    border: 1px solid #ff3b30; 
}

/* ==================== PAYMENT PAGES ==================== */
.payment-success-body,
.payment-fail-body {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    background: #0f172a; 
    color: white; 
    flex-direction: column;
}

.msg { 
    font-size: 1.8rem; 
    text-align: center; 
    margin-bottom: 2rem; 
}

.payment-fail-body .msg {
    color: #ef4444;
}

.btn { 
    padding: 1rem 2rem; 
    background: #10b981; 
    color: white; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: bold; 
}

.payment-fail-body .btn {
    background: #3b82f6;
}

/* ==================== PAY PAGE ==================== */
.currency-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.currency-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #3a506b;
}

.currency-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.currency-subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.currency-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.currency-info {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #3a506b;
}

.info-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #3a506b;
}

.exchange-rate {
    background: rgba(30, 64, 175, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.rate-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
    margin: 0.5rem 0;
}

.rate-description {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.benefit-icon {
    color: #10b981;
    margin-right: 0.8rem;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.currency-form {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #3a506b;
}

.form-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #3a506b;
}

.form-label {
    display: flex;
    justify-content: space-between;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.label-hint {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #3a506b;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.amount-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.amount-btn {
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #3a506b;
    border-radius: 6px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #ffffff;
}

.amount-btn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #ffffff;
}

.calculation-result {
    background: rgba(30, 64, 175, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #e0e0e0;
}

.calculation-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.payment-methods {
    margin-top: 1.5rem;
}

.payment-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid #3a506b;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.payment-option.selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.payment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.payment-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.payment-description {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.pay-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.secure-payment {
    margin-top: 1rem;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.secure-icon {
    font-size: 1rem;
}

.return-link {
    display: inline-block;
    margin-top: 2rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
}

.return-link:hover {
    text-decoration: underline;
}

/* ==================== MODPACK PAGE ==================== */
.modpack-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    color: #e0e0e0;
}

.modpack-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modpack-header h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.modpack-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

.download-section {
    text-align: center;
    background: #1e1e1e;
    padding: 3rem 2rem;
    border-radius: 14px;
    border: 1px solid #333;
    margin-bottom: 3rem;
}

.download-btn {
    display: inline-block;
    background: #00ff9d;
    color: #121212;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #00cc7a;
}

.version-info {
    margin-top: 1.5rem;
    color: #888;
    font-size: 1.1rem;
}

.description {
    background: #1e1e1e;
    padding: 2.5rem;
    border-radius: 14px;
    border: 1px solid #333;
    line-height: 1.7;
}

.description h2 {
    color: #00ff9d;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.mod-list {
    column-count: 2;
    column-gap: 2rem;
    margin-top: 1rem;
}

.mod-list li {
    margin-bottom: 0.6rem;
    break-inside: avoid;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .map-container {
        height: 400px;
    }

    .profile-container,
    .settings-container {
        grid-template-columns: 1fr;
    }

    .currency-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .server-info h1 {
        font-size: 2rem;
    }
    
    .map-container {
        height: 350px;
    }
    
    .footer-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-notification {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item img { 
        height: 200px; 
    }

    .upload-section { 
        padding: 1.5rem; 
        margin: 3rem 1rem; 
    }

    .modpack-header h1 {
        font-size: 2.3rem;
    }

    .download-btn {
        padding: 1rem 2rem;
        font-size: 1.3rem;
    }

    .mod-list {
        column-count: 1;
    }
}

@media (max-width: 576px) {
    header, main, footer {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .profile-btn {
        width: 40px;
        height: 40px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .stats-container {
        flex-direction: column;
    }
}
/* Дополнительные стили для страницы топа */
.top-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid #333;
    margin-top: 2rem;
}

.top-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.top-header h1 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.top-header h1 i {
    color: #ffd700;
    margin-right: 10px;
}

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

.stat-item {
    background-color: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #555;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-value.total { color: #6c757d; }
.stat-value.active { color: #28a745; }
.stat-value.top { color: #ffd700; }

.stat-label {
    color: #b0b0b0;
    font-size: 1rem;
}

.info-box {
    background-color: #2c3e50;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.info-box h3 {
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.info-box p {
    color: #bdc3c7;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.coeff {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 2px;
}

/* Таблица топа */
.top-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #333;
}

.top-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2d2d2d;
}

.top-table th {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #333;
    white-space: nowrap;
}

.top-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.top-table tr:hover {
    background-color: #3d3d3d;
}

.rank-cell {
    font-weight: bold;
    font-size: 1.1rem;
    width: 70px;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.nickname-cell {
    text-align: left !important;
    font-weight: 600;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
    flex-shrink: 0;
}

.profile-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(52, 152, 219, 0.1);
}

.profile-link:hover {
    color: #2980b9;
    background-color: rgba(52, 152, 219, 0.2);
    text-decoration: underline;
}

.rating-cell {
    font-weight: bold;
    color: #2ecc71;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #b0b0b0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    .top-container {
        padding: 1rem;
    }
    
    .top-header h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-table th,
    .top-table td {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .rank-cell {
        width: 50px;
    }
    
    .player-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .player-avatar {
        width: 36px;
        height: 36px;
    }
}

.admin-panel-link {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #34495e;
}

.admin-panel-link:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
