/* App demo - vibrant app-like redesign */
/* iPhone-style device frame around the live prototype */
.app-demo-device-wrap {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 1.75rem;
    width: 100%;
}

.app-demo-device {
    width: 100%;
    max-width: 390px;
    padding: 11px;
    background: linear-gradient(165deg, #3f3f42 0%, #252527 38%, #121214 100%);
    border-radius: 52px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.07) inset,
        0 36px 72px -20px rgba(0, 0, 0, 0.55),
        0 16px 32px rgba(0, 0, 0, 0.35);
}

.app-demo-device__inner {
    position: relative;
    border-radius: 42px;
    overflow: hidden;
    background: #000;
}

.app-demo-device__dynamic-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 34px;
    background: #0a0a0a;
    border-radius: 20px;
    z-index: 20;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.app-demo-device__screen {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 580px;
    max-height: min(78vh, 740px);
    background: #f2f2f7;
    border-radius: 38px;
    overflow: hidden;
    padding-top: 48px;
}

.app-demo-device__screen::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 132px;
    height: 5px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 100px;
    z-index: 25;
    pointer-events: none;
}

.app-demo-device__screen #app-demo-root {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-demo-device__screen #app-demo-root > .app-demo__auth,
.app-demo-device__screen #app-demo-root > .app-demo__shell--profile {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-demo-device__screen .app-demo__shell--main,
.app-demo-device__screen .app-demo__shell--profile {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.app-demo-device__screen .app-demo__shell--main {
    background: #f2f2f7;
}

.app-demo-device__screen .app-demo__shell--profile {
    background: linear-gradient(180deg, #f8fbff, #ffffff 35%, #f8fafc 100%);
    min-height: 100%;
}

.app-demo {
    --demo-green: #16a34a;
    --demo-green-2: #22c55e;
    --demo-teal: #0ea5e9;
    --demo-indigo: #6366f1;
    --demo-ink: #0f172a;
    --demo-muted: #64748b;
    --demo-card: #ffffff;
    max-width: 44rem;
    margin: 0 auto;
    position: relative;
    padding: 0.2rem 0.2rem 0.5rem;
}

.app-demo::before {
    content: "";
    position: absolute;
    inset: -52px -18px auto -18px;
    height: 220px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 26%, rgba(34, 197, 94, 0.28), transparent 44%),
        radial-gradient(circle at 88% 18%, rgba(14, 165, 233, 0.24), transparent 42%),
        radial-gradient(circle at 54% 4%, rgba(99, 102, 241, 0.2), transparent 36%),
        linear-gradient(130deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.86));
    pointer-events: none;
    z-index: -1;
}

.app-demo__kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f766e;
    margin: 0 0 0.45rem;
}

.app-demo__title {
    font-family: Outfit, system-ui, sans-serif;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.65rem;
    line-height: 1.08;
    color: var(--demo-ink);
    text-wrap: balance;
}

.app-demo__lead {
    font-size: 1rem;
    line-height: 1.58;
    color: #334155;
    margin: 0 0 1.25rem;
}

.app-demo__warn {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #92400e;
    background: linear-gradient(180deg, #fffbeb, #fff7d6);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 0.78rem 1rem;
    margin-bottom: 1.05rem;
}

.app-demo__portal-cta {
    margin: 0 0 1.1rem;
    font-size: 0.9375rem;
}

.app-demo__portal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #15803d;
    text-decoration: none;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(22, 163, 74, 0.45);
    background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
}

.app-demo__portal-link:hover {
    background: linear-gradient(180deg, #dcfce7, #d1fae5);
    border-color: rgba(22, 163, 74, 0.65);
}

.app-demo__persona {
    display: grid;
    grid-template-columns: auto minmax(10rem, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid #dbe7f4;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.app-demo__persona select {
    margin: 0;
}

.app-demo__who {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    border: 1px solid #d7e2ef;
    border-radius: 10px;
    padding: 0.56rem 0.7rem;
}

.app-demo__persona-actions {
    display: flex;
    gap: 0.45rem;
}

.app-demo__panel {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 1.15rem 1.1rem;
    margin-bottom: 0.95rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: transform 180ms ease, box-shadow 200ms ease;
}

.app-demo__panel:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.06);
}

.app-demo__panel h2 {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.72rem;
    color: #0f172a;
}

.app-demo__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    margin-bottom: 0.32rem;
}

