/* ═══════════════════════════════════════════════
   Eggsy – Custom Styles v2 (App-Style)
   ═══════════════════════════════════════════════ */

:root {
    --primary:            #3A7D44;
    --primary-dark:       #2E6A35;
    --primary-light:      #E8F5E0;
    --accent:             #E8A020;
    --accent-dark:        #CC8C10;
    --accent-light:       #FFF8E8;
    --bg-body:            #F5EFE0;
    --bg-card:            #FFFFFF;
    --sidebar-bg:         #2E6A35;
    --sidebar-text:       #E8F5E9;
    --sidebar-hover:      rgba(255,255,255,0.1);
    --sidebar-active:     rgba(255,255,255,0.15);
    --sidebar-width:      240px;
    --topbar-h:           60px;
    --bottom-nav-h:       68px;
    --radius-card:        16px;
    --radius-btn:         10px;
    --shadow-card:        0 2px 12px rgba(0,0,0,0.07);
    --shadow-card-hover:  0 6px 20px rgba(0,0,0,0.12);
}

/* ─── Base ──────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: #1A1A1A;
    margin: 0;
}

/* ─── Sidebar ───────────────────────────────────── */
#sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.sidebar-header {
    padding: 22px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-egg {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.18);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logo-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
}

.sidebar-nav {
    list-style: none;
    padding: 8px 10px;
    margin: 0;
    flex: 1;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border-radius: 10px;
    margin-bottom: 2px;
}

.sidebar-nav li a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav li a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-nav li a.active {
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.2) inset;
}

.sidebar-footer {
    padding: 12px 10px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}

.sidebar-footer a:hover { background: rgba(255,255,255,0.1); color: #fff; }

.sidebar-user {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.38);
    margin-top: 8px;
    padding: 8px 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ─── Overlay ───────────────────────────────────── */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1040;
}

/* ─── Main Content ──────────────────────────────── */
#mainContent {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.content-area {
    padding: 28px 28px 48px;
    max-width: 1400px;
}

/* ─── Top Bar (mobile only) ─────────────────────── */
.top-bar {
    height: var(--topbar-h);
    background: var(--bg-card);
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-bar-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 9px;
}

.top-bar-logo-egg {
    width: 30px;
    height: 30px;
    background: var(--primary-dark);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

/* ─── Page Header ───────────────────────────────── */
.page-header { margin-bottom: 0; }

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

/* ─── Dashboard Greeting ────────────────────────── */
.dashboard-greeting {
    margin-bottom: 20px;
}

.greeting-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.greeting-sub {
    font-size: 0.85rem;
    color: #999;
    margin-top: 2px;
}

/* ─── KPI Cards ─────────────────────────────────── */
.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 18px 20px 16px;
    box-shadow: var(--shadow-card);
    border: none;
    height: 100%;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.kpi-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.kpi-card .kpi-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
}

.kpi-card .kpi-label {
    font-size: 0.78rem;
    color: #AAA;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.kpi-card .kpi-change {
    position: absolute;
    top: 16px;
    right: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 9px;
    border-radius: 50px;
}

.kpi-card .kpi-change.negative {
    color: #C62828;
    background: #FFEBEE;
}

/* ─── Cards ─────────────────────────────────────── */
.card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    background: var(--bg-card);
}

.card-header {
    background: var(--primary-dark);
    border-bottom: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 14px 18px;
    border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
    color: #fff;
}

/* Buttons inside green card headers – auto-adapt */
.card-header .btn {
    border-color: rgba(255,255,255,0.45) !important;
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}
.card-header .btn:hover {
    background: rgba(255,255,255,0.22) !important;
    border-color: rgba(255,255,255,0.75) !important;
}

/* Anchor tags styled as links inside card headers */
.card-header a:not(.btn) {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.card-header a:not(.btn):hover { color: #fff; text-decoration: underline; }

.card-body { padding: 20px; }

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 12px 20px;
}

/* ─── Quick Action Buttons ──────────────────────── */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    background: var(--bg-body);
    border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    text-decoration: none;
    color: #444;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    height: 88px;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-light);
    box-shadow: 0 4px 12px rgba(58,125,68,0.15);
    transform: translateY(-2px);
}

.quick-action-btn .qa-icon { font-size: 1.7rem; }

/* ─── CTA Pill Buttons (Dashboard) ──────────────── */
.btn-cta-green {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(46,106,53,0.28);
}
.btn-cta-green:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(46,106,53,0.38);
    transform: translateY(-1px);
}

.btn-cta-amber {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(232,160,32,0.3);
}
.btn-cta-amber:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(232,160,32,0.42);
    transform: translateY(-1px);
}

