/* ===== ADIPOFYTE — Global Styles ===== */

:root {
    --color-fire: #FF6B35;
    --color-fire-dark: #E5541E;
    --color-emerald: #2EC4B6;
    --color-emerald-dark: #1FA898;
    --color-deep: #1A1A2E;
    --color-deep-mid: #16213E;
    --color-deep-light: #0F3460;
    --color-gold: #F5B041;
    --color-lavender: #A78BFA;
    --color-surface: #F8F9FA;
    --color-surface-warm: #FFF8F3;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    padding-top: 70px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-fire);
}

/* ===== Accent Button ===== */
.btn-accent {
    background: linear-gradient(135deg, var(--color-fire), var(--color-fire-dark));
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #fff;
}

.btn-outline-accent {
    color: var(--color-fire);
    border: 2px solid var(--color-fire);
    background: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.2s;
}
.btn-outline-accent:hover {
    background: var(--color-fire);
    color: #fff;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--color-deep) !important;
    backdrop-filter: blur(10px);
}
.brand-icon {
    font-size: 1.3rem;
}
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-deep-mid) 50%, var(--color-deep-light) 100%);
    color: #fff;
    padding: 6rem 0 9rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--color-surface);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 1;
    pointer-events: none;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}
.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}
.hero-stat {
    text-align: center;
    padding: 1rem;
}
.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-fire);
}
.hero-stat .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* ===== Section Styles ===== */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--color-surface);
}
.section-warm {
    background: var(--color-surface-warm);
}
.section-dark {
    background: var(--color-deep);
    color: #fff;
}
.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== Pillar Cards ===== */
.pillar-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
/* Improve text readability on dark-background pillar cards */
.pillar-card[style*="color:#fff"] p,
.pillar-card[style*="color:#fff"] .small {
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.pillar-card .pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.pillar-card h3 {
    font-weight: 700;
    font-size: 1.2rem;
}
.pillar-card p {
    color: #6c757d;
    font-size: 0.95rem;
}
.pillar-card .pillar-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.tag-nutrition { background: #FFE8D6; color: #C75B12; }
.tag-natural { background: #D4EDDA; color: #1B7A2B; }
.tag-movement { background: #D6E9FF; color: #1B5EC7; }
.tag-recovery { background: #E8D6FF; color: #6B21A8; }
.tag-mindset { background: #FFF3CD; color: #856404; }

/* ===== Pricing Cards ===== */
.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.pricing-card.featured {
    border-color: var(--color-fire);
    position: relative;
}
.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-fire);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-deep);
}
.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}
.pricing-card .plan-name {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    flex-grow: 1;
}
.pricing-card ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #555;
}
.pricing-card ul li::before {
    content: '✓ ';
    color: var(--color-emerald);
    font-weight: 700;
}

/* ===== Plateau Breaker Callout ===== */
.plateau-breaker {
    background: linear-gradient(135deg, var(--color-fire), #FF8C42);
    color: #fff;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}
.plateau-breaker h2 {
    font-weight: 800;
}

/* ===== How It Works ===== */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-fire);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-deep);
    color: #fff;
    margin-top: 0;
}
.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--color-fire);
}

/* ===== About / Book Page ===== */
/* ── Journal: Mood & Tag Chips ── */
.mood-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.mood-chip:hover { border-color: var(--color-fire); }
.mood-chip.active { border-color: var(--color-fire); background: rgba(255,107,53,0.1); }
.mood-emoji { font-size: 1.5rem; }
.mood-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: #666; }
.mood-chip.active .mood-label { color: var(--color-fire); font-weight: 600; }

.tag-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    font-size: 0.85rem;
}
.tag-chip:hover { border-color: var(--color-deep-light); }
.tag-chip.active { border-color: var(--color-deep); background: rgba(26,26,64,0.08); font-weight: 600; }

.book-highlight
    background: linear-gradient(135deg, var(--color-surface-warm), #fff);
    border-radius: 16px;
    padding: 3rem;
    border-left: 4px solid var(--color-fire);
}

