:root {
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --cta-color: #fbbf24;
    --container-width: 1280px;
    --border-radius: 16px;
}
* { font-family: var(--body-font); }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); }
.gradient-bg { background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%); }
.gradient-text { background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.glass { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); }

/* LAYOUT DESIGNS */
body.layout-modern .card, body.layout-modern .bg-white { /*border-radius: 0;*/ box-shadow: none; border: 1px solid #e5e7eb; }
body.layout-bold .gradient-bg { background: linear-gradient(45deg, #000 0%, var(--primary-end) 100%) !important; }
body.layout-bold h1 { text-transform: uppercase; letter-spacing: 2px; }
body.layout-classic { background-color: #f8f8f8; }
body.layout-classic .rounded-2xl { border-radius: 4px; }
body.layout-cards .max-w-6xl { max-width: 1400px; }
body.layout-magazine { font-family: 'Georgia', serif; }
body.layout-magazine h1, body.layout-magazine h2 { font-family: 'Helvetica', serif; }
body.layout-split .section-hero { display: flex; flex-direction: row-reverse; align-items: center; }
body.layout-hero .section-hero { padding-top: 150px; padding-bottom: 150px; }

/* Base styles continue... */
.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); } 50% { box-shadow: 0 0 0 10px rgba(250, 204, 21, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 3s ease-in-out infinite; }

/* ANIMATED LOGO STYLES */
.logo-container { position: relative; width: 50px; height: 50px; }
.logo-spine { animation: spineGlow 3s ease-out forwards; }
.logo-fire { animation: fireFlicker 0.5s ease-in-out infinite alternate; }
.logo-ring { animation: ringExpand 2s ease-out forwards; stroke-dasharray: 160; stroke-dashoffset: 160; }
.logo-pulse { animation: logoPulse 2s ease-out forwards; }
@keyframes spineGlow { 0% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fireFlicker { 0% { transform: scaleY(1) translateY(0); } 100% { transform: scaleY(1.1) translateY(-1px); } }
@keyframes ringExpand { 0% { stroke-dashoffset: 160; opacity: 0; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes logoPulse { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
.logo-text-animate { animation: logoTextSlide 1s ease-out 0.5s forwards; opacity: 0; transform: translateX(-10px); }
@keyframes logoTextSlide { to { opacity: 1; transform: translateX(0); } }

/* EBOOK COVER STYLES */
.ebook-3d { perspective: 1000px; }
.ebook-cover { 
    transform-style: preserve-3d; 
    animation: ebookEntrance 1.5s ease-out forwards;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.4), -5px -5px 20px rgba(255,255,255,0.1);
}
@keyframes ebookEntrance { 
    0% { transform: rotateY(-30deg) rotateX(10deg) scale(0.8); opacity: 0; } 
    100% { transform: rotateY(-5deg) rotateX(2deg) scale(1); opacity: 1; } 
}
.ebook-cover:hover { transform: rotateY(0deg) rotateX(0deg) scale(1.05); }
/* Slow rotation animation for book */
.book-rotate {
    animation: bookSlowRotate 8s ease-in-out infinite;
}
@keyframes bookSlowRotate {
    0% { transform: rotateY(-8deg) rotateX(3deg); }
    25% { transform: rotateY(5deg) rotateX(-2deg); }
    50% { transform: rotateY(8deg) rotateX(3deg); }
    75% { transform: rotateY(-5deg) rotateX(-2deg); }
    100% { transform: rotateY(-8deg) rotateX(3deg); }
}
.book-rotate:hover {
    animation-play-state: paused;
    transform: rotateY(0deg) rotateX(0deg) scale(1.08);
}
/* Data visualization styles */
.data-card { transition: all 0.3s ease; }
.data-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(102,126,234,0.2); }
.animated-number { display: inline-block; }
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.count-animate { animation: countUp 0.8s ease-out forwards; }
.pie-segment { transition: all 0.3s; }
.pie-segment:hover { transform: scale(1.05); filter: brightness(1.1); }
@keyframes lineGrow { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.line-animate { stroke-dasharray: 1000; animation: lineGrow 2s ease-out forwards; }
@keyframes barRise { from { height: 0; } to { height: var(--bar-height); } }
.bar-animate { animation: barRise 1s ease-out forwards; }
@keyframes dotPulse { 0%, 100% { r: 4; } 50% { r: 6; } }
.dot-pulse { animation: dotPulse 2s ease-in-out infinite; }
.science-card { background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1)); }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-slide-up { animation: fadeSlideUp 0.8s ease-out forwards; }
.ebook-spine { 
    position: absolute; left: 0; top: 0; bottom: 0; width: 25px; 
    background: linear-gradient(to right, #1a1a2e, #2d2d44);
    transform: rotateY(-90deg) translateX(-12.5px);
    transform-origin: right;
}
.ebook-badge { animation: badgeBounce 2s ease-in-out infinite; }
@keyframes badgeBounce { 0%, 100% { transform: scale(1) rotate(-12deg); } 50% { transform: scale(1.1) rotate(-8deg); } }
.ebook-glow { 
    position: absolute; inset: -20px; 
    background: radial-gradient(ellipse at center, rgba(102,126,234,0.4) 0%, transparent 70%);
    animation: ebookGlow 3s ease-in-out infinite;
    z-index: -1;
}
@keyframes ebookGlow { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.results-graph-bar { animation: graphGrow 1.5s ease-out forwards; transform-origin: bottom; transform: scaleY(0); }
.results-graph-bar:nth-child(1) { animation-delay: 0.1s; }
.results-graph-bar:nth-child(2) { animation-delay: 0.2s; }
.results-graph-bar:nth-child(3) { animation-delay: 0.3s; }
.results-graph-bar:nth-child(4) { animation-delay: 0.4s; }
.results-graph-bar:nth-child(5) { animation-delay: 0.5s; }
.results-graph-bar:nth-child(6) { animation-delay: 0.6s; }
.results-graph-bar:nth-child(7) { animation-delay: 0.7s; }
.results-graph-bar:nth-child(8) { animation-delay: 0.8s; }
@keyframes graphGrow { to { transform: scaleY(1); } }
.stat-circle { stroke-dasharray: 283; stroke-dashoffset: 283; animation: circleProgress 2s ease-out forwards; }
@keyframes circleProgress { to { stroke-dashoffset: var(--progress); } }
.checkmark-animate { animation: checkPop 0.5s ease-out forwards; transform: scale(0); }
@keyframes checkPop { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.bonus-card { transition: all 0.3s; }
.bonus-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(102,126,234,0.3); }
.nav-active { border-bottom: 3px solid #764ba2; color: #764ba2; }
.page { display: none; }
.page.active { display: block; }
.game-canvas { touch-action: none; }
.fat-blob { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fbbf24 0%, #f59e0b 100%); cursor: pointer; transition: transform 0.1s; }
.fat-blob:hover { transform: scale(1.1); }
.fat-blob.popped { animation: pop 0.3s forwards; }
@keyframes pop { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
.shake { animation: shake 0.5s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* APP STYLES */
.app-container { 
    max-width: 430px; 
    margin: 0 auto; 
    min-height: 100vh;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}
.app-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
}
.app-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s;
}
.app-btn:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); }
.app-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.app-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    padding: 12px 16px;
}
.app-input:focus { outline: none; border-color: #667eea; background: rgba(255,255,255,0.15); }
.app-input::placeholder { color: rgba(255,255,255,0.5); }
.app-nav-item { 
    transition: all 0.3s;
    color: rgba(255,255,255,0.5);
}
.app-nav-item.active { color: #667eea; }
.app-nav-item.active i { transform: scale(1.2); }
.progress-ring { transform: rotate(-90deg); }
.stat-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.2) 0%, rgba(118,75,162,0.2) 100%);
    border: 1px solid rgba(102,126,234,0.3);
}
.workout-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
}
.workout-card:hover { border-color: #667eea; }
.meal-tag { background: rgba(102,126,234,0.3); }
.locked-overlay {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.premium-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.water-drop { 
    width: 30px; height: 30px; 
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    cursor: pointer;
    transition: all 0.2s;
}
.water-drop.filled { background: linear-gradient(180deg, #60a5fa, #3b82f6); opacity: 1; }
.water-drop.empty { background: rgba(255,255,255,0.2); }
.calorie-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.calorie-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }

/* Sleek scrollbar for app */
.app-container::-webkit-scrollbar { width: 4px; }
.app-container::-webkit-scrollbar-track { background: transparent; }
.app-container::-webkit-scrollbar-thumb { background: rgba(102,126,234,0.5); border-radius: 2px; }

/* Animation for app elements */
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.5s ease-out forwards; }

@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(102,126,234,0.3); } 50% { box-shadow: 0 0 40px rgba(102,126,234,0.6); } }
.glow-effect { animation: glow 2s ease-in-out infinite; }

/* Website specific */
.urgency-bar { background: linear-gradient(90deg, #ef4444, #dc2626); }
.sales-highlight { background: linear-gradient(to right, #fef3c7, #fde68a, #fef3c7); padding: 2px 8px; border-radius: 4px; }
.ribbon { position: absolute; top: 20px; right: -35px; background: linear-gradient(135deg, #ef4444, #dc2626); color: white; padding: 5px 40px; font-weight: bold; font-size: 12px; transform: rotate(45deg); }
.comparison-table tr:nth-child(even) { background: #f9fafb; }
.comparison-table td, .comparison-table th { padding: 12px 16px; }
.price-slash { position: relative; }
.price-slash::after { content: ''; position: absolute; left: -5%; top: 50%; width: 110%; height: 3px; background: #ef4444; transform: rotate(-15deg); }

/* Logo Glow Effect */
.logo-glow {
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.6));
    animation: logoGlowPulse 2s infinite alternate;
}
@keyframes logoGlowPulse {
    0% { filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.4)); }
    100% { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)); }
}

/* Book Cover Styling */
.book-cover-img {
    box-shadow: 20px 20px 60px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.book-cover-img:hover {
    transform: scale(1.05) rotateY(-5deg);
}

/* Footer Logo */
.footer-logo {
    transition: all 0.3s ease;
}
.footer-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

/* Design Layouts */
body.layout-modern { font-family: 'Inter', sans-serif; }
body.layout-bold { font-family: 'Poppins', sans-serif; font-weight: 700; }
body.layout-classic { font-family: 'Georgia', serif; }