/* UMG Design System components. Loaded after tokens.css.
   Ummah family classes keep the brand-system names (umg-*, from brand-system/components.css).
   MAN family classes come from MANGo (UMG-Tab10/mvp/app.css) with a man- prefix.
   UmmahCube status labels come from UMG-UmmahCube/site/assets/cube.css.
   Every value that has a token reads it with var(); literals left here have no token. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font-ui); font-size: 1rem; line-height: 1.55; color: var(--ummah-ink); background: var(--ummah-surface); -webkit-font-smoothing: antialiased; }
.umg-scope { background: var(--ummah-surface); color: var(--ummah-ink); font-family: var(--font-ui); }
.man-scope { background: var(--man-surface); color: var(--man-ink); font-family: var(--font-man); font-size: 15px; line-height: 1.47; }
.cube-scope { background: var(--cube-ground); color: var(--cube-ink); font-family: var(--font-ui); }
.ds-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.ds-col { display: grid; gap: var(--space-4); padding: var(--space-4); }
.ds-label { font-size: 0.75rem; line-height: 1.2; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ummah-ink-secondary); }
.man-scope .ds-label { color: var(--man-ink-secondary); font-family: var(--font-man); }
.umg-arabic, [dir="rtl"] { font-family: var(--font-arabic); line-height: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: var(--focus-width) solid var(--ummah-focus); outline-offset: var(--focus-offset); }
@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-base: 0ms; --duration-slow: 0ms; --duration-slower: 0ms; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- layout utilities (components.css) ---------- */
.umg-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.umg-container-narrow { max-width: 720px; }
.umg-container-wide { max-width: 1400px; }
.umg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.umg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.umg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 1024px) { .umg-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .umg-grid-2, .umg-grid-3, .umg-grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .umg-container { padding: 0 var(--space-4); } }

/* ---------- Button: Ummah family (components.css) ---------- */
.umg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap-min); min-width: var(--tap-min); padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; line-height: 1.1;
  border-radius: var(--radius-md); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.umg-btn:focus-visible { outline: var(--focus-width) solid var(--ummah-focus); outline-offset: var(--focus-offset); }
.umg-btn:active { transform: translateY(1px); }
.umg-btn-primary { background-color: var(--ummah-action); color: var(--on-ummah-action); border-color: var(--ummah-action); }
.umg-btn-primary:hover { background-color: var(--ummah-action-hover); border-color: var(--ummah-action-hover); box-shadow: 0 4px 12px rgba(22, 101, 52, 0.30); }
.umg-btn-secondary { background-color: transparent; color: var(--ummah-action); border-color: var(--ummah-action); }
.umg-btn-secondary:hover { background-color: rgba(22, 101, 52, 0.06); }
.umg-btn-tertiary { background-color: var(--stone); color: var(--ink); border-color: transparent; }
.umg-btn-tertiary:hover { background-color: #d8d0c5; }
.umg-btn-ghost { background-color: rgba(250, 248, 243, 0.12); color: var(--cream); border-color: rgba(250, 248, 243, 0.30); }
.umg-btn-ghost:hover { background-color: rgba(250, 248, 243, 0.20); }
.umg-btn-danger { background-color: var(--red); color: #ffffff; border-color: var(--red); }
.umg-btn-danger:hover { background-color: #b91c1c; }
.umg-btn-sm { min-height: 36px; padding: var(--space-2) var(--space-4); font-size: 0.875rem; border-radius: var(--radius-sm); }
.umg-btn-lg { min-height: 52px; padding: var(--space-4) var(--space-8); font-size: 1.125rem; border-radius: var(--radius-lg); }
.umg-btn-xl { min-height: 60px; padding: var(--space-4) var(--space-10); font-size: 1.5rem; border-radius: var(--radius-lg); }
.umg-btn-pill { border-radius: var(--radius-pill); }
.umg-btn-full { width: 100%; }
.umg-btn:disabled, .umg-btn[aria-disabled="true"] { opacity: var(--disabled); cursor: not-allowed; pointer-events: none; }
[data-theme="dark"] .umg-btn-primary:hover { box-shadow: none; }
[data-theme="dark"] .umg-btn-secondary:hover { background-color: rgba(250, 248, 243, 0.1); }

/* ---------- Button: MAN family (MANGo .btn) ---------- */
.man-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap-min); padding: 0 18px; border-radius: var(--radius-md);
  font: 600 15px var(--font-man); cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap; transition: background var(--duration-fast) ease; }
.man-btn:focus-visible { outline: 2px solid var(--man-focus); outline-offset: 2px; }
.man-btn-primary { background: var(--man-action); color: var(--on-man-action); }
.man-btn-primary:hover { background: var(--man-action-hover); }
.man-btn-secondary { background: var(--man-surface-raised); color: var(--man-ink); border-color: var(--man-line-strong); }
.man-btn-secondary:hover { border-color: var(--man-ink-secondary); }
.man-btn-ghost { background: none; color: var(--man-ink); border: 0; padding: 0 10px; }
.man-btn-ghost:hover { background: var(--man-surface-sunken); }
.man-btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.man-btn-block { width: 100%; }

/* ---------- Badge (components.css) ---------- */
.umg-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3);
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; line-height: 1.2; border-radius: var(--radius-pill); white-space: nowrap; }
.umg-badge-forest  { background: rgba(22, 101, 52, 0.12); color: var(--forest); }
.umg-badge-gold    { background: var(--gold); color: var(--ink); }          /* source: white on gold, 2.78:1; ink per r1357 */
.umg-badge-emerald { background: rgba(6, 95, 70, 0.12); color: var(--emerald); }
.umg-badge-slate   { background: var(--slate); color: var(--cream); }
.umg-badge-stone   { background: var(--stone); color: var(--ink); }
.umg-badge-live    { background: var(--live-green); color: var(--ink); }    /* source: white on live-green, 2.39:1 */
[data-theme="dark"] .umg-badge-forest  { background: var(--status-live-bg); color: var(--status-live); }
[data-theme="dark"] .umg-badge-emerald { background: rgba(20, 184, 166, 0.14); color: var(--void-success); }

