/* =========================================
   CORE CSS - "OPTIMUS MOBILE" FIXED EDITION
   ========================================= */

/* --- 1. RESET & VARIABLES --- */
:root {
    --bg-main: #ffffff;
    --bg-subtle: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary-accent: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --danger-red: #ef4444;
    --border-light: #e2e8f0;
    --container-padding: 20px;
}

html, body {
    margin: 0 !important; padding: 0 !important;
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box; /* GLOBAL FIX */
}

/* UNIVERSAL BOX SIZING FIX - CRITICAL FOR BUTTONS */
*, *:before, *:after {
    box-sizing: border-box; 
}

.site-header, .site-footer, #wpadminbar { display: none !important; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; }
p { line-height: 1.6; }
.vidnok-container { max-width: 1200px; margin: 0 auto; padding: 0 var(--container-padding); }

/* --- 2. NAVIGATION --- */
.ve-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.ve-nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
@media(min-width: 768px) { .ve-nav-container { height: 80px; } }

.ve-logo { font-size: 22px; font-weight: 800; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.ve-logo-icon { width: 16px; height: 16px; background: var(--primary-accent); border-radius: 4px; box-shadow: 0 0 10px var(--primary-glow); }
.ve-dot { color: var(--primary-accent); }
.ve-desktop-nav { display: none; }
@media (min-width: 768px) { .ve-desktop-nav { display: flex; gap: 40px; } }
.ve-nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.3s ease; }
.ve-nav-link:hover { color: var(--primary-accent); }
.ve-client-login { color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 16px; background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: 6px; transition: all 0.3s ease; }
.ve-client-login:hover { background: #f1f5f9; border-color: #cbd5e1; }

/* --- 3. HERO SECTION --- */
.ve-hero-section {
    position: relative; padding: 120px 0 60px;
    text-align: center; overflow: hidden;
    border-bottom: 1px solid var(--border-light);
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.04) 0%, rgba(255,255,255,0) 70%);
}
@media(min-width: 768px) { .ve-hero-section { padding: 160px 0 100px; } }

.ve-hero-content { position: relative; z-index: 1; }
.ve-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-main); border: 1px solid var(--border-light); padding: 6px 16px; border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px; color: var(--text-muted); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.ve-pulse-dot { width: 8px; height: 8px; background-color: var(--primary-accent); border-radius: 50%; box-shadow: 0 0 10px var(--primary-glow); }

.ve-hero-title { font-size: 32px; line-height: 1.1; max-width: 900px; margin: 0 auto 20px; color: var(--text-main); word-wrap: break-word; }
@media (min-width: 480px) { .ve-hero-title { font-size: 42px; } }
@media (min-width: 768px) { .ve-hero-title { font-size: 64px; margin-bottom: 24px; } }

.ve-text-gradient { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ve-hero-subtitle { font-size: 16px; color: var(--text-muted); max-width: 700px; margin: 0 auto 30px; font-weight: 500; padding: 0 10px; }
@media (min-width: 768px) { .ve-hero-subtitle { font-size: 20px; margin-bottom: 40px; } }

/* BUTTON FIXES */
.ve-hero-cta-group { display: flex; flex-direction: column; gap: 15px; justify-content: center; margin-bottom: 40px; width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .ve-hero-cta-group { flex-direction: row; gap: 20px; margin-bottom: 60px; max-width: 100%; } }

.ve-btn-primary, .ve-btn-secondary { 
    padding: 14px 20px; border-radius: 8px; font-size: 15px; font-weight: 700; 
    text-decoration: none; transition: all 0.3s ease; width: 100%; 
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box; /* SAFETY */
}
@media(min-width: 768px) { .ve-btn-primary, .ve-btn-secondary { width: auto; display: inline-flex; padding: 16px 32px; font-weight: 800; font-size: 16px; } }

.ve-btn-primary { background: var(--primary-accent); color: #fff; border: none; box-shadow: 0 10px 25px var(--primary-glow); }
.ve-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3); }
.ve-btn-secondary { background: var(--bg-main); color: var(--text-main); border: 1px solid var(--border-light); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.ve-btn-secondary:hover { background: var(--bg-subtle); border-color: #cbd5e1; transform: translateY(-2px); }

/* --- 4. FEATURES GRID --- */
.ve-features-section { padding: 60px 0; background-color: var(--bg-main); }
@media(min-width: 768px) { .ve-features-section { padding: 100px 0; } }

.ve-section-header { text-align: center; max-width: 700px; margin: 0 auto 40px; padding: 0 10px; }
.ve-section-header h2 { font-size: 28px; margin-bottom: 16px; color: var(--text-main); }
.ve-section-header p { font-size: 16px; color: var(--text-muted); }

.ve-features-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
@media (min-width: 768px) { .ve-features-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; } }

.ve-feature-card { background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 16px; padding: 30px 24px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.ve-feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.04); border-color: #bfdbfe; }
.ve-feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #eff6ff, var(--primary-accent)); opacity: 0; transition: opacity 0.3s ease; }
.ve-feature-card:hover::before { opacity: 1; }
.ve-feature-icon { width: 48px; height: 48px; background: #eff6ff; color: var(--primary-accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ve-feature-icon svg { width: 24px; height: 24px; }
.ve-layer-badge { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-accent); background: #eff6ff; padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 10px; }
.ve-feature-card h3 { font-size: 18px; color: var(--text-main); margin-bottom: 12px; }
.ve-feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* --- 5. PRICING (BUTTON & BOX FIXED) --- */
.ve-section-pricing { padding: 60px 0; border-top: 1px solid var(--border-light); }
@media(min-width: 768px) { .ve-section-pricing { padding: 100px 0; } }

.ve-pricing-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .ve-pricing-grid { grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; } }

.ve-p-card { 
    background: var(--bg-main); border: 1px solid var(--border-light); 
    border-radius: 20px; padding: 30px 20px; /* Reduced padding for mobile safety */
    position: relative; transition: all 0.3s ease; text-align: left; 
    width: 100%; /* Force width */
    max-width: 100%;
}
@media(min-width: 768px) { .ve-p-card { padding: 40px 30px; text-align: center; } }

.ve-p-card.popular { border: 2px solid var(--primary-accent); box-shadow: 0 10px 30px var(--primary-glow); z-index: 2; margin-top: 20px; }
@media (min-width: 1024px) { .ve-p-card.popular { transform: scale(1.05); margin-top: 0; } }

.ve-p-card.popular .ve-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary-accent); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; letter-spacing: 1px; width: auto; white-space: nowrap; }

