/* Общие стили для страниц cheat с темной темой */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --error: #ef4444;
    --bg: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 30%, #0f172a 60%, #1e293b 100%);
    --bg-size: 400% 400%;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --white: rgba(15, 23, 42, 0.8);
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(15, 23, 42, 0.7);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] {
    --bg: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 100%);
    --text-main: #18181b;
    --text-muted: #64748b;
    --white: #fff;
    --border: #e5e7eb;
    --card-bg: #fff;
    --shadow: 0 2px 16px rgba(99, 102, 241, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg);
    background-size: var(--bg-size);
    animation: gradientShift 15s ease infinite;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Декоративные элементы фона */
.bg-lights {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatLight 14s infinite alternate ease-in-out, glowPulse 6s infinite alternate;
}

[data-theme="light"] .bg-light {
    opacity: 0.13;
}

.bg-light1 { width: 340px; height: 340px; background: #6366f1; left: 4vw; top: 12vh; animation-delay: 0s, 0s; }
.bg-light2 { width: 220px; height: 220px; background: #10b981; right: 7vw; top: 32vh; animation-delay: 2s, 1.5s; }
.bg-light3 { width: 180px; height: 180px; background: #fbbf24; left: 38vw; bottom: 8vh; animation-delay: 4s, 2.5s; }
.bg-light4 { width: 120px; height: 120px; background: #4f46e5; right: 18vw; bottom: 12vh; animation-delay: 6s, 3.5s; }
.bg-light5 { width: 90px; height: 90px; background: #6366f1; left: 60vw; top: 18vh; animation-delay: 8s, 4.5s; }

@keyframes floatLight {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.08); }
}

@keyframes glowPulse {
    0% { opacity: 0.15; }
    50% { opacity: 0.25; }
    100% { opacity: 0.15; }
}

[data-theme="light"] .bg-light {
    animation: floatLight 14s infinite alternate ease-in-out, glowPulse 6s infinite alternate;
}

/* Header */
.main-header {
    width: 100%;
    background: var(--white);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-header nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-list li a:hover {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Кнопка переключения темы */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.theme-toggle i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 60px 16px;
    position: relative;
    z-index: 2;
}

/* Hero Product */
.hero-product {
    display: flex;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
    margin: 48px auto 40px auto;
    flex-wrap: wrap;
}

/* Product Gallery */
.product-gallery {
    background: var(--card-bg);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 32px 24px 24px 24px;
    min-width: 320px;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1);
}

.product-gallery img#mainProductImg {
    cursor: zoom-in;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.product-gallery img#mainProductImg:hover {
    transform: scale(1.05);
}

/* Modal */
.modal-bg {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.modal-bg.active {
    display: flex;
}

.modal-window {
    background: transparent;
    border-radius: 18px;
    box-shadow: none;
    padding: 0;
    min-width: 340px;
    max-width: 98vw;
    width: auto;
    max-width: 900px;
    position: relative;
    animation: modalIn 0.25s cubic-bezier(.4,2,.6,1) both;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 32px;
    color: var(--text-main);
    background: var(--white);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
    border-color: #ef4444;
}

.modal-window img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 22px;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Video Frame */
.video-frame {
    width: 100%;
    max-width: 600px;
    height: 340px;
    border-radius: 22px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: rgba(15, 23, 42, 0.5);
    object-fit: cover;
    display: block;
}

#mainContent {
    width: 100%;
    max-width: 600px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 18px;
}

#mainContent img, #mainContent iframe {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
}

/* Product Thumbs */
.product-thumbs {
    margin-top: auto;
    gap: 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.product-thumbs .mini-thumb {
    width: 96px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border);
    background: rgba(15, 23, 42, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbs .mini-thumb.active,
.product-thumbs .mini-thumb:hover {
    border: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.6);
    transform: scale(1.1);
}

.video-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    gap: 4px;
}

.video-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(1.15);
}

/* Product Info */
.product-info {
    background: var(--card-bg);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 32px 32px 24px 32px;
    min-width: 320px;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1);
}

.product-title {
    font-size: 2.1rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-align: center;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-weight: 700;
    font-size: 1.13rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    padding: 7px 22px;
    margin-bottom: 18px;
    margin-top: 0;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-dot {
    width: 13px;
    height: 13px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.product-desc {
    color: var(--text-muted);
    font-size: 1.13rem;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: center;
}

.product-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
    width: 100%;
}

.product-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.13rem;
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 13px 22px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.product-benefits li:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.product-benefits i {
    color: var(--primary-light);
    font-size: 1.3em;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.6));
}

/* Button */
.button-next-a {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 14px 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    margin-top: 10px;
    cursor: pointer;
    background-size: 200% 200%;
    animation: gradientMove 2.5s ease-in-out infinite;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
    border: none;
    width: 100%;
}