/* ---------- Status label: LIVE, PARTIAL, COMING (cube.css .st) ---------- */
.umg-status { font-style: normal; font-family: var(--font-ui); font-size: 0.75rem; line-height: 1.2; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.umg-status::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; border: 1.5px solid currentColor; flex: none; }
.umg-status-live { color: var(--status-live); }
.umg-status-live::before { background: currentColor; }
.umg-status-partial { color: var(--status-partial); }
.umg-status-partial::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.umg-status-coming { color: var(--status-coming); }
.man-scope .umg-status { font-family: var(--font-man); }

/* ---------- MAN status pill (MANGo .pill) ---------- */
.man-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill);
  font: 600 12px var(--font-man); white-space: nowrap; letter-spacing: 0.01em; }
.man-pill svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.man-pill-info    { color: var(--status-info);    background: var(--status-info-bg); }
.man-pill-warning { color: var(--status-warning); background: var(--status-warning-bg); }
.man-pill-live    { color: var(--status-live);    background: var(--status-live-bg); }
.man-pill-danger  { color: var(--status-danger);  background: var(--status-danger-bg); }
.man-pill-success { color: var(--status-success); background: var(--man-surface-raised); box-shadow: inset 0 0 0 1px currentColor; }
.man-pill-draft   { color: var(--man-pill-draft); background: var(--man-pill-draft-bg); }
.man-pill-done    { color: var(--man-pill-done);  background: var(--man-pill-done-bg); }
.man-pill-gold    { color: var(--man-gold-text);  background: var(--man-gold-soft); }

/* ---------- MAN ad stamp (MANGo .stamp; sits inside every banner, r2601, r2647) ---------- */
.man-stamp { display: inline-block; background: var(--man-stamp-paper); color: var(--man-stamp-ink); border-radius: var(--radius-sm);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; line-height: 1.2; white-space: nowrap; padding: 2px 5px; box-shadow: 0 0 0 1px rgba(17, 26, 46, 0.25); }
.man-stamp-dark { background: var(--man-stamp-ink); color: var(--man-stamp-paper); box-shadow: 0 0 0 1px rgba(248, 246, 241, 0.3); }
.man-stamp i { display: block; font-style: normal; font-weight: 500; }