.app-demo input[type="text"],
.app-demo select {
    width: 100%;
    padding: 0.65rem 0.74rem;
    border-radius: 11px;
    border: 1px solid #d7e2ef;
    font-family: inherit;
    font-size: 0.9375rem;
    margin-bottom: 0.72rem;
    box-sizing: border-box;
    background: #fff;
    color: #0f172a;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.app-demo input[type="text"]:focus,
.app-demo select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
    background: #fcfeff;
}

.app-demo__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.62rem 1rem;
    border-radius: 11px;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--demo-green-2), var(--demo-green));
    color: #fff;
    box-shadow: 0 10px 18px rgba(22, 163, 74, 0.28);
    transition: transform 140ms ease, box-shadow 160ms ease, filter 140ms ease;
}

.app-demo__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 12px 20px rgba(22, 163, 74, 0.32);
}

.app-demo__btn--ghost {
    background: linear-gradient(180deg, #f8fafc, #ecf2f9);
    color: #334155;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.app-demo__btn--sm {
    padding: 0.45rem 0.78rem;
    font-size: 0.805rem;
}

.app-demo__btn--on {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
}

.app-demo__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.app-demo__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.52rem;
    align-items: center;
    margin-bottom: 0.74rem;
}

.app-demo__plan-row {
    padding: 0.63rem 0.72rem;
    border: 1px solid #d5e5f4;
    border-radius: 13px;
    margin-bottom: 0.62rem;
    background: linear-gradient(145deg, #ffffff, #f2f7fd);
}

.app-demo__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-demo__list li {
    padding: 0.72rem 0;
    border-bottom: 1px solid #e7eef8;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.app-demo__list li:last-child {
    border-bottom: none;
}

.app-demo__match {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.69rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #047857;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}

.app-demo__svc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.app-demo__svc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.25;
    color: #334155;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border: 1px solid #d8e4f1;
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
}

.app-demo__svc-chip i {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e2e8f0;
    color: #334155;
    padding: 0.15rem 0.38rem;
    border-radius: 999px;
}

.app-demo__svc-chip--same {
    background: linear-gradient(180deg, #ecfdf5, #dcfce7);
    border-color: #4ade80;
    color: #065f46;
}

.app-demo__svc-chip--same i {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.app-demo__empty {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

.app-demo__subhead {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    margin: 1.15rem 0 0.35rem;
    color: #334155;
}

.app-demo__lookup-result {
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.app-demo__lookup-result[hidden] {
    display: none !important;
}

.app-demo__lookup-result--empty {
    padding: 0;
    margin: 0;
}

.app-demo__lookup-result--ok {
    background: linear-gradient(180deg, #ecfdf5, #f0fdf4);
    border: 1px solid #86efac;
    color: #065f46;
}

.app-demo__lookup-result--bad {
    background: linear-gradient(180deg, #fef2f2, #fff1f2);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.app-demo__lookup-result p {
    margin: 0 0 0.5rem;
}

.app-demo__lookup-result p:last-child {
    margin-bottom: 0;
}

.app-demo__mono {
    font-family: ui-monospace, monospace;
    font-weight: 700;
    color: #64748b;
}

.app-demo__group-card {
    border: 1px solid #dbe7f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 0.8rem;
    margin-bottom: 0.6rem;
}

.app-demo__group-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.55rem;
}

.app-demo__group-head strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.app-demo__group-head p {
    margin: 0.15rem 0 0;
    font-size: 0.76rem;
    color: #64748b;
}

.app-demo__group-count {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
}

.app-demo__group-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.app-demo__map {
    border: 1px solid #dbe7f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 0.75rem;
}

.app-demo__map p {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    color: #334155;
}

.app-demo__map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.app-demo__map-cell {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #dbe7f4;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    text-align: center;
}

.app-demo__map-cell--on {
    background: linear-gradient(180deg, #ecfdf5, #dcfce7);
    border-color: #86efac;
    color: #166534;
}

.app-demo__circle {
    border: 1px solid #dbe7f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 0.75rem;
}

.app-demo__circle-title {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
}

.app-demo__circle-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-demo__circle-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.36rem 0;
    border-bottom: 1px solid #eef2f7;
}

.app-demo__circle-list li:last-child {
    border-bottom: none;
}

.app-demo__circle-list strong {
    font-size: 0.78rem;
    color: #0f172a;
}

.app-demo__circle-list span {
    font-size: 0.73rem;
    color: #64748b;
    text-align: right;
}

/* Expandable groups (Best 5, Thursday Bible) */
.app-demo__expandable-groups {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.app-demo__group-exp {
    border: 1px solid #dbe7f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fafbfc);
    overflow: hidden;
}

.app-demo__group-exp-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    list-style: none;
    padding: 0.72rem 0.85rem;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
    -webkit-tap-highlight-color: transparent;
}

.app-demo__group-exp-summary::-webkit-details-marker {
    display: none;
}

.app-demo__group-exp-title {
    flex: 1;
    line-height: 1.2;
    text-align: left;
}

.app-demo__group-exp-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.app-demo__group-exp-badge {
    font-size: 0.7rem;
    font-weight: 800;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    padding: 0.12rem 0.42rem;
    border-radius: 8px;
    min-width: 1.35rem;
    text-align: center;
}

.app-demo__group-exp-chevron {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-bottom: 2px;
}

.app-demo__group-exp[open] .app-demo__group-exp-chevron {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

.app-demo__group-exp[open] .app-demo__group-exp-summary {
    border-bottom: 1px solid #e8eef4;
    background: rgba(236, 253, 245, 0.35);
}

.app-demo__group-exp-lead {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
    padding: 0.5rem 0.85rem 0.35rem;
    line-height: 1.4;
}

.app-demo__group-member-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.65rem 0.65rem;
}

.app-demo__group-member {
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid #f1f5f9;
}

.app-demo__group-member:last-child {
    border-bottom: none;
}

.app-demo__group-member-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.app-demo__group-member-top strong {
    font-size: 0.84rem;
    color: #0f172a;
}

.app-demo__group-member-plans {
    margin: 0.28rem 0 0;
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.4;
}

.app-demo__match--svc {
    font-size: 0.62rem;
    padding: 0.1rem 0.32rem;
    flex-shrink: 0;
}

.app-demo__plan-overlap-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.app-demo__plan-overlap-chip {
    font-size: 0.65rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 0.22rem 0.45rem;
    line-height: 1.25;
}

.app-demo__auth {
    display: grid;
    gap: 0.8rem;
}

.app-demo__auth-hero {
    border-radius: 18px;
    padding: 0.95rem 1rem 0.85rem;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.35), transparent 40%),
        linear-gradient(130deg, #0ea5e9, #16a34a 46%, #22c55e 78%);
    color: #f0fdfa;
}

.app-demo__auth-k {
    margin: 0 0 0.24rem;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-demo__auth-hero h3 {
    margin: 0 0 0.35rem;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 1.15rem;
    line-height: 1.1;
}

.app-demo__auth-hero p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.35;
}

.app-demo__auth-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #d6e3f2;
    border-radius: 18px;
    padding: 0.95rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.app-demo__auth-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.app-demo__auth-tab {
    flex: 1;
    border: 1px solid #d7e2ef;
    background: #f8fafc;
    color: #475569;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem;
}

.app-demo__auth-tab--on {
    background: #e8f7ee;
    border-color: #86efac;
    color: #166534;
}

.app-demo__shell {
    background: linear-gradient(180deg, #f8fbff, #ffffff 25%, #f8fafc 100%);
    border: 1px solid #d6e3f2;
    border-radius: 26px;
    padding: 0.7rem 0.7rem 0.9rem;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14), 0 6px 14px rgba(15, 23, 42, 0.08);
}

.app-demo__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    padding: 0.25rem 0.2rem 0.45rem;
}

.app-demo__welcome {
    border-radius: 18px;
    padding: 0.95rem 0.95rem 0.85rem;
    margin: 0.1rem 0 0.9rem;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.38), transparent 40%),
        linear-gradient(130deg, #0ea5e9, #16a34a 46%, #22c55e 78%);
    color: #f0fdfa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 20px rgba(14, 116, 144, 0.25);
}

.app-demo__welcome-k {
    margin: 0 0 0.24rem;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.92;
}

.app-demo__welcome h3 {
    margin: 0 0 0.58rem;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 1.15rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.app-demo__welcome-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.app-demo__welcome-chips span {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

/* Legacy demo tabs (unused ? bottom nav replaces) */
.app-demo__tabs {
    margin-top: 0.15rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    border-radius: 13px;
    border: 1px solid #dbe5f1;
    background: #f8fafc;
    padding: 0.34rem;
}

.app-demo__tab {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748b;
    padding: 0.38rem 0.2rem;
    border-radius: 9px;
}

.app-demo__tab--on {
    background: #e8f7ee;
    color: #047857;
    border: 1px solid #86efac;
}

/* Main app: one tab panel + bottom navigation */
.app-demo__shell--main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: none;
    padding: 0.45rem 0.55rem 0;
    overflow: hidden;
}

.app-demo__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0.1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.app-demo__app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    padding: 0.15rem 0.1rem 0.25rem;
}

.app-demo__app-greeting {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
}

.app-demo__app-handle {
    margin: 0.12rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
}

.app-demo__app-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.app-demo__tab-title {
    font-size: 1.05rem;
    margin: 0 0 0.65rem;
    font-family: Outfit, system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.app-demo__home-pill {
    font-size: 0.8rem;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    margin: 0 0 0.75rem;
}

.app-demo__bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 6px 2px 22px;
    margin-top: auto;
    border-top: 0.5px solid rgba(60, 60, 67, 0.12);
    background: rgba(250, 250, 250, 0.86);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.app-demo__bottom-nav--three {
    grid-template-columns: repeat(3, 1fr);
}

.app-demo__social-toggle {
    display: flex;
    gap: 0;
    margin: 0 0 0.85rem;
    padding: 3px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.app-demo__social-seg {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 9px;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.app-demo__social-seg--on {
    background: #fff;
    color: #16a34a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.app-demo__social-pane[hidden] {
    display: none !important;
}

.app-demo__bottom-nav-btn {
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 4px 1px 2px;
    margin: 0;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    color: #8e8e93;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.app-demo__tab-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: inherit;
}

.app-demo__tab-svg {
    width: 25px;
    height: 25px;
    display: block;
}

.app-demo__tab-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 1px;
}

.app-demo__bottom-nav-btn--on {
    color: #16a34a;
    background: transparent;
}

.app-demo__bottom-nav-btn--on .app-demo__tab-svg {
    stroke-width: 2.1;
}

.app-demo__church-demo-note {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0 1rem;
    padding: 0.45rem 0.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    line-height: 1.35;
}

.app-demo__pastor-hero {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.app-demo__pastor-photo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(145deg, #16a34a, #0d9488);
    border-radius: 50%;
    border: 2px solid #ecfdf5;
}

.app-demo__pastor-photo--lg {
    width: 72px;
    height: 72px;
    font-size: 1.05rem;
}

.app-demo__pastor-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    font-family: Outfit, system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.app-demo__pastor-role {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.app-demo__care-card {
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ecfdf5, #f8fafc);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
}

.app-demo__care-phone {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #047857;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.app-demo__care-phone:active {
    opacity: 0.85;
}

.app-demo__care-hint {
    margin: 0.35rem 0 0 !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
}

.app-demo__floor-caption {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #475569;
}

.app-demo__floor-plan {
    border: 1px solid #dbe7f4;
    border-radius: 14px;
    background: #fff;
    padding: 0.35rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.app-demo__floor-svg {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.app-demo__staff-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-demo__staff-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef2f7;
}

.app-demo__staff-row:last-child {
    border-bottom: none;
}

.app-demo__staff-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #1e40af;
    background: linear-gradient(145deg, #dbeafe, #e0e7ff);
    border: 1px solid #bfdbfe;
}

.app-demo__staff-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.app-demo__staff-meta strong {
    font-size: 0.84rem;
    color: #0f172a;
}

.app-demo__staff-role {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
}

.app-demo__auth-register-only {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.app-demo__shell--profile {
    padding: 0.85rem;
}

@media (max-width: 620px) {
    .app-demo-device {
        max-width: 100%;
        padding: 9px;
        border-radius: 44px;
    }

    .app-demo-device__screen {
        min-height: 520px;
        max-height: min(82vh, 680px);
        border-radius: 34px;
        padding-top: 44px;
    }

    .app-demo__shell {
        border-radius: 18px;
        padding: 0.55rem 0.55rem 0.72rem;
    }
    .app-demo__welcome h3 {
        font-size: 1.02rem;
    }
    .app-demo__persona {
        grid-template-columns: 1fr;
    }
    .app-demo__persona-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .app-demo__btn,
    .app-demo__btn--ghost {
        width: 100%;
    }
}
