/* css/style.css - LummyVibe Redesign */
/* =========================================== */

:root {
    --primary-pink: #FF2D8A;
    --primary-pink-light: #FF6B9D;
    --primary-pink-dark: #D91A6E;
    --primary-green: #00D46A;
    --primary-green-light: #33E088;
    --primary-green-dark: #00A852;
    --accent-gold: #FFD700;
    
    --gradient-primary: linear-gradient(135deg, #FF2D8A 0%, #00D46A 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #00D46A 0%, #FF2D8A 100%);
    --gradient-glow: linear-gradient(135deg, rgba(255, 45, 138, 0.4) 0%, rgba(0, 212, 106, 0.3) 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 28, 50, 0.9) 0%, rgba(12, 18, 35, 0.95) 100%);
    
    --bg-dark: #080C18;
    --bg-darker: #050810;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(255, 45, 138, 0.08);
    --border-color: rgba(255, 45, 138, 0.35);
    --border-color-green: rgba(0, 212, 106, 0.35);
    
    --text-white: #FFFFFF;
    --text-light: #E8EEF4;
    --text-gray: #94A3B8;
    --text-dark: #64748B;
    
    --shadow-primary: 0 8px 32px rgba(255, 45, 138, 0.35);
    --shadow-green: 0 8px 32px rgba(0, 212, 106, 0.3);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 60px rgba(255, 45, 138, 0.15);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* СБРОС И БАЗОВЫЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Прогресс-бар сверху */
.top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* НАВИГАЦИЯ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    color: var(--text-white);
    font-weight: 700;
}

.logo-vibe {
    color: var(--primary-pink);
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 3px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-pink);
    background: rgba(255, 45, 138, 0.05);
}

.nav-link.active {
    color: var(--primary-pink);
    background: rgba(255, 45, 138, 0.1);
}

.btn-connect {
    background: var(--gradient-primary);
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-normal) !important;
}

.btn-connect:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 45, 138, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.menu-line {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ОСНОВНОЙ КОНТЕНТ — компактнее */
.main-content {
    flex: 1;
    width: 100%;
    padding-top: 76px;
    padding-bottom: 40px;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* КАРТОЧКИ — компактнее */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-pink);
    box-shadow: var(--shadow-card);
    background: var(--bg-card-hover);
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: var(--transition-normal);
    opacity: 0;
}

.btn:hover::after {
    opacity: 1;
    transform: rotate(30deg) translate(50%, 50%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background: var(--gradient-primary-reverse);
    color: white;
    box-shadow: var(--shadow-green);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 45, 138, 0.4);
}

/* IP АДРЕСА */
.server-ip-display {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.ip-primary {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--primary-pink);
    font-weight: 600;
    margin-bottom: 8px;
}

.ip-secondary {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--primary-green);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.copy-btn {
    background: var(--gradient-card);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.copy-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.copy-btn.copied {
    background: var(--gradient-primary-reverse);
    color: white;
}

/* ПРЕЛОАДЕР */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: var(--primary-pink);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-pink);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring2 {
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border: 4px solid transparent;
    border-bottom: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spinReverse 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.loading-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* УВЕДОМЛЕНИЯ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 18px 22px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(20px);
    border-left: 4px solid;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

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

.notification.success {
    background: linear-gradient(135deg, rgba(0, 212, 106, 0.9), rgba(0, 179, 89, 0.9));
    border-left-color: var(--primary-green-dark);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, rgba(255, 45, 138, 0.9), rgba(229, 0, 109, 0.9));
    border-left-color: var(--primary-pink-dark);
    color: white;
}

.notification.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    border-left-color: #2563EB;
    color: white;
}

.notification .close-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.notification .close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ФУТЕР */
.footer {
    background: var(--bg-darker);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    border-top: 2px solid var(--border-color);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

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

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    text-decoration: none;
    padding: 10px 0;
    transition: all var(--transition-normal);
    border-radius: 8px;
    padding-left: 10px;
}

.footer-link:hover {
    color: var(--primary-pink);
    background: rgba(255, 45, 138, 0.05);
    transform: translateX(5px);
    padding-left: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
}

.contact-item:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.copyright {
    margin-bottom: 1.5rem;
}

.minecraft-trademark {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-top: 10px;
    opacity: 0.7;
}

.legal-info {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
}

.seller-info p {
    margin: 8px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .nav-menu {
        gap: 3px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 31, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-bottom: 2px solid var(--border-color);
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding-top: 120px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-link {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
}

/* АНИМАЦИИ ПРИ ПРОКРУТКЕ */
.fade-in, .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible, .reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Кнопка "Наверх" */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(255, 45, 138, 0.4);
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(255, 45, 138, 0.5);
}

/* СКРОЛЛБАР */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-pink-dark) 0%, var(--primary-green-dark) 100%);
}

/* Selection */
::selection {
    background: rgba(255, 45, 138, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(255, 45, 138, 0.3);
    color: white;
}

/* ========== REDESIGN: фон и глобальные стили ========== */
body {
    background: var(--bg-dark);
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 100% 80% at 10% 10%, rgba(255, 45, 138, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse 90% 70% at 90% 80%, rgba(0, 212, 106, 0.14) 0%, transparent 45%),
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 215, 0, 0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
}

.navbar {
    background: rgba(8, 12, 24, 0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}
.navbar.scrolled {
    box-shadow: 0 8px 40px rgba(255, 45, 138, 0.12);
}

.nav-link {
    border-radius: 10px;
}
.nav-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 45, 138, 0.12);
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 0 60px rgba(255, 45, 138, 0.25);
}
.section-title::after {
    width: 80px;
    height: 5px;
    border-radius: 3px;
    opacity: 0.9;
}

.section-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
}

.card, .benefit-card, .step-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}
.card:hover, .benefit-card:hover, .step-card:hover {
    border-color: var(--primary-pink-light);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: translateY(-6px);
}

.btn, .btn-primary, .btn-connect {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 24px rgba(255, 45, 138, 0.4);
}
.btn:hover, .btn-primary:hover, .btn-connect:hover {
    box-shadow: 0 10px 32px rgba(255, 45, 138, 0.5);
    transform: translateY(-3px);
}

.hero-section, section {
    position: relative;
    z-index: 1;
}

footer, .footer {
    border-top: 1px solid var(--border-color);
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(16px);
}

/* Кнопки "Купить" на странице доната */
.btn-buy {
    cursor: pointer;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(255, 45, 138, 0.35);
}
.btn-buy:hover {
    box-shadow: 0 10px 30px rgba(255, 45, 138, 0.5);
}
.btn-buy[data-package-id]:active {
    transform: translateY(-1px);
}