/* ---------- Card (components.css; the star watermark is the signature texture) ---------- */
.umg-card { position: relative; background: var(--ummah-surface-raised); border: 1px solid var(--ummah-border-subtle); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow var(--duration-base) var(--ease); }
.umg-card::before { content: ''; position: absolute; bottom: -40px; right: -40px; width: 160px; height: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon fill='%23166534' points='100,10 114.27,65.56 163.64,36.36 134.44,85.73 190,100 134.44,114.27 163.64,163.64 114.27,134.44 100,190 85.73,134.44 36.36,163.64 65.56,114.27 10,100 65.56,85.73 36.36,36.36 85.73,65.56'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; opacity: var(--star-card); pointer-events: none; z-index: 0; }
.umg-card > * { position: relative; z-index: 1; }
.umg-card:hover { box-shadow: var(--shadow-md); }
.umg-card-elevated { box-shadow: var(--shadow-md); }
.umg-card-elevated:hover { box-shadow: var(--shadow-lg); }
.umg-card-hero { padding: var(--space-10) var(--space-8); border-radius: var(--radius-2xl); }
.umg-card h3 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; color: var(--ummah-ink); }
.umg-card p { margin: 0; color: var(--ummah-ink-secondary); max-width: 68ch; }
[data-theme="dark"] .umg-card, [data-theme="dark"] .umg-card:hover, [data-theme="dark"] .umg-card-elevated { box-shadow: none; }
[data-theme="dark"] .umg-card::before { opacity: var(--star-watermark-void);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon fill='%23DFA032' points='100,10 114.27,65.56 163.64,36.36 134.44,85.73 190,100 134.44,114.27 163.64,163.64 114.27,134.44 100,190 85.73,134.44 36.36,163.64 65.56,114.27 10,100 65.56,85.73 36.36,36.36 85.73,65.56'/%3E%3C/svg%3E"); }

/* MAN card (MANGo .card) */
.man-card { background: var(--man-surface-raised); border: 1px solid var(--man-line); border-radius: var(--radius-md); box-shadow: var(--man-shadow-sm); padding: 16px; }
@media (min-width: 768px) { .man-card { padding: 20px; } }
.man-card h3 { margin: 0 0 4px; font: 600 16px/22px var(--font-man); letter-spacing: -0.01em; color: var(--man-ink); }
.man-card p { margin: 0; color: var(--man-ink-secondary); }

/* ---------- Nav (components.css) ---------- */
.umg-nav { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-6); height: 64px;
  background: rgba(250, 248, 243, 0.92); backdrop-filter: blur(12px) saturate(1.5); -webkit-backdrop-filter: blur(12px) saturate(1.5); border-bottom: 1px solid var(--ummah-border-subtle); }
.umg-nav-brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; flex-shrink: 0; min-height: var(--tap-min); }
.umg-nav-seal { width: 36px; height: 36px; display: block; color: var(--ummah-star); fill: currentColor; }
.umg-nav-property-name { font-family: var(--font-ui); font-weight: 600; font-size: 1.125rem; color: var(--ummah-ink); letter-spacing: -0.015em; }
.umg-nav-links { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; flex: 1; }
.umg-nav-link { display: inline-flex; align-items: center; min-height: var(--tap-min); font-family: var(--font-ui); font-weight: 500; font-size: 0.875rem; color: var(--ummah-ink-secondary);
  text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); transition: color var(--duration-fast), background-color var(--duration-fast); }
.umg-nav-link:hover { color: var(--ummah-action); background-color: rgba(22, 101, 52, 0.06); }
.umg-nav-link.active, .umg-nav-link[aria-current="page"] { color: var(--ummah-action); font-weight: 600; }
.umg-nav-cta { margin-left: auto; flex-shrink: 0; }
[data-theme="dark"] .umg-nav { background: rgba(15, 26, 51, 0.97); }
[data-theme="dark"] .umg-nav-link:hover { background-color: rgba(250, 248, 243, 0.08); }
@media (max-width: 640px) { .umg-nav { padding: 0 var(--space-4); height: 56px; } .umg-nav-links { display: none; } }

/* ---------- Form field: Ummah family (components.css) ---------- */
.umg-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.umg-label { display: block; font-family: var(--font-ui); font-size: 0.875rem; font-weight: 500; color: var(--ummah-ink); }
.umg-input { display: block; width: 100%; min-height: var(--tap-min); padding: var(--space-3) var(--space-4); font-family: var(--font-ui); font-size: 1rem; line-height: 1.5;
  color: var(--ummah-ink); background-color: var(--ummah-surface-raised); border: 1.5px solid var(--ummah-border); border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease); }