/* ─── Standard Buttons ──────────────────────────── */
.btn-success {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-btn);
    font-weight: 600;
}
.btn-success:hover, .btn-success:active, .btn-success:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-success {
    color: var(--primary-dark);
    border-color: var(--primary);
    border-radius: var(--radius-btn);
    font-weight: 600;
}
.btn-outline-success:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    border-radius: var(--radius-btn);
    font-weight: 600;
    color: #fff;
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn { border-radius: var(--radius-btn); }
.btn-sm { border-radius: 8px; }

/* ─── Forms ─────────────────────────────────────── */
.form-control, .form-select {
    border-radius: 10px;
    border-color: #E0D8CC;
    background: #FAFAF8;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(58,125,68,0.18);
    background: #fff;
}
.form-label {
    margin-bottom: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
}

/* ─── Tables ────────────────────────────────────── */
.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #AAA;
    font-weight: 700;
    white-space: nowrap;
}

.table-hover tbody tr:hover {
    background-color: rgba(58,125,68,0.03);
}

/* ─── Nav Tabs ──────────────────────────────────── */
.nav-tabs {
    border-bottom-color: rgba(0,0,0,0.08);
    gap: 4px;
}
.nav-tabs .nav-link {
    color: #999;
    border-color: transparent;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    transition: color 0.15s;
}
.nav-tabs .nav-link.active {
    color: var(--primary-dark);
    font-weight: 700;
    border-color: rgba(0,0,0,0.07) rgba(0,0,0,0.07) var(--bg-card);
    background: var(--bg-card);
}
.nav-tabs .nav-link:hover { color: var(--primary); }

/* ─── Alerts ────────────────────────────────────── */
.alert {
    border-radius: 12px;
    border: none;
}
.alert-success {
    background: #E8F5E0;
    color: #2E6A35;
}
.alert-danger {
    background: #FFEBEE;
    color: #B71C1C;
}
.alert-warning {
    background: #FFF8E1;
    color: #7B4F00;
    border-left: 4px solid var(--accent);
}
.alert-info {
    background: #E3F2FD;
    color: #1565C0;
}

/* ─── Badges ────────────────────────────────────── */
.badge {
    font-weight: 600;
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 0.75rem;
}
.bg-success { background-color: var(--primary) !important; }

/* ─── List Groups ───────────────────────────────── */
.list-group-item {
    border-color: rgba(0,0,0,0.05);
    padding: 12px 18px;
}
.list-group-item:first-child { border-top: none; }

/* ─── Chart Container ───────────────────────────── */
.chart-container {
    position: relative;
    height: 240px;
}

/* ─── Auth Pages ────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(140deg, #1B5E20 0%, #2E7D32 50%, #66BB6A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ─── Bottom Navigation (mobile) ────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: var(--bg-card);
    border-top: 1px solid rgba(0,0,0,0.07);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1050;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #C0C0C0;
    text-decoration: none;
    font-size: 0.67rem;
    font-weight: 600;
    padding: 8px 4px 10px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    flex: 1;
    min-width: 0;
    letter-spacing: 0.2px;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    display: block;
    line-height: 1;
}

.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item:hover  { color: var(--primary); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 767.98px) {
    #sidebar {
        transform: translateX(-100%);
    }
    #sidebar.open {
        transform: translateX(0);
    }
    #sidebarOverlay.open {
        display: block;
    }
    #mainContent {
        margin-left: 0;
    }
    .content-area {
        padding: 16px 16px calc(var(--bottom-nav-h) + 20px);
    }
    .kpi-card .kpi-value {
        font-size: 1.5rem;
    }
    .kpi-card {
        padding: 14px 16px;
    }
}

@media (min-width: 768px) {
    .top-bar    { display: none !important; }
    .bottom-nav { display: none !important; }
}

/* ─── Egg Stepper ───────────────────────────────── */
.egg-stepper {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border-radius: 16px;
    padding: 10px 8px;
    gap: 4px;
    user-select: none;
}

.egg-stepper-btn {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1.5px solid rgba(0,0,0,0.07);
    font-size: 1.3rem;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.15s, transform 0.1s, color 0.15s;
    flex-shrink: 0;
    touch-action: manipulation;
}
.egg-stepper-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}
.egg-stepper-btn:active { transform: scale(0.92); }

.egg-stepper-btn-plus:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.egg-stepper-display {
    flex: 1;
    text-align: center;
    line-height: 1;
}
.egg-stepper-display span {
    font-size: 3.2rem;
    font-weight: 900;
    color: #1a1a1a;
    display: block;
    line-height: 1;
    letter-spacing: -1px;
    transition: transform 0.08s;
}
.egg-stepper-display span.bump {
    transform: scale(1.18);
}
.egg-stepper-emoji {
    font-size: 1rem;
    margin-top: 3px;
    opacity: 0.6;
}

.egg-stepper-context {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    min-height: 18px;
}
.egg-stepper-today {
    font-size: 0.78rem;
    color: #AAA;
    font-weight: 500;
}
.egg-stepper-today strong {
    color: var(--primary);
    font-weight: 700;
}
.egg-stepper-avg {
    font-size: 0.75rem;
    color: #C0C0C0;
    background: #F0EDE5;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

/* ─── Card Header with Date Sub-line ────────────── */
.card-header-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.58);
    font-weight: 400;
    margin-top: 2px;
}

/* ─── Pill Save Buttons ──────────────────────────── */
.btn-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(46,106,53,0.25);
}
.btn-save:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(46,106,53,0.35);
    transform: translateY(-1px);
}
.btn-save.btn-save-amber {
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(232,160,32,0.25);
}
.btn-save.btn-save-amber:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 18px rgba(232,160,32,0.35);
}

/* ─── Entry List (app-style card lists) ─────────── */
.entry-list { list-style: none; padding: 0; margin: 0; }

.entry-date-header {
    padding: 8px 18px 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #FAFAF8;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    border-top: 1px solid rgba(0,0,0,0.04);
}
.entry-list > li.entry-date-header:first-child { border-top: none; }

.entry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.15s;
}
.entry-item:last-child { border-bottom: none; }
.entry-item:hover { background: rgba(58,125,68,0.025); }

.entry-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.entry-item-icon.icon-amber  { background: var(--accent-light); }
.entry-item-icon.icon-danger { background: #FFEBEE; }
.entry-item-icon.icon-info   { background: #E3F2FD; }
.entry-item-icon.icon-muted  { background: #F0F0F0; }

.entry-item-main { flex: 1; min-width: 0; }
.entry-item-title {
    font-weight: 600;
    font-size: 0.89rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.entry-item-sub {
    font-size: 0.77rem;
    color: #AAA;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-item-value {
    text-align: right;
    flex-shrink: 0;
}
.entry-item-amount {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a1a1a;
    white-space: nowrap;
}
.entry-item-amount.text-danger { color: #C62828 !important; }
.entry-item-badge { margin-top: 2px; }

.entry-item-actions { flex-shrink: 0; }

/* ─── Plan Badges ───────────────────────────────── */
.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.plan-badge-starter  { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); }
.plan-badge-standard { background: rgba(99,155,255,0.25); color: #A8C8FF; }
.plan-badge-premium  { background: rgba(104,211,145,0.25); color: #90EEB4; }
.plan-badge-expert   { background: rgba(255,200,60,0.25);  color: #FFD97A; }

/* ─── Sidebar Plan Link ──────────────────────────── */
.sidebar-plan-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px !important;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.15s;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.06);
}
.sidebar-plan-link:hover { background: rgba(255,255,255,0.12) !important; }
.sidebar-plan-upgrade {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    flex: 1;
}

/* ─── Locked Nav Items ───────────────────────────── */
.nav-locked {
    opacity: 0.45;
    cursor: default;
}
.nav-locked:hover {
    background: transparent !important;
    color: rgba(255,255,255,0.75) !important;
}
.nav-lock-badge {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.65;
}

/* ─── Upgrade Wall ───────────────────────────────── */
.upgrade-wall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    min-height: 320px;
}
.upgrade-wall-lock {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: grayscale(0.3);
}
.upgrade-wall-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.upgrade-wall-desc {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 28px;
    max-width: 380px;
}
.upgrade-wall-back {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #AAA;
    text-decoration: none;
}
.upgrade-wall-back:hover { color: var(--primary); }

/* ─── Plan Settings Cards ────────────────────────── */
.plan-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 22px 20px 20px;
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 100%;
}
.plan-card.plan-active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(58,125,68,0.18);
}
.plan-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}
.plan-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
}
.plan-card-price {
    font-size: 0.82rem;
    color: #AAA;
    margin-bottom: 16px;
    font-weight: 500;
}
.plan-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    font-size: 0.84rem;
    color: #555;
}
.plan-card-features li {
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.plan-card-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.plan-card-features li.locked::before { content: '–'; color: #CCC; }
.plan-card-features li.locked { color: #BBB; }

/* Plan limit progress bar */
.plan-limit-bar {
    background: #F0EDE5;
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin-top: 4px;
}
.plan-limit-bar-fill {
    height: 100%;
    border-radius: 50px;
    background: var(--primary);
    transition: width 0.4s;
}
.plan-limit-bar-fill.bar-warn  { background: var(--accent); }
.plan-limit-bar-fill.bar-full  { background: #C62828; }

/* ─── Print ─────────────────────────────────────── */
@media print {
    #sidebar, .top-bar, .bottom-nav, .btn, form { display: none !important; }
    #mainContent { margin-left: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    body { background: #fff; }
}