/* ===== Sculptiq™ ===== */
.maya-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.user-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.maya-bubble {
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border-radius: 16px 16px 16px 4px;
    padding: 0.75rem 1rem;
    max-width: 90%;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.user-bubble {
    background: linear-gradient(135deg, var(--color-fire), var(--color-fire-dark));
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    padding: 0.75rem 1rem;
    max-width: 90%;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.sculptiq-score-ring {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Utility ===== */
.text-fire { color: var(--color-fire); }
.text-emerald { color: var(--color-emerald); }
.text-gold { color: var(--color-gold); }
.bg-fire { background-color: var(--color-fire); }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== Onboarding & START Button ===== */
.onboarding-overlay {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, var(--color-surface-warm) 0%, #fff 100%);
}
.onboarding-panel {
    max-width: 900px;
    margin: 0 auto;
}
.tutorial-step {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    height: 100%;
    transition: transform 0.2s;
}
.tutorial-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.tutorial-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-fire);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Engine START button — performance car style */
.engine-button-wrap {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}
.engine-button {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}
.engine-button.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.engine-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid #333;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.6),
        0 0 0 4px #111,
        0 0 0 6px #333;
}
.engine-ring-2 {
    inset: 10px;
    border: 3px solid #444;
    background: linear-gradient(145deg, #222, #1a1a1a);
    box-shadow:
        inset 0 3px 10px rgba(0,0,0,0.8),
        0 0 0 2px #222;
}
.engine-core {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d32f2f, #b71c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 20px rgba(211, 47, 47, 0.5),
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 6px rgba(0,0,0,0.4);
    transition: all 0.3s;
}
.engine-button:not(.disabled):hover .engine-core {
    background: linear-gradient(145deg, #e53935, #c62828);
    box-shadow:
        0 0 35px rgba(229, 57, 53, 0.8),
        0 0 80px rgba(255, 107, 53, 0.3),
        inset 0 2px 4px rgba(255,255,255,0.3);
    transform: scale(1.05);
}
.engine-button:not(.disabled):active .engine-core {
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.4), inset 0 3px 8px rgba(0,0,0,0.5);
}
.engine-label {
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.engine-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(circle, rgba(255,107,53,0.25) 0%, transparent 70%);
    transition: opacity 0.4s;
}
.engine-button:not(.disabled) .engine-glow {
    opacity: 1;
    animation: enginePulse 2s ease-in-out infinite;
}
@keyframes enginePulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* ===== Movement Section ===== */
.movement-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.movement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.movement-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    color: #fff;
}
.badge-gold-standard { background: linear-gradient(135deg, #F59E0B, #D97706); }
.badge-corrective { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.badge-lymphatic { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.badge-metabolic { background: linear-gradient(135deg, #EF4444, #DC2626); }
.badge-posture { background: linear-gradient(135deg, #10B981, #059669); }

.animated-figure {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-surface), #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    animation: figureFloat 3s ease-in-out infinite;
}
@keyframes figureFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== Electrolyte Section ===== */
.mineral-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}
.mineral-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.symptom-list {
    text-align: left;
    font-size: 0.85rem;
}
.symptom-list li {
    margin-bottom: 0.25rem;
}

/* ===== AI Chat (replaces LiveChat) ===== */
.ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
}
.chat-messages {
    height: 450px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1rem;
    background: var(--color-surface);
}
.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.chat-bubble-ai {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-right: auto;
}
.chat-bubble-user {
    background: var(--color-fire);
    color: #fff;
    margin-left: auto;
}

/* ===== Install App — Flashy Navbar Button ===== */
.nav-install-flash {
    background: linear-gradient(135deg, #4ade80, #22c55e, #4ade80);
    background-size: 200% 200%;
    color: #fff !important;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    padding: 0.35rem 1rem;
    position: relative;
    overflow: hidden;
    animation: installShimmer 3s ease-in-out infinite, installGlow 2s ease-in-out infinite alternate;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.nav-install-flash:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.6), 0 0 40px rgba(74, 222, 128, 0.3);
    color: #fff !important;
}

.nav-install-flash::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-25deg);
    animation: installSweep 3s ease-in-out infinite;
}

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

@keyframes installGlow {
    0% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.4), 0 0 16px rgba(74, 222, 128, 0.15); }
    100% { box-shadow: 0 0 14px rgba(74, 222, 128, 0.6), 0 0 28px rgba(74, 222, 128, 0.25); }
}

@keyframes installSweep {
    0% { left: -75%; }
    50% { left: 125%; }
    100% { left: 125%; }
}