.umg-input::placeholder { color: var(--ummah-ink-muted); }
.umg-input:hover { border-color: var(--ummah-border-strong); }
.umg-input:focus { border-color: var(--ummah-focus); box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15); }
.umg-input:focus-visible { outline: 2px solid var(--ummah-focus); outline-offset: 1px; }
.umg-input:disabled { background-color: var(--ummah-surface-sunken); opacity: 0.6; cursor: not-allowed; }
.umg-input[aria-invalid="true"] { border-color: var(--red); }
.umg-select { appearance: none; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: var(--space-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230F1F17'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); }
.umg-textarea { min-height: 120px; resize: vertical; }
.umg-field-hint { font-size: 0.875rem; color: var(--ummah-ink-secondary); line-height: 1.35; }   /* source: text-muted, 2.77:1 */
.umg-field-error { font-size: 0.875rem; color: var(--red); line-height: 1.35; font-weight: 600; }
[data-theme="dark"] .umg-input:focus { box-shadow: none; }
[data-theme="dark"] .umg-input[aria-invalid="true"] { border-color: var(--status-danger); }
[data-theme="dark"] .umg-field-error { color: var(--status-danger); }
[data-theme="dark"] .umg-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FAF8F3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); }

/* Form field: MAN family (MANGo .field) */
.man-field { display: block; }
.man-field > label { display: block; font: 600 14px/20px var(--font-man); margin-bottom: 6px; color: var(--man-ink); }
.man-input { width: 100%; min-height: var(--tap-min); padding: 10px 12px; font: 400 16px var(--font-man); color: var(--man-ink); background: var(--man-surface-raised);
  border: 1px solid var(--man-line-strong); border-radius: 6px; }
.man-input:focus { border-color: var(--man-focus); }
.man-input:focus-visible { outline: 2px solid var(--man-focus); outline-offset: 1px; }
.man-field-bad .man-input { border-color: var(--status-danger); box-shadow: 0 0 0 1px var(--status-danger); }
.man-field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--status-danger); font: 600 13px/18px var(--font-man); margin-top: 6px; }
.man-field-hint { font: 400 13px/18px var(--font-man); color: var(--man-ink-muted); margin-top: 6px; }
.man-money { position: relative; }
.man-money .man-input { padding-left: 26px; }
.man-money::before { content: "$"; position: absolute; left: 12px; top: 11px; color: var(--man-ink-secondary); font-weight: 500; }

/* ---------- Hero (components.css; display face per r1717, no eyebrow per DESIGN-STANDARD 1b) ---------- */
.umg-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-24) var(--space-6);
  background-color: var(--ummah-surface); position: relative; overflow: hidden; }
.umg-hero::before { content: ''; position: absolute; inset: 0; background-size: 48px 48px; background-repeat: repeat; opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon fill='%23166534' points='100,10 114.27,65.56 163.64,36.36 134.44,85.73 190,100 134.44,114.27 163.64,163.64 114.27,134.44 100,190 85.73,134.44 36.36,163.64 65.56,114.27 10,100 65.56,85.73 36.36,36.36 85.73,65.56'/%3E%3C/svg%3E"); }
.umg-hero > * { position: relative; z-index: 1; }
.umg-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 9.4vw, 5.4rem); font-weight: 500; line-height: 1.0; letter-spacing: -0.028em;
  color: var(--ummah-ink); max-width: 900px; margin: 0 0 var(--space-6); text-wrap: balance; }
