* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #111827;
    background: #f8fafc; /* pastel background */
}

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

.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .nav-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #312e81;
    text-decoration: none;
}

.brand-logo {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.brand-title {
    color: #1f2937;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-alert-pill {
	font-size: 0.75rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	border: 1px solid #1f2937;
	background: rgba(29, 78, 216, 0.08);
	color: #1d4ed8;
}
.nav-alert-pill.warning {
	background: rgba(245, 158, 11, 0.08);
	color: #f97316;
	border-color: rgba(245, 158, 11, 0.5);
}
.nav-alert-pill.critical {
	background: rgba(220, 38, 38, 0.08);
	color: #dc2626;
	border-color: rgba(220, 38, 38, 0.5);
}
.nav-alert-pill.hidden {
	display: none;
}

.alert-snackbar {
	position: fixed;
	top: 72px;
	right: 1rem;
	left: 1rem;
	max-width: 360px;
	margin: 0 auto;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	font-weight: 500;
	color: #111827;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.4);
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform: translateY(-100%);
	opacity: 0;
}
.alert-snackbar.warning {
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.6);
}
.alert-snackbar.critical {
	background: rgba(220, 38, 38, 0.12);
	border-color: rgba(220, 38, 38, 0.6);
}
.alert-snackbar.visible {
	opacity: 1;
	transform: translateY(0);
}
.alert-snackbar .alert-snackbar-content {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.alert-snackbar .alert-snackbar-link {
	font-size: 0.75rem;
	color: inherit;
}
.alert-snackbar button {
	color: inherit;
	border: none;
	padding: 0;
	background: transparent;
	font-weight: 600;
	cursor: pointer;
}

.nav-guest {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-user-label {
    font-weight: 600;
    color: #1e293b;
}

.nav-user-link {
    cursor: pointer;
    text-decoration: none;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover { color: #6366f1; }
.nav-link.active { color: #4f46e5; }
.nav-link.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

/* Main Content */
main {
    min-height: calc(100vh - 70px);
    padding: 2rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #93c5fd; /* pastel blue */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #a5b4fc, #93c5fd);
    color: #111827;
    position: relative;
    z-index: 1;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 6px;
    background: conic-gradient(from 0deg, #a5b4fc, #93c5fd, #c4b5fd, #a5b4fc);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero */
.hero-section {
    padding: 3rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: #6366f1;
    font-weight: 600;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.1;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #475569;
    max-width: 55ch;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #1e293b;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.cta-link:hover {
    text-decoration: underline;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.3);
    max-width: 420px;
    margin-left: auto;
}

.auth-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #f1f5f9;
    border-radius: 12px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.auth-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    color: #475569;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-toggle-btn:hover {
    color: #1e293b;
}

.auth-toggle-btn.active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.16);
}

.auth-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-subtitle-text {
    color: #475569;
    font-size: 0.95rem;
}

.auth-switch {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.auth-switch a {
    color: #4f46e5;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.stats-section {
    padding: 1rem 0 2rem;
}

.stats-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    align-items: center;
}

.directory-preview .card {
    margin-bottom: 0;
}

.card-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.program-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.preview-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.preview-card-header h4 {
    font-size: 1rem;
    color: #0f172a;
}

.preview-chip {
    padding: 0.3rem 0.6rem;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.preview-description {
    color: #475569;
    font-size: 0.9rem;
}

.preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.preview-meta {
    color: #6366f1;
    font-weight: 600;
}

.preview-link {
    color: #111827;
    font-weight: 500;
    text-decoration: none;
}

.preview-link:hover {
    color: #4f46e5;
}

.loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
}

.meta-text {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.programs-header {
    margin-bottom: 1.5rem;
}

.empty-state-card {
    background: #f8fafc;
    border: 1px dashed #c7d2fe;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.empty-state-title {
    font-size: 1.4rem;
    color: #0f172a;
    margin: 0;
}

.empty-state-body {
    margin: 0;
    max-width: 38ch;
    color: #475569;
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.site-footer h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #f8fafc;
}

.site-footer p {
    color: #cbd5f5;
    font-size: 0.95rem;
}

.site-footer a { color: #c9f269; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer strong {
    display: block;
    color: #f8fafc;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-card {
        margin: 0;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-guest {
        gap: 0.5rem;
    }
}

/* Search */
.search-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.program-brand {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.program-description {
    color: #666;
    margin-bottom: 1rem;
}

.program-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.keyword-tag {
    background: #eef2ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #4f46e5;
}

.program-actions {
    display: flex;
    gap: 0.5rem;
}

/* Dashboard */
.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.dashboard-alert-center {
	margin-bottom: 1rem;
}

.alert-center-card .alert-chip {
	font-size: 0.85rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	margin-left: 1rem;
}

.alert-center-card .alert-chip.success {
	color: #138a00;
	background: rgba(19, 138, 0, 0.08);
}

.alert-center-card .alert-chip.warning {
	color: #b45309;
	background: rgba(180, 83, 9, 0.08);
}

.alert-center-card .alert-chip.neutral {
	color: #1f2937;
	background: rgba(15, 23, 42, 0.08);
}

.alert-center-card .alert-center-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.alert-center-card .alert-row {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: #374151;
}

.alert-center-card .alert-row p {
	margin: 0;
}

.alert-center-card .trend-alert-table {
	overflow-x: auto;
}

.alert-center-card table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

.alert-center-card th,
.alert-center-card td {
	padding: 0.35rem 0.4rem;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1e293b;
}

.card-actions {
    margin-left: auto;
}

.btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
}

.program-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.program-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.program-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.program-url {
    font-size: 0.875rem;
    color: #4f46e5;
    word-break: break-all;
    text-decoration: none;
}

.program-url:hover {
    text-decoration: underline;
}

/* 2026 public-site refresh -------------------------------------------------- */
:root {
    --ev-ink: #10231f;
    --ev-ink-2: #173b34;
    --ev-green: #2d6a57;
    --ev-lime: #c9f269;
    --ev-lime-dark: #a9d543;
    --ev-cream: #f6f2e8;
    --ev-paper: #fffdf7;
    --ev-peach: #f2c9ad;
    --ev-blue: #b9d9f4;
    --ev-line: rgba(16, 35, 31, 0.14);
    --ev-muted: #60706b;
    --ev-shadow: 0 24px 70px rgba(25, 55, 47, 0.12);
}

html { scroll-behavior: smooth; }

body {
    color: var(--ev-ink);
    background: var(--ev-cream);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
}

.container { max-width: 1180px; padding-inline: 24px; }

.navbar {
    background: rgba(246, 242, 232, 0.9);
    border-bottom: 1px solid var(--ev-line);
    box-shadow: none;
    padding: 0.8rem 0;
    backdrop-filter: blur(18px);
}

.brand-link { color: var(--ev-ink); font-size: 1.18rem; letter-spacing: -0.035em; }
.brand-title { color: var(--ev-ink); }
.brand-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 9px; }
.nav-menu { gap: 0.35rem; }
.nav-link { color: #42534e; font-size: 0.92rem; padding: 0.55rem 0.75rem; border-radius: 999px; }
.nav-link:hover, .nav-link.active { color: var(--ev-ink); background: rgba(255,255,255,.66); }
.nav-guest { gap: 0.35rem; }

main { padding: 0; min-height: 70vh; }

.btn {
    border-radius: 10px;
    padding: 0.7rem 1.05rem;
    font-weight: 750;
    font-size: 0.93rem;
    line-height: 1.1;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-large { min-height: 48px; padding: 0.9rem 1.2rem; }
.btn-primary, .btn-lime {
    background: var(--ev-lime);
    color: var(--ev-ink);
    box-shadow: 0 8px 18px rgba(77, 112, 34, .14);
}
.btn-primary::before { display: none; }
.btn-primary:hover, .btn-lime:hover { background: var(--ev-lime-dark); box-shadow: 0 10px 22px rgba(77,112,34,.2); }
.btn-dark { background: var(--ev-ink); color: #fff; }
.btn-dark:hover { background: var(--ev-ink-2); }
.btn-quiet { background: rgba(255,255,255,.58); border: 1px solid var(--ev-line); color: var(--ev-ink); }

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 74px 0 70px;
    background:
        radial-gradient(circle at 92% 12%, rgba(185,217,244,.72), transparent 30%),
        radial-gradient(circle at 3% 90%, rgba(242,201,173,.68), transparent 28%),
        var(--ev-cream);
}
.hero-section::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(16,35,31,.1);
    border-radius: 50%;
    right: -170px;
    bottom: -210px;
}
.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 68px; align-items: center; }
.hero-copy { gap: 1.35rem; }
.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid var(--ev-line);
    border-radius: 999px;
    background: rgba(255,255,255,.52);
    color: #3c554e;
    font-size: .76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3f8f6f; box-shadow: 0 0 0 4px rgba(63,143,111,.13); }
.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    color: var(--ev-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 5.4vw, 5.35rem);
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.055em;
}
.hero-copy h1 span { color: var(--ev-green); font-style: italic; }
.hero-subtitle { color: #4d605a; font-size: 1.1rem; line-height: 1.65; max-width: 620px; }
.hero-proof-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: #42534e; }
.hero-proof-row span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof-row b { color: var(--ev-green); }
.hero-actions { gap: 10px; }
.micro-proof { color: #697872; font-size: .78rem; margin-top: -.65rem; }

.hero-side { position: relative; min-height: 540px; display: flex; align-items: flex-start; justify-content: flex-end; }
.auth-card {
    position: relative;
    z-index: 2;
    width: min(100%, 390px);
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(16,35,31,.12);
    box-shadow: var(--ev-shadow);
    background: rgba(255,253,247,.95);
}
.auth-toggle { margin: 0 0 18px; padding: 4px; border-radius: 11px; background: #ece9df; }
.auth-toggle-btn { padding: .68rem; border-radius: 8px; font-size: .86rem; color: #63716d; }
.auth-toggle-btn.active { color: var(--ev-ink); box-shadow: 0 4px 16px rgba(16,35,31,.08); }
.auth-body { padding: 0 10px 10px; gap: .8rem; }
.auth-body h2 { margin: 0; color: var(--ev-ink); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; letter-spacing: -.03em; }
.auth-subtitle-text { color: var(--ev-muted); line-height: 1.45; font-size: .86rem; }
.form-group { margin-bottom: .72rem; }
.form-group label { color: #344943; font-size: .78rem; font-weight: 750; }
.form-group label span { float: right; color: #8a9692; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    min-height: 45px;
    padding: .72rem .8rem;
    border: 1px solid rgba(16,35,31,.16);
    border-radius: 9px;
    background: #fffefb;
    color: var(--ev-ink);
    font-size: .92rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #63957f; box-shadow: 0 0 0 3px rgba(99,149,127,.12); }
.auth-switch { text-align: center; font-size: .78rem; }
.auth-switch a { color: var(--ev-green); font-weight: 750; }

.mini-dashboard {
    position: absolute;
    z-index: 3;
    left: -72px;
    bottom: 4px;
    width: 380px;
    padding: 16px;
    border-radius: 18px;
    background: var(--ev-ink);
    color: white;
    box-shadow: 0 28px 65px rgba(16,35,31,.25);
    transform: rotate(-2deg);
}
.mini-dash-head { display: flex; justify-content: space-between; color: #b8c5c1; font-size: .7rem; }
.mini-dash-head i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ev-lime); margin-right: 5px; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.mini-metrics div { display: grid; gap: 4px; }
.mini-metrics small { color: #9fb0aa; font-size: .63rem; }
.mini-metrics strong { font-size: 1.05rem; letter-spacing: -.03em; }
.mini-metrics em { color: var(--ev-lime); font-size: .62rem; font-style: normal; }
.mini-chart { height: 64px; display: flex; align-items: flex-end; gap: 6px; }
.mini-chart span { flex: 1; height: var(--h); min-height: 8px; border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--ev-lime), #54795a); opacity: .9; }

.trust-strip { border-block: 1px solid var(--ev-line); background: var(--ev-paper); }
.trust-strip-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #6c7975; font-size: .66rem; font-weight: 800; letter-spacing: .11em; }
.trust-strip-inner i { width: 4px; height: 4px; border-radius: 50%; background: #87938f; }

.section-pad { padding: 100px 0; }
.platform-section { background: var(--ev-paper); }
.section-heading { margin-bottom: 42px; }
.split-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: end; }
.section-kicker { display: inline-block; margin-bottom: 12px; color: var(--ev-green); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.section-heading h2, .final-cta h2 {
    margin: 0;
    color: var(--ev-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.65rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.045em;
}
.section-heading p { color: var(--ev-muted); line-height: 1.65; max-width: 500px; }
.centered { text-align: center; max-width: 720px; margin-inline: auto; }

.bento-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.bento-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    padding: 32px;
    border: 1px solid var(--ev-line);
    border-radius: 18px;
    background: #f2efe6;
}
.bento-card:nth-child(2) { background: #e7f0e8; }
.bento-card:nth-child(3) { background: #e8f0f6; }
.bento-card h3 { max-width: 520px; margin: 18px 0 10px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; letter-spacing: -.03em; }
.bento-card > p, .bento-card > div > p { max-width: 540px; color: #5b6c66; line-height: 1.55; }
.feature-number { position: absolute; top: 18px; right: 20px; color: #8b9994; font: 700 .68rem ui-monospace, monospace; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ev-line); border-radius: 50%; background: rgba(255,255,255,.48); font: 600 1.05rem Georgia, serif; }
.landing-preview { position: absolute; width: 72%; height: 145px; right: -16px; bottom: -18px; padding: 16px; border-radius: 16px 0 0 0; background: var(--ev-ink); transform: rotate(-2deg); }
.lp-nav { width: 42px; height: 8px; border-radius: 10px; background: var(--ev-lime); }
.lp-copy { display: grid; gap: 8px; margin: 26px 0 14px; }
.lp-copy i, .lp-copy b, .lp-copy span { display: block; height: 6px; border-radius: 8px; background: #d7e1de; }
.lp-copy i { width: 58%; height: 10px; }.lp-copy b { width: 82%; }.lp-copy span { width: 66%; }
.landing-preview button { border: 0; padding: 7px 10px; border-radius: 6px; background: var(--ev-lime); font-size: .6rem; font-weight: 800; }
.event-list { display: grid; gap: 8px; margin-top: 24px; }
.event-list span { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(16,35,31,.08); border-radius: 9px; background: rgba(255,255,255,.56); font-size: .7rem; }
.event-list i { width: 7px; height: 7px; border-radius: 50%; }.event-list .green { background: #4f9b73; }.event-list .blue { background: #5b91bb; }.event-list .orange { background: #d79061; }
.event-list b { font-weight: 650; }.event-list em { color: var(--ev-muted); font-style: normal; }
.payout-pill { position: absolute; left: 28px; right: 28px; bottom: 28px; display: flex; justify-content: space-between; align-items: center; padding: 14px; border-radius: 10px; color: #dfe9e5; background: var(--ev-ink); font-size: .72rem; }
.payout-pill strong { padding: 8px 10px; border-radius: 7px; color: var(--ev-ink); background: var(--ev-lime); }
.bento-wide { grid-column: 1 / -1; min-height: 310px; }
.backlink-card { display: grid; grid-template-columns: 1fr .92fr; gap: 50px; align-items: center; background: #f5e7dc; }
.text-link { color: var(--ev-green); font-weight: 800; text-decoration: none; font-size: .88rem; }
.search-result-mock { padding: 26px; border: 1px solid rgba(16,35,31,.1); border-radius: 14px; background: rgba(255,255,255,.64); box-shadow: 0 18px 40px rgba(80,50,30,.08); transform: rotate(1deg); }
.search-result-mock small { display: block; color: #678076; font-size: .66rem; }.search-result-mock strong { display: block; margin: 9px 0 5px; color: #305ec7; font: 500 1.1rem Georgia, serif; }.search-result-mock p { margin: 0 0 12px; font-size: .76rem; color: #50615b; }.search-result-mock span { color: var(--ev-green); font-size: .7rem; font-weight: 750; }

.directory-preview { background: var(--ev-ink); color: white; }
.directory-preview .section-kicker { color: var(--ev-lime); }
.directory-preview .section-heading h2 { color: white; }
.directory-preview .section-heading p { color: #adbbb6; margin-bottom: 16px; }
.program-preview-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.preview-card { min-height: 230px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #17322d; box-shadow: none; }
.preview-card-header h4 { color: white; font: 500 1.25rem Georgia, serif; }
.preview-chip { color: var(--ev-ink); background: var(--ev-lime); }
.preview-description { color: #b8c5c1; line-height: 1.55; }
.preview-meta { color: var(--ev-lime); }.preview-link { color: white; }

.steps-section { background: var(--ev-cream); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-block: 1px solid var(--ev-line); }
.steps-grid article { position: relative; min-height: 230px; padding: 32px; border-right: 1px solid var(--ev-line); }
.steps-grid article:last-child { border-right: 0; }
.steps-grid article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ev-ink); color: var(--ev-lime); font-size: .76rem; }
.steps-grid h3 { margin: 34px 0 8px; font: 500 1.35rem Georgia, serif; }.steps-grid p { color: var(--ev-muted); line-height: 1.6; font-size: .9rem; }
.final-cta-section { padding-top: 0; background: var(--ev-cream); }
.final-cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 58px; border-radius: 20px; background: var(--ev-green); color: white; }
.final-cta .section-kicker { color: var(--ev-lime); }.final-cta h2 { color: white; }.final-cta p { margin-top: 10px; color: #c5d4cf; }

.site-footer { margin: 0; padding: 44px 0; background: #0c1c19; }
.footer-grid { align-items: start; }.site-footer h4 { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }.site-footer p { color: #9fafaa; max-width: 560px; }

.directory-page { padding-block: 70px; }
.directory-page .programs-header { max-width: 720px; margin-bottom: 28px; }
.directory-page .programs-header h2 { margin: 0 0 10px; font: 500 clamp(2.4rem,5vw,4.4rem)/1 Georgia,serif; letter-spacing: -.05em; }
.directory-page .meta-text { color: var(--ev-muted); line-height: 1.6; }
.search-container { padding: 10px; border: 1px solid var(--ev-line); border-radius: 14px; box-shadow: 0 14px 45px rgba(16,35,31,.08); background: var(--ev-paper); }
.search-field { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 8px; }
.search-field > span { color: #6d7d77; font-size: 1.2rem; }
.search-input { width: 100%; min-height: 46px; padding: 0; border: 0; background: transparent; color: var(--ev-ink); }
.search-input:focus { outline: 0; }
.program-card { border: 1px solid var(--ev-line); border-radius: 14px; background: var(--ev-paper); box-shadow: none; }
.program-card:hover { box-shadow: 0 18px 40px rgba(16,35,31,.08); }

@media (max-width: 900px) {
    .nav-menu { display: none; }
    .hero-section { padding-top: 52px; }
    .hero-grid { grid-template-columns: 1fr; gap: 46px; }
    .hero-side { min-height: 520px; justify-content: center; }
    .mini-dashboard { left: 4%; width: 76%; }
    .split-heading { grid-template-columns: 1fr; gap: 18px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: auto; }
    .backlink-card { grid-template-columns: 1fr; }
    .program-preview-grid { grid-template-columns: repeat(2,1fr); }
    .trust-strip-inner { flex-wrap: wrap; justify-content: center; padding-block: 18px; }
}

@media (max-width: 600px) {
    .container { padding-inline: 18px; }
    .navbar { padding: .65rem 0; }
    .brand-title { font-size: 1.05rem; }
    .nav-guest .nav-link { display: none; }
    .hero-section { padding: 40px 0 48px; }
    .hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-proof-row { gap: 9px 14px; }
    .hero-side { min-height: 585px; align-items: flex-start; }
    .auth-card { width: 100%; }
    .mini-dashboard { left: 0; bottom: 0; width: 96%; transform: rotate(-1deg); }
    .mini-metrics strong { font-size: .9rem; }
    .section-pad { padding: 70px 0; }
    .section-heading { margin-bottom: 28px; }
    .bento-card { min-height: 340px; padding: 24px; }
    .backlink-card { min-height: 540px; gap: 24px; }
    .landing-preview { width: 88%; }
    .program-preview-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ev-line); }
    .steps-grid article:last-child { border-bottom: 0; }
    .steps-grid h3 { margin-top: 22px; }
    .final-cta { padding: 34px 24px; flex-direction: column; align-items: flex-start; }
    .search-form { flex-direction: column; }
    .search-field { min-height: 48px; }
}

.tracking-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tracking-field input {
    flex: 1;
    min-width: 180px;
}

.onboarding-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 2rem;
    border: 1px dashed #d1d5db;
}

.onboarding-hero h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
}

.onboarding-hero p {
    margin: 0;
    color: #4b5563;
    max-width: 540px;
}

.onboarding-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 1rem;
}

.onboarding-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.step-index {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-body h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.step-body p {
    margin: 0;
    color: #4b5563;
}

.step-helper {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6366f1;
}

.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wizard-modal {
    max-width: 640px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1000;
    padding: 1.25rem;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    position: relative;
    padding: 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content:focus-visible {
	outline: 3px solid #4f46e5;
	outline-offset: 4px;
}

.modal .close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #475569;
}

.wizard-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.wizard-header p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.wizard-progress {
	display: flex;
	justify-content: space-between;
	margin: 0.75rem 0;
	padding: 0 0.5rem;
}

.progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	padding: 0.35rem;
	border-bottom: 2px solid #e5e7eb;
	color: #94a3b8;
}

.progress-step.active {
	border-color: #4f46e5;
	color: #1f2937;
}

.progress-step .step-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1rem;
}

.wizard-grid .full-width {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .wizard-grid {
        grid-template-columns: 1fr;
    }
}

.image-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.image-preview img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.image-preview input {
    flex: 1;
}

.branding-swatches {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.swatch-group,
.font-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
}

.color-chip {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: #e0e7ff;
}

.font-group span:last-child {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    color: #0f172a;
}

.preview-status {
    font-size: 0.85rem;
    margin: 0;
    color: #4b5563;
}

.preview-status[data-state="loading"] {
    color: #2563eb;
}

.preview-status[data-state="success"] {
    color: #15803d;
}

.preview-status[data-state="error"] {
    color: #b91c1c;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #eee;
    font-weight: 600;
    color: #333;
    background-color: transparent;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f8f9fa;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal footer */
.modal-footer {
    margin-top: 1rem;
    text-align: center;
    color: #666;
}

.modal-footer a {
    color: #007bff;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Edit Program Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1000;
    padding: 1.25rem;
}

.modal-overlay .modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.modal-body {
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.input-with-suffix {
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.input-suffix {
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    border-left: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
    color: #64748b;
    font-size: 0.875rem;
    white-space: nowrap;
}

.text-muted {
    color: #64748b;
}

.text-small {
    font-size: 0.875rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Plan Picker */
.plan-picker .toggle-btn {
    padding: 10px 20px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: transparent;
    color: var(--text, #e2e8f0);
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.plan-picker .toggle-btn:hover {
    background: #1e293b;
}
.plan-picker .toggle-btn.active {
    background: linear-gradient(135deg, var(--brand, #6ee7b7), var(--brand2, #a5b4fc));
    color: #052e16;
    border-color: transparent;
    font-weight: 600;
}
.plan-option-card:hover {
    border-color: var(--brand, #6ee7b7) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(110, 231, 183, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .program-actions {
        flex-direction: column;
    }

    .plan-options {
        grid-template-columns: 1fr !important;
    }
}