.button-next-a:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.7);
    transform: translateY(-3px) scale(1.03);
}

/* Product Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0 auto 40px auto;
    justify-content: center;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 32px 28px 28px 28px;
    color: var(--text-main);
    min-width: 320px;
    max-width: 420px;
    width: 100%;
    margin-bottom: 0;
    animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.4), 0 0 40px rgba(129, 140, 248, 0.5);
    border-color: var(--primary-light);
}

.product-card-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.2px;
}

.product-funcs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 28px;
}

.funcs-cat-btn {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.18rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.funcs-cat-btn.active, .funcs-cat-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6);
    transform: scale(1.06);
    border-color: var(--primary);
}

.product-funcs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
    justify-content: center;
}

.product-funcs-list .funcs-item {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 26px;
    color: var(--text-main);
    font-size: 1.13rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.product-funcs-list .funcs-item:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
    border-color: var(--primary-light);
}

.adv-tooltip {
    position: relative;
    cursor: pointer;
}

.adv-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 10px 14px;
    position: absolute;
    z-index: 10;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    font-size: 1rem;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6);
}

.adv-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.product-reqs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-reqs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.13rem;
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 22px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-reqs-list li:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

.product-reqs-list i {
    color: var(--primary-light);
    font-size: 1.3em;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.6));
}

.order-tariffs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}

.order-tariff {
    background: rgba(99, 102, 241, 0.1);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 22px 36px;
    font-size: 1.18rem;
    color: var(--text-main);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 320px;
    max-width: 90vw;
    margin: 0 auto;
    text-align: center;
}

.order-tariff:hover {
    border: 1.5px solid var(--primary);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.06);
}

.order-tariff-name {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.order-tariff-price {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.13rem;
}

.order-wide-card {
    background: var(--card-bg);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 24px 32px 16px 32px;
    margin: 32px auto 0 auto;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1);
}

.order-wide-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 18px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-wide-title i {
    color: var(--primary-light);
    font-size: 1.5em;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.6));
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 900;
    font-size: 1.35rem;
    border: none;
    border-radius: 14px;
    padding: 22px 0;
    margin: 18px auto 0 auto;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6), 0 0 24px rgba(99, 102, 241, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(35, 32, 70, 0.6);
    gap: 14px;
}

.order-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.8), 0 0 32px rgba(99, 102, 241, 1);
    transform: scale(1.04) translateY(-2px);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}

.bounce {
    animation: bounceIcon 1.2s cubic-bezier(.4,2,.6,1) infinite alternate;
}

@keyframes bounceIcon {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.12); }
}

/* Адаптивность */
@media (max-width: 950px) {
    .order-wide-card { max-width: 100%; }
}

@media (max-width: 900px) {
    .hero-product { flex-direction: column; gap: 24px; }
    .product-info { min-width: 0; max-width: 100%; }
    #mainContent { height: 250px; max-width: 98vw; }
    .product-grid { flex-direction: column; gap: 24px; }
    .order-wide-card { padding: 18px 4vw 16px 4vw; }
    .order-wide-title { font-size: 1.2rem; }
    .nav-list { gap: 16px; font-size: 14px; }
}

@media (max-width: 700px) {
    .product-title { font-size: 1.3rem; }
    .product-info, .product-gallery, .product-card { padding: 12px 2vw 12px 2vw; }
    #mainContent { height: 200px; }
    .order-tariffs { flex-direction: column; gap: 14px; }
    .order-btn { font-size: 1.1rem; padding: 16px 0; }
    .nav-list { flex-direction: column; gap: 8px; }
}

/* Стили для каталога */
.catalog-container {
    gap: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    margin: 35px auto;
    max-width: 1363px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.catalog-link {
    display: inline-block;
    margin: 0 18px 30px 18px;
    border-radius: 18px;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.catalog-link:hover .catalog-item {
    box-shadow: 0 0 40px 8px rgba(99, 102, 241, 0.6), 0 8px 32px rgba(99, 102, 241, 0.4);
    transform: translateY(-8px) scale(1.04);
}

.catalog-link:active .catalog-item {
    transform: scale(0.98);
}

.catalogImg {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    display: block;
    background: rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .catalogImg {
    background: #f3f4f6;
}

.info-banner {
    max-width: 900px;
    margin: 32px auto 0 auto;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f59e42 0%, #f43f5e 100%);
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(244, 63, 94, 0.5);
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s;
    z-index: 2;
}

.info-banner i {
    font-size: 2.2rem;
    color: #fff;
    flex-shrink: 0;
}

.info-banner .banner-text {
    flex: 1;
}

.info-banner .banner-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.info-banner .banner-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 4px;
}

.to-top-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.08);
}

.to-top-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.8);
}

.to-top-btn:active {
    transform: scale(0.96);
}