.umg-hero-sub { font-family: var(--font-ui); font-size: 1.125rem; font-weight: 400; line-height: 1.55; color: var(--ummah-ink-secondary); max-width: 60ch; margin: 0 0 var(--space-10); text-wrap: pretty; }
[data-theme="dark"] .umg-hero::before { opacity: var(--star-watermark-void);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon fill='%23DFA032' points='100,10 114.27,65.56 163.64,36.36 134.44,85.73 190,100 134.44,114.27 163.64,163.64 114.27,134.44 100,190 85.73,134.44 36.36,163.64 65.56,114.27 10,100 65.56,85.73 36.36,36.36 85.73,65.56'/%3E%3C/svg%3E"); }
@media (max-width: 640px) { .umg-hero { padding: var(--space-16) var(--space-4); } }

/* ---------- Divider (components.css) ---------- */
.umg-divider { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-12) 0; }
.umg-divider::before, .umg-divider::after { content: ''; flex: 1; height: 1px; background: var(--ummah-border-subtle); }
.umg-divider-star { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.6; background-size: contain; background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon fill='%23C8912E' points='100,10 114.27,65.56 163.64,36.36 134.44,85.73 190,100 134.44,114.27 163.64,163.64 114.27,134.44 100,190 85.73,134.44 36.36,163.64 65.56,114.27 10,100 65.56,85.73 36.36,36.36 85.73,65.56'/%3E%3C/svg%3E"); }
[data-theme="dark"] .umg-divider::before, [data-theme="dark"] .umg-divider::after { background: var(--ummah-border); }

/* ---------- Toast (components.css) ---------- */
.umg-toast { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  font-family: var(--font-ui); font-size: 0.875rem; line-height: 1.35; max-width: 32rem; }
.umg-toast b { font-weight: 600; }
.umg-toast svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.umg-toast-success { background: var(--forest); color: var(--cream); }
.umg-toast-info    { background: var(--slate);  color: var(--cream); }
.umg-toast-warning { background: var(--gold);   color: var(--ink); }   /* source: white on gold, 2.78:1 */
.umg-toast-error   { background: var(--red);    color: #ffffff; }
[data-theme="dark"] .umg-toast { box-shadow: none; }

/* ---------- Help Mode banner (components.css; admin only) ---------- */
.umg-help-mode-banner { position: fixed; top: 0; left: 0; right: 0; height: 44px; z-index: var(--z-help-mode); background-color: var(--red); color: #ffffff;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 0 var(--space-5); font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600; }
.umg-help-mode-banner + * { padding-top: 44px; }
.umg-help-mode-banner a, .umg-help-mode-banner button { color: #ffffff; font: inherit; background: none; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius-sm); min-height: 32px; padding: 0 var(--space-3); cursor: pointer; }
.umg-help-mode-banner :focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* ---------- Tier card, the price block (components.css) ---------- */
.umg-tier-card { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8); border-radius: var(--radius-xl);
  border: 1.5px solid var(--ummah-border-subtle); background: var(--ummah-surface); position: relative; overflow: hidden; }
.umg-tier-card.featured { border-color: var(--ummah-action); background: var(--ummah-surface-raised); box-shadow: var(--shadow-md); }
.umg-tier-name { margin: 0; text-wrap: balance; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; color: var(--ummah-ink); }
.umg-tier-price { margin: 0; text-wrap: balance; font-family: var(--font-display); font-size: 3rem; line-height: 1.06; font-weight: 500; letter-spacing: -0.025em; color: var(--ummah-ink); }
.umg-tier-price-note { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ummah-ink-secondary); }   /* source: text-muted, 2.77:1 */
.umg-tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.umg-tier-feature { display: flex; align-items: baseline; gap: var(--space-3); font-size: 0.875rem; color: var(--ummah-ink-secondary); }
.umg-tier-feature b { color: var(--ummah-ink); font-weight: 600; }
.umg-tier-feature .umg-status { margin-left: auto; }
[data-theme="dark"] .umg-tier-card.featured { box-shadow: none; }

/* ---------- Footer (components.css) ---------- */
.umg-footer { padding: var(--space-16) var(--space-6) var(--space-8); background-color: var(--ink); color: var(--cream); }
.umg-footer a { color: rgba(250, 248, 243, 0.6); text-decoration: none; font-size: 0.875rem; transition: color var(--duration-fast); display: inline-flex; align-items: center; min-height: var(--tap-min); }
.umg-footer a:hover { color: var(--cream); }
.umg-footer-tagline { margin: 0 0 var(--space-6); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; font-weight: 500; color: var(--gold); }
.umg-footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); list-style: none; margin: 0; padding: 0; }
.umg-footer-fine { margin: var(--space-6) 0 0; font-size: 0.875rem; color: rgba(250, 248, 243, 0.6); }
[data-theme="dark"] .umg-footer { border-top: 1px solid var(--ummah-border); }
