/* =========================================
   DM FIRST - FULLY RESPONSIVE CSS
   WITH GOLD LUXURY ANIMATIONS
   ========================================= */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #ffffff; 
    color: #333333; 
    line-height: 1.6; 
    overflow-x: hidden;
}
.container { 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 15px; 
}
img { max-width: 100%; height: auto; }

/* Anchor Target for Menu Links */
.anchor-target { scroll-margin-top: 90px; }

/* =========================================
   KEYFRAME ANIMATIONS
   ========================================= */

/* Gold Shimmer Sweep on Buttons */
@keyframes goldShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Gold Glow Pulse on Images */
@keyframes goldGlowPulse {
    0%, 100% { box-shadow: 0 5px 15px rgba(0,0,0,0.08), 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 5px 20px rgba(0,0,0,0.12), 0 0 0 10px rgba(255, 215, 0, 0); }
}

/* Subtle Float Animation */
@keyframes softFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Logo Shine */
@keyframes logoShine {
    0% { filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6)); }
    100% { filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3)); }
}

/* Gold Underline Grow */
@keyframes underlineGrow {
    from { width: 0; }
    to { width: 60px; }
}

/* Badge Bounce */
@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Border Shimmer */
@keyframes borderShimmer {
    0% { border-color: #1e5631; box-shadow: 0 0 0 0 rgba(30, 86, 49, 0.3); }
    50% { border-color: #FFD700; box-shadow: 0 0 15px 0 rgba(255, 215, 0, 0.3); }
    100% { border-color: #1e5631; box-shadow: 0 0 0 0 rgba(30, 86, 49, 0.3); }
}

/* =========================================
   HEADER
   ========================================= */
.sticky-header { 
    background: #ffffff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    padding: 10px 0; 
}
.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative;
}

/* Logo with Shine Animation */
.logo img { 
    max-height: 40px; 
    width: auto; 
    animation: logoShine 3s ease-in-out infinite;
}

/* Desktop Navigation */
.main-nav { display: flex; align-items: center; }
.main-nav a { 
    margin: 0 12px; 
    text-decoration: none; 
    color: #1e5631; 
    font-weight: 600; 
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #DAA520);
    transition: width 0.3s ease;
}
.main-nav a:hover { color: #d4af37; }
.main-nav a:hover::after { width: 100%; }

/* Desktop CTA */
.desktop-cta { display: flex; gap: 8px; }
.mobile-cta { display: none; }
.mobile-menu-toggle { display: none; font-size: 28px; cursor: pointer; color: #1e5631; }

/* =========================================
   BUTTONS WITH GOLD SHIMMER
   ========================================= */
.btn { 
    padding: 10px 18px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem;
    transition: all 0.3s ease; 
    display: inline-block; 
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gold Shimmer Sweep on all buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}
.btn:hover::before {
    animation: goldShimmer 0.9s ease forwards;
}

.btn-register { 
    background: linear-gradient(135deg, #FFD700, #DAA520); 
    color: #1e5631; 
    box-shadow: 0 3px 10px rgba(218, 165, 32, 0.3);
}
.btn-login { 
    background: #1e5631; 
    color: #ffffff; 
    box-shadow: 0 3px 10px rgba(30, 86, 49, 0.3);
}
.btn-telegram { 
    background: #0088cc; 
    color: #ffffff; 
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.3);
}

.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.5);
}
.btn-large { padding: 14px 28px; font-size: 1rem; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero { 
    padding: 60px 0; 
    text-align: center; 
    background: linear-gradient(180deg, #f9f9f9, #ffffff);
    position: relative;
}
.hero h1 { 
    font-size: clamp(1.8rem, 5vw, 2.8rem); 
    color: #1e5631; 
    margin-bottom: 15px; 
    line-height: 1.2;
}
.subheadline { 
    font-size: clamp(1rem, 2.5vw, 1.2rem); 
    margin-bottom: 20px; 
    color: #555; 
}

/* Instruction Box */
.instruction-box {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: inline-block;
    text-align: left;
    font-size: 1rem;
    animation: softFloat 4s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}
.instruction-box p { margin-bottom: 5px; }
.instruction-box p:last-child { margin-bottom: 0; }

.hero-cta { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    flex-wrap: wrap; 
    margin-bottom: 25px; 
}

/* Trust Badges with Bounce */
.trust-badges { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
    font-size: 0.85rem; 
    color: #666; 
}
.trust-badges span {
    display: inline-block;
    padding: 5px 10px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.trust-badges span:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(255, 215, 0, 0.3);
    color: #1e5631;
}

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 50px 0; scroll-margin-top: 80px; }
.bg-light { background-color: #f4f4f4; }

/* H2 with Gold Underline Animation */
h2 { 
    font-size: clamp(1.5rem, 4vw, 2rem); 
    color: #1e5631; 
    margin-bottom: 20px; 
    text-align: center; 
    position: relative;
    padding-bottom: 15px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #DAA520);
    border-radius: 2px;
    animation: underlineGrow 1s ease-out forwards;
}

h3 { 
    font-size: clamp(1.1rem, 3vw, 1.3rem); 
    color: #d4af37; 
    margin-bottom: 10px; 
    margin-top: 20px;
}
p { margin-bottom: 15px; font-size: clamp(0.95rem, 2vw, 1.05rem); }

/* =========================================
   SCREENSHOT FRAME WITH GOLD GLOW
   ========================================= */
.screenshot-frame { 
    margin: 25px auto; 
    max-width: 700px; 
    text-align: center; 
    background: #fff;
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: goldGlowPulse 4s ease-in-out infinite;
}
.screenshot-frame:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.35);
    animation-play-state: paused;
}
.screenshot-frame img { 
    width: 100%; 
    height: auto; 
    border-radius: 12px; 
    border: 2px solid #FFD700; 
    display: block;
    transition: transform 0.4s ease;
}
.screenshot-frame:hover img {
    transform: scale(1.02);
}
.screenshot-frame .caption { 
    font-size: 0.85rem; 
    color: #666; 
    margin-top: 10px; 
    font-style: italic; 
}

/* =========================================
   STEPS & LISTS
   ========================================= */
.steps-list { padding-left: 20px; }
.steps-list li { 
    margin-bottom: 12px; 
    font-size: clamp(0.95rem, 2vw, 1.05rem); 
    transition: transform 0.3s ease, color 0.3s ease;
}
.steps-list li:hover {
    transform: translateX(5px);
    color: #1e5631;
}

/* Highlight Box with Animated Border */
.highlight-box { 
    background: #e8f5e9; 
    padding: 25px; 
    border-radius: 10px; 
    text-align: center; 
    margin-top: 30px; 
    border: 2px dashed #1e5631; 
    animation: borderShimmer 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.highlight-box:hover {
    transform: scale(1.02);
}
.highlight-box h3 { color: #1e5631; margin-top: 0; }

/* =========================================
   FAQ
   ========================================= */
.faq-item { 
    margin-bottom: 20px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px; 
    transition: transform 0.3s ease;
}
.faq-item:hover {
    transform: translateX(5px);
}
.faq-item h3 { margin-bottom: 5px; color: #333; margin-top: 0; }

/* =========================================
   BLOG GRID
   ========================================= */
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 15px; 
    margin-top: 20px; 
}
.blog-card { 
    background: #fff; 
    padding: 15px; 
    border-radius: 8px; 
    text-decoration: none; 
    color: #1e5631; 
    font-weight: 600; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    border: 1px solid #eee; 
    transition: all 0.3s ease; 
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}
.blog-card:hover::before {
    left: 100%;
}
.blog-card:hover { 
    background: #FFD700; 
    color: #1e5631; 
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.35);
    border-color: #DAA520;
}

/* =========================================
   FOOTER
   ========================================= */
footer { background: #1e5631; color: #fff; padding: 40px 0; text-align: center; }
footer a { 
    color: #FFD700; 
    text-decoration: none; 
    margin: 0 8px; 
    transition: all 0.3s ease;
    display: inline-block;
}
footer a:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
.disclaimer { 
    font-size: 0.8rem; 
    margin-top: 15px; 
    color: #ccc; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}
.footer-links { margin-top: 15px; }

/* =========================================
   MEDIA QUERIES (MOBILE & TABLET)
   ========================================= */

@media (max-width: 768px) {
    .desktop-cta { display: none; }
    .main-nav { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: #ffffff; 
        padding: 20px; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 2px solid #FFD700;
        z-index: 999;
    }
    .main-nav.active { display: flex; }
    .main-nav a { margin: 12px 0; font-size: 1.1rem; text-align: center; }
    
    .mobile-menu-toggle { display: block; z-index: 1000; }
    
    .mobile-cta { 
        display: flex; 
        flex-direction: column; 
        gap: 10px; 
        margin-top: 15px; 
        width: 100%;
    }
    .mobile-cta .btn { width: 100%; }
    
    .hero { padding: 40px 0; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 320px; }
    .trust-badges { flex-direction: column; gap: 8px; }
    .instruction-box { display: block; text-align: center; }
    
    .section { padding: 35px 0; }
    .screenshot-frame { padding: 5px; border-radius: 12px; }
    .screenshot-frame img { border-radius: 8px; }
    .highlight-box { padding: 20px 15px; }
    .blog-grid { grid-template-columns: 1fr; }
    
    /* Reduce animation intensity on mobile for performance */
    .screenshot-frame { animation-duration: 6s; }
    .instruction-box { animation: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .hero h1 { font-size: 1.5rem; }
    .subheadline { font-size: 0.9rem; }
    .btn { padding: 10px 15px; font-size: 0.85rem; }
    .btn-large { padding: 12px 20px; font-size: 0.95rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.05rem; }
    p { font-size: 0.9rem; }
}

/* =========================================
   TOUCH-FRIENDLY & PERFORMANCE
   ========================================= */
@media (hover: none) {
    .btn:hover { transform: none; }
    .blog-card:hover { 
        background: #fff; 
        color: #1e5631; 
        transform: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .screenshot-frame:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =========================================
   MOBILE STICKY BAR - HIGH CONVERSION
   ========================================= */

.mobile-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,1));
        padding: 8px 6px 10px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        border-top: 2px solid #FFD700;
        gap: 6px;
        animation: stickyBarSlideUp 0.6s ease-out;
    }

    .sticky-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        padding: 8px 4px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.72rem;
        position: relative;
        overflow: hidden;
        transition: transform 0.2s ease;
        min-height: 52px;
        letter-spacing: 0.3px;
    }

    .sticky-btn .sticky-icon {
        font-size: 1.1rem;
        margin-bottom: 2px;
        display: block;
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
        animation: stickyIconBounce 2s ease-in-out infinite;
    }

    .sticky-btn .sticky-text {
        display: block;
        line-height: 1;
    }

    .sticky-register {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
        background-size: 200% 200%;
        color: #1e5631;
        box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
        animation: stickyGoldShimmer 2.5s ease-in-out infinite, stickyGoldGlow 2s ease-in-out infinite alternate;
    }

    .sticky-login {
        background: linear-gradient(135deg, #1e5631, #0d3d1e);
        color: #FFD700;
        box-shadow: 0 4px 15px rgba(30, 86, 49, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
        animation: stickyGreenGlow 2.5s ease-in-out infinite alternate;
    }

    .sticky-telegram {
        background: linear-gradient(135deg, #0088cc, #0066aa);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
        animation: stickyBlueGlow 2.5s ease-in-out infinite alternate;
    }

    .sticky-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
        transform: skewX(-25deg);
        animation: stickyShimmerSweep 3s ease-in-out infinite;
        pointer-events: none;
    }

    .sticky-login::before { animation-delay: 0.5s; }
    .sticky-telegram::before { animation-delay: 1s; }

    .sticky-btn:active { transform: scale(0.95); }

    body { padding-bottom: 75px; }
    footer { padding-bottom: 85px !important; }
}

@keyframes stickyBarSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes stickyIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes stickyGoldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes stickyGoldGlow {
    0% { box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5), 0 0 0 0 rgba(255, 215, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.4); }
    100% { box-shadow: 0 4px 20px rgba(255, 165, 0, 0.8), 0 0 0 6px rgba(255, 215, 0, 0), inset 0 1px 0 rgba(255,255,255,0.4); }
}

@keyframes stickyGreenGlow {
    0% { box-shadow: 0 4px 15px rgba(30, 86, 49, 0.5), 0 0 0 0 rgba(30, 86, 49, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(30, 86, 49, 0.8), 0 0 0 5px rgba(30, 86, 49, 0); }
}

@keyframes stickyBlueGlow {
    0% { box-shadow: 0 4px 15px rgba(0, 136, 204, 0.5), 0 0 0 0 rgba(0, 136, 204, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(0, 136, 204, 0.8), 0 0 0 5px rgba(0, 136, 204, 0); }
}

@keyframes stickyShimmerSweep {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}