﻿/* ============================================================
   AxcessAfrica theme layer
   Loads AFTER alice template css and overrides its palette with
   an African identity: terracotta, Sahara gold, savanna green,
   earth browns, kente + mudcloth patterns, adinkra motifs.
   ============================================================ */

:root {
  --aa-terracotta: #c1440e;
  --aa-sunset: #e2711d;
  --aa-gold: #f2a900;
  --aa-green: #0b6e4f;
  --aa-green-deep: #084c37;
  --aa-red: #ce1126;
  --aa-earth: #3e2723;
  --aa-ink: #26201a;
  --aa-sand: #f7f1e5;
  --aa-sand-2: #efe5d3;
  --aa-paper: #fffdf8;
  --aa-white: #ffffff;
  --aa-kente: repeating-linear-gradient(90deg,
      var(--aa-gold) 0 18px, var(--aa-ink) 18px 24px,
      var(--aa-green) 24px 42px, var(--aa-ink) 42px 48px,
      var(--aa-red) 48px 66px, var(--aa-ink) 66px 72px,
      var(--aa-terracotta) 72px 90px, var(--aa-ink) 90px 96px);
  --aa-shadow: 0 12px 34px rgba(38, 32, 26, .14);
  --aa-radius: 14px;
}

/* ---------- Re-color the Alice template accent ---------- */
.bg-accent { background: linear-gradient(135deg, var(--aa-terracotta) 0%, var(--aa-sunset) 55%, var(--aa-gold) 130%) !important; }
.text-primary, a.text-primary { color: var(--aa-terracotta) !important; }
.button-primary, .button-primary:focus { background-color: var(--aa-terracotta); border-color: var(--aa-terracotta); color: #fff; }
.button-primary:hover, .button-primary:active { background-color: var(--aa-green); border-color: var(--aa-green); color: #fff; }
.button-secondary, .button-secondary:focus { background-color: var(--aa-gold); border-color: var(--aa-gold); color: var(--aa-ink); }
.button-secondary:hover, .button-secondary:active { background-color: var(--aa-sunset); border-color: var(--aa-sunset); color: #fff; }
.badge { background: var(--aa-green); color: #fff; }
body { background: var(--aa-paper); color: #4b4237; }

/* ============================================================
   Marketing navbar (template-look, Blazor-driven)
   ============================================================ */
.aa-navbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 4vw;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(62, 39, 35, .08);
}
.aa-navbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: var(--aa-kente); background-size: 200% 100%;
  animation: aa-kente-slide 30s linear infinite; opacity: .9;
}
.aa-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.aa-brand:hover { text-decoration: none; }
.aa-brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--aa-gold), var(--aa-terracotta), var(--aa-green), var(--aa-gold));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  font-family: Muli, sans-serif; box-shadow: 0 4px 12px rgba(193, 68, 14, .35);
  animation: aa-drum 6s ease-in-out infinite;
}
.aa-brand-name { font-family: Muli, sans-serif; font-weight: 800; font-size: 20px; color: var(--aa-ink); letter-spacing: .5px; }
.aa-brand-name span { color: var(--aa-terracotta); }
.aa-nav-links { display: flex; gap: 22px; margin: 0 auto; }
.aa-nav-links a { color: #5c5044; font-weight: 600; font-size: 14px; text-decoration: none; position: relative; padding: 6px 2px; }
.aa-nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--aa-gold); transition: width .25s ease;
}
.aa-nav-links a:hover { color: var(--aa-terracotta); }
.aa-nav-links a:hover::after, .aa-nav-links a.active::after { width: 100%; }
.aa-nav-links a.active { color: var(--aa-terracotta); }
.aa-nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

