/**
 * Financial Architect — Engagement & Pricing Styles (fa-engagement.css)
 * Version: 1.9.0
 */

/* ── Wrap ──────────────────────────────────────────────────────────────────── */
.fe-wrap { display: flex; flex-direction: column; gap: 18px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.fe-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fe-title    { font-size: 18px; font-weight: 800; color: var(--fa-navy); margin: 0 0 2px; }
.fe-subtitle { font-size: 12px; color: var(--fa-text-muted); margin: 0; }

.fe-engaged-badge {
	background: var(--fa-success-bg); color: var(--fa-success);
	border: 1px solid rgba(34,160,107,.3); border-radius: 20px;
	padding: 6px 16px; font-size: 13px; font-weight: 700;
}

/* ── Notices ──────────────────────────────────────────────────────────────── */
.fe-notice {
	padding: 12px 16px; border-radius: var(--fa-radius-sm);
	font-size: 13px; line-height: 1.5;
}
.fe-notice-warn {
	background: var(--fa-warning-bg);
	border: 1px solid rgba(217,119,6,.25);
	color: #92400e;
}

/* ── Status card ──────────────────────────────────────────────────────────── */
.fe-status-card {
	background: var(--fa-white); border: 1px solid var(--fa-border);
	border-radius: var(--fa-radius-lg); box-shadow: var(--fa-shadow);
	padding: 18px 22px; display: flex; align-items: center;
	justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border-left: 4px solid var(--fa-success);
}
.fe-status-left  { display: flex; align-items: center; gap: 14px; }
.fe-status-right { text-align: right; }
.fe-status-icon  { font-size: 28px; }
.fe-status-label {
	font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px;
	display: inline-block; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.4px;
}
.fe-status-tier  { font-size: 14px; font-weight: 700; color: var(--fa-navy); }
.fe-status-amount{ font-size: 20px; font-weight: 900; color: var(--fa-navy); }
.fe-status-date, .fe-status-ref { font-size: 12px; color: var(--fa-text-muted); }

/* Status badge colors */
.fe-s-pending   { background:#fef9c3; color:#92400e; }
.fe-s-paid      { background:var(--fa-success-bg); color:var(--fa-success); }
.fe-s-active    { background:var(--fa-info-bg);    color:var(--fa-info); }
.fe-s-agreement { background:#ede9fe; color:#7c3aed; }
.fe-s-failed    { background:var(--fa-danger-bg);  color:var(--fa-danger); }
.fe-s-cancelled { background:var(--fa-off-white);  color:var(--fa-text-muted); }

/* ── Intro card ───────────────────────────────────────────────────────────── */
.fe-intro-card {
	background: linear-gradient(135deg, var(--fa-navy) 0%, var(--fa-navy-mid) 100%);
	border-radius: var(--fa-radius-lg); padding: 24px 28px;
	display: flex; align-items: flex-start; gap: 20px; color: #fff;
}
.fe-intro-icon { font-size: 36px; flex-shrink: 0; }
.fe-intro-body h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.fe-intro-body p  { font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.6; margin: 0; }

/* ── Pricing tiers ────────────────────────────────────────────────────────── */
.fe-tiers {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}

.fe-tier {
	background: var(--fa-white); border: 1px solid var(--fa-border);
	border-radius: var(--fa-radius-lg); box-shadow: var(--fa-shadow);
	display: flex; flex-direction: column; overflow: hidden;
	transition: box-shadow 0.15s;
}
.fe-tier:hover { box-shadow: var(--fa-shadow-lg); }
.fe-tier-active { border-color: var(--fa-gold); border-top: 3px solid var(--fa-gold); }

.fe-tier-header {
	display: flex; align-items: center; gap: 12px;
	padding: 16px 18px; border-bottom: 1px solid var(--fa-border);
	background: var(--fa-off-white);
}

.fe-tier-icon { font-size: 24px; flex-shrink: 0; }
.fe-tier-meta { flex: 1; }
.fe-tier-name { font-size: 14px; font-weight: 800; color: var(--fa-navy); }
.fe-tier-type { font-size: 11px; color: var(--fa-text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.fe-tier-price {
	font-size: 20px; font-weight: 900; color: var(--fa-navy);
	white-space: nowrap; flex-shrink: 0;
}

.fe-tier-desc {
	padding: 14px 18px 0; font-size: 13px; color: var(--fa-text-mid);
	line-height: 1.6; flex: 1;
}

.fe-tier-features {
	list-style: none; padding: 12px 18px; margin: 0;
	display: flex; flex-direction: column; gap: 5px;
}
.fe-tier-features li {
	font-size: 12.5px; color: var(--fa-text-mid);
	display: flex; align-items: flex-start; gap: 6px;
}
.fe-tier-features li::before { display: none; }

.fe-tier-footer {
	padding: 14px 18px 16px; border-top: 1px solid var(--fa-border);
	background: var(--fa-off-white); margin-top: auto;
}

.fe-select-btn { width: 100%; justify-content: center; }

/* ── Disclaimer ───────────────────────────────────────────────────────────── */
.fe-disclaimer {
	font-size: 10.5px; color: var(--fa-text-muted); line-height: 1.5;
	background: var(--fa-off-white); border: 1px solid var(--fa-border);
	border-radius: var(--fa-radius-sm); padding: 10px 14px;
}

/* ── Admin panel ──────────────────────────────────────────────────────────── */
.fe-admin-panel {
	background: var(--fa-gold-pale); border: 1px solid rgba(201,162,39,.3);
	border-radius: var(--fa-radius-lg); padding: 16px 18px;
	display: flex; flex-direction: column; gap: 12px;
}

.fe-admin-header {
	font-size: 13px; font-weight: 700; color: #92400e;
	padding-bottom: 8px; border-bottom: 1px solid rgba(201,162,39,.25);
}

.fe-admin-loading { font-size: 13px; color: var(--fa-text-muted); }

.fe-payments-table {
	width: 100%; border-collapse: collapse; font-size: 13px;
}
.fe-payments-table th {
	background: var(--fa-navy); color: rgba(255,255,255,.85);
	padding: 8px 12px; text-align: left; font-size: 11px;
	text-transform: uppercase; letter-spacing: 0.4px;
}
.fe-payments-table td {
	padding: 8px 12px; border-bottom: 1px solid var(--fa-border);
}
.fe-payments-table tr:last-child td { border-bottom: none; }
.fe-payments-table tr:hover td { background: var(--fa-off-white); }

.fe-admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.fe-toast {
	position: fixed; bottom: 24px; right: 24px; z-index: 9999;
	padding: 12px 20px; border-radius: var(--fa-radius);
	font-size: 13.5px; font-weight: 600; box-shadow: var(--fa-shadow-lg);
	font-family: var(--fa-font); min-width: 260px; text-align: center;
}
.fe-toast-ok    { background: var(--fa-navy); color: #fff; }
.fe-toast-error { background: var(--fa-danger); color: #fff; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
	.fe-tiers { grid-template-columns: 1fr; }
}
