/* ---------- Body ---------- */
body {
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0a0a0a;
    background-image:
        radial-gradient(circle at 20% 0%, rgba(50, 205, 50, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 100%, rgba(50, 205, 50, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 50%, #050505 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: -80px;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(50, 205, 50, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 205, 50, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    will-change: transform;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(40px, 40px, 0); }
}

header, main, footer, section, .page-hero {
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */
header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(34, 34, 34, 0.7));
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    padding: 14px 32px;
    border: 1px solid rgba(50, 205, 50, 0.25);
    border-radius: 18px;
    position: sticky;
    top: 15px;
    z-index: 10;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(50, 205, 50, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 1400px;
    width: calc(100% - 40px);
    margin: 15px auto 0;
    align-self: center;
    box-sizing: border-box;
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 32px;
}

.header-left { display: flex; align-items: center; }

.header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 45px;
}

.header-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #32CD32;
    transition: width 0.25s ease;
}

.header-nav a:hover { color: #32CD32; }
.header-nav a:hover::after { width: 100%; }
.header-nav a.active { color: #32CD32; }
.header-nav a.active::after { width: 100%; }

.header-right { display: none; }

.site-title-link {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
}
.site-title-link:hover { opacity: 0.9; transform: translateY(-1px); }

.site-title {
    margin: 0;
    font-size: 24px;
    color: #32CD32;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(50, 205, 50, 0.4);
}

@media (max-width: 700px) {
    .header-content { flex-direction: column; gap: 12px; }
    .header-nav { position: static; transform: none; gap: 25px; }
}

/* ---------- Hero ---------- */
.page-hero {
    text-align: center;
    padding: 22px 20px 6px;      /* было 45px 20px 10px */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.page-hero h2 {
    font-size: 48px;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 0 25px rgba(50, 205, 50, 0.5);
}

.page-hero p {
    margin: 0;
    color: #888;
    font-size: 15px;
}

.game-hero { position: relative; padding-bottom: 20px; }

.back-link {
    position: absolute;
    top: 45px;
    left: 40px;
    display: inline-block;
    color: #32CD32;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.2s;
}
.back-link:hover { opacity: 0.85; transform: translateX(-3px); }

@media (max-width: 700px) {
    .back-link { position: static; margin-bottom: 15px; }
}

/* ---------- Games grid (main page) ---------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 40px 50px;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1000px) { .games-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 20px 40px; } }
@media (max-width: 600px)  { .games-grid { grid-template-columns: 1fr; } }

.game-card {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(14, 47, 14, 0.85));
    border: 1px solid rgba(50, 205, 50, 0.15);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    text-decoration: none;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.game-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.55) 100%);
    transition: background 0.25s;
    z-index: 1;
}

.game-card:hover {
    transform: translateZ(0) scale(1.04);
    border-color: #32CD32;
    box-shadow: 0 10px 40px rgba(50, 205, 50, 0.35);
}

.game-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.25) 55%, rgba(50,205,50,0.3) 100%);
}

.game-card-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px;
    z-index: 2;
    text-align: left;
}

.game-name {
    display: block;
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* ---------- Single cheat preview card ---------- */
main#products {
    flex: 1;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.empty-msg {
    color: #888;
    text-align: center;
    padding: 60px 20px;
    font-size: 15px;
}
.empty-msg.error { color: #f66; }

.cheat-card {
    position: relative;
    max-width: 900px;
    margin: 20px auto 60px;
    padding: 42px 46px 36px;
    background: linear-gradient(135deg, rgba(22, 26, 22, 0.95), rgba(16, 32, 16, 0.9));
    border: 1px solid rgba(50, 205, 50, 0.25);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(50, 205, 50, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    animation: cardAppear 0.5s ease;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Top neon line */
.cheat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #32CD32, transparent);
    filter: blur(0.5px);
}

.cheat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cheat-title {
    font-size: 28px;
    margin: 0;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.cheat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    color: #32CD32;
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.5);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #32CD32;
    border-radius: 50%;
    box-shadow: 0 0 10px #32CD32, 0 0 4px #32CD32;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

.cheat-description {
    color: #bbb;
    line-height: 1.7;
    font-size: 14.5px;
    margin: 0 0 24px;
    white-space: pre-line;
}

.cheat-info {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(50, 205, 50, 0.12);
    border-radius: 10px;
    padding: 16px 22px;
    margin-bottom: 24px;
}

.cheat-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cheat-info-row:last-child { border-bottom: none; }

.cheat-info-row span:first-child {
    color: #888;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.cheat-info-row span:last-child {
    color: #e0e0e0;
    font-family: Consolas, monospace;
    font-size: 13.5px;
}

.cheat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(50, 205, 50, 0.15);
    flex-wrap: wrap;
}

.cheat-password {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(50, 205, 50, 0.06);
    border: 1px dashed rgba(50, 205, 50, 0.45);
    border-radius: 8px;
    font-size: 14px;
}

.password-label {
    color: #888;
    font-size: 13px;
}

.password-value {
    color: #32CD32;
    font-weight: bold;
    font-family: Consolas, monospace;
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    color: #32CD32;
    border: 1px solid rgba(50, 205, 50, 0.5);
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-family: Arial, sans-serif;
}

.copy-btn:hover {
    background: rgba(50, 205, 50, 0.15);
    border-color: #32CD32;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.35);
}

.copy-btn:active {
    transform: scale(0.96);
}

.cheat-download-btn {
    padding: 14px 34px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #32CD32 0%, #1f8f1f 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow:
        0 4px 18px rgba(50, 205, 50, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.15s, box-shadow 0.25s;
    font-family: Arial, sans-serif;
}

.cheat-download-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 26px rgba(50, 205, 50, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cheat-download-btn:active { transform: translateY(0) scale(0.98); }

@media (max-width: 650px) {
    .cheat-card {
        margin: 15px 15px 40px;
        padding: 24px 22px;
    }
    .cheat-title { font-size: 22px; }
    .cheat-footer { flex-direction: column; align-items: stretch; }
    .cheat-password { justify-content: space-between; }
    .cheat-download-btn { width: 100%; padding: 14px 0; }
    .cheat-info-row { font-size: 13px; }
    .cheat-info-row span:last-child { font-size: 12.5px; }
}

/* ---------- Info pages (About / FAQ) ---------- */
.info-page {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 30px 60px;
    width: 100%;
    box-sizing: border-box;
}

.info-page h1 {
    font-size: 36px;
    margin: 0 0 12px;
    color: #32CD32;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(50, 205, 50, 0.4);
}

.info-lead {
    font-size: 16px;
    color: #aaa;
    margin: 0 0 35px;
    line-height: 1.6;
}

.info-card {
    background-color: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(50, 205, 50, 0.15);
    border-left: 3px solid #32CD32;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 18px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.info-card:hover {
    border-left-color: #4ff04f;
    transform: translateX(4px);
    box-shadow: 0 6px 25px rgba(50, 205, 50, 0.15);
}

.info-card h2 { font-size: 20px; margin: 0 0 10px; color: #fff; }
.info-card p { margin: 0; color: #bbb; line-height: 1.65; font-size: 15px; }

.info-card.warning {
    border-left-color: #ff6b6b;
    background-color: rgba(31, 20, 20, 0.85);
}
.info-card.warning h2 { color: #ff8888; }

.info-card code {
    background: rgba(50, 205, 50, 0.15);
    color: #32CD32;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 14px;
}

.info-steps {
    margin: 0;
    padding-left: 22px;
    color: #bbb;
    line-height: 1.9;
    font-size: 15px;
}
.info-steps li::marker { color: #32CD32; font-weight: bold; }

.info-card a { color: #32CD32; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* ---------- FAQ items ---------- */
.faq-item {
    background-color: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(50, 205, 50, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
    border-color: #32CD32;
    box-shadow: 0 6px 25px rgba(50, 205, 50, 0.15);
}

.faq-item summary {
    padding: 18px 22px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 50px;
    transition: color 0.2s;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #32CD32;
    transition: transform 0.25s;
}

.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: #32CD32; }

.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: #bbb;
    line-height: 1.65;
    font-size: 15px;
}

.faq-item code {
    background: rgba(50, 205, 50, 0.15);
    color: #32CD32;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 14px;
}
.faq-item a { color: #32CD32; text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-top: 2px solid #333;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-content a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.footer-content a:hover { color: #32CD32; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(50, 205, 50, 0.4);
    border-radius: 4px;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: rgba(50, 205, 50, 0.75); }

/* ---------- Cursor trail ---------- */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}