/* ===== BP Track - Complete Stylesheet ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #dc2626;
    --primary-light: #fecaca;
    --primary-dark: #991b1b;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --sidebar-width: 260px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.text-gradient {
    background: linear-gradient(135deg, #dc2626, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LANDING PAGE ===== */

.landing-body { background: #fff; }

/* Landing Nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.landing-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-logo i { font-size: 1.6rem; }

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.landing-nav-links a {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.landing-nav-links a:hover { color: var(--primary); text-decoration: none; }

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fef2f2;
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    width: 320px;
    border: 1px solid var(--border);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.green { background: #22c55e; }
.dot.red { background: #dc2626; }

.hero-bp-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.hero-bp-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.hero-bp-slash {
    font-size: 2.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.hero-bp-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-bp-label.normal { color: #22c55e; }

.hero-bp-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
}

.hero-floating-card.left { left: -20px; top: 20px; }
.hero-floating-card.left i { color: #3b82f6; }
.hero-floating-card.right { right: -20px; bottom: 30px; }
.hero-floating-card.right i { color: #22c55e; }

/* Social Proof */
.social-proof {
    padding: 50px 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.proof-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.proof-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Features */
.features-section {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fecaca, #fef2f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* How It Works */
.how-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    flex: 1;
    max-width: 300px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 16px;
}

.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: #64748b; }

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary-light);
}