.aa-btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: Muli, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .4px;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.aa-btn:hover { transform: translateY(-2px); text-decoration: none; }
.aa-btn-primary { background: var(--aa-terracotta); color: #fff; box-shadow: 0 8px 20px rgba(193, 68, 14, .35); }
.aa-btn-primary:hover { background: var(--aa-sunset); color: #fff; box-shadow: 0 12px 26px rgba(226, 113, 29, .4); }
.aa-btn-gold { background: var(--aa-gold); color: var(--aa-ink); box-shadow: 0 8px 20px rgba(242, 169, 0, .35); }
.aa-btn-gold:hover { background: #ffbe1f; color: var(--aa-ink); }
.aa-btn-green { background: var(--aa-green); color: #fff; box-shadow: 0 8px 20px rgba(11, 110, 79, .32); }
.aa-btn-green:hover { background: var(--aa-green-deep); color: #fff; }
.aa-btn-outline { border-color: var(--aa-terracotta); color: var(--aa-terracotta); background: transparent; }
.aa-btn-outline:hover { background: var(--aa-terracotta); color: #fff; }
.aa-btn-ghost { color: #5c5044; background: transparent; }
.aa-btn-ghost:hover { color: var(--aa-terracotta); }
.aa-btn-lg { padding: 16px 34px; font-size: 16px; }
.aa-btn-sm { padding: 8px 18px; font-size: 13px; }

/* ============================================================
   Hero
   ============================================================ */
.aa-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(242, 169, 0, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(11, 110, 79, .18), transparent 55%),
    linear-gradient(160deg, var(--aa-sand) 0%, var(--aa-paper) 60%);
  padding: 90px 4vw 70px;
}
.aa-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; max-width: 1280px; margin: 0 auto; }
.aa-hero h1 { font-family: Muli, sans-serif; font-weight: 300; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; color: var(--aa-ink); margin-bottom: 22px; }
.aa-hero h1 .fw-extra-black { font-weight: 900; }
.aa-hero h1 .aa-gradient-text {
  background: linear-gradient(90deg, var(--aa-terracotta), var(--aa-gold), var(--aa-green), var(--aa-terracotta));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: aa-shimmer 8s linear infinite;
}
.aa-hero-sub { font-size: 19px; line-height: 1.65; color: #6a5d4e; max-width: 560px; margin-bottom: 34px; }
.aa-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.aa-hero-meta { margin-top: 34px; display: flex; gap: 30px; flex-wrap: wrap; }
.aa-hero-meta .item { display: flex; align-items: center; gap: 10px; color: #6a5d4e; font-size: 14px; font-weight: 600; }
.aa-hero-meta .item .mdi { color: var(--aa-green); font-size: 20px; }

/* Phone mockup rendered in pure CSS, floating */
.aa-phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.aa-phone-stage::before {
  content: ""; position: absolute; inset: 8% 6%;
  background:
    radial-gradient(circle at 30% 30%, rgba(242, 169, 0, .35), transparent 45%),
    radial-gradient(circle at 72% 68%, rgba(193, 68, 14, .28), transparent 50%);
  filter: blur(10px); border-radius: 50%;
  animation: aa-float 9s ease-in-out infinite;
}
.aa-phone {
  position: relative; width: 300px; height: 600px; border-radius: 42px;
  background: var(--aa-ink); padding: 12px;
  box-shadow: 0 40px 80px rgba(38, 32, 26, .35), inset 0 0 0 2px rgba(255, 255, 255, .06);
  animation: aa-float 7s ease-in-out infinite;
}
.aa-phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--aa-sand); display: flex; flex-direction: column; }
.aa-phone-top { background: linear-gradient(135deg, var(--aa-terracotta), var(--aa-sunset)); color: #fff; padding: 16px 14px 12px; display: flex; align-items: center; gap: 10px; }
.aa-phone-top .name { font-weight: 700; font-size: 13px; }
.aa-phone-top .state { font-size: 10px; opacity: .85; }
.aa-phone-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.aa-phone-bubble { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 11.5px; line-height: 1.45; box-shadow: 0 2px 6px rgba(38, 32, 26, .08); opacity: 0; animation: aa-pop-in .5s ease forwards; }
.aa-phone-bubble.in { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; }
.aa-phone-bubble.out { background: #dcefe7; border-bottom-right-radius: 4px; align-self: flex-end; }
.aa-phone-bubble:nth-child(1) { animation-delay: .6s; }
.aa-phone-bubble:nth-child(2) { animation-delay: 1.5s; }
.aa-phone-bubble:nth-child(3) { animation-delay: 2.4s; }
.aa-phone-bubble:nth-child(4) { animation-delay: 3.3s; }
.aa-phone-bubble:nth-child(5) { animation-delay: 4.2s; }

/* ============================================================
   Kente band + section helpers
   ============================================================ */
.aa-kente-band { height: 10px; background: var(--aa-kente); background-size: 200% 100%; animation: aa-kente-slide 24s linear infinite; }
.aa-section { padding: 84px 4vw; }
.aa-section-sand { background: var(--aa-sand); }
.aa-section-dark { background: linear-gradient(150deg, var(--aa-ink), var(--aa-earth)); color: #d9cbb8; }
.aa-section-dark h2, .aa-section-dark h3 { color: #fff; }
.aa-container { max-width: 1280px; margin: 0 auto; }
.aa-section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.aa-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11, 110, 79, .1); color: var(--aa-green);
  font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.aa-section-dark .aa-eyebrow { background: rgba(242, 169, 0, .16); color: var(--aa-gold); }
.aa-section-head h2 { font-family: Muli, sans-serif; font-weight: 900; font-size: clamp(28px, 3.4vw, 42px); color: var(--aa-ink); margin-bottom: 14px; }
.aa-section-dark .aa-section-head h2 { color: #fff; }
.aa-section-head p { font-size: 17px; color: #7a6c5b; line-height: 1.7; }
.aa-section-dark .aa-section-head p { color: #bfae97; }

/* Feature cards */
.aa-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.aa-feature-card {
  background: #fff; border-radius: var(--aa-radius); padding: 32px 26px;
  border: 1px solid rgba(62, 39, 35, .07); box-shadow: 0 4px 14px rgba(38, 32, 26, .05);
  transition: transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden;
}
.aa-feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--aa-kente); opacity: 0; transition: opacity .25s ease;
}
.aa-feature-card:hover { transform: translateY(-8px); box-shadow: var(--aa-shadow); }
.aa-feature-card:hover::before { opacity: 1; }
.aa-feature-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 27px; color: #fff; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--aa-terracotta), var(--aa-sunset));
  box-shadow: 0 8px 18px rgba(193, 68, 14, .3);
}
.aa-feature-card:nth-child(3n+2) .aa-feature-icon { background: linear-gradient(135deg, var(--aa-green), #159970); box-shadow: 0 8px 18px rgba(11, 110, 79, .3); }
.aa-feature-card:nth-child(3n) .aa-feature-icon { background: linear-gradient(135deg, var(--aa-gold), #ffc93d); color: var(--aa-ink); box-shadow: 0 8px 18px rgba(242, 169, 0, .3); }
.aa-feature-card h4 { font-family: Muli, sans-serif; font-weight: 800; font-size: 19px; color: var(--aa-ink); margin-bottom: 10px; }
.aa-feature-card p { font-size: 14.5px; color: #7a6c5b; line-height: 1.65; margin: 0; }

/* Monuments */
.aa-monument-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.aa-monument-card {
  position: relative; border-radius: var(--aa-radius); overflow: hidden; min-height: 240px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  color: #fff; text-decoration: none; isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.aa-monument-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--aa-shadow); color: #fff; text-decoration: none; }
.aa-monument-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(20, 14, 8, .85)); }
.aa-monument-card .art { position: absolute; inset: 0; z-index: -2; transition: transform .5s ease; }
.aa-monument-card:hover .art { transform: scale(1.08); }
.aa-monument-card h4 { font-family: Muli, sans-serif; font-weight: 800; font-size: 20px; margin: 0 0 4px; color: #fff; }
.aa-monument-card p { font-size: 12.5px; margin: 0; opacity: .85; }
.aa-monument-card .tag { position: absolute; top: 16px; left: 16px; background: rgba(242,169,0,.92); color: var(--aa-ink); font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .5px; }
/* CSS-art monument silhouettes */
.art-sky-1 { background: linear-gradient(180deg, #f7b733, #c1440e 70%, #6b2405); }
.art-sky-2 { background: linear-gradient(180deg, #0e3b43, #0b6e4f 75%, #06301f); }
.art-sky-3 { background: linear-gradient(180deg, #2c1a4d, #b33939 80%, #4d1414); }
.art-sky-4 { background: linear-gradient(180deg, #f2a900, #e2711d 65%, #7a3407); }
.art-sky-5 { background: linear-gradient(180deg, #355c7d, #6c5b7b 65%, #2f2440); }
.art-sky-6 { background: linear-gradient(180deg, #ffd194, #d04a02 75%, #5e1f00); }
.aa-monument-card .art::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: rgba(20, 12, 6, .82); }
.art-pyramid::before { clip-path: polygon(18% 100%, 44% 22%, 66% 100%, 58% 100%, 80% 45%, 100% 100%, 0 100%); }
.art-kilimanjaro::before { clip-path: polygon(0 100%, 18% 55%, 33% 68%, 52% 18%, 62% 32%, 74% 24%, 100% 100%); }
.art-mosque::before { clip-path: polygon(0 100%, 8% 58%, 12% 58%, 14% 40%, 18% 58%, 30% 58%, 34% 30%, 40% 58%, 55% 58%, 58% 22%, 64% 58%, 76% 58%, 80% 42%, 84% 58%, 92% 58%, 94% 46%, 97% 58%, 100% 100%); }
.art-zimbabwe::before { clip-path: polygon(0 100%, 5% 62%, 22% 62%, 25% 34%, 33% 34%, 36% 62%, 52% 62%, 55% 48%, 70% 48%, 73% 62%, 88% 62%, 91% 40%, 96% 40%, 100% 62%, 100% 100%); }
.art-table::before { clip-path: polygon(0 100%, 12% 52%, 22% 40%, 78% 40%, 90% 55%, 100% 100%); }
.art-lalibela::before { clip-path: polygon(0 100%, 14% 66%, 24% 66%, 24% 44%, 40% 28%, 46% 28%, 46% 20%, 54% 20%, 54% 28%, 60% 28%, 76% 44%, 76% 66%, 86% 66%, 100% 100%); }

/* Nigerian wonders */
.art-sky-7 { background: linear-gradient(180deg, #f9a825, #bf5b0b 70%, #4a2005); }
.art-sky-8 { background: linear-gradient(180deg, #90caf9, #2e7d32 72%, #103913); }
.art-sky-9 { background: linear-gradient(180deg, #0d3b2e, #1b8a5a 78%, #062c1c); }
.art-sky-10 { background: linear-gradient(100deg, #e2711d 0 46%, #37b6d2 54% 100%); }
.art-sky-11 { background: linear-gradient(180deg, #b39ddb, #4527a0 75%, #1a0f40); }
.art-sky-12 { background: linear-gradient(180deg, #ffcc80, #8d3b0e 78%, #3d1704); }
/* Zuma Rock — the monolith gateway */
.art-zuma::before { clip-path: polygon(0 100%, 10% 82%, 18% 62%, 26% 40%, 36% 22%, 48% 14%, 58% 16%, 68% 26%, 76% 44%, 84% 66%, 92% 84%, 100% 100%); }
/* Yankari — elephant on the savanna */
.art-yankari::before { clip-path: polygon(0 100%, 0 76%, 6% 74%, 10% 60%, 20% 50%, 34% 46%, 48% 48%, 56% 42%, 66% 44%, 72% 52%, 76% 64%, 74% 80%, 70% 80%, 70% 62%, 66% 58%, 64% 100%, 56% 100%, 55% 74%, 38% 76%, 37% 100%, 28% 100%, 26% 74%, 14% 76%, 13% 100%); }
/* Lekki — canopy walkway between pylons */
.art-lekki::before { clip-path: polygon(0 100%, 0 66%, 7% 60%, 9% 34%, 13% 34%, 15% 62%, 32% 72%, 50% 76%, 68% 72%, 85% 62%, 87% 34%, 91% 34%, 93% 60%, 100% 66%, 100% 100%); }
/* Ikogosi — warm & cold springs meeting between hills (told by the split sky) */
.art-ikogosi::before { clip-path: polygon(0 100%, 0 58%, 16% 44%, 32% 62%, 46% 40%, 50% 40%, 54% 46%, 68% 60%, 84% 42%, 100% 56%, 100% 100%); }
/* Ado Awaye — the suspended lake atop a flat mountain */
.art-adoawaye::before { clip-path: polygon(0 100%, 12% 74%, 26% 46%, 34% 32%, 40% 28%, 62% 28%, 68% 34%, 78% 52%, 90% 78%, 100% 100%); }
/* Obudu — rolling hills of the Oshie Ridge */
.art-obudu::before { clip-path: polygon(0 100%, 0 70%, 10% 56%, 24% 66%, 38% 46%, 52% 60%, 66% 42%, 80% 56%, 92% 46%, 100% 52%, 100% 100%); }
/* Osun-Osogbo — the sacred forest treeline */
.art-osun::before { clip-path: polygon(0 100%, 0 62%, 5% 60%, 8% 40%, 12% 60%, 18% 58%, 22% 32%, 28% 58%, 34% 60%, 38% 42%, 44% 60%, 51% 58%, 56% 28%, 62% 58%, 69% 60%, 74% 44%, 80% 60%, 87% 58%, 91% 36%, 95% 58%, 100% 56%, 100% 100%); }
/* Sungbo's Eredo & Benin Walls — the great earthworks */
.art-eredo::before { clip-path: polygon(0 100%, 0 64%, 6% 64%, 6% 52%, 12% 52%, 12% 64%, 22% 64%, 22% 52%, 28% 52%, 28% 64%, 38% 64%, 38% 52%, 44% 52%, 44% 64%, 54% 64%, 54% 52%, 60% 52%, 60% 64%, 70% 64%, 70% 52%, 76% 52%, 76% 64%, 86% 64%, 86% 52%, 92% 52%, 92% 64%, 100% 64%, 100% 100%); }
/* Nsude — stepped clay pyramids of the Udi highlands */
.art-nsude::before { clip-path: polygon(0 100%, 6% 100%, 6% 74%, 12% 74%, 12% 52%, 18% 52%, 18% 36%, 26% 36%, 26% 52%, 32% 52%, 32% 74%, 38% 74%, 38% 100%, 50% 100%, 50% 80%, 56% 80%, 56% 60%, 62% 60%, 62% 44%, 70% 44%, 70% 60%, 76% 60%, 76% 80%, 82% 80%, 82% 100%, 100% 100%); }

/* Ubuntu / stats strip */
.aa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.aa-stat h3 { font-family: Muli, sans-serif; font-weight: 900; font-size: 44px; color: var(--aa-gold); margin-bottom: 4px; }
.aa-stat p { color: #bfae97; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.aa-adinkra-divider { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 40px 0; color: var(--aa-gold); }
.aa-adinkra-divider::before, .aa-adinkra-divider::after { content: ""; height: 2px; width: min(180px, 22vw); background: linear-gradient(90deg, transparent, var(--aa-gold)); }
.aa-adinkra-divider::after { background: linear-gradient(90deg, var(--aa-gold), transparent); }
.aa-adinkra-sun {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, var(--aa-gold) 32%, transparent 36%),
    repeating-conic-gradient(var(--aa-gold) 0 8deg, transparent 8deg 30deg);
  animation: aa-spin 24s linear infinite;
}

/* Footer */
.aa-footer { background: var(--aa-ink); color: #a89880; padding: 60px 4vw 0; }
.aa-footer a { color: #cbbba2; text-decoration: none; }
.aa-footer a:hover { color: var(--aa-gold); }
.aa-footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.aa-footer h5 { color: #fff; font-family: Muli, sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.aa-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.aa-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; font-size: 13px; }

/* ============================================================
   Workspace shell (the app)
   ============================================================ */
.ws-shell { display: flex; height: 100vh; overflow: hidden; background: var(--aa-sand); }
.ws-rail {
  width: 76px; background: linear-gradient(180deg, var(--aa-ink), var(--aa-earth));
  display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; flex-shrink: 0;
}
.ws-rail .aa-brand-mark { width: 44px; height: 44px; margin-bottom: 14px; }
.ws-rail-item {
  width: 56px; padding: 9px 0 7px; border-radius: 12px; text-align: center;
  color: #a89880; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.ws-rail-item .mdi { font-size: 22px; display: block; line-height: 1.2; }
.ws-rail-item span { font-size: 9.5px; font-weight: 700; letter-spacing: .3px; }
.ws-rail-item:hover { color: var(--aa-gold); text-decoration: none; transform: translateY(-2px); }
.ws-rail-item.active { background: rgba(242, 169, 0, .16); color: var(--aa-gold); }
.ws-rail-spacer { flex: 1; }
.ws-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; position: relative;
}
.ws-avatar.ring { box-shadow: 0 0 0 2px var(--aa-sand), 0 0 0 4.5px var(--aa-gold); }
.ws-avatar .presence {
  position: absolute; bottom: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid #fff; background: #9aa0a6;
}
.ws-avatar .presence.online { background: #23a55a; animation: aa-pulse-dot 2.4s ease-in-out infinite; }

.ws-sidebar {
  width: 340px; background: var(--aa-paper); border-right: 1px solid rgba(62, 39, 35, .09);
  display: flex; flex-direction: column; flex-shrink: 0; min-width: 0;
}
.ws-sidebar-head { padding: 18px 18px 12px; }
.ws-sidebar-head h3 { font-family: Muli, sans-serif; font-weight: 900; font-size: 22px; color: var(--aa-ink); margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
.ws-search {
  display: flex; align-items: center; gap: 8px; background: var(--aa-sand);
  border-radius: 999px; padding: 9px 16px; color: #8d7f6c; font-size: 13.5px;
}
.ws-search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 13.5px; color: var(--aa-ink); }
.ws-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Stories strip */
.aa-stories { display: flex; gap: 14px; padding: 6px 18px 14px; overflow-x: auto; scrollbar-width: none; }
.aa-stories::-webkit-scrollbar { display: none; }
.aa-story { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: #7a6c5b; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.aa-story .ws-avatar { width: 48px; height: 48px; }
.aa-story:hover { color: var(--aa-terracotta); }

/* Conversation list */
.chat-list { flex: 1; overflow-y: auto; }
.chat-list-item {
  display: flex; gap: 12px; padding: 12px 18px; cursor: pointer; align-items: center;
  border-left: 3px solid transparent; transition: background .15s ease;
}
.chat-list-item:hover { background: var(--aa-sand); }
.chat-list-item.active { background: #f3e9d7; border-left-color: var(--aa-terracotta); }
.chat-list-main { flex: 1; min-width: 0; }
.chat-list-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chat-list-top .name { font-weight: 700; font-size: 14.5px; color: var(--aa-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-top .time { font-size: 11px; color: #a3937e; flex-shrink: 0; }
.chat-list-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.chat-list-bottom .preview { font-size: 12.5px; color: #8d7f6c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread {
  min-width: 20px; height: 20px; border-radius: 999px; background: var(--aa-green); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; flex-shrink: 0;
}

/* Chat pane */
.chat-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; background:
    linear-gradient(rgba(247, 241, 229, .93), rgba(247, 241, 229, .93)),
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(193, 68, 14, .05) 34px 36px),
    repeating-linear-gradient(-45deg, transparent 0 34px, rgba(11, 110, 79, .05) 34px 36px);
}
.chat-header {
  display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  background: var(--aa-paper); border-bottom: 1px solid rgba(62, 39, 35, .09);
}
.chat-header .titles { flex: 1; min-width: 0; }
.chat-header .titles .name { font-weight: 800; font-size: 15.5px; color: var(--aa-ink); font-family: Muli, sans-serif; }
.chat-header .titles .sub { font-size: 12px; color: var(--aa-green); font-weight: 600; }
.chat-header-actions { display: flex; gap: 6px; }
.chat-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  color: #8d7f6c; font-size: 20px; cursor: pointer; display: grid; place-items: center;
  transition: background .18s ease, color .18s ease;
}
.chat-icon-btn:hover { background: var(--aa-sand); color: var(--aa-terracotta); }
.chat-e2ee {
  text-align: center; margin: 14px auto 4px; max-width: 480px; font-size: 11.5px;
  background: rgba(242, 169, 0, .16); color: #8a6100; padding: 7px 16px; border-radius: 10px;
}
.chat-scroll { flex: 1; overflow-y: auto; padding: 10px 26px 18px; display: flex; flex-direction: column; gap: 4px; }
.chat-day { align-self: center; background: rgba(62, 39, 35, .08); color: #7a6c5b; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin: 12px 0 8px; }
.msg-row { display: flex; margin-top: 8px; animation: aa-msg-in .28s ease; }
.msg-row.out { justify-content: flex-end; }
.msg-bubble {
  max-width: min(62%, 560px); padding: 9px 13px 7px; border-radius: 14px; position: relative;
  font-size: 14px; line-height: 1.5; color: #3a3128; box-shadow: 0 1px 3px rgba(38, 32, 26, .1);
}
.msg-row.in .msg-bubble { background: #fff; border-bottom-left-radius: 4px; }
.msg-row.out .msg-bubble { background: #d7eee2; border-bottom-right-radius: 4px; }
.msg-sender { font-size: 12px; font-weight: 800; margin-bottom: 2px; }
.msg-meta { display: flex; gap: 4px; justify-content: flex-end; align-items: center; margin-top: 3px; font-size: 10.5px; color: #94a596; }
.msg-meta .ticks { color: #7aa88b; letter-spacing: -3px; font-size: 13px; }
.msg-meta .ticks.read { color: #1e88c7; }
.chat-typing { display: inline-flex; gap: 4px; padding: 12px 16px; background: #fff; border-radius: 14px; border-bottom-left-radius: 4px; width: fit-content; margin-top: 8px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b7a890; animation: aa-typing 1.2s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
.chat-composer {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--aa-paper); border-top: 1px solid rgba(62, 39, 35, .09);
}
.chat-composer input {
  flex: 1; border: 1px solid rgba(62, 39, 35, .12); border-radius: 999px; outline: 0;
  padding: 12px 20px; font-size: 14px; background: #fff; color: var(--aa-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.chat-composer input:focus { border-color: var(--aa-terracotta); box-shadow: 0 0 0 3px rgba(193, 68, 14, .12); }
.chat-send {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--aa-terracotta), var(--aa-sunset)); color: #fff; font-size: 20px;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(193, 68, 14, .35);
  transition: transform .16s ease, box-shadow .16s ease;
}
.chat-send:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(193, 68, 14, .45); }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: #8d7f6c; padding: 40px; }

/* ============================================================
   Meetings
   ============================================================ */
.meet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.meet-card {
  background: var(--aa-paper); border-radius: var(--aa-radius); padding: 22px;
  border: 1px solid rgba(62, 39, 35, .08); box-shadow: 0 3px 10px rgba(38, 32, 26, .05);
  transition: transform .22s ease, box-shadow .22s ease; position: relative; overflow: hidden;
}
.meet-card:hover { transform: translateY(-5px); box-shadow: var(--aa-shadow); }
.meet-card .room { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--aa-terracotta); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.meet-card h4 { font-family: Muli, sans-serif; font-weight: 800; font-size: 18px; color: var(--aa-ink); margin-bottom: 6px; }
.meet-card .when { font-size: 13px; color: #8d7f6c; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.meet-card .who { display: flex; align-items: center; margin-bottom: 16px; }
.meet-card .who .ws-avatar { width: 30px; height: 30px; font-size: 11px; margin-right: -8px; border: 2px solid var(--aa-paper); }
.meet-card .who .more { margin-left: 16px; font-size: 12px; color: #8d7f6c; font-weight: 600; }
.meet-live-badge {
  position: absolute; top: 16px; right: 16px; background: var(--aa-red); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px;
  animation: aa-pulse 1.6s ease-in-out infinite;
}
.ws-page { flex: 1; overflow-y: auto; padding: 30px 34px; }
.ws-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.ws-page-head h2 { font-family: Muli, sans-serif; font-weight: 900; font-size: 28px; color: var(--aa-ink); margin: 0; }
.ws-page-head .sub { color: #8d7f6c; font-size: 14px; margin-top: 4px; }

/* Meeting room */
.room-shell { flex: 1; display: flex; flex-direction: column; background: #17120d; min-width: 0; }
.room-topbar { display: flex; align-items: center; gap: 14px; padding: 12px 22px; color: #d9cbb8; }
.room-topbar .title { font-family: Muli, sans-serif; font-weight: 800; font-size: 16px; color: #fff; }
.room-topbar .rec { color: #ff6b6b; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.room-topbar .rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: aa-pulse 1.4s ease-in-out infinite; }
.room-stage { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 8px 22px; overflow-y: auto; align-content: center; }
.room-tile {
  position: relative; border-radius: 14px; aspect-ratio: 16/10.5; overflow: hidden;
  display: grid; place-items: center; border: 2px solid transparent; transition: border-color .2s ease;
}
.room-tile.speaking { border-color: var(--aa-gold); box-shadow: 0 0 0 3px rgba(242, 169, 0, .25); }
.room-tile .ws-avatar { width: 74px; height: 74px; font-size: 26px; }
.room-tile .label {
  position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; display: flex; gap: 6px; align-items: center;
}
.room-tile .label .mdi-microphone-off { color: #ff8080; }
.room-captions {
  margin: 6px 22px; background: rgba(0, 0, 0, .5); color: #ffe9c2; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; text-align: center; min-height: 42px;
}
.room-captions b { color: var(--aa-gold); }
.room-controls { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px 22px 22px; flex-wrap: wrap; }
.room-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 21px; display: grid; place-items: center;
  transition: background .18s ease, transform .18s ease;
}
.room-btn:hover { background: rgba(255, 255, 255, .22); transform: translateY(-3px); }
.room-btn.off { background: #b3261e; }
.room-btn.leave { background: #d93025; width: auto; border-radius: 999px; padding: 0 28px; font-size: 15px; font-weight: 700; }
.room-btn.leave:hover { background: #f04438; }
.room-side { width: 330px; background: var(--aa-paper); border-left: 1px solid rgba(62, 39, 35, .09); display: flex; flex-direction: column; flex-shrink: 0; }
.room-side-head { padding: 16px 18px; font-family: Muli, sans-serif; font-weight: 800; color: var(--aa-ink); border-bottom: 1px solid rgba(62, 39, 35, .08); display: flex; justify-content: space-between; align-items: center; }
.breakout-item { display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 13.5px; color: #5c5044; border-bottom: 1px dashed rgba(62, 39, 35, .08); }
.breakout-item .mdi { color: var(--aa-terracotta); font-size: 18px; }
.breakout-item .count { margin-left: auto; font-size: 11.5px; background: var(--aa-sand); padding: 3px 10px; border-radius: 999px; font-weight: 700; color: #7a6c5b; }

/* AI panel (Sankofa) */
.ai-panel {
  background: linear-gradient(150deg, rgba(11, 110, 79, .06), rgba(242, 169, 0, .07));
  border: 1px solid rgba(11, 110, 79, .18); border-radius: var(--aa-radius); padding: 18px;
}
.ai-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-orb {
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--aa-green), var(--aa-gold), var(--aa-terracotta), var(--aa-green));
  animation: aa-spin 6s linear infinite; position: relative;
}
.ai-orb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--aa-paper); }
.ai-panel-head b { font-family: Muli, sans-serif; color: var(--aa-green-deep); font-size: 14.5px; }
.ai-panel ul { margin: 0; padding-left: 18px; font-size: 13px; color: #5c5044; display: grid; gap: 7px; }
.ai-chip { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; background: rgba(11,110,79,.12); color: var(--aa-green); border-radius: 999px; padding: 3px 10px; margin-left: 6px; }

/* Calls */
.call-row { display: flex; align-items: center; gap: 14px; padding: 13px 6px; border-bottom: 1px solid rgba(62, 39, 35, .07); }
.call-row .info { flex: 1; }
.call-row .info .name { font-weight: 700; color: var(--aa-ink); font-size: 14.5px; }
.call-row .info .meta { font-size: 12px; color: #8d7f6c; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.call-row .meta .mdi-arrow-bottom-left { color: var(--aa-green); }
.call-row .meta .mdi-arrow-top-right { color: #4c94d6; }
.call-row .meta.missed, .call-row .meta.missed .mdi { color: var(--aa-red); }
.dialpad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; }
.dialpad button {
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(62, 39, 35, .12);
  background: var(--aa-paper); font-size: 24px; font-weight: 700; color: var(--aa-ink); cursor: pointer;
  transition: background .15s ease, transform .15s ease; font-family: Muli, sans-serif;
}
.dialpad button span { display: block; font-size: 9px; letter-spacing: 2px; color: #a3937e; font-weight: 800; }
.dialpad button:hover { background: var(--aa-sand-2); transform: scale(1.06); }

/* Channels (Teams-style) */
.chan-group { padding: 8px 0; }
.chan-group-title { padding: 10px 18px 4px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #a3937e; display: flex; justify-content: space-between; align-items: center; }
.chan-item { display: flex; align-items: center; gap: 9px; padding: 8px 18px 8px 26px; font-size: 13.5px; color: #5c5044; cursor: pointer; border-left: 3px solid transparent; }
.chan-item:hover { background: var(--aa-sand); }
.chan-item.active { background: #f3e9d7; border-left-color: var(--aa-green); color: var(--aa-ink); font-weight: 700; }
.chan-item .mdi { color: #a3937e; font-size: 16px; }
.chan-item .pill { margin-left: auto; font-size: 10px; background: var(--aa-red); color: #fff; border-radius: 999px; padding: 2px 7px; font-weight: 800; }
.thread-card { background: var(--aa-paper); border: 1px solid rgba(62,39,35,.08); border-radius: var(--aa-radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(38,32,26,.04); }
.thread-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.thread-head .name { font-weight: 800; color: var(--aa-ink); font-size: 14px; }
.thread-head .time { font-size: 11.5px; color: #a3937e; }
.thread-body { font-size: 14px; color: #4b4237; line-height: 1.6; }
.thread-actions { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: #8d7f6c; }
.thread-actions span { cursor: pointer; display: inline-flex; gap: 5px; align-items: center; transition: color .15s ease; }
.thread-actions span:hover { color: var(--aa-terracotta); }
.reaction { display: inline-flex; align-items: center; gap: 4px; background: var(--aa-sand); border-radius: 999px; padding: 3px 10px; font-size: 12px; margin-right: 6px; cursor: pointer; border: 1px solid transparent; }
.reaction:hover { border-color: var(--aa-gold); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes aa-kente-slide { from { background-position: 0 0; } to { background-position: 400px 0; } }
@keyframes aa-shimmer { from { background-position: 0% 0; } to { background-position: 300% 0; } }
@keyframes aa-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
@keyframes aa-drum { 0%, 100% { transform: scale(1); } 6% { transform: scale(1.12); } 12% { transform: scale(1); } 18% { transform: scale(1.08); } 24% { transform: scale(1); } }
@keyframes aa-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes aa-pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, .5); } 60% { box-shadow: 0 0 0 6px rgba(35, 165, 90, 0); } }
@keyframes aa-spin { to { transform: rotate(360deg); } }
@keyframes aa-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes aa-msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes aa-pop-in { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes aa-reveal-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Scroll-reveal hooks (driven by axcess.js IntersectionObserver) */
[data-reveal] { opacity: 0; }
[data-reveal].revealed { animation: aa-reveal-up .7s cubic-bezier(.2, .7, .3, 1) forwards; }
[data-reveal="1"].revealed { animation-delay: .1s; }
[data-reveal="2"].revealed { animation-delay: .2s; }
[data-reveal="3"].revealed { animation-delay: .3s; }
[data-reveal="4"].revealed { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; }
}

/* ============================================================
   Modals, popovers & feature overlays
   ============================================================ */
.aa-modal-backdrop {
  position: fixed; inset: 0; z-index: 900; background: rgba(23, 18, 13, .55);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px;
  animation: aa-fade-in .2s ease;
}
.aa-modal {
  width: min(440px, 100%); max-height: 84vh; overflow-y: auto;
  background: var(--aa-paper); border-radius: 18px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); border-top: 5px solid transparent;
  border-image: var(--aa-kente) 1; animation: aa-card-rise .35s cubic-bezier(.2, .7, .3, 1);
}
.aa-modal h3 { font-family: Muli, sans-serif; font-weight: 900; font-size: 20px; color: var(--aa-ink); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.aa-modal .sub { font-size: 13px; color: #8d7f6c; margin: 0 0 16px; }
.aa-modal-list { display: grid; gap: 4px; }
.aa-modal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .15s ease; }
.aa-modal-item:hover { background: var(--aa-sand); }
.aa-modal-item .name { font-weight: 700; font-size: 14px; color: var(--aa-ink); }
.aa-modal-item .meta { font-size: 12px; color: #8d7f6c; }
.aa-modal-form { display: grid; gap: 14px; }
.aa-modal-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #7a6c5b; }
.aa-modal-form input, .aa-modal-form select {
  border: 1px solid rgba(62, 39, 35, .15); border-radius: 10px; padding: 11px 14px;
  font-size: 14px; color: var(--aa-ink); background: #fff; outline: 0;
  text-transform: none; font-weight: 400; transition: border-color .2s ease, box-shadow .2s ease;
}
.aa-modal-form input:focus, .aa-modal-form select:focus { border-color: var(--aa-terracotta); box-shadow: 0 0 0 3px rgba(193, 68, 14, .12); }
.aa-modal-error { background: rgba(206, 17, 38, .08); border: 1px solid rgba(206, 17, 38, .3); color: #a3232f; border-radius: 10px; padding: 10px 14px; font-size: 13px; }

/* Dropdown menu (chat "More") */
.aa-menu {
  position: absolute; top: 54px; right: 12px; z-index: 40; min-width: 220px;
  background: var(--aa-paper); border-radius: 12px; padding: 6px;
  box-shadow: 0 14px 40px rgba(38, 32, 26, .22); border: 1px solid rgba(62, 39, 35, .08);
  animation: aa-card-rise .18s ease;
}
.aa-menu button {
  display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: transparent;
  padding: 10px 14px; border-radius: 8px; font-size: 13.5px; color: #5c5044; cursor: pointer; text-align: left;
}
.aa-menu button:hover { background: var(--aa-sand); color: var(--aa-terracotta); }
.aa-menu button.on { background: rgba(11, 110, 79, .1); color: var(--aa-green); font-weight: 700; }
.aa-menu-section {
  padding: 8px 14px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: #a3937e; border-top: 1px solid rgba(62, 39, 35, .08); margin-top: 4px;
}
.chat-header-actions { position: relative; }
.chat-icon-btn.on { background: var(--aa-sand); color: var(--aa-terracotta); }

/* In-chat message search bar */
.chat-msg-search {
  display: flex; align-items: center; gap: 10px; padding: 9px 22px;
  background: #fff8ea; border-bottom: 1px solid rgba(242, 169, 0, .3); color: #8a6100; font-size: 13.5px;
}
.chat-msg-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 13.5px; color: var(--aa-ink); }
.chat-msg-search .hits { font-size: 11.5px; font-weight: 700; }

/* Emoji popover */
.chat-composer { position: relative; }
.emoji-pop {
  position: absolute; bottom: 66px; left: 12px; z-index: 40; width: 264px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  background: var(--aa-paper); border-radius: 14px; padding: 10px;
  box-shadow: 0 14px 40px rgba(38, 32, 26, .25); border: 1px solid rgba(62, 39, 35, .08);
  animation: aa-card-rise .18s ease;
}
.emoji-pop button { border: 0; background: transparent; font-size: 20px; padding: 4px; border-radius: 8px; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.emoji-pop button:hover { background: var(--aa-sand); transform: scale(1.25); }
.chat-send.recording { background: var(--aa-red); animation: aa-pulse 1s ease-in-out infinite; }

/* Status story viewer */
.story-viewer { position: fixed; inset: 0; z-index: 950; background: #17120d; display: flex; flex-direction: column; animation: aa-fade-in .2s ease; cursor: pointer; }
.story-progress { height: 3px; margin: 10px 14px 0; background: rgba(255, 255, 255, .2); border-radius: 999px; overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 0; background: var(--aa-gold); animation: aa-story-progress 6s linear forwards; }
.story-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #fff; }
.story-head .name { font-weight: 800; font-size: 14.5px; }
.story-head .time { font-size: 11.5px; color: #cbb490; }
.story-body { flex: 1; display: grid; place-content: center; text-align: center; color: #fff; padding: 30px; }
.story-body .story-emoji { font-size: 84px; animation: aa-float 5s ease-in-out infinite; }
.story-body p { max-width: 420px; font-size: 20px; font-family: Muli, sans-serif; font-weight: 600; line-height: 1.6; margin-top: 18px; }
@keyframes aa-story-progress { to { width: 100%; } }

/* Dial display + call overlay */
.dial-display {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  font-family: Muli, sans-serif; font-size: 24px; font-weight: 700; color: var(--aa-ink); margin-bottom: 14px;
}
.dial-display span:first-child:empty::before { content: "Enter a number"; }
.call-overlay { position: fixed; inset: 0; z-index: 950; background: linear-gradient(160deg, #17120d, #2a1a10); display: grid; place-items: center; animation: aa-fade-in .25s ease; }
.call-overlay-inner { text-align: center; color: #fff; }
.call-avatar { width: 110px; height: 110px; font-size: 38px; margin: 0 auto 18px; animation: aa-drum 4s ease-in-out infinite; }
.call-overlay-inner h3 { font-family: Muli, sans-serif; font-weight: 900; font-size: 26px; margin-bottom: 6px; }
.call-state { font-size: 16px; color: #ffd970; min-height: 26px; }
.call-state .ringing i { animation: aa-typing 1.2s ease-in-out infinite; display: inline-block; }
.call-state .ringing i:nth-child(2) { animation-delay: .15s; }
.call-state .ringing i:nth-child(3) { animation-delay: .3s; }
.call-overlay-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }

/* Meeting room: reactions + screen share + whiteboard */
.room-controls { position: relative; }
.room-btn.active { background: rgba(242, 169, 0, .3); color: var(--aa-gold); }
.reaction-pop {
  position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 40;
  display: flex; gap: 4px; background: rgba(20, 12, 30, .92); border-radius: 999px; padding: 8px 12px;
  border: 1px solid rgba(242, 169, 0, .3); animation: aa-card-rise .18s ease;
}
.reaction-pop button { border: 0; background: transparent; font-size: 22px; cursor: pointer; transition: transform .12s ease; }
.reaction-pop button:hover { transform: scale(1.35) translateY(-3px); }
.floating-reaction {
  position: absolute; bottom: 110px; font-size: 34px; z-index: 30; pointer-events: none;
  animation: aa-reaction-float 3.8s ease-out forwards;
}
@keyframes aa-reaction-float {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: 1; transform: translateY(-30px) scale(1.15); }
  100% { transform: translateY(-46vh) scale(1); opacity: 0; }
}
.screen-tile { aspect-ratio: auto; min-height: 220px; background: #101418 !important; }
.screen-share-art { text-align: center; color: #9fc3dd; }
.screen-share-art .mdi { font-size: 64px; }
.screen-share-art p { margin: 8px 0 2px; font-weight: 700; color: #d3e6f5; }
.screen-share-art small { font-size: 11.5px; opacity: .7; }
.breakout-item .aa-btn { margin-left: 8px; padding: 5px 12px; font-size: 11px; }

/* Whiteboard overlay */
.whiteboard-overlay {
  position: fixed; inset: 40px 60px; z-index: 900; background: var(--aa-paper);
  border-radius: 18px; box-shadow: 0 40px 120px rgba(0, 0, 0, .5); overflow: hidden;
  display: flex; flex-direction: column; animation: aa-card-rise .3s ease;
  border-top: 6px solid transparent; border-image: var(--aa-kente) 1;
}
.whiteboard-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-bottom: 1px solid rgba(62, 39, 35, .1); flex-wrap: wrap; }
.whiteboard-head b { font-family: Muli, sans-serif; color: var(--aa-ink); }
.whiteboard-tools { display: flex; gap: 8px; align-items: center; }
.wb-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease; }
.wb-color:hover { transform: scale(1.15); }
.wb-color.on { border-color: var(--aa-ink); box-shadow: 0 0 0 2px #fff inset; }
#aa-whiteboard { flex: 1; cursor: crosshair; touch-action: none;
  background: linear-gradient(rgba(247,241,229,.6), rgba(247,241,229,.6)),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(62,39,35,.05) 24px 25px); }

/* Message attachments */
.msg-image { max-width: 320px; max-height: 260px; border-radius: 10px; display: block; margin-bottom: 4px; }
.msg-audio { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.msg-audio audio { height: 38px; max-width: 260px; }
.msg-file {
  display: flex; align-items: center; gap: 10px; background: rgba(62, 39, 35, .06);
  border-radius: 10px; padding: 10px 14px; text-decoration: none; color: #3a3128;
  font-size: 13px; font-weight: 600; margin-bottom: 4px; min-width: 200px;
  transition: background .15s ease;
}
.msg-file:hover { background: rgba(62, 39, 35, .12); color: var(--aa-terracotta); text-decoration: none; }
.msg-file .mdi-file-outline { font-size: 22px; color: var(--aa-terracotta); }
.thread-card.pinned { border-left: 4px solid var(--aa-gold); background: #fffcf3; }
.mdi-spin { animation: aa-spin 1s linear infinite; display: inline-block; }

/* Blazor error banner (hidden until the runtime reveals it) */
#blazor-error-ui {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: #fff3cd; color: #664d03; padding: 12px 20px; font-size: 14px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
}
#blazor-error-ui .dismiss { position: absolute; right: 16px; top: 10px; cursor: pointer; }

/* ============================================================
   Auth pages — Egyptian night scene with hieroglyphs
   ============================================================ */
.auth-scene {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; place-items: center; padding: 40px 4vw;
  background: linear-gradient(180deg, #0d0a1e 0%, #1d1233 34%, #4a1e3a 62%, #8a3a1f 86%, #b3541a 100%);
}
.auth-stars { position: absolute; inset: 0 0 40% 0; background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff7 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 24%, #ffd97088 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 28%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 9%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 32%, #ffd97066 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 38%, #fff5 50%, transparent 51%);
  animation: aa-twinkle 5s ease-in-out infinite alternate; }
.auth-sun {
  position: absolute; left: 50%; bottom: 26%; width: 130px; height: 130px; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #ffd970 0%, #f2a900 45%, rgba(242, 169, 0, 0) 72%);
  filter: blur(2px); opacity: .9; animation: aa-sunrise 14s ease-in-out infinite alternate;
}
.auth-pyramids { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none; }
.pyr { position: absolute; bottom: 8%; background: linear-gradient(115deg, #241408 48%, #3a2410 52%, #241408 60%); }
.pyr-1 { left: 6%; width: 300px; height: 190px; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .95; }
.pyr-2 { left: 24%; width: 210px; height: 130px; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .8; }
.pyr-3 { right: 8%; width: 250px; height: 155px; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .88; }
.auth-dunes { position: absolute; left: 0; right: 0; bottom: 0; height: 12%;
  background: linear-gradient(180deg, #2a170a, #1a0e05);
  clip-path: polygon(0 45%, 18% 20%, 40% 55%, 62% 25%, 82% 50%, 100% 30%, 100% 100%, 0 100%); }

.auth-glyph-rail {
  position: absolute; top: 0; bottom: 0; right: 3vw; width: 220px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; pointer-events: none;
}
.glyph-item {
  display: flex; align-items: center; gap: 14px; opacity: 0;
  animation: aa-glyph-cycle 32s linear infinite;
  animation-delay: calc(var(--i) * 4s);
}
.glyph-item .glyph {
  font-family: "Segoe UI Historic", "Noto Sans Egyptian Hieroglyphs", serif;
  font-size: 40px; color: #f2a900; text-shadow: 0 0 18px rgba(242, 169, 0, .6);
}
.glyph-item .glyph-meaning { font-size: 12.5px; color: #e8cfa0; font-style: italic; letter-spacing: .4px; }

.auth-main { position: relative; z-index: 2; width: min(920px, 100%); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.auth-brand { transform: scale(1.1); }
.auth-footnote { color: #cfae7d; font-size: 12.5px; text-align: center; margin: 0; opacity: .85; }

.auth-card {
  width: min(460px, 100%); background: rgba(20, 12, 30, .72); backdrop-filter: blur(14px);
  border: 1px solid rgba(242, 169, 0, .25); border-radius: 18px; padding: 34px 34px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: aa-card-rise .7s cubic-bezier(.2, .7, .3, 1);
}
.auth-card-wide { width: min(760px, 100%); }
.auth-title { font-family: Muli, sans-serif; font-weight: 900; font-size: 28px; color: #fff; margin: 0 0 6px; }
.auth-sub { color: #cbb490; font-size: 14px; margin: 0 0 20px; line-height: 1.6; }
.auth-section-title { font-family: Muli, sans-serif; font-weight: 800; font-size: 17px; color: #f2a900; margin: 30px 0 12px; display: flex; align-items: center; gap: 8px; }
.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: #d9c39a; text-transform: uppercase; }
.auth-field label small { text-transform: none; font-weight: 400; color: #a08c69; }
.auth-field input, .auth-field select {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(242, 169, 0, .25); border-radius: 10px;
  padding: 11px 14px; color: #fff; font-size: 14px; outline: 0; transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-field select option { color: #26201a; }
.auth-field input:focus, .auth-field select:focus { border-color: #f2a900; box-shadow: 0 0 0 3px rgba(242, 169, 0, .18); }
.auth-check { display: flex; gap: 10px; align-items: center; color: #cbb490; font-size: 13.5px; margin: 4px 0 16px; cursor: pointer; }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-alt { margin-top: 18px; font-size: 13.5px; color: #cbb490; text-align: center; }
.auth-alt a { color: #f2a900; font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; color: #ffd970; }
.auth-error { background: rgba(206, 17, 38, .18); border: 1px solid rgba(206, 17, 38, .5); color: #ffb3b3;
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; }
.auth-status { background: rgba(11, 110, 79, .2); border: 1px solid rgba(11, 110, 79, .55); color: #9fe0c3;
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; }
/* On light app pages (e.g. Contacts) the pale-green auth-status text is unreadable — use dark green instead */
.ws-page .auth-status { background: rgba(11, 110, 79, .08); border-color: rgba(11, 110, 79, .35); color: var(--aa-green-deep); }
.auth-validation { color: #ff9d9d; font-size: 12px; }
.auth-recovery { margin-top: 18px; color: #cbb490; font-size: 13.5px; }
.auth-recovery summary { cursor: pointer; color: #f2a900; }
.auth-recovery form { margin-top: 12px; }
.auth-key { background: rgba(242, 169, 0, .12); border: 1px dashed rgba(242, 169, 0, .5); border-radius: 10px;
  padding: 12px 16px; margin: 8px 0 14px; }
.auth-key code { color: #ffd970; font-size: 16px; letter-spacing: 2px; }
.auth-steps { color: #cbb490; font-size: 13.5px; padding-left: 18px; margin: 0 0 6px; }
.auth-codes { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; color: #cbb490; font-size: 13px; }
.auth-codes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.auth-codes-grid code { background: rgba(0, 0, 0, .35); color: #ffd970; padding: 6px 10px; border-radius: 6px; text-align: center; }

/* ============================================================
   Welcome (post-login) — African sunrise
   ============================================================ */
.welcome-scene { position: fixed; inset: 0; overflow: hidden; display: grid; place-items: center; background: #170f08; z-index: 50; }
.welcome-sky { position: absolute; inset: 0;
  background: linear-gradient(180deg, #241030 0%, #8a2f1d 45%, #e2711d 72%, #f2a900 100%);
  animation: aa-sky-brighten 3.4s ease forwards; }
.welcome-sun { position: absolute; left: 50%; bottom: 18%; width: 190px; height: 190px; border-radius: 50%;
  transform: translate(-50%, 120%);
  background: radial-gradient(circle, #fff3c4 0%, #ffd970 40%, #f2a900 70%, rgba(242,169,0,0) 100%);
  animation: aa-sun-rise 2.8s cubic-bezier(.2, .7, .3, 1) forwards .2s; }
.welcome-savanna { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; }
.welcome-savanna::after { content: ""; position: absolute; inset: 0; background: #1d1106;
  clip-path: polygon(0 38%, 12% 30%, 30% 42%, 52% 28%, 74% 40%, 100% 32%, 100% 100%, 0 100%); }
.welcome-kilimanjaro { position: absolute; right: 6%; bottom: 30%; width: 340px; height: 150px; background: #241708;
  clip-path: polygon(0 100%, 26% 40%, 38% 52%, 50% 10%, 58% 24%, 68% 16%, 100% 100%); opacity: .8; }
.welcome-kilimanjaro::after { content: ""; position: absolute; left: 44%; top: 8%; width: 22%; height: 22%;
  background: #fff8ec; clip-path: polygon(18% 40%, 50% 0, 82% 40%, 65% 55%, 35% 55%); opacity: .9; }
.acacia { position: absolute; bottom: 34%; width: 120px; height: 90px; z-index: 2; }
.acacia::before { content: ""; position: absolute; left: 48%; bottom: 0; width: 6px; height: 55%; background: #140b04; transform: skewX(-6deg); }
.acacia::after { content: ""; position: absolute; left: 8%; top: 0; width: 84%; height: 42%; background: #140b04; border-radius: 50% 50% 20% 20%; }
.acacia-1 { left: 10%; transform: scale(1.05); animation: aa-fade-in 1.4s ease both 1s; }
.acacia-2 { left: 30%; transform: scale(.6); animation: aa-fade-in 1.4s ease both 1.4s; }
.welcome-kente { position: absolute; left: 0; right: 0; height: 14px; background: var(--aa-kente); background-size: 200% 100%; animation: aa-kente-slide 18s linear infinite; }
.welcome-kente-top { top: 0; }
.welcome-kente-bottom { bottom: 0; }
.welcome-message { position: relative; z-index: 3; text-align: center; color: #fff; }
.welcome-word { font-family: Muli, sans-serif; font-weight: 300; font-size: 22px; letter-spacing: 4px; text-transform: uppercase; opacity: 0; color: #ffe9bd; }
.welcome-word .lang { font-size: 11px; letter-spacing: 2px; color: #f2a900; font-weight: 800; vertical-align: middle; margin-left: 8px; opacity: .9; }
.welcome-word-1 { animation: aa-word-pop .8s ease both .3s; }
.welcome-word-2 { animation: aa-word-pop .8s ease both .9s; }
.welcome-word-3 { animation: aa-word-pop .8s ease both 1.5s; }
.welcome-word-4 { animation: aa-word-pop .8s ease both 2.1s; }
.welcome-word-5 { animation: aa-word-pop .8s ease both 2.7s; }
.welcome-name { font-family: Muli, sans-serif; font-weight: 900; font-size: clamp(40px, 7vw, 74px); margin: 12px 0 8px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .45); animation: aa-name-rise 1s cubic-bezier(.2, .7, .3, 1) both 3.3s; }
.welcome-ubuntu { font-size: 16px; color: #ffe9bd; opacity: 0; animation: aa-fade-in 1s ease both 3.9s; }

/* Rotating multi-language greeting (login page + landing hero) */
.greet-cycle { position: relative; height: 1.7em; overflow: hidden; }
.greet-cycle span {
  position: absolute; left: 0; right: 0; opacity: 0;
  animation: aa-greet-cycle 14s linear infinite;
  animation-delay: calc(var(--i) * 2s);
  font-family: Muli, sans-serif; font-weight: 700;
}
.greet-cycle .lang { font-size: .62em; letter-spacing: 2px; text-transform: uppercase; opacity: .75; margin-left: 8px; font-weight: 800; }
@keyframes aa-greet-cycle {
  0% { opacity: 0; transform: translateY(10px); }
  2.5% { opacity: 1; transform: none; }
  12.5% { opacity: 1; }
  15% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}
.welcome-drums { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.welcome-drums span { width: 10px; height: 10px; border-radius: 50%; background: #ffd970; animation: aa-drumbeat 1s ease-in-out infinite; }
.welcome-drums span:nth-child(2) { animation-delay: .12s; }
.welcome-drums span:nth-child(3) { animation-delay: .24s; }
.welcome-drums span:nth-child(4) { animation-delay: .36s; }
.welcome-drums span:nth-child(5) { animation-delay: .48s; }

@keyframes aa-twinkle { from { opacity: .7; } to { opacity: 1; } }
@keyframes aa-sunrise { from { transform: translateX(-50%) translateY(26%); opacity: .65; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes aa-glyph-cycle {
  0% { opacity: 0; transform: translateX(24px); }
  3% { opacity: 1; transform: translateX(0); }
  11% { opacity: 1; }
  14% { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 0; }
}
@keyframes aa-card-rise { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes aa-sky-brighten { from { opacity: .35; } to { opacity: 1; } }
@keyframes aa-sun-rise { to { transform: translate(-50%, 0); } }
@keyframes aa-word-pop { from { opacity: 0; transform: translateY(14px); } 60% { opacity: 1; } to { opacity: .85; transform: none; } }
@keyframes aa-name-rise { from { opacity: 0; transform: translateY(30px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes aa-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes aa-drumbeat { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.5); opacity: 1; } }

@media (max-width: 1100px) { .auth-glyph-rail { display: none; } }

/* Responsive */
@media (max-width: 1100px) {
  .aa-hero-grid { grid-template-columns: 1fr; }
  .aa-phone-stage { min-height: 480px; }
  .room-side { display: none; }
}
@media (max-width: 860px) {
  .aa-nav-links { display: none; }
  .ws-sidebar { width: 280px; }
  .aa-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ws-rail { width: 62px; }
  .ws-rail-item span { display: none; }
  .chat-pane .msg-bubble { max-width: 84%; }
}

/* ---------- Language selector ---------- */
.aa-lang-select {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: transparent;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  max-width: 140px;
}
.aa-lang-select:focus { outline: 2px solid #c1440e; outline-offset: 1px; }
.ws-rail-lang {
  max-width: 64px;
  margin: 0 4px 8px;
  font-size: 11px;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ---------- Contacts ---------- */
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border: 1px solid rgba(62, 39, 35, 0.1);
  border-radius: 14px; background: var(--aa-paper, #fff);
}
.contact-card .contact-info { flex: 1; min-width: 0; }
.contact-card .contact-info .name { font-weight: 700; color: var(--aa-ink, #26201a); display: flex; align-items: center; flex-wrap: wrap; }
.contact-card .contact-info .meta { font-size: 13px; color: #8d7f6c; margin-top: 2px; }
.contact-lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #8d7f6c; margin-top: 6px;
}
.contact-lang select {
  border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 8px;
  padding: 3px 8px; font-size: 12px; font-family: inherit;
  background: transparent; color: inherit; cursor: pointer; max-width: 150px;
}
.contact-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ---------- Message translation & transcript ---------- */
.msg-tools { display: flex; gap: 12px; margin-top: 4px; }
.msg-tools span {
  font-size: 11.5px; color: #a3937e; cursor: pointer; display: inline-flex; align-items: center; gap: 3px;
}
.msg-tools span:hover { color: var(--aa-terracotta, #c1440e); }
.msg-translation {
  margin-top: 6px; padding: 8px 10px; border-radius: 10px;
  background: rgba(11, 110, 79, 0.08); border: 1px solid rgba(11, 110, 79, 0.18);
  font-size: 14px;
}
.msg-translation .tag { display: block; font-size: 10.5px; color: #0b6e4f; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .04em; }
.msg-transcript {
  margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--aa-gold, #f2a900);
  font-size: 13.5px; color: #5c5044; font-style: italic;
}
.msg-transcript .tag { font-style: normal; font-size: 10.5px; color: #a3937e; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }

/* ---------- Post-your-own-status ---------- */
.aa-story { cursor: pointer; }
.status-add {
  position: absolute; right: -2px; bottom: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--aa-green, #0b6e4f); color: #fff;
  display: grid; place-items: center;
  border: 2px solid var(--aa-paper, #fff);
}
.status-add .mdi { font-size: 11px; line-height: 1; }
.aa-modal-form textarea {
  width: 100%; border: 1px solid rgba(0,0,0,0.15); border-radius: 10px;
  padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical;
}

/* ---------- Mobile money (in-chat payments + wallet) ---------- */
.chat-icon-btn.money .mdi { color: var(--aa-green, #0b6e4f); }
.money-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.money-tabs button {
  flex: 1; padding: 9px 10px; border: 1px solid #e4d9c8; border-radius: 10px;
  background: transparent; font-family: inherit; font-size: 13px; cursor: pointer; color: #5c5044;
}
.money-tabs button.on {
  border-color: var(--aa-green, #0b6e4f); color: var(--aa-green, #0b6e4f);
  background: rgba(11, 110, 79, 0.07); font-weight: 700;
}
.money-amount { position: relative; }
.money-amount input { width: 100%; padding-right: 58px; }
.money-amount .cur {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 800; color: #8d7f6c; letter-spacing: 0.5px;
}
.money-estimate {
  font-size: 12.5px; color: var(--aa-green, #0b6e4f); display: flex; align-items: center; gap: 6px;
}
.money-error { font-size: 12.5px; color: #b3261e; }
.money-sandbox { font-size: 11.5px; color: #a3937e; text-align: center; }

.msg-money {
  min-width: 220px; border: 1px solid rgba(11, 110, 79, 0.25); border-radius: 12px;
  padding: 10px 12px; margin: 2px 0 6px; background: rgba(11, 110, 79, 0.05);
  display: grid; gap: 6px;
}
.msg-money.pending { border-color: rgba(242, 169, 0, 0.45); background: rgba(242, 169, 0, 0.07); }
.money-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.money-head .mdi { font-size: 20px; color: var(--aa-green, #0b6e4f); }
.msg-money.pending .money-head .mdi { color: #b07d00; }
.money-sub { font-size: 12px; color: #5c5044; }
.money-note { font-size: 12.5px; color: #5c5044; font-style: italic; }
.money-pay { justify-self: start; }
.money-status { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.money-status.completed { color: var(--aa-green, #0b6e4f); }
.money-status.pending { color: #b07d00; }
.money-brand { font-size: 10.5px; color: #a3937e; }

.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 26px; }
.wallet-card {
  border: 1px solid #e4d9c8; border-radius: 14px; padding: 18px; background: var(--aa-paper, #fff);
  display: grid; gap: 10px; align-content: start;
}
.wallet-balance-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8d7f6c; }
.wallet-balance { font-size: 34px; font-weight: 900; color: var(--aa-ink, #2b2118); font-family: Muli, sans-serif; }
.wallet-balance span { font-size: 15px; font-weight: 800; color: #8d7f6c; }
.wallet-provider { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #5c5044; }
.wallet-provider .mdi { color: var(--aa-green, #0b6e4f); font-size: 17px; }
.wallet-provider .phone { color: #8d7f6c; }
.wallet-actions { display: flex; gap: 10px; }
.wallet-form { display: grid; gap: 10px; }
.wallet-form select, .wallet-form input {
  padding: 9px 12px; border: 1px solid #e4d9c8; border-radius: 8px; font-size: 13.5px; font-family: inherit;
}
.wallet-cur-label { font-size: 12px; font-weight: 700; color: #8d7f6c; }
.wallet-history-title { font-family: Muli, sans-serif; font-weight: 900; color: var(--aa-ink, #2b2118); margin: 0 0 12px; }
.wallet-empty { color: #8d7f6c; font-size: 14px; }
.wallet-history { display: grid; gap: 8px; max-width: 760px; }
.wallet-row {
  display: flex; align-items: center; gap: 12px; border: 1px solid #eee3d3;
  border-radius: 12px; padding: 10px 14px; background: var(--aa-paper, #fff);
}
.wallet-row > .mdi { font-size: 20px; }
.wallet-row > .mdi.out { color: #b3261e; }
.wallet-row > .mdi.in { color: var(--aa-green, #0b6e4f); }
.wallet-row .who { flex: 1; min-width: 0; }
.wallet-row .who .name { font-weight: 700; font-size: 14px; color: var(--aa-ink, #2b2118); }
.wallet-row .who .meta { font-size: 12px; color: #8d7f6c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-row .amounts { text-align: right; }
.wallet-row .amount { font-weight: 800; font-size: 14px; }
.wallet-row .amount.out { color: #b3261e; }
.wallet-row .amount.in { color: var(--aa-green, #0b6e4f); }
.wallet-row .status { font-size: 11px; font-weight: 700; }
.wallet-row .status.completed { color: #8d7f6c; }
.wallet-row .status.pending { color: #b07d00; }

/* ---------- Business catalog (in-chat commerce) ---------- */
.chat-icon-btn.shop .mdi { color: var(--aa-gold, #f2a900); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.catalog-card {
  border: 1px solid #e4d9c8; border-radius: 14px; padding: 16px; background: var(--aa-paper, #fff);
  display: grid; gap: 6px; align-content: start; text-align: center;
}
.catalog-card.sold-out { opacity: 0.6; }
.catalog-emoji { font-size: 38px; line-height: 1.2; }
.catalog-emoji.sm { font-size: 26px; }
.catalog-name { font-weight: 800; font-size: 14.5px; color: var(--aa-ink, #2b2118); }
.catalog-desc { font-size: 12.5px; color: #8d7f6c; }
.catalog-price { font-weight: 900; font-size: 15px; color: var(--aa-green, #0b6e4f); }
.catalog-stock { font-size: 11.5px; font-weight: 700; }
.catalog-stock.in { color: var(--aa-green, #0b6e4f); }
.catalog-stock.out { color: #b3261e; }
.catalog-actions { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.catalog-instock { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5c5044; }
.catalog-row { align-items: center; }
.aa-btn.danger { color: #b3261e; border-color: #e3b6b2; }

.msg-catalog {
  min-width: 200px; max-width: 260px; border: 1px solid rgba(242, 169, 0, 0.5); border-radius: 12px;
  padding: 12px; margin: 2px 0 6px; background: rgba(242, 169, 0, 0.06);
  display: grid; gap: 5px; text-align: center;
}

/* ---------- Data-lite + PWA ---------- */
.msg-media-placeholder {
  display: grid; gap: 3px; justify-items: center; padding: 18px 26px; margin: 2px 0 6px;
  border: 1px dashed #cbb894; border-radius: 12px; background: rgba(0,0,0,0.03);
  cursor: pointer; font-family: inherit; color: #8d7f6c; font-size: 12.5px;
}
.msg-media-placeholder .mdi { font-size: 26px; }
.msg-media-placeholder .fname { font-size: 11px; overflow: hidden; text-overflow: ellipsis; max-width: 180px; white-space: nowrap; }
.ws-rail-item.datalite.on .mdi, .ws-rail-item.datalite.on span { color: var(--aa-green, #0b6e4f); }
.ws-rail-item.pwa-install { display: none; }
body.pwa-can-install .ws-rail-item.pwa-install { display: block; }

/* ---------- Creator payouts (tips + earnings) ---------- */
.thread-actions .tip-action { color: var(--aa-terracotta, #c1440e); }
.tip-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tip-chips button {
  padding: 8px 14px; border: 1px solid #e4d9c8; border-radius: 999px; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #5c5044; cursor: pointer;
}
.tip-chips button.on {
  border-color: var(--aa-terracotta, #c1440e); color: var(--aa-terracotta, #c1440e);
  background: rgba(193, 68, 14, 0.07);
}
.story-tip {
  margin-top: 22px; background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px; backdrop-filter: blur(4px);
}
.story-tip .mdi { color: #ffb3a0; }
.creator-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.creator-stats .num { font-size: 20px; font-weight: 900; color: var(--aa-ink, #2b2118); font-family: Muli, sans-serif; }
.creator-stats .num span { font-size: 12px; font-weight: 800; color: #8d7f6c; }
.creator-stats .lbl { font-size: 11.5px; font-weight: 700; color: #8d7f6c; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Orders, order cards & receipts ---------- */
.msg-order {
  min-width: 220px; max-width: 280px; border: 1px solid rgba(11,110,79,0.25); border-radius: 12px;
  padding: 12px; margin: 2px 0 6px; background: rgba(11,110,79,0.05); display: grid; gap: 7px;
}
.msg-order.shipped { border-color: rgba(30,111,168,0.4); background: rgba(30,111,168,0.06); }
.msg-order.delivered { border-color: rgba(11,110,79,0.5); background: rgba(11,110,79,0.08); }
.msg-order.refunded { border-color: rgba(179,38,30,0.4); background: rgba(179,38,30,0.06); }
.order-card-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.order-card-head .order-emoji { font-size: 22px; }
.order-card-amount { font-size: 13px; font-weight: 800; color: var(--aa-green, #0b6e4f); }
.order-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.order-badge {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 999px; color: #fff; background: #8d7f6c; white-space: nowrap;
}
.order-badge.paid { background: var(--aa-gold, #f2a900); color: #4a3800; }
.order-badge.shipped { background: var(--aa-blue, #1e6fa8); }
.order-badge.delivered { background: var(--aa-green, #0b6e4f); }
.order-badge.refunded { background: #b3261e; }

.order-row { align-items: center; }
.order-row .order-emoji { font-size: 26px; }
.order-row .order-right { text-align: right; display: grid; gap: 3px; justify-items: end; }
.order-row .order-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-left: auto; }

.receipt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.receipt-brand { font-family: Muli, sans-serif; font-weight: 900; font-size: 17px; color: var(--aa-ink, #2b2118); }
.receipt-sub { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8d7f6c; }
.receipt-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 0; margin: 4px 0;
  border-top: 1px dashed #d8cbb4; border-bottom: 1px dashed #d8cbb4;
}
.receipt-item .receipt-emoji { font-size: 26px; }
.receipt-item .receipt-name { font-weight: 700; color: var(--aa-ink, #2b2118); }
.receipt-item .receipt-amount { margin-left: auto; font-weight: 900; color: var(--aa-green, #0b6e4f); }
.receipt-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0; }
.receipt-rows dt { font-size: 12px; color: #8d7f6c; }
.receipt-rows dd { margin: 0; font-size: 13px; color: var(--aa-ink, #2b2118); text-align: right; word-break: break-all; }
.receipt-thanks { text-align: center; font-size: 12.5px; color: #8d7f6c; font-style: italic; margin: 10px 0 6px; }
.receipt-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media print {
  body * { visibility: hidden; }
  .receipt-print, .receipt-print * { visibility: visible; }
  .receipt-print { position: absolute; inset: 0; margin: 0; box-shadow: none; }
  .receipt-actions { display: none; }
}

/* ---------- Escrow ---------- */
.order-escrow {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11.5px; color: #8d7f6c; background: rgba(242,169,0,0.1);
  border-radius: 8px; padding: 5px 9px;
}
.order-escrow .mdi { color: var(--aa-gold, #f2a900); font-size: 15px; }
.order-escrow .auto { color: #a3937e; }
.escrow-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700;
  color: #8d6e00; background: rgba(242,169,0,0.16); border-radius: 999px; padding: 1px 7px;
}
.escrow-chip .mdi { font-size: 12px; }
.order-badge.held, .wallet-row .status.held { color: #8d6e00; }
.wallet-row .status.held { font-weight: 700; }
.wallet-row .status.refunded { color: #b3261e; }

/* ============================================================
   Fundraising (Harambee)
   ============================================================ */
.fr-tabs { display: flex; gap: 8px; margin: 4px 0 16px; }
.fr-tab {
  border: 1px solid var(--aa-sand-2, #efe5d3); background: var(--aa-white, #fff);
  border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700;
  color: #8d7f6c; cursor: pointer;
}
.fr-tab.active { background: var(--aa-terracotta, #c1440e); border-color: var(--aa-terracotta, #c1440e); color: #fff; }

.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fr-card {
  display: block; background: var(--aa-white, #fff); border-radius: var(--aa-radius, 14px);
  box-shadow: var(--aa-shadow); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .12s ease;
}
.fr-card:hover { transform: translateY(-2px); }
.fr-cover {
  position: relative; height: 92px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--aa-sand, #f7f1e5), var(--aa-sand-2, #efe5d3));
  border-bottom: 4px solid var(--aa-gold, #f2a900);
}
.fr-emoji { font-size: 44px; }
.fr-chip {
  display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase; color: var(--aa-green, #0b6e4f); background: rgba(11,110,79,0.12);
  border-radius: 999px; padding: 2px 9px; border: 0; cursor: default;
}
.fr-cover .fr-chip { position: absolute; top: 8px; left: 8px; }
.fr-chip.charity { color: #7b2d8b; background: rgba(123,45,139,0.12); }
.fr-chip.idea { cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 12px; }
.fr-verified { position: absolute; top: 6px; right: 8px; color: var(--aa-green, #0b6e4f); font-size: 18px; }
.fr-verified.inline { position: static; margin-left: 6px; font-size: 18px; }
.fr-body { padding: 12px 14px 14px; }
.fr-title { font-weight: 800; color: var(--aa-ink, #2b2118); line-height: 1.25; margin-bottom: 2px; }
.fr-owner { font-size: 12px; color: #8d7f6c; margin-bottom: 8px; }
.fr-progress {
  height: 7px; border-radius: 999px; background: var(--aa-sand-2, #efe5d3); overflow: hidden; margin-bottom: 6px;
}
.fr-progress .bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--aa-terracotta, #c1440e), var(--aa-gold, #f2a900)); }
.fr-progress.big { height: 10px; margin-bottom: 10px; }
.fr-meta { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: #8d7f6c; align-items: baseline; }
.fr-meta b { color: var(--aa-ink, #2b2118); }
.fr-meta .dot { color: #c9bda9; }
.fr-status { margin-top: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.fr-status.paused { color: #8d6e00; }
.fr-status.completed { color: var(--aa-green, #0b6e4f); }
.fr-status.suspended, .fr-status.closed { color: #b3261e; }

/* Detail page */
.fr-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .fr-detail { grid-template-columns: 1fr; } }
.fr-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.fr-hero-emoji {
  font-size: 44px; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--aa-sand, #f7f1e5), var(--aa-sand-2, #efe5d3));
  border-radius: var(--aa-radius, 14px); border-bottom: 4px solid var(--aa-gold, #f2a900); flex-shrink: 0;
}
.fr-hero h2 { margin: 0 0 4px; }
.fr-hero .sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #8d7f6c; }
.fr-banner {
  display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 9px 13px;
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.fr-banner.completed { background: rgba(11,110,79,0.12); color: var(--aa-green-deep, #084c37); }
.fr-banner.suspended { background: rgba(206,17,38,0.1); color: #b3261e; }
.fr-banner.payee-ask { background: rgba(242,169,0,0.14); color: #7a5200; flex-wrap: wrap; }
/* Ambient Harambee spotlight (meeting rooms) */
.fr-ambient {
  position: absolute; left: 16px; bottom: 86px; z-index: 30; width: 250px;
  background: rgba(26,19,12,0.93); border: 1px solid rgba(242,169,0,0.4); border-radius: 14px;
  padding: 12px 14px; color: #f3ead9; backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.45);
}
.fr-ambient-close {
  position: absolute; top: 6px; right: 6px; background: none; border: 0; color: #a89880;
  cursor: pointer; font-size: 15px; padding: 2px;
}
.fr-ambient-title {
  display: block; font-weight: 800; font-size: 13.5px; color: #ffd978; text-decoration: none;
  margin-right: 18px; line-height: 1.3;
}
.fr-ambient-title:hover { text-decoration: underline; }
.fr-ambient-by { font-size: 10.5px; color: #a89880; margin-top: 1px; }
.fr-ambient-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.14); margin: 8px 0 4px; overflow: hidden; }
.fr-ambient-bar .fill { height: 100%; border-radius: 999px; background: var(--aa-gold, #f2a900); transition: width .6s ease; }
.fr-ambient-raised { font-size: 12px; font-weight: 700; color: #fff; }
.fr-ambient-give { display: flex; gap: 6px; margin-top: 9px; }
.fr-ambient-give input {
  flex: 1; min-width: 0; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px; color: #fff; padding: 6px 9px; font: inherit; font-size: 13px;
}
.fr-ambient-err { font-size: 11.5px; color: #ff9d8a; margin-top: 5px; }
.fr-ambient-ok { font-size: 11.5px; color: #7fe0b2; margin-top: 5px; font-weight: 700; }
.fr-ambient-toast {
  position: absolute; bottom: 190px; z-index: 31; background: rgba(11,110,79,0.92); color: #fff;
  font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  animation: aa-gift-float 8s ease-out forwards; pointer-events: none;
}
@keyframes aa-gift-float {
  0% { opacity: 0; transform: translateY(14px); }
  8% { opacity: 1; transform: none; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-46px); }
}
.reaction-pop.fund-pick { min-width: 230px; max-width: 300px; flex-direction: column; align-items: stretch; }
.reaction-pop.fund-pick .pick {
  font-size: 12.5px; text-align: left; padding: 7px 10px; border-radius: 8px; white-space: normal;
}
.reaction-pop.fund-pick .pick.stop { color: #b3261e; font-weight: 700; }
.reaction-pop.fund-pick .none { font-size: 12px; color: #8d7f6c; padding: 6px 8px; }

/* Donor CRM */
.fr-crm-segs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.fr-crm-seg {
  border: 1px solid #e4d9c8; background: #fff; border-radius: 999px; padding: 5px 13px;
  font-size: 12.5px; font-weight: 700; color: #5c5044; cursor: pointer;
}
.fr-crm-seg.on { background: var(--aa-green, #0b6e4f); border-color: var(--aa-green, #0b6e4f); color: #fff; }
.fr-crm-seg .n { opacity: .75; font-weight: 600; margin-left: 3px; }
.fr-crm-export { margin-left: auto; }
.fr-crm-list { display: flex; flex-direction: column; gap: 8px; }
.fr-crm-row { background: #fff; border: 1px solid #e4d9c8; border-radius: 12px; padding: 10px 13px; }
.fr-crm-row.anon { opacity: .8; }
.fr-crm-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fr-crm-main .who { flex: 1; min-width: 160px; }
.fr-crm-main .name { font-weight: 700; color: var(--aa-ink, #2b2118); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fr-crm-main .meta { font-size: 12px; color: #8d7f6c; }
.fr-crm-main .note { font-size: 12.5px; color: #5c5044; margin-top: 2px; font-style: italic; }
.fr-crm-main .amount { font-weight: 800; color: var(--aa-green-deep, #084c37); white-space: nowrap; }
.fr-crm-main .amount span { font-size: 11px; color: #8d7f6c; }
.fr-crm-main .acts { display: flex; align-items: center; gap: 6px; }
.fr-crm-thanked { font-size: 12px; color: var(--aa-green, #0b6e4f); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.fr-crm-editor { margin-top: 9px; border-top: 1px dashed #e4d9c8; padding-top: 9px; }
.fr-crm-editor textarea {
  width: 100%; border: 1px solid #e4d9c8; border-radius: 9px; padding: 8px 10px; font: inherit;
  font-size: 13.5px; resize: vertical; box-sizing: border-box;
}
.fr-crm-editor .row { display: flex; gap: 8px; margin-top: 7px; }
.fr-banner-actions { display: inline-flex; gap: 8px; margin-left: auto; }
.fr-chip.payee { color: #7a5200; background: rgba(242,169,0,0.16); text-transform: none; letter-spacing: 0; font-size: 11.5px; gap: 4px; }
.fr-story p { margin: 0 0 10px; line-height: 1.55; color: #4b4237; }
.fr-raised b { font-size: 22px; color: var(--aa-ink, #2b2118); }
.fr-raised span { font-size: 13px; color: #8d7f6c; margin-left: 6px; }
.fr-donors-line { font-size: 12.5px; color: #8d7f6c; margin: 4px 0 12px; }
.fr-anon { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b4237; cursor: pointer; }
.fr-room-link { margin-top: 10px; }
.fr-share-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.fr-qr { display: flex; justify-content: center; }
.fr-qr svg { width: 150px; height: 150px; border-radius: 8px; }
.fr-update { border-left: 3px solid var(--aa-gold, #f2a900); padding: 6px 12px; margin-bottom: 10px; }
.fr-update .meta { font-size: 12px; color: #8d7f6c; margin-bottom: 2px; }
.fr-update-compose { display: grid; gap: 8px; margin-bottom: 14px; }
.fr-update-compose textarea, .fr-wizard textarea {
  border: 1px solid var(--aa-sand-2, #efe5d3); border-radius: 10px; padding: 9px 12px;
  font: inherit; font-size: 13.5px; resize: vertical; background: var(--aa-white, #fff);
}
.fr-tag-list { display: grid; gap: 6px; max-height: 200px; overflow-y: auto; margin: 8px 0; }
.fr-tag-user { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: var(--aa-ink, #2b2118); }
.fr-tag-user .ws-avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.fr-flag { font-size: 12px; color: #8d7f6c; padding: 6px 0; border-bottom: 1px dashed var(--aa-sand-2, #efe5d3); }
.fr-flag.sev3 { color: #b3261e; }
.fr-flag .mdi { margin-right: 4px; }

/* Event ticketing */
.fr-event {
  background: var(--aa-white, #fff); border: 1px solid var(--aa-sand-2, #efe5d3);
  border-left: 4px solid var(--aa-green, #0b6e4f); border-radius: 12px;
  padding: 11px 14px; margin-bottom: 10px;
}
.fr-event.cancelled { border-left-color: #b3261e; opacity: .75; }
.fr-event-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--aa-ink, #2b2118); }
.fr-event-head .fr-chip.cancelled { color: #b3261e; background: rgba(206,17,38,0.1); }
.fr-event-meta { font-size: 12.5px; color: #8d7f6c; margin-top: 2px; }
.fr-event-desc { font-size: 13px; color: #5c5044; margin-top: 4px; }
.fr-event-ticket {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--aa-green-deep, #084c37); background: rgba(11,110,79,0.1);
  border-radius: 8px; padding: 5px 9px; margin-top: 6px; width: fit-content;
}
.fr-event-ticket.join { color: #1e6fa8; background: rgba(30,111,168,0.1); }
.fr-event-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.fr-event-code {
  border: 1px solid var(--aa-sand-2, #efe5d3); border-radius: 10px; padding: 7px 10px;
  font: inherit; font-size: 12.5px; width: 130px; text-transform: uppercase;
}
.fr-event-create { margin: 4px 0 14px; font-size: 13.5px; color: var(--aa-ink, #2b2118); }
.fr-event-create summary { cursor: pointer; font-weight: 700; }
.fr-event-create input[type="datetime-local"] {
  border: 1px solid var(--aa-sand-2, #efe5d3); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13.5px;
}

/* Auctions */
.fr-auction {
  background: var(--aa-white, #fff); border: 1px solid var(--aa-sand-2, #efe5d3);
  border-left: 4px solid var(--aa-gold, #f2a900); border-radius: 12px;
  padding: 11px 14px; margin-bottom: 10px;
}
.fr-auction.settled { border-left-color: var(--aa-green, #0b6e4f); }
.fr-auction.cancelled { border-left-color: #b3261e; opacity: .75; }
.fr-auction .fr-chip.won { color: var(--aa-green-deep, #084c37); background: rgba(11,110,79,0.12); text-transform: none; letter-spacing: 0; }
.fr-event-code.bid { width: 110px; text-transform: none; }

/* Campaign media */
.fr-cover-banner {
  border-radius: var(--aa-radius, 14px); overflow: hidden; margin-bottom: 12px;
  border-bottom: 4px solid var(--aa-gold, #f2a900); box-shadow: var(--aa-shadow);
}
.fr-cover-banner img, .fr-cover-banner video { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.fr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.fr-gallery img, .fr-gallery video {
  width: 100%; height: 90px; object-fit: cover; border-radius: 10px; display: block;
  border: 1px solid var(--aa-sand-2, #efe5d3);
}
.fr-media-row {
  display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px;
  border-bottom: 1px dashed var(--aa-sand-2, #efe5d3);
}
.fr-media-row .thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.fr-media-row .thumb-icon { font-size: 22px; color: #8d7f6c; width: 34px; text-align: center; }
.fr-media-row .name { flex: 1; color: var(--aa-ink, #2b2118); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-media-add { display: inline-flex; cursor: pointer; margin-top: 8px; }

/* Corporate matching */
.fr-match-boost {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  color: var(--aa-green-deep, #084c37); background: rgba(11,110,79,0.1);
  border-radius: 10px; padding: 7px 11px; margin-bottom: 8px;
}
.fr-match-boost .mdi { color: var(--aa-green, #0b6e4f); font-size: 16px; }
.fr-pledge { padding: 7px 0; border-bottom: 1px dashed var(--aa-sand-2, #efe5d3); }
.fr-pledge:last-of-type { border-bottom: 0; }
.fr-pledge .line { font-size: 13px; color: var(--aa-ink, #2b2118); }
.fr-pledge .meta { font-size: 12px; color: #8d7f6c; margin-top: 1px; }
.fr-pledge.exhausted .line, .fr-pledge.paused .line { color: #8d7f6c; }

/* Team co-organizers */
.fr-team-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px dashed var(--aa-sand-2, #efe5d3); font-size: 13px;
}
.fr-team-row .name { flex: 1; font-weight: 700; color: var(--aa-ink, #2b2118); }
.fr-team-row .ws-avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.fr-team-add { display: flex; gap: 8px; margin-top: 8px; }
.fr-team-add select {
  flex: 1; border: 1px solid var(--aa-sand-2, #efe5d3); border-radius: 10px; padding: 7px 10px;
  font: inherit; font-size: 13px; background: var(--aa-white, #fff); color: var(--aa-ink, #2b2118);
}

/* Wizard */
.fr-wizard .fr-wizard-card { max-width: 640px; }
.fr-wizard label { font-size: 12.5px; font-weight: 700; color: var(--aa-ink, #2b2118); margin-top: 4px; }
.fr-steps { display: flex; gap: 10px; margin: 4px 0 18px; flex-wrap: wrap; }
.fr-step {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #8d7f6c;
  background: var(--aa-white, #fff); border: 1px solid var(--aa-sand-2, #efe5d3);
  border-radius: 999px; padding: 5px 14px 5px 6px;
}
.fr-step .n {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--aa-sand-2, #efe5d3); font-size: 11px;
}
.fr-step.active { color: var(--aa-terracotta, #c1440e); border-color: var(--aa-terracotta, #c1440e); }
.fr-step.active .n { background: var(--aa-terracotta, #c1440e); color: #fff; }
.fr-step.done { color: var(--aa-green, #0b6e4f); }
.fr-step.done .n { background: var(--aa-green, #0b6e4f); color: #fff; }
.fr-emoji-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fr-emoji-pick {
  font-size: 20px; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--aa-sand-2, #efe5d3); background: var(--aa-white, #fff);
}
.fr-emoji-pick.active { border-color: var(--aa-terracotta, #c1440e); background: rgba(193,68,14,0.08); }
.fr-ai-box {
  display: grid; gap: 8px; background: rgba(242,169,0,0.08); border: 1px dashed var(--aa-gold, #f2a900);
  border-radius: 12px; padding: 12px;
}
.fr-ai-head { font-size: 12.5px; font-weight: 800; color: #8d6e00; display: flex; align-items: center; gap: 6px; }
.fr-ai-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fr-title-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.fr-wizard-nav { display: flex; justify-content: space-between; margin-top: 10px; }

/* Recurring gifts */
.fr-plans { margin-bottom: 18px; }
.fr-plan-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px dashed var(--aa-sand-2, #efe5d3);
}
.fr-plan-row:last-child { border-bottom: 0; }
.fr-plan-row .name { font-weight: 700; color: var(--aa-ink, #2b2118); text-decoration: none; }
.fr-plan-row .name:hover { color: var(--aa-terracotta, #c1440e); }
.fr-plan-row .meta { font-size: 12.5px; color: #8d7f6c; }
.fr-plan-row.paused .name { color: #8d7f6c; }
.fr-plan-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Donor analytics dashboards */
.fr-an-switch {
  border: 1px solid var(--aa-sand-2, #efe5d3); border-radius: 10px; padding: 8px 12px;
  font: inherit; font-size: 13.5px; background: var(--aa-white, #fff); color: var(--aa-ink, #2b2118);
}
.fr-an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fr-an-tile {
  background: var(--aa-white, #fff); border-radius: var(--aa-radius, 14px); box-shadow: var(--aa-shadow);
  padding: 14px 16px;
}
.fr-an-tile .lbl { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #8d7f6c; }
.fr-an-tile .num { font-size: 24px; font-weight: 900; color: var(--aa-ink, #2b2118); margin: 2px 0; }
.fr-an-tile .num span { font-size: 13px; font-weight: 700; color: #8d7f6c; }
.fr-an-tile .sub2 { font-size: 12px; color: #8d7f6c; }
.fr-an-tile.hero { border-bottom: 4px solid var(--aa-gold, #f2a900); }
.fr-an-tile.hero .num { font-size: 30px; color: var(--aa-terracotta, #c1440e); }
.fr-an-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .fr-an-grid { grid-template-columns: 1fr; } }
.fr-an-chart { width: 100%; height: auto; display: block; }
.fr-an-chart .bar { fill: var(--aa-terracotta, #c1440e); }
.fr-an-chart .bar.empty { fill: transparent; }
.fr-an-chart .bar:hover { fill: var(--aa-sunset, #e2711d); }
.fr-an-chart .grid { stroke: var(--aa-sand-2, #efe5d3); stroke-width: 1; }
.fr-an-chart .axis { stroke: #c9bda9; stroke-width: 1; }
.fr-an-chart .tick, .fr-an-chart .peak { font-size: 10px; fill: #8d7f6c; }
.fr-an-chart .peak { font-weight: 700; fill: var(--aa-ink, #2b2118); }
.fr-an-table { margin-top: 8px; font-size: 12.5px; color: #8d7f6c; }
.fr-an-table summary { cursor: pointer; }
.fr-an-table table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.fr-an-table td, .fr-an-table th { padding: 3px 6px; text-align: right; border-bottom: 1px dashed var(--aa-sand-2, #efe5d3); }
.fr-an-table td:first-child, .fr-an-table th:first-child { text-align: left; }
.fr-an-source { margin-bottom: 9px; }
.fr-an-source .row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 3px; }
.fr-an-source .lbl { font-weight: 700; color: var(--aa-ink, #2b2118); }
.fr-an-source .val { color: #8d7f6c; }
.fr-an-source .track { height: 8px; border-radius: 999px; background: var(--aa-sand-2, #efe5d3); overflow: hidden; }
.fr-an-source .fill { height: 100%; border-radius: 999px; background: var(--aa-terracotta, #c1440e); }
.fr-an-donor {
  display: flex; justify-content: space-between; gap: 8px; font-size: 13px;
  padding: 6px 0; border-bottom: 1px dashed var(--aa-sand-2, #efe5d3);
}
.fr-an-donor:last-child { border-bottom: 0; }
.fr-an-donor .name { font-weight: 700; color: var(--aa-ink, #2b2118); }
.fr-an-donor .val { color: #8d7f6c; white-space: nowrap; }

/* Chat bubbles */
.msg-fundraiser {
  display: grid; gap: 6px; background: var(--aa-white, #fff); border: 1px solid var(--aa-sand-2, #efe5d3);
  border-left: 4px solid var(--aa-terracotta, #c1440e); border-radius: 12px; padding: 10px 12px; max-width: 320px;
}
.msg-fundraiser.donation { border-left-color: var(--aa-gold, #f2a900); }
.msg-fundraiser .money-head { display: flex; align-items: center; gap: 7px; color: var(--aa-ink, #2b2118); }
.msg-fundraiser .money-head .mdi { color: var(--aa-terracotta, #c1440e); font-size: 18px; }
.msg-fundraiser.donation .money-head .mdi { color: var(--aa-red, #ce1126); }

/* ============ Legal pages (privacy, terms) ============ */
.aa-legal-hero {
    background: linear-gradient(135deg, var(--aa-terracotta, #c1440e), #8f2f08);
    color: #fff;
    padding: 64px 0 40px;
}
.aa-legal-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 0 0 10px; }
.aa-legal-meta { font-size: 15px; opacity: .9; margin: 0; }
.aa-legal { max-width: 760px; line-height: 1.8; font-size: 16px; color: var(--aa-ink, #23201d); }
.aa-legal h2 { font-size: 22px; font-weight: 700; margin: 38px 0 12px; color: var(--aa-terracotta, #c1440e); }
.aa-legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; }
.aa-legal p { margin: 0 0 14px; }
.aa-legal ul { margin: 0 0 16px; padding-left: 22px; }
.aa-legal li { margin-bottom: 8px; }
.aa-legal a { color: var(--aa-green, #0b6e4f); font-weight: 600; }
.aa-legal-foot {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, .1);
    color: var(--aa-terracotta, #c1440e);
}
.aa-legal-callout {
    background: var(--aa-sand, #faf4ea);
    border: 1px solid rgba(193, 68, 14, .25);
    border-left: 4px solid var(--aa-terracotta, #c1440e);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
}
.aa-legal-callout h3 { margin-top: 0; }
.aa-legal-callout .aa-btn { margin-top: 8px; }