.ve-p-header h3 { font-size: 20px; margin-bottom: 8px; }
.price { font-size: 42px; font-weight: 800; color: var(--text-main); margin-bottom: 20px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
@media(min-width: 768px) { .price { font-size: 48px; justify-content: center; } }
.price span { font-size: 16px; color: var(--text-muted); font-weight: 600; }

.ve-p-features { list-style: none; padding: 0; margin: 0 0 30px 0; width: 100%; }
.ve-p-features li { margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--text-main); display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.ve-icon-svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }
.ve-icon-active { color: var(--primary-accent); }
.ve-icon-x { color: var(--danger-red); opacity: 0.7; }

/* PRICING BUTTON FIX */
.ve-btn-primary.full-width { 
    width: 100%; 
    display: flex; 
    padding: 14px; 
    justify-content: center;
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box; /* Crucial */
}
.ve-btn-glow { box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25); }

/* --- 6. FOOTER & CTA (FIXED) --- */
.ve-footer-wrapper { padding-top: 60px; }

.ve-cta-box { 
    background: linear-gradient(135deg, var(--primary-accent) 0%, #1e3a8a 100%); 
    border-radius: 20px; padding: 40px 20px; /* Reduced padding */
    text-align: center; color: #ffffff; box-shadow: 0 20px 50px var(--primary-glow); margin-bottom: 60px; 
    width: 100%;
    box-sizing: border-box;
}
@media(min-width: 768px) { .ve-cta-box { padding: 70px 40px; border-radius: 24px; margin-bottom: 80px; } }

.ve-cta-box h2 { font-size: 26px; color: #ffffff; margin-bottom: 16px; word-wrap: break-word; }
@media(min-width: 768px) { .ve-cta-box h2 { font-size: 48px; margin-bottom: 20px; } }
.ve-cta-box p { font-size: 16px; color: rgba(255, 255, 255, 0.9); max-width: 650px; margin: 0 auto 30px; }

.ve-cta-actions { display: flex; flex-direction: column; gap: 15px; justify-content: center; width: 100%; max-width: 350px; margin: 0 auto; }
@media(min-width: 768px) { .ve-cta-actions { flex-direction: row; gap: 20px; max-width: 100%; } }

.ve-btn-white, .ve-btn-outline-white { 
    padding: 14px 20px; border-radius: 8px; font-weight: 800; 
    text-decoration: none; transition: all 0.3s ease; 
    display: flex; justify-content: center; align-items: center; 
    width: 100%; 
    box-sizing: border-box; /* Safety */
    font-size: 15px;
}
@media(min-width: 768px) { .ve-btn-white, .ve-btn-outline-white { width: auto; padding: 16px 32px; display: inline-block; font-size: 16px; } }

.ve-btn-white { background: #ffffff; color: var(--primary-accent); }
.ve-btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.ve-btn-outline-white { background: transparent; color: #ffffff; border: 2px solid rgba(255,255,255,0.4); }
.ve-btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #ffffff; }

.ve-footer-bottom { background-color: var(--bg-subtle); padding: 50px 0 30px; border-top: 1px solid var(--border-light); }
.ve-footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px; text-align: center; }
@media(min-width: 768px) { .ve-footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; text-align: left; } }

.ve-logo-text { font-size: 22px; font-weight: 800; color: var(--text-main); display: block; margin-bottom: 15px; }
.ve-footer-links a, .ve-footer-support a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 12px; padding: 4px 0; }
.ve-copyright { text-align: center; border-top: 1px solid var(--border-light); padding-top: 30px; color: var(--text-muted); font-size: 14px; }