/* Plans, account, pricing and admin pages — same palette as the rest of MID */
:root {
  --mid-navy: #0C364A;
  --mid-blue: #1A749C;
  --mid-light: #C2E5F5;
  --mid-bg: rgb(242, 245, 240);
  --mid-gold: #f2b705;
  --mid-text: #333;
  --mid-muted: #666;
  --mid-border: rgba(12, 54, 74, 0.12);
}

.mid-page-header { background: var(--mid-navy); padding: 1.8rem 0; }
.mid-page-header .eyebrow { color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.25rem; }
.mid-page-header h1 { color: #fff; font-size: 1.55rem; font-weight: 700; margin: 0; line-height: 1.2; }
.mid-page-body { background: var(--mid-bg); min-height: 60vh; padding: 2.5rem 0 4rem; }

.mid-card { background: #fff; border-radius: 12px; padding: 1.6rem 1.6rem; border: 1px solid var(--mid-border); margin-bottom: 1.5rem; }
.mid-card h2 { color: var(--mid-navy); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.8rem; }
.mid-card p, .mid-card li, .mid-card td, .mid-card th { font-size: 0.9rem; color: var(--mid-text); }
.mid-muted { color: var(--mid-muted) !important; font-size: 0.85rem; }

/* Plan badges */
.plan-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
              padding: 0.15rem 0.5rem; border-radius: 999px; vertical-align: middle; line-height: 1.4; }
.plan-badge.free { background: #e6ecef; color: var(--mid-navy); }
.plan-badge.pro { background: var(--mid-gold); color: #2b2100; }
.plan-badge.enterprise { background: var(--mid-blue); color: #fff; }
.plan-badge.trial { background: #fff3c4; color: #5c4600; }

/* Lock marker on gated features */
.pro-lock { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5c4600;
            background: #fff3c4; border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.35rem; vertical-align: middle; }

/* Strip under the navbar (usage / trial / testing server) */
.mid-strip { font-size: 0.82rem; padding: 0.45rem 0; text-align: center; }
.mid-strip.usage { background: #e9f3f8; color: var(--mid-navy); }
.mid-strip.usage a, .mid-strip.trial a { font-weight: 600; color: var(--mid-blue); }
.mid-strip.trial { background: #fff8dc; color: #5c4600; }
.mid-strip.staging { background: #5c1a1a; color: #fff; font-weight: 600; letter-spacing: 0.04em; }
.mid-flashes { max-width: 760px; margin: 1rem auto 0; }

/* Usage meter */
.usage-meter { height: 8px; background: #e6ecef; border-radius: 4px; overflow: hidden; margin: 0.4rem 0 0.3rem; }
.usage-meter > span { display: block; height: 100%; background: var(--mid-blue); border-radius: 4px; }
.usage-meter.full > span { background: #d03b3b; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
@media (max-width: 991px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { background: #fff; border: 1px solid var(--mid-border); border-radius: 14px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--mid-blue); box-shadow: 0 6px 24px rgba(12,54,74,0.12); }
.price-card h3 { color: var(--mid-navy); font-weight: 700; font-size: 1.25rem; margin: 0 0 0.3rem; }
.price-card .tagline { color: var(--mid-muted); font-size: 0.86rem; min-height: 2.6em; }
.price-card .price { color: var(--mid-navy); font-size: 2.1rem; font-weight: 700; margin: 0.6rem 0 0; line-height: 1.1; }
.price-card .price small { font-size: 0.85rem; font-weight: 400; color: var(--mid-muted); }
.price-card .price-alt { color: var(--mid-muted); font-size: 0.82rem; margin-bottom: 1rem; min-height: 1.3em; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.price-card li { font-size: 0.88rem; color: var(--mid-text); padding: 0.35rem 0 0.35rem 1.5rem; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--mid-blue); font-weight: 700; }
.price-card li.no { color: #999; }
.price-card li.no::before { content: "–"; color: #bbb; }
.price-card .btn { width: 100%; }
.interval-toggle { display: inline-flex; background: #fff; border: 1px solid var(--mid-border); border-radius: 999px; padding: 3px; margin-bottom: 1.6rem; }
.interval-toggle button { border: 0; background: transparent; padding: 0.4rem 1.1rem; border-radius: 999px; font-size: 0.85rem; color: var(--mid-navy); cursor: pointer; }
.interval-toggle button.active { background: var(--mid-navy); color: #fff; }
.save-pill { font-size: 0.7rem; background: #e3f4e3; color: #1d6b1d; border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.3rem; }

/* Locked placeholder (e.g. 2D NMR for Free users) */
.locked-panel { border: 1px dashed rgba(12,54,74,0.3); border-radius: 12px; background: repeating-linear-gradient(45deg, #f7f9fa, #f7f9fa 10px, #f1f4f6 10px, #f1f4f6 20px);
                padding: 2rem 1.5rem; text-align: center; }
.locked-panel h3 { color: var(--mid-navy); font-size: 1.05rem; font-weight: 700; }
.locked-panel p { color: var(--mid-muted); font-size: 0.88rem; }

/* Admin */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; margin-bottom: 1.5rem; }
.stat-tile { background: #fff; border: 1px solid var(--mid-border); border-radius: 10px; padding: 0.9rem 1rem; }
.stat-tile .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mid-muted); }
.stat-tile .value { font-size: 1.6rem; font-weight: 700; color: var(--mid-navy); line-height: 1.2; }
.stat-tile .sub { font-size: 0.78rem; color: var(--mid-muted); }
.mid-table { width: 100%; border-collapse: collapse; }
.mid-table th { font-size: 0.72rem !important; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mid-muted) !important; border-bottom: 1px solid var(--mid-border); padding: 0.4rem 0.5rem; text-align: left; white-space: nowrap; }
.mid-table td { border-bottom: 1px solid #f0f2f3; padding: 0.4rem 0.5rem; font-variant-numeric: tabular-nums; }
.mid-table td.num, .mid-table th.num { text-align: right; }
.table-scroll { overflow-x: auto; }

/* Cookie banner */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1f2b33; color: #fff; padding: 14px 16px; z-index: 1060; font-size: 0.86rem; }
#cookie-banner .inner { max-width: 960px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: center; }
#cookie-banner a { color: var(--mid-light); }
#cookie-banner button { border: 0; border-radius: 6px; padding: 6px 14px; font-size: 0.85rem; cursor: pointer; }
#cookie-banner .accept { background: var(--mid-light); color: #041016; font-weight: 600; }
#cookie-banner .reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
