:root {
    --cp-bg: #0f1014;
    --cp-surface: #1a1b22;
    --cp-card: #23242d;
    --cp-lime: #c8f560;
    --cp-lavender: #b8a9f0;
    --cp-text: #f4f4f6;
    --cp-muted: #9ca3af;
    --cp-danger: #f87171;
    --cp-radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.cp-body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--cp-bg);
    color: var(--cp-text);
    min-height: 100vh;
}
a { color: var(--cp-lime); text-decoration: none; }

.cp-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 16, 20, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2b35;
}
.cp-topbar-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cp-brand { display: flex; align-items: center; gap: 10px; color: var(--cp-text); font-weight: 700; }
.cp-brand img { height: 32px; }
.cp-menu-btn {
    background: var(--cp-card);
    border: none;
    color: var(--cp-text);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
}

.cp-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px 100px;
    min-height: calc(100vh - 60px);
}

.cp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    background: #16171d;
    border-top: 1px solid #2a2b35;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    z-index: 90;
}
.cp-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--cp-muted);
    font-size: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.cp-nav-item i { font-size: 1.1rem; }
.cp-nav-item.active, .cp-nav-item:hover { color: var(--cp-lime); }

.cp-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--cp-surface);
    z-index: 200;
    transition: right 0.25s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.4);
}
.cp-drawer.open { right: 0; }
.cp-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
}
.cp-drawer-overlay.show { display: block; }
.cp-drawer-head {
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #2a2b35;
}
.cp-user-chip { display: flex; gap: 10px; align-items: center; }
.cp-user-chip i { font-size: 2rem; color: var(--cp-lavender); }
.cp-user-chip small { color: var(--cp-muted); display: block; }
.cp-drawer-close { background: none; border: none; color: var(--cp-text); font-size: 1.2rem; cursor: pointer; }
.cp-drawer-nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.cp-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--cp-text);
    font-weight: 500;
}
.cp-drawer-nav a.active, .cp-drawer-nav a:hover { background: var(--cp-card); color: var(--cp-lime); }
.cp-logout-link { color: var(--cp-danger) !important; }

.cp-auth-wrap {
    max-width: 420px;
    margin: 40px auto;
    padding: 24px;
}
.cp-auth-card {
    background: var(--cp-surface);
    border-radius: var(--cp-radius);
    padding: 28px 24px;
    border: 1px solid #2a2b35;
}
.cp-auth-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.cp-auth-card p.sub { color: var(--cp-muted); margin-bottom: 24px; font-size: 0.9rem; }
.cp-field { margin-bottom: 16px; }
.cp-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--cp-muted); }
.cp-field input, .cp-field select, .cp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #3a3b48;
    background: var(--cp-card);
    color: var(--cp-text);
    font-size: 1rem;
    font-family: inherit;
}
.cp-field input:focus { outline: 2px solid var(--cp-lime); border-color: transparent; }
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.cp-btn-primary { background: var(--cp-lime); color: #111; width: 100%; }
.cp-btn-outline { background: transparent; border: 1px solid var(--cp-lime); color: var(--cp-lime); width: 100%; }
.cp-btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.cp-auth-links { margin-top: 16px; text-align: center; font-size: 0.9rem; color: var(--cp-muted); }
.cp-auth-links a { color: var(--cp-lime); font-weight: 600; }

.cp-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.cp-alert-success { background: rgba(200, 245, 96, 0.15); color: var(--cp-lime); border: 1px solid rgba(200, 245, 96, 0.3); }
.cp-alert-error { background: rgba(248, 113, 113, 0.15); color: var(--cp-danger); border: 1px solid rgba(248, 113, 113, 0.3); }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: rgba(200, 245, 96, 0.15); color: var(--cp-lime); border: 1px solid rgba(200, 245, 96, 0.3); }
.alert-error { background: rgba(248, 113, 113, 0.15); color: var(--cp-danger); border: 1px solid rgba(248, 113, 113, 0.3); }

.cp-hero {
    background: linear-gradient(135deg, #2d2a45 0%, #1a1b22 100%);
    border-radius: var(--cp-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.cp-hero h1 { font-size: 1.35rem; margin-bottom: 6px; }
.cp-hero p { color: var(--cp-muted); font-size: 0.9rem; }

.cp-purchase-banner {
    display: block;
    background: linear-gradient(135deg, var(--cp-lime) 0%, #9ae634 100%);
    color: #111;
    padding: 18px 20px;
    border-radius: var(--cp-radius);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}
.cp-purchase-banner i { margin-right: 8px; }
.cp-purchase-banner small { display: block; font-weight: 500; margin-top: 6px; font-size: 0.8rem; opacity: 0.85; }

.cp-section-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-section-title i { color: var(--cp-lavender); }

.cp-video-grid { display: flex; flex-direction: column; gap: 16px; }
.cp-video-card {
    background: var(--cp-surface);
    border-radius: var(--cp-radius);
    overflow: hidden;
    border: 1px solid #2a2b35;
}
.cp-video-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.cp-video-body { padding: 16px; }
.cp-video-body h3 { font-size: 1rem; margin-bottom: 8px; }
.cp-video-body p { color: var(--cp-muted); font-size: 0.85rem; margin-bottom: 12px; }
.cp-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.cp-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cp-video-player { width: 100%; border-radius: 12px; max-height: 220px; background: #000; }
.cp-empty { color: var(--cp-muted); text-align: center; padding: 32px 16px; }

.cp-premium-badge {
    display: inline-block;
    background: var(--cp-lavender);
    color: #111;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cp-page-card {
    background: var(--cp-surface);
    border-radius: var(--cp-radius);
    padding: 20px;
    border: 1px solid #2a2b35;
    margin-bottom: 16px;
}
.cp-page-card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.cp-page-card p { color: var(--cp-muted); line-height: 1.6; margin-bottom: 10px; }

.bmi-calculator-panel { color: var(--cp-text); }
.bmi-calculator-panel .bmi-calc-intro h3 { color: var(--cp-text); }
.bmi-calculator-panel .bmi-tab { background: var(--cp-card); color: var(--cp-text); border: 1px solid #3a3b48; }
.bmi-calculator-panel .bmi-tab.active { background: var(--cp-lime); color: #111; }
.bmi-calculator-panel input { background: var(--cp-card); color: var(--cp-text); border-color: #3a3b48; }
.bmi-calculator-panel .bmi-result-panel { background: var(--cp-card); }
.bmi-calculator-panel table { color: var(--cp-text); }
.bmi-calculator-panel .bmi-calc-btn { background: var(--cp-lime); color: #111; }

.cp-contact-list { list-style: none; }
.cp-contact-list li { padding: 10px 0; display: flex; gap: 12px; align-items: center; color: var(--cp-muted); }
.cp-contact-list i { color: var(--cp-lime); width: 20px; }