/* Pricing */
.pricing-section {
    padding: 100px 0;
    background: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-plan {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li i { color: #22c55e; }

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #991b1b, #dc2626);
    text-align: center;
    color: white;
}

.final-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.final-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
}

.final-cta .btn-primary {
    background: white;
    color: var(--primary);
    border-color: white;
    font-size: 1.1rem;
    padding: 14px 32px;
}

.final-cta .btn-primary:hover { background: #fef2f2; }

/* Landing Footer */
.landing-footer {
    padding: 40px 0;
    background: var(--text);
    color: #94a3b8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #334155;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand p { font-size: 0.85rem; color: #94a3b8; font-weight: 400; }
.footer-brand i { color: var(--primary); margin-right: 6px; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; }
.footer-links a:hover { color: white; text-decoration: none; }

.footer-bottom {
    padding-top: 20px;
    font-size: 0.8rem;
    text-align: center;
}

/* ===== APP LAYOUT ===== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fecaca 0%, #fef2f2 50%, #fff 100%);
}

/* Trial Banner */
.trial-banner {
    position: fixed;
    top: 56px;
    left: var(--sidebar-width);
    right: 0;
    z-index: 90;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 8px 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.trial-banner .btn { background: white; color: #f59e0b; border-color: white; }

/* Top bar — visible on EVERY screen size, holds the Menu toggle */
.mobile-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    z-index: 130;
}

/* The "Menu" / "Hide Menu" toggle — white lettering on a red background */
.menu-toggle {
    background: var(--primary);
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(220,38,38,0.30);
    transition: background 0.2s ease;
}
.menu-toggle:hover { background: #b91c1c; color: #ffffff; }

.mobile-topbar-logo {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The old in-sidebar X button is no longer used */
.sidebar-close { display: none !important; }

/* Overlay behind the slide-in menu (small screens only) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 115;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.show { opacity: 1; }

/* ---- Menu open / closed state (driven by a class on <body>) ---- */
body.nav-open .sidebar    { transform: translateX(0); }
body.nav-closed .sidebar  { transform: translateX(-100%); }
/* On desktop the content shifts to make room for / reclaim the sidebar space */
body.nav-open .main-content    { margin-left: var(--sidebar-width); }
body.nav-closed .main-content  { margin-left: 0; }
/* Trial banner lines up with the content area */
body.nav-open .trial-banner    { left: var(--sidebar-width); }
body.nav-closed .trial-banner  { left: 0; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 120;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 24px 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header i { font-size: 1.5rem; }

.sidebar-nav {
    list-style: none;
    padding: 12px 10px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-nav li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.sidebar-nav li a.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav li a i { width: 20px; text-align: center; }

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-info i { font-size: 1.3rem; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 84px 40px 32px;
    flex: 1;
    max-width: 1100px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card { text-align: center; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.stat-value small { font-size: 0.45em; font-weight: 400; color: var(--text-muted); }
.stat-sub { font-size: 0.9rem; font-weight: 600; margin-top: 4px; }
.stat-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #dc2626; color: white; }

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Forms */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group label i { color: var(--text-muted); margin-right: 4px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-select-sm {
    padding: 6px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

/* Category Buttons */
.category-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.category-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-btn input { display: none; }
.category-btn:hover { border-color: var(--primary); }
.category-btn.active, .category-btn:has(input:checked) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Preview Card */
.preview-card { text-align: center; }
.preview-bp { font-size: 3rem; font-weight: 700; }
.preview-label { font-size: 1.1rem; font-weight: 600; margin-top: 4px; }

/* Table */
.table-responsive { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table tr:hover { background: #f8fafc; }

.bp-value { font-weight: 700; font-size: 1rem; }
.bp-value small { color: var(--text-muted); font-weight: 400; }

.notes-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-cell { white-space: nowrap; display: flex; gap: 4px; }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-gray { background: #f1f5f9; color: #64748b; }
.badge-purple { background: #f3e8ff; color: #7c3aed; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }

/* Filter Card */
.filter-card { margin-bottom: 16px; }
.filter-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filter-form .form-group { margin-bottom: 0; min-width: 140px; }

.results-count { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }

/* Pagination */
.pagination { display: flex; gap: 4px; margin-top: 16px; justify-content: center; }

/* Charts */
.chart-container { position: relative; height: 300px; }
.chart-large { height: 400px; }

.range-buttons { display: flex; gap: 8px; margin-bottom: 20px; }

/* Export */
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.export-card { text-align: center; }
.export-icon { font-size: 3rem; margin-bottom: 12px; }
.export-count { color: var(--text-muted); font-size: 0.85rem; margin: 12px 0; }

/* Reminders */
.reminder-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reminder-card.inactive { opacity: 0.5; }
.reminder-info h3 { font-size: 1rem; }
.reminder-time { color: var(--text-muted); font-size: 0.9rem; margin: 4px 0; }
.reminder-days { display: flex; gap: 4px; flex-wrap: wrap; }
.day-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.reminder-actions { display: flex; gap: 6px; }

.days-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.day-btn { cursor: pointer; }
.day-btn input { display: none; }
.day-btn span {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.day-btn:hover span { border-color: var(--primary); }
.day-btn input:checked + span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0f9ff;
    border-color: #bae6fd;
}
.info-card i { color: #0ea5e9; font-size: 1.2rem; margin-top: 2px; }
.info-card p { color: #0369a1; font-size: 0.9rem; }

/* Checkout */
.checkout-layout { max-width: 500px; }
.checkout-summary { margin-bottom: 24px; }
.checkout-plan, .checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}
.checkout-total { font-size: 1.2rem; border-bottom: none; padding-top: 16px; }
.checkout-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Admin */
.plan-dist { display: flex; gap: 16px; flex-wrap: wrap; }
.plan-dist-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    text-align: center;
}
.plan-dist-label { font-size: 0.85rem; color: var(--text-muted); display: block; }
.plan-dist-count { font-size: 1.5rem; font-weight: 700; }

.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 24px;
    font-size: 0.9rem;
}

/* Support Staff */
.support-staff-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.support-staff-card.inactive { opacity: 0.55; }
.staff-info { display: flex; align-items: center; gap: 16px; }
.staff-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.2rem;
}
.staff-info h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.staff-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Support Notes */
.notes-list { display: flex; flex-direction: column; gap: 12px; }
.note-item {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border-left: 3px solid #3b82f6;
}
.note-meta { font-size: 0.85rem; margin-bottom: 6px; }
.note-item p { font-size: 0.9rem; line-height: 1.6; color: #475569; }

/* Auth */
.auth-container { width: 100%; max-width: 440px; padding: 20px; }

.auth-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; }
.auth-header p { color: var(--text-muted); margin-top: 4px; }
.auth-link { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

/* Alerts */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }

/* BP Categories Reference */
.bp-categories { display: flex; flex-direction: column; gap: 8px; }
.bp-cat { padding: 10px 16px; background: #f8fafc; border-radius: var(--radius-sm); font-size: 0.9rem; }

/* Utility */
.text-muted { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */

@media (max-width: 968px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.4rem; }
    .hero-subtitle { max-width: 100%; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .hero-visual { margin-top: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.popular { transform: none; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-nav-links a:not(.btn) { display: none; }
}

/* On small screens (narrow OR short landscape phones) the menu slides OVER the
   content with a dimming overlay, instead of pushing the content aside. */
@media (max-width: 768px), (max-height: 600px) and (orientation: landscape) {
    .app-layout { display: block; }

    /* Slightly narrower slide-over panel on phones */
    .sidebar { width: min(82vw, 300px); }

    /* Content never shifts on small screens — the menu floats over it */
    .main-content,
    body.nav-open .main-content,
    body.nav-closed .main-content { margin-left: 0; padding: 72px 16px 16px; max-width: 100%; }

    /* Show the dimming overlay only while the menu is open */
    body.nav-open .sidebar-overlay { display: block; }

    /* Stop the background scrolling while the menu is open */
    body.nav-open { overflow: hidden; }

    /* Trial banner spans full width on small screens */
    .trial-banner,
    body.nav-open .trial-banner,
    body.nav-closed .trial-banner { left: 0; right: 0; }
    .form-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .filter-form { flex-direction: column; }
    .reminder-card { flex-direction: column; align-items: flex-start; }
    .export-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .hero-floating-card { display: none; }
}
