/* ==========================================================================
   Nave Landing Page — YC-Minimal Aesthetic
   ========================================================================== */

/* CSS Variables — Dark Mode (Testing) */
:root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #141414;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-text-light: #707070;
    --color-accent: #d4af37;
    --color-accent-hover: #c9a227;
    --color-border: #2a2a2a;
    --color-white: #1a1a1a;
    --color-success: #22c55e;
    
    --font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    
    --max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

input {
    font-family: inherit;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link-active {
    color: var(--color-text);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.nav-cta:active {
    transform: translateY(0);
}

/* ── Hamburger toggle (hidden on desktop) ──────── */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: #f5f5f5;
    cursor: pointer;
    padding: 6px;
    z-index: 102;
}
.nav-hamburger svg { display: block; }

/* ── Mobile menu backdrop ──────────────────────── */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.nav-backdrop.visible { display: block; }

/* Nav — mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-hamburger { display: flex; align-items: center; justify-content: center; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        height: 100dvh;
        background: rgba(14, 14, 18, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 32px;
        gap: 0;
        z-index: 101;
        transform: translateX(100%);
        border-left: 1px solid #2a2a2a;
    }

    .nav-links.ready { transition: transform 0.3s ease; }
    .nav-links.open { transform: translateX(0); }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid #1a1a1a;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-hero {
    padding-top: calc(80px + var(--spacing-2xl));
    padding-bottom: var(--spacing-xl);
    background: var(--color-bg);
}

.about-hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.about-headline {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.about-subtext {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Vision Section */
.about-vision {
    padding-top: calc(80px + var(--spacing-2xl));
    padding-bottom: var(--spacing-xl);
    background: var(--color-bg-alt);
}

.about-vision-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.vision-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.vision-text:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--color-text);
}

/* Founders Section */
.about-founders {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg);
}

.about-founders-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.about-founders .section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.founder-card {
    padding: var(--spacing-xl);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.founder-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.founder-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.founder-story {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr;
    }
    
    .founder-card {
        padding: var(--spacing-lg);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    padding-top: calc(60px + var(--spacing-lg));
    padding-bottom: var(--spacing-2xl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Mobile video and legend (hidden on desktop) */
.hero-bg-video {
    display: none;
}

/* Hide mobile legend on desktop */
.hero > .hero-legend:not(.hero-legend-desktop) {
    display: none;
}

/* Desktop legend is visible */
.hero-legend-desktop {
    display: flex !important;
    margin: 30px auto 0 auto !important;
    padding: var(--spacing-lg) var(--spacing-xl) !important;
    width: 100%;
    max-width: 900px;
    justify-content: center;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.headline-mobile {
    display: none;
}

.headline-desktop {
    display: inline;
}

.hero-subtext {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* Form Styles */
.hero-form,
.cta-form {
    margin-bottom: var(--spacing-sm);
}

.form-group {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.form-group input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg-alt);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-group input[type="email"]::placeholder {
    color: var(--color-text-light);
}

.btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-text);
    border-radius: var(--border-radius);
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-explore-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    background: var(--color-accent);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn-explore-map:hover {
    background: #d4af37;
    transform: translateY(-1px);
}

.btn-explore-map:active {
    transform: translateY(0);
}

.btn-explore-map svg {
    flex-shrink: 0;
}

/* Map CTA Button */
.btn-map-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: calc(0.75rem + 1px) 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    box-sizing: border-box;
    color: var(--color-text);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-map-cta svg {
    flex-shrink: 0;
}

.btn-map-cta:hover {
    background: #222;
    border-color: #444;
    transform: translateY(-1px);
}

.btn-map-cta:active {
    transform: translateY(0);
}

.form-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

.form-success {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--border-radius);
    color: var(--color-success);
    font-weight: 500;
}

.form-success.hidden {
    display: none;
}

/* Hero Visual (Phone + Legend) */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    justify-self: center;
}

.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hero-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    margin-top: 0;
    margin: 0 auto var(--spacing-lg);
    max-width: var(--max-width);
}

.legend-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.legend-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(8, auto);
    justify-content: center;
    gap: 12px 24px;
}

@media (max-width: 900px) {
    .legend-list {
        grid-template-columns: repeat(4, auto);
    }
}

@media (max-width: 500px) {
    .legend-list {
        grid-template-columns: repeat(2, auto);
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.iphone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 48px;
    padding: 10px;
    border: 3px solid #3a3a3a;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 40px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: rotate(3deg);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.iphone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-alt);
}

.features-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    padding: var(--spacing-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Social Proof Section
   ========================================================================== */

.social-proof {
    padding: var(--spacing-2xl) 0;
    background: #0a0a0a;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.social-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.stat-number {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

.proof-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.bulk-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.bulk-cta .proof-text strong {
    color: var(--color-text);
}

.bulk-buttons {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent);
    background: transparent;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
}

.partner-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-divider {
    color: var(--color-border);
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.final-cta {
    padding: var(--spacing-2xl) 0;
    background: #141414;
    color: #f5f5f5;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.cta-headline {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-lg);
}

.cta-form {
    margin-bottom: var(--spacing-md);
}

.cta-form .form-group {
    justify-content: center;
}

.cta-form input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f5;
}

.cta-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cta-form input[type="email"]:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.cta-form .btn-primary {
    background: var(--color-accent);
    color: #0a0a0a;
}

.cta-form .btn-primary:hover {
    background: #e5c04a;
}

.final-cta .form-success {
    background: rgba(34, 197, 94, 0.2);
    justify-content: center;
}

/* App Store Badge */
.app-store-badge {
    margin-top: var(--spacing-lg);
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    color: #f5f5f5;
}

.coming-soon-badge svg {
    width: 28px;
    height: 28px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-small {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.badge-large {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-logo-img {
    width: 24px;
    height: 24px;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 72px;
        padding-bottom: var(--spacing-lg);
        min-height: auto;
        flex-direction: column;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-headline {
        padding-top: var(--spacing-md);
    }
    
    .headline-desktop {
        display: none;
    }
    
    .headline-mobile {
        display: inline;
    }
    
    .form-group {
        justify-content: center;
    }
    
    .hero-bg-video {
        display: block;
        width: calc(100% - 32px);
        height: 55vh;
        overflow: hidden;
        margin: 0 auto;
        border-radius: 40px 40px 0 0;
        background: #1a1a1a;
        padding: 8px;
        padding-bottom: 0;
        border: 3px solid #3a3a3a;
        border-bottom: none;
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.25),
            0 20px 60px rgba(0, 0, 0, 0.15);
    }
    
    .hero-bg-video video {
        width: 100%;
        height: 150%;
        object-fit: cover;
        object-position: center top;
        border-radius: 32px 32px 0 0;
    }
    
    .hero > .hero-legend {
        display: flex;
    }
    
    .hero-container {
        position: relative;
        z-index: 1;
    }
    
    .hero-phone {
        display: none;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-legend-desktop {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-legend {
        height: auto;
        padding: var(--spacing-sm) var(--spacing-sm);
        margin: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
        border-radius: var(--border-radius-lg);
    }
    
    .legend-list {
        display: grid;
        grid-template-columns: repeat(4, auto);
        gap: 8px 12px;
    }
    
    .legend-item {
        gap: 4px;
    }
    
    .legend-dot {
        width: 10px;
        height: 10px;
    }
    
    .legend-label {
        font-size: 0.7rem;
    }
    
    .legend-title {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }
    
    .iphone-frame {
        width: 240px;
        height: 327px;
        border-radius: 44px 44px 0 0;
        padding: 10px;
        padding-bottom: 0;
    }
    
    .iphone-screen {
        height: 470px;
        border-radius: 36px 36px 0 0;
    }
    
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input[type="email"],
    .btn-primary,
    .btn-explore-map {
        width: 100%;
        justify-content: center;
    }
    
    .form-note {
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .partner-logos {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .partner-divider {
        display: none;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-2xl: 4rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}


/* ==========================================================================
   Ask Gabriel Section
   ========================================================================== */

.ask-gabriel {
    padding: var(--spacing-2xl) var(--spacing-md);
    background: linear-gradient(180deg, var(--color-bg) 0%, #0f0f12 100%);
    overflow: visible;
}

.gabriel-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-xl);
    align-items: center;
}

.gabriel-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.gabriel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.gabriel-subtitle {
    font-size: 1.25rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.gabriel-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.gabriel-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.example-chip {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.example-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.gabriel-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gabriel-icon svg { display: block; position: relative; z-index: 1; }

.gabriel-icon {
    position: relative;
    display: inline-flex;
}

.gabriel-icon::after {
    content: '';
    position: absolute;
    inset: 15%;
    border-radius: 22%;
    background: rgba(0, 122, 255, 0.45);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .gabriel-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .gabriel-title {
        font-size: 2rem;
    }
    
    .gabriel-desc {
        max-width: 100%;
    }
    
    .gabriel-examples {
        justify-content: center;
    }
    
    .gabriel-visual {
        order: -1;
    }
    
    .gabriel-icon {
        justify-self: center;
    }

    .gabriel-icon svg {
        display: block;
        width: 100px;
        height: 100px;
    }
}

/* ==========================================================================
   Floating Ask Gabriel Button
   ========================================================================== */

.fab-gabriel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #007AFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 122, 255, 0.35);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-gabriel:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 122, 255, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.fab-gabriel:active {
    transform: scale(0.95);
}

.fab-gabriel svg {
    display: block;
}

@media (max-width: 768px) {
    .fab-gabriel {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: transparent;
        box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    .fab-gabriel svg {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================================
   Engage/Network Section
   ========================================================================== */

.engage-section {
    padding: var(--spacing-2xl) var(--spacing-md);
    background: var(--color-bg-alt);
    overflow: visible;
}

.engage-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.engage-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.engage-icon {
    position: relative;
    display: inline-flex;
}

.engage-icon::after {
    content: '';
    position: absolute;
    inset: 15%;
    border-radius: 22%;
    background: rgba(76, 139, 245, 0.4);
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

.engage-icon svg {
    display: block;
    position: relative;
    z-index: 1;
}

.engage-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(76, 139, 245, 0.15), rgba(76, 139, 245, 0.05));
    border: 1px solid rgba(76, 139, 245, 0.3);
    color: #4C8BF5;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.engage-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.engage-subtitle {
    font-size: 1.25rem;
    color: #4C8BF5;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.engage-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.engage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.engage-chip {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.engage-chip:hover {
    border-color: #4C8BF5;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .engage-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .engage-title {
        font-size: 2rem;
    }
    
    .engage-desc {
        max-width: 100%;
    }
    
    .engage-chips {
        justify-content: center;
    }
    
    .engage-visual {
        order: -1;
    }
    
    .engage-icon svg {
        width: 100px;
        height: 100px;
    }
}

/* ==========================================================================
   Partner Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-md);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.modal-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.modal-field input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.modal-field input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.modal-field input::placeholder {
    color: var(--color-text-light);
}

.modal-submit {
    margin-top: var(--spacing-sm);
    width: 100%;
}

.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    color: var(--color-success);
    text-align: center;
}

.modal-success.hidden {
    display: none;
}

.modal-success p {
    font-size: 1.125rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .modal-content {
        padding: var(--spacing-lg);
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Join Flow
   ========================================================================== */
.join-page .nav { position: sticky; }
.join-wrapper {
    max-width: 880px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}
.join-hero {
    text-align: center;
    margin-bottom: 32px;
}
.join-hero-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
}
.join-steps {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.join-steps::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #EF4444, #F97316, #EAB308, #22C55E, #06B6D4, #3B82F6, #8B5CF6);
    z-index: 0;
    opacity: 0.35;
}
.join-steps::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: #111;
    z-index: 1;
}
.join-steps > * {
    position: relative;
    z-index: 2;
}
.join-step-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 28px;
    position: relative;
}
.join-step-indicator::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: #2a2a2a;
}
.join-step-indicator .join-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    color: #555;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.join-step-indicator .join-step-dot::before {
    content: '';
    order: 1;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #141414;
    border: 2px solid #3a3a3a;
    transition: all 0.2s ease;
}
.join-step-indicator .join-step-dot.active {
    color: #f5f5f5;
    font-weight: 600;
}
.join-step-indicator .join-step-dot.active::before {
    border-color: #22c55e;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}
.join-step-indicator .join-step-dot.done {
    color: #22c55e;
}
.join-step-indicator .join-step-dot.done::before {
    border-color: #22c55e;
    background: #22c55e;
}
.join-step { display: block; }
.join-step.hidden { display: none; }
.hidden { display: none !important; }
.join-auth-buttons { display: grid; gap: 10px; margin-top: 16px; }
.join-auth-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #f5f5f5;
    padding: 14px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
}
.join-auth-apple { background: #fff; color: #111; }
.join-auth-google { background: #1a1a1a; }
.join-auth-form { margin-top: 16px; }
.join-auth-form.hidden { display: none; }
.join-auth-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.join-auth-row input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: #0f0f0f;
    color: #f5f5f5;
}
.join-auth-row button {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: #2a2a2a;
    color: #f5f5f5;
    cursor: pointer;
}
.join-auth-note { font-size: 0.85rem; color: #888; }
.join-auth-note.error { color: #ff6b6b; }

.join-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0 20px;
}
.join-type-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, border 0.2s;
}
.join-type-card.selected {
    border-color: #d4af37;
    background: #1a1a1a;
}
.join-next, .join-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #d4af37;
    color: #111;
    font-weight: 700;
    cursor: pointer;
}
.join-next:disabled { opacity: 0.5; cursor: not-allowed; }

.join-subscription-options { display: grid; gap: 10px; margin: 16px 0; }
.join-sub-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #141414;
}
.join-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 16px;
}
.join-sub-note { font-size: 0.85rem; color: #888; margin-bottom: 16px; }

.join-form { display: grid; gap: 12px; }
.join-form-hint { font-size: 0.9rem; color: #9a9a9a; margin-bottom: 8px; }
.join-form-row { display: grid; gap: 6px; }
.join-form-row input, .join-form-row textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: #0f0f0f;
    color: #f5f5f5;
}
.join-form-group {
    display: grid;
    gap: 12px;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 12px;
    background: #0f0f0f;
}
.join-form-group.hidden { display: none; }
.join-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.join-form-note { font-size: 0.85rem; color: #888; }
.join-form-note.error { color: #ff6b6b; }

.join-geocode-result {
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 1.2em;
}
.join-geocode-result.success { color: #22c55e; }
.join-geocode-result.error { color: #ff6b6b; }
.join-geocode-result.loading { color: #888; }

/* Disclaimer box */
.join-disclaimer {
    display: none;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 20px 0 8px;
    gap: 16px;
    align-items: flex-start;
}
.join-disclaimer.visible {
    display: flex;
}
.join-disclaimer-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.join-disclaimer-body {
    flex: 1;
    min-width: 0;
}
.join-disclaimer-heading {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 6px;
    color: #1a1a1a;
}
.join-disclaimer-text {
    font-size: 0.85rem;
    color: #444;
    margin: 0 0 10px;
    line-height: 1.5;
}
.join-disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.join-disclaimer-list li {
    display: none;
    font-size: 0.8rem;
    background: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.join-disclaimer-list li.visible {
    display: inline-block;
}

/* Bulletin choice cards */
.bulletin-choice { margin-top: 20px; }
.bulletin-choice h2 { font-size: 1.2rem; margin-bottom: 16px; }
.bulletin-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) {
    .bulletin-choice-grid { grid-template-columns: 1fr; }
}
.bulletin-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: #f5f5f5;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.bulletin-choice-card:hover {
    border-color: #d4af37;
    background: #1a1a1a;
}
.bulletin-choice-title { font-weight: 600; font-size: 0.95rem; }
.bulletin-choice-subtitle { font-size: 0.8rem; color: #888; }

/* Bulletin upload zone */
.bulletin-church-context {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    text-align: center;
}
.bulletin-church-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f5f5f5;
}
.bulletin-church-address {
    font-size: 0.8rem;
    color: #888;
}

.bulletin-upload { margin-top: 20px; }
.bulletin-back {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-bottom: 16px;
}
.bulletin-back:hover { color: #f5f5f5; }
.bulletin-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    border: 2px dashed #2a2a2a;
    border-radius: 12px;
    background: #0f0f0f;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.bulletin-dropzone.dragover {
    border-color: #d4af37;
    background: #1a1610;
}
.bulletin-dropzone-text { font-size: 0.95rem; color: #f5f5f5; margin: 0; }
.bulletin-dropzone-hint { font-size: 0.8rem; color: #888; margin: 0; }
.bulletin-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Bulletin progress */
.bulletin-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
}
.bulletin-progress p { color: #888; font-size: 0.9rem; margin: 0; }
.bulletin-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #2a2a2a;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: bulletin-spin 0.8s linear infinite;
}
@keyframes bulletin-spin { to { transform: rotate(360deg); } }

.bulletin-status {
    font-size: 0.85rem;
    margin-top: 12px;
    min-height: 1.2em;
}
.bulletin-status.success { color: #22c55e; }
.bulletin-status.error { color: #ff6b6b; }

/* Bulletin extraction receipt */
.bulletin-receipt { margin-top: 16px; }
.bulletin-receipt h3 {
    font-size: 1.05rem;
    margin: 0 0 4px;
    color: #f5f5f5;
}
.bulletin-receipt-hint {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 14px;
}
.bulletin-receipt-list {
    display: grid;
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    background: #0f0f0f;
}
.bulletin-receipt-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    border-bottom: 1px solid #1a1a1a;
}
.bulletin-receipt-row:last-child { border-bottom: none; }
.bulletin-receipt-row dt {
    padding: 10px 12px;
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    background: #111;
}
.bulletin-receipt-row dd {
    padding: 6px 8px;
    font-size: 0.85rem;
    color: #f5f5f5;
    margin: 0;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Editable receipt inputs */
.bulletin-receipt-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #f5f5f5;
    font-size: 0.85rem;
    font-family: inherit;
    padding: 4px 6px;
    margin: 0;
    resize: vertical;
    transition: border-color 0.2s, background 0.2s;
}
.bulletin-receipt-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #1a1a1a;
}
.bulletin-receipt-input::placeholder {
    color: #555;
    font-style: italic;
}
textarea.bulletin-receipt-input {
    min-height: 40px;
    line-height: 1.4;
}

/* Bulletin schedule sections */
.bulletin-schedules {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bulletin-schedule-section {
    background: #0f0f0f;
    border-radius: 10px;
    padding: 12px;
}
.bulletin-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.bulletin-schedule-header h4 {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    font-weight: 500;
}
.bulletin-schedule-add {
    background: none;
    border: 1px solid #333;
    border-radius: 6px;
    color: #888;
    font-size: 0.75rem;
    padding: 3px 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.bulletin-schedule-add:hover {
    border-color: #d4af37;
    color: #d4af37;
}
.bulletin-schedule-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bulletin-schedule-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bulletin-schedule-row select {
    appearance: none;
    -webkit-appearance: none;
    background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #f5f5f5;
    font-size: 0.78rem;
    font-family: inherit;
    padding: 6px 24px 6px 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.bulletin-schedule-row select:focus {
    outline: none;
    border-color: #d4af37;
}
.bulletin-schedule-row select option {
    background: #1a1a1a;
    color: #f5f5f5;
}
.schedule-day { min-width: 110px; }
.schedule-time, .schedule-end { min-width: 90px; }
.schedule-lang { min-width: 80px; }
.schedule-dash {
    color: #555;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.schedule-remove {
    background: none;
    border: none;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.schedule-remove:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}
@media (max-width: 500px) {
    .bulletin-schedule-row { gap: 4px; }
    .schedule-day { min-width: 100px; flex: 1 1 100%; }
    .schedule-time, .schedule-end { min-width: 80px; }
}

/* Bulletin event cards */
.bulletin-events {
    margin-top: 16px;
    margin-bottom: 16px;
}
.bulletin-events h4 {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 10px;
    font-weight: 500;
}
.bulletin-events-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.bulletin-events-scroll::-webkit-scrollbar {
    height: 4px;
}
.bulletin-events-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}
.bulletin-event-card {
    flex: 0 0 260px;
    min-height: 220px;
    padding: 14px;
    border-radius: 12px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bulletin-event-title {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #f5f5f5;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    padding: 2px 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.2s, background 0.2s;
}
.bulletin-event-title:focus {
    outline: none;
    border-color: #d4af37;
    background: #111;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.bulletin-event-title::placeholder { color: #555; }
.bulletin-event-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
}
.bulletin-event-row svg {
    flex-shrink: 0;
    stroke: #888;
}
.bulletin-event-field {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #888;
    font-size: 0.75rem;
    font-family: inherit;
    padding: 2px 4px;
    transition: border-color 0.2s, background 0.2s;
}
.bulletin-event-field:focus {
    outline: none;
    border-color: #d4af37;
    background: #111;
    color: #f5f5f5;
}
.bulletin-event-field::placeholder { color: #555; }
.bulletin-event-desc {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #888;
    font-size: 0.72rem;
    font-family: inherit;
    padding: 4px;
    resize: none;
    line-height: 1.3;
    transition: border-color 0.2s, background 0.2s;
}
.bulletin-event-desc:focus {
    outline: none;
    border-color: #d4af37;
    background: #111;
    color: #f5f5f5;
}
.bulletin-event-desc::placeholder { color: #444; }

@media (max-width: 500px) {
    .bulletin-receipt-row { grid-template-columns: 1fr; }
    .bulletin-receipt-row dt { padding-bottom: 2px; }
    .bulletin-receipt-row dd { padding-top: 2px; }
}

/* ── Key preview (entity detail preview on church unlock) ── */
.key-preview {
    margin-top: 24px;
}
.key-preview h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--color-text, #f5f5f5);
}
.key-preview-panel {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    padding: 0;
}
.key-preview-complete {
    margin-top: 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    width: 100%;
}
.key-preview-complete:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}
.key-preview-complete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tip popup */
.key-preview-tip {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 380px;
    width: calc(100% - 48px);
    z-index: 100;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: keyPreviewTipSlideUp 0.3s ease forwards;
}
.key-preview-tip.hidden {
    display: none;
}
@keyframes keyPreviewTipSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(40px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.key-preview-tip-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}
.key-preview-tip-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #222;
}
.key-preview-tip p {
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.5;
    margin: 0 0 14px;
}
.key-preview-tip p strong {
    color: #f5f5f5;
}
.key-preview-tip-dismiss {
    background: var(--color-accent, #d4af37);
    color: #111;
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.key-preview-tip-dismiss:hover {
    background: var(--color-accent-hover, #e6c84a);
}

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2a2a2a;
    border-radius: 999px;
    transition: 0.2s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}
.switch input:checked + .slider { background-color: #d4af37; }
.switch input:checked + .slider:before { transform: translateX(22px); }

/* ==========================================================================
   Engage Page
   ========================================================================== */

/* ── Page Layout ─────────────────────────────────────────────────────── */
.engage-page {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Auth Gate ────────────────────────────────────────────────────────── */
.eg-auth-gate {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    margin-top: 57px;
}

.eg-auth-container {
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.eg-auth-icon {
    margin-bottom: 1.5rem;
}

.eg-auth-icon svg {
    display: inline-block;
}

.eg-auth-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.eg-auth-container > p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.eg-auth-buttons {
    display: grid;
    gap: 10px;
}

.eg-auth-email-form {
    margin-top: 16px;
}

.eg-auth-email-form.hidden {
    display: none;
}

.eg-auth-status {
    font-size: 0.85rem;
    color: #888;
    margin-top: 12px;
}

.eg-auth-status.error {
    color: #ff6b6b;
}

/* ── Main App Layout ─────────────────────────────────────────────────── */
.eg-app {
    flex: 1;
    display: flex;
    margin-top: 57px;
    overflow: hidden;
}

.eg-app.hidden {
    display: none;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.eg-sidebar {
    width: 240px;
    min-width: 240px;
    background: #111;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.eg-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.eg-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    padding: 1rem 0 0 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: left;
}
.eg-user-info:hover .eg-user-avatar {
    box-shadow: 0 0 0 2px #4C8BF5;
}

.eg-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4C8BF5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}
.eg-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-sidebar-nav {
    padding: 0.5rem 0;
    flex: 1;
}

.eg-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
}

.eg-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.eg-nav-item.active {
    background: rgba(76, 139, 245, 0.12);
    color: #4C8BF5;
}

.eg-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #4C8BF5;
    border-radius: 0 2px 2px 0;
}

.eg-nav-item svg {
    flex-shrink: 0;
}

.eg-badge {
    margin-left: auto;
    background: #4C8BF5;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.eg-badge.hidden {
    display: none;
}

/* ── Sidebar mobile toggle & backdrop ────────────────────────────────── */
.eg-sidebar-toggle {
    display: none;
    position: fixed;
    top: 68px;
    left: 12px;
    z-index: 90;
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px;
    color: var(--color-text);
    cursor: pointer;
}

.eg-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 89;
}

/* ── Content Area ────────────────────────────────────────────────────── */
.eg-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    min-width: 0;
}

.eg-section {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.eg-section.active {
    display: block;
}

.eg-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.eg-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.eg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.eg-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.eg-card-link {
    background: none;
    border: none;
    color: #4C8BF5;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.eg-card-link:hover {
    text-decoration: underline;
}

/* ── Empty State ─────────────────────────────────────────────────────── */
.eg-empty-state {
    text-align: center;
    color: var(--color-text-light);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* ── Loading Spinner ─────────────────────────────────────────────────── */
.eg-loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
}

.eg-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: #4C8BF5;
    border-radius: 50%;
    animation: egSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes egSpin {
    to { transform: rotate(360deg); }
}

/* ── Filter Tabs (Inbox) ─────────────────────────────────────────────── */
.eg-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.eg-filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: none;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.eg-filter-tab:hover {
    border-color: #4C8BF5;
    color: var(--color-text);
}

.eg-filter-tab.active {
    background: #4C8BF5;
    border-color: #4C8BF5;
    color: #fff;
}

/* ── Thread List (Inbox) ─────────────────────────────────────────────── */
.eg-thread-list {
    display: flex;
    flex-direction: column;
}

.eg-thread-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s;
}

.eg-thread-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.eg-thread-row:last-child {
    border-bottom: none;
}

.eg-thread-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
}
.eg-thread-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-thread-info {
    flex: 1;
    min-width: 0;
}

.eg-thread-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-thread-preview {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.eg-thread-time {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.eg-thread-unread {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4C8BF5;
}

/* ── Search Bar (Network) ────────────────────────────────────────────── */
.eg-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.eg-search-bar svg {
    flex-shrink: 0;
    color: var(--color-text-light);
}

.eg-search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 0.9rem;
    outline: none;
}

.eg-search-bar input::placeholder {
    color: var(--color-text-light);
}

/* ── Organization List (Network) ─────────────────────────────────────── */
.eg-org-list {
    display: flex;
    flex-direction: column;
}

.eg-org-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s;
}

.eg-org-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.eg-org-row:last-child {
    border-bottom: none;
}

.eg-org-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.eg-org-logo-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.eg-org-info {
    flex: 1;
    min-width: 0;
}

.eg-org-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.eg-org-tagline {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-org-arrow {
    color: var(--color-text-light);
    flex-shrink: 0;
}

/* ── Discovery ───────────────────────────────────────────────────────── */
.eg-discovery-group {
    margin-bottom: 2rem;
}

.eg-discovery-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.eg-invitation-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.eg-invitation-info {
    flex: 1;
    min-width: 0;
}

.eg-invitation-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.eg-invitation-from {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.eg-invitation-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.eg-btn-accept {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: none;
    background: #4C8BF5;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.eg-btn-accept:hover {
    background: #3a7ae0;
}

.eg-btn-decline {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: none;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.eg-btn-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.eg-suggestion-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.eg-suggestion-info {
    flex: 1;
    min-width: 0;
}

.eg-suggestion-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.eg-suggestion-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-btn-interest {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid #4C8BF5;
    background: none;
    color: #4C8BF5;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}

.eg-btn-interest:hover {
    background: #4C8BF5;
    color: #fff;
}

.eg-btn-interest.sent {
    border-color: var(--color-border);
    color: var(--color-text-muted);
    cursor: default;
    pointer-events: none;
}

/* ── Org Detail Modal ────────────────────────────────────────────────── */
.eg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.eg-modal-overlay.hidden {
    display: none;
}

.eg-modal {
    background: #111;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    position: relative;
    animation: modalSlideIn 0.25s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    max-height: 90dvh;
}

.eg-modal-large {
    width: 100%;
    max-width: 640px;
}

.eg-modal-chat {
    width: 100%;
    max-width: 560px;
    height: 80vh;
    height: 80dvh;
    max-height: 700px;
}

.eg-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.15s;
}

.eg-modal-close:hover {
    color: var(--color-text);
}

/* Org modal header */
.eg-org-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.eg-org-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
    background: #4C8BF5;
    overflow: hidden;
}

.eg-org-modal-info {
    min-width: 0;
}

.eg-org-modal-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.eg-org-modal-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Org tabs */
.eg-org-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 0 1rem;
}

.eg-org-tab {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.eg-org-tab:hover {
    color: var(--color-text);
}

.eg-org-tab.active {
    color: #4C8BF5;
    border-bottom-color: #4C8BF5;
}

.eg-org-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* Channel rows inside org modal */
.eg-channel-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
}

.eg-channel-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.eg-channel-row:last-child {
    border-bottom: none;
}

.eg-channel-icon {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1rem;
}

.eg-channel-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Forum post rows */
.eg-forum-row {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
}

.eg-forum-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.eg-forum-row:last-child {
    border-bottom: none;
}

.eg-forum-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.eg-forum-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Resource rows */
.eg-resource-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.eg-resource-row:last-child {
    border-bottom: none;
}

.eg-resource-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(76, 139, 245, 0.15);
    color: #4C8BF5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eg-resource-info {
    flex: 1;
    min-width: 0;
}

.eg-resource-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.eg-resource-type {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ── Chat Modal ──────────────────────────────────────────────────────── */
.eg-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.eg-chat-back {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.15s;
}

.eg-chat-back:hover {
    color: var(--color-text);
}

.eg-chat-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.eg-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eg-chat-bubble {
    max-width: 80%;
    padding: 0.6rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.eg-chat-bubble-sent {
    align-self: flex-end;
    background: #4C8BF5;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.eg-chat-bubble-received {
    align-self: flex-start;
    background: #1e1e1e;
    color: var(--color-text);
    border-bottom-left-radius: 4px;
}

.eg-chat-sender {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.eg-chat-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.eg-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}

.eg-chat-input-bar input {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: #1a1a1a;
    color: var(--color-text);
    font-size: 0.9rem;
    outline: none;
}

.eg-chat-input-bar input:focus {
    border-color: #4C8BF5;
}

.eg-chat-input-bar input::placeholder {
    color: var(--color-text-light);
}

.eg-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #4C8BF5;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.eg-send-btn:hover {
    background: #3a7ae0;
}

/* ── Forum Post Detail Modal ─────────────────────────────────────────── */
.eg-forum-post-detail {
    padding: 1.5rem;
}

.eg-forum-post-detail h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.eg-forum-post-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.eg-forum-post-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.eg-forum-replies h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.eg-reply {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.eg-reply:last-child {
    border-bottom: none;
}

.eg-reply-author {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.eg-reply-body {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.eg-reply-time {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ── Profile Section ───────────────────────────────────────────────── */
#eg-section-profile {
    max-width: 420px;
    margin: 0 auto;
}

.eg-profile-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
}

.eg-user-info-active {
    background: none;
}

.eg-user-info-active .eg-user-avatar {
    box-shadow: 0 0 0 2px #4C8BF5;
}

.eg-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(180deg, #1a1a2e 0%, var(--color-bg-alt) 100%);
}

.eg-profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4C8BF5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.75rem;
    overflow: hidden;
    border: 3px solid #222;
    margin-bottom: 0.75rem;
}
.eg-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--color-text);
}

.eg-profile-username {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.eg-profile-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.eg-profile-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.eg-profile-stat-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.eg-profile-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eg-profile-details {
    padding: 0.75rem 1.5rem;
}

.eg-profile-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    color: var(--color-text-muted);
}

.eg-profile-detail-row svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.eg-profile-detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

.eg-profile-detail-value {
    font-size: 0.9rem;
    color: var(--color-text);
}

.eg-profile-add-key {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 1.5rem 1.5rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: #4C8BF5;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}
.eg-profile-add-key:hover {
    background: #3a7ae0;
}

/* ── Mobile Tab Bar (Engage) ─────────────────────────────────────────── */
.eg-mobile-tabs {
    display: none;
}

/* ── Responsive — Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .eg-sidebar {
        display: none;
    }

    .eg-sidebar.open {
        display: none;
    }

    .eg-sidebar-toggle {
        display: none !important;
    }

    .eg-sidebar-backdrop.visible {
        display: none;
    }

    .eg-mobile-tabs {
        display: flex;
        position: sticky;
        top: 57px;
        z-index: 80;
        background: #0a0a0a;
        border-bottom: 1px solid var(--color-border);
        padding: 0 1rem;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .eg-mobile-tab {
        flex: 1;
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        padding: 12px 8px;
        font-family: inherit;
        font-size: 0.85rem;
        font-weight: 500;
        color: #888;
        cursor: pointer;
        white-space: nowrap;
        transition: color 0.15s ease, border-color 0.15s ease;
    }

    .eg-mobile-tab:hover {
        color: #ccc;
    }

    .eg-mobile-tab.active {
        color: #fff;
        font-weight: 600;
        border-bottom-color: #fff;
    }

    .eg-content {
        padding: 1rem;
        padding-top: 0.5rem;
    }

    .eg-section-title {
        font-size: 1.25rem;
    }

    /* Full-screen modals on mobile */
    .eg-modal-overlay {
        padding: 0;
    }

    .eg-modal {
        border-radius: 0;
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        max-width: 100%;
    }

    .eg-modal-chat {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
    }
}

/* ==========================================================================
   Entity Detail Panel — Shared (map + ask-gabe)
   ========================================================================== */

.entity-detail-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; justify-content: center; align-items: flex-end; transition: opacity 0.3s; }
.entity-detail-overlay.active { display: flex; }
.entity-detail-panel { background: #ffffff; border-radius: 20px 20px 0 0; width: 100%; max-width: 540px; max-height: 85vh; max-height: 85dvh; overflow-y: auto; animation: slideUpDetail 0.35s ease-out; overscroll-behavior: contain; }
@keyframes slideUpDetail { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.entity-detail-handle { display: none; }
/* Top navigation bar — circular buttons matching iOS */
.entity-detail-topnav { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; }
.entity-detail-topnav-left, .entity-detail-topnav-right { display: flex; align-items: center; gap: 12px; }
.entity-detail-nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.08); transition: background 0.15s, border-color 0.2s; }
.entity-detail-nav-btn:hover { background: #f0f0f0; }
.entity-detail-nav-btn svg { width: 16px; height: 16px; color: #111; }
.entity-detail-nav-btn.editing { border-color: #3366CC; }
.entity-detail-nav-btn.editing svg { color: #3366CC; }
.entity-detail-nav-btn.favorited svg { color: #EF4444; fill: #EF4444; }
.entity-detail-header { display: flex; align-items: flex-start; gap: 14px; padding: 8px 20px 16px; }
.entity-detail-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; background: #f0f0f0; }
.entity-detail-header-info { flex: 1; min-width: 0; }
.entity-detail-name { font-size: 1.25rem; font-weight: 700; color: #111; line-height: 1.3; margin: 0 0 2px; }
.entity-detail-type-badge { display: inline-block; font-size: 0.72rem; font-weight: 600; color: #666; background: #f0f0f0; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.entity-detail-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: #f0f0f0; color: #666; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; transition: background 0.2s; }
.entity-detail-close:hover { background: #e0e0e0; }
.entity-detail-card { margin: 0 20px 16px; padding: 20px; border-radius: 18px; background: #fff; position: relative; box-shadow: 0 6px 12px rgba(0,0,0,0.06); }
.entity-detail-card.rainbow { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from 0deg, #EF4444, #F97316, #EAB308, #22C55E, #3B82F6, #EC4899, #EF4444) border-box; box-shadow: 0 6px 12px rgba(0,0,0,0.08), 0 0 16px 2px rgba(239,68,68,0.12), 0 0 16px 2px rgba(59,130,246,0.12); }
.entity-detail-gallery-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #3366CC; cursor: pointer; }
.entity-detail-location { display: flex; align-items: center; gap: 6px; color: #777; font-size: 0.88rem; margin-bottom: 8px; }
.entity-detail-location svg { width: 14px; height: 14px; flex-shrink: 0; }
.entity-detail-description { font-size: 0.9rem; line-height: 1.6; color: #444; margin-bottom: 8px; }
.entity-detail-website-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.entity-detail-website-link { display: inline-flex; align-items: center; gap: 6px; color: #3366CC; font-size: 0.88rem; font-weight: 500; text-decoration: none; }
.entity-detail-website-link svg { width: 14px; height: 14px; }
.entity-detail-website-link.disabled { color: #bbb; pointer-events: none; }
/* Follow Key button */
.entity-detail-follow-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; margin: 0 20px 16px; max-width: calc(100% - 40px); border-radius: 14px; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.1s; color: #fff; background: #111; }
.entity-detail-follow-btn:hover { transform: translateY(-1px); }
.entity-detail-follow-btn.following { background: #22C55E; }
.entity-detail-follow-btn svg { width: 18px; height: 18px; }
/* 3 Quick Action Buttons — type-specific (Parish: Share/Notify/Map, others: Save/Message/[type]) */
.entity-detail-quick-actions { display: flex; gap: 12px; margin: 0 20px 20px; }
.entity-detail-quick-action { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; border-radius: 18px; border: none; background: #f2f2f7; cursor: pointer; transition: background 0.15s, transform 0.1s; text-decoration: none; }
.entity-detail-quick-action:hover { background: #e5e5ea; transform: translateY(-1px); }
.entity-detail-quick-action svg { width: 18px; height: 18px; color: #011893; }
.entity-detail-quick-action span { font-size: 0.72rem; font-weight: 500; color: #011893; }
/* Legacy inline action buttons (for type-specific links) */
.entity-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 20px 12px; }
.entity-detail-action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid #ddd; background: #f0f0f5; color: #3366CC; font-size: 0.82rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.1s; }
.entity-detail-action-btn:hover { background: #e8e8f0; transform: translateY(-1px); }
.entity-detail-action-btn svg { width: 14px; height: 14px; }
.entity-detail-action-btn.primary-action { background: rgba(51,102,204,0.1); border-color: rgba(51,102,204,0.25); color: #3366CC; }
/* Locked parish upsell */
.entity-detail-upsell-hero { text-align: center; padding: 20px 20px 8px; font-size: 1.15rem; font-weight: 700; color: #111; line-height: 1.4; }
.entity-detail-benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 20px 20px; }
.entity-detail-benefit { padding: 16px 8px; background: #f2f2f7; border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.entity-detail-benefit-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: #22C55E; }
.entity-detail-benefit-icon svg { width: 28px; height: 28px; }
.entity-detail-benefit-title { font-size: 0.82rem; font-weight: 600; color: #111; margin-bottom: 4px; }
.entity-detail-benefit-desc { font-size: 0.7rem; color: #888; line-height: 1.4; }
.entity-detail-unlock-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; border-radius: 12px; border: 3px solid transparent; background: linear-gradient(#111, #111) padding-box, conic-gradient(from 0deg, #EF4444, #F97316, #EAB308, #22C55E, #3B82F6, #8B5CF6, #EF4444) border-box; color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 0.1s; text-decoration: none; box-sizing: border-box; }
.entity-detail-unlock-btn:hover { transform: translateY(-1px); }
.entity-detail-see-example { display: block; text-align: center; color: #3366CC; font-size: 0.88rem; font-weight: 500; margin-bottom: 20px; cursor: pointer; text-decoration: none; }
/* Schedule segmented control (Mass/Confession/Adoration tabs) */
.entity-detail-schedule-tabs { display: flex; margin: 0 20px 0; background: #1a2744; border-radius: 12px; overflow: hidden; }
.entity-detail-schedule-tab { flex: 1; padding: 10px 0; text-align: center; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s, color 0.2s; border: none; background: transparent; }
.entity-detail-schedule-tab.active { background: #3366CC; color: #fff; border-radius: 10px; margin: 3px; }
.entity-detail-schedule-tab-content { display: none; }
.entity-detail-schedule-tab-content.active { display: block; }
/* Get Involved 2x2 grid */
.entity-detail-get-involved { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 20px 16px; }
.entity-detail-program-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; background: #f2f2f7; border-radius: 12px; cursor: pointer; transition: background 0.15s; text-decoration: none; }
.entity-detail-program-card:hover { background: #e5e5ea; }
.entity-detail-program-card svg { width: 24px; height: 24px; color: #3366CC; }
.entity-detail-program-card .program-title { font-size: 0.82rem; font-weight: 600; color: #111; }
.entity-detail-program-card .program-sub { font-size: 0.68rem; color: #888; }
/* Sign-Up Sheets button */
.entity-detail-signup-btn { display: flex; align-items: center; gap: 16px; margin: 8px 20px 16px; padding: 16px; background: #f2f2f7; border-radius: 16px; cursor: pointer; transition: background 0.15s; text-decoration: none; border: none; width: calc(100% - 40px); }
.entity-detail-signup-btn:hover { background: #e5e5ea; }
.entity-detail-signup-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(51,102,204,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.entity-detail-signup-icon svg { width: 20px; height: 20px; color: #3366CC; }
.entity-detail-signup-text { flex: 1; text-align: left; }
.entity-detail-signup-text .title { font-size: 0.95rem; font-weight: 600; color: #111; }
.entity-detail-signup-text .sub { font-size: 0.82rem; color: #888; margin-top: 2px; }
.entity-detail-signup-chevron { color: #888; flex-shrink: 0; }
.entity-detail-signup-chevron svg { width: 14px; height: 14px; }
/* Location map embed */
.entity-detail-map-section { margin: 8px 20px 16px; }
.entity-detail-map-section .section-label { font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 12px; }
.entity-detail-map-embed { width: 100%; height: 220px; border-radius: 24px; overflow: hidden; position: relative; }
.entity-detail-map-embed iframe { width: 100%; height: 100%; border: 0; }
.entity-detail-map-open-btn { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #111; color: #fff; border-radius: 16px; font-size: 0.82rem; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); border: none; z-index: 2; }
/* Bulletin upload CTA */
.entity-detail-bulletin { margin: 8px 20px 16px; padding: 24px 20px; background: rgba(51,102,204,0.08); border: 1px dashed rgba(51,102,204,0.35); border-radius: 16px; text-align: center; cursor: pointer; transition: background 0.15s; }
.entity-detail-bulletin:hover { background: rgba(51,102,204,0.12); }
.entity-detail-bulletin svg { width: 32px; height: 32px; color: #3366CC; margin-bottom: 12px; }
.entity-detail-bulletin .bulletin-title { font-size: 0.95rem; font-weight: 600; color: #111; margin-bottom: 4px; }
.entity-detail-bulletin .bulletin-sub { font-size: 0.78rem; color: #888; }
/* Message Parish button */
.entity-detail-message-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 20px 20px; padding: 16px; background: #3366CC; color: #fff; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; width: calc(100% - 40px); transition: background 0.15s; text-decoration: none; }
.entity-detail-message-btn:hover { background: #2a57b0; }
.entity-detail-message-btn svg { width: 16px; height: 16px; }
/* Pilgrimage listing cards (matches iOS PilgrimageListingCard) */
.entity-detail-travel-section { margin: 12px 20px 16px; padding: 14px; background: rgba(0,0,0,0.03); border-radius: 12px; }
.entity-detail-travel-section .travel-heading { font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 12px; }
.entity-detail-listing-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 10px; }
.entity-detail-listing-card:last-child { margin-bottom: 0; }
.entity-detail-listing-info { flex: 1; min-width: 0; }
.entity-detail-listing-price { font-size: 1.25rem; font-weight: 700; color: #DC2626; margin-bottom: 4px; }
.entity-detail-listing-price .limited-badge { display: inline-block; font-size: 0.65rem; font-weight: 600; color: #fff; background: #F97316; padding: 2px 8px; border-radius: 8px; margin-left: 8px; vertical-align: middle; }
.entity-detail-listing-date { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: #111; margin-bottom: 2px; }
.entity-detail-listing-date svg { width: 14px; height: 14px; color: #3366CC; flex-shrink: 0; }
.entity-detail-listing-spots { font-size: 0.78rem; color: #888; margin-top: 4px; }
.entity-detail-listing-explore { display: inline-flex; align-items: center; gap: 6px; padding: 14px 20px; background: linear-gradient(135deg, #DC2626, #DC2626cc); color: #fff; border: none; border-radius: 16px; font-size: 0.88rem; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 8px rgba(220,38,38,0.3); transition: transform 0.1s; flex-shrink: 0; text-decoration: none; }
.entity-detail-listing-explore:hover { transform: translateY(-1px); }
.entity-detail-listing-explore svg { width: 16px; height: 16px; }
.entity-detail-listing-explore.disabled { background: #999; box-shadow: none; pointer-events: none; }
.entity-detail-travel-empty { font-size: 0.88rem; color: #888; padding: 8px 0; }
/* Pilgrimage reserve modal */
.pilgrimage-reserve-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: flex-end; }
.pilgrimage-reserve-overlay.active { display: flex; }
.pilgrimage-reserve-panel { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 540px; max-height: 85vh; overflow-y: auto; padding: 24px; animation: slideUpDetail 0.35s ease-out; }
.pilgrimage-reserve-close { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pilgrimage-reserve-close h2 { font-size: 1.15rem; font-weight: 700; color: #111; margin: 0; }
.pilgrimage-reserve-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pilgrimage-reserve-info-card { padding: 14px; background: #f2f2f7; border-radius: 12px; text-align: center; }
.pilgrimage-reserve-info-card .label { font-size: 0.72rem; font-weight: 600; color: #888; text-transform: uppercase; margin-bottom: 4px; }
.pilgrimage-reserve-info-card .value { font-size: 1rem; font-weight: 700; color: #111; }
.pilgrimage-reserve-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; background: linear-gradient(135deg, #DC2626, #DC2626cc); color: #fff; border: none; border-radius: 16px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 16px; text-decoration: none; box-shadow: 0 2px 8px rgba(220,38,38,0.3); }
.pilgrimage-reserve-cta:hover { transform: translateY(-1px); }
.pilgrimage-reserve-cta svg { width: 16px; height: 16px; }
/* Retreat offering cards (matches iOS RetreatOfferingCard) */
.entity-detail-retreat-offerings { margin: 12px 20px 16px; padding: 14px; background: #fff; border: 1px solid rgba(168,85,247,0.3); border-radius: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.entity-detail-retreat-offerings .offerings-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.entity-detail-retreat-offerings .offerings-heading h3 { font-size: 1.05rem; font-weight: 700; color: #111; margin: 0; }
.retreat-offering-card { padding: 16px; background: #fff; border: 1px solid rgba(168,85,247,0.3); border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 10px; cursor: pointer; transition: transform 0.1s, box-shadow 0.15s; }
.retreat-offering-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.retreat-offering-card:last-child { margin-bottom: 0; }
.retreat-offering-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.retreat-offering-left { flex: 1; min-width: 0; }
.retreat-offering-price { font-size: 1.15rem; font-weight: 700; color: #111; margin-bottom: 4px; }
.retreat-offering-price .per-person { font-size: 0.72rem; font-weight: 400; color: #888; margin-left: 4px; }
.retreat-offering-meta { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #888; margin-bottom: 2px; }
.retreat-offering-meta svg { width: 13px; height: 13px; color: #8B5CF6; flex-shrink: 0; }
.retreat-offering-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.retreat-offering-chevron { color: #8B5CF6; }
.retreat-offering-chevron svg { width: 14px; height: 14px; }
.retreat-offering-spots { font-size: 0.72rem; color: #888; }
.retreat-offering-title { font-size: 0.95rem; font-weight: 600; color: #111; margin-bottom: 4px; }
.retreat-offering-desc { font-size: 0.78rem; color: #888; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.retreat-offering-location { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: #888; }
.retreat-offering-location svg { width: 11px; height: 11px; flex-shrink: 0; }
.retreat-offerings-empty { font-size: 0.88rem; color: #888; padding: 8px 0; }
/* Retreat offering detail modal (matches iOS RetreatOfferingDetailView) */
.retreat-detail-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: flex-end; }
.retreat-detail-overlay.active { display: flex; }
.retreat-detail-panel { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 540px; max-height: 85vh; overflow-y: auto; animation: slideUpDetail 0.35s ease-out; }
.retreat-detail-header { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.retreat-detail-header h2 { font-size: 1.15rem; font-weight: 700; color: #111; margin: 0; }
.retreat-detail-type-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; color: #fff; background: #22C55E; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.retreat-detail-type-badge svg { width: 11px; height: 11px; }
.retreat-detail-stats { display: flex; justify-content: space-between; padding: 16px 24px; }
.retreat-detail-stat { text-align: center; flex: 1; }
.retreat-detail-stat svg { width: 18px; height: 18px; color: #22C55E; margin-bottom: 4px; }
.retreat-detail-stat .stat-val { font-size: 0.92rem; font-weight: 600; color: #111; }
.retreat-detail-stat .stat-lbl { font-size: 0.68rem; color: #888; }
.retreat-detail-stat-divider { width: 1px; background: #e5e5e5; align-self: stretch; margin: 4px 0; }
.retreat-detail-body { padding: 0 24px 24px; }
.retreat-detail-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.retreat-detail-row-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.retreat-detail-row-icon svg { width: 16px; height: 16px; }
.retreat-detail-row-text .row-label { font-size: 0.72rem; color: #888; }
.retreat-detail-row-text .row-value { font-size: 0.88rem; color: #111; font-weight: 500; }
.retreat-spiritual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 16px; }
.retreat-spiritual-badge { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(34,197,94,0.08); border-radius: 10px; font-size: 0.82rem; color: #111; }
.retreat-spiritual-badge svg { width: 14px; height: 14px; color: #22C55E; flex-shrink: 0; }
.retreat-detail-section-title { font-size: 0.92rem; font-weight: 700; color: #111; margin: 16px 0 8px; }
.retreat-detail-text { font-size: 0.88rem; color: #444; line-height: 1.6; margin-bottom: 12px; white-space: pre-line; }
.retreat-detail-cta-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; background: linear-gradient(135deg, #22C55E, #14B8A6); color: #fff; border: none; border-radius: 16px; font-size: 1rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(34,197,94,0.4); margin-top: 16px; text-decoration: none; }
.retreat-detail-cta-primary:hover { transform: translateY(-1px); }
.retreat-detail-cta-primary svg { width: 18px; height: 18px; }
.retreat-detail-cta-secondary { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 14px; background: #f2f2f7; color: #111; border: none; border-radius: 14px; font-size: 0.92rem; font-weight: 500; cursor: pointer; margin-top: 8px; text-decoration: none; }
.retreat-detail-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.75rem; color: #888; margin-top: 12px; }
.retreat-detail-trust svg { width: 14px; height: 14px; color: #22C55E; }
.entity-detail-section-title { font-size: 0.75rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.8px; padding: 12px 20px 6px; }
.entity-detail-schedule { margin: 0 16px 8px; padding: 12px 14px; background: #f8f8fa; border-radius: 12px; }
.entity-detail-schedule-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: #777; padding: 3px 0; }
.entity-detail-schedule-row .day { color: #333; font-weight: 500; }
.entity-detail-schedule-row .times { text-align: right; color: #666; }
/* Upcoming Events — horizontal scroll cards matching iOS */
.entity-detail-events-heading { font-size: 1.15rem; font-weight: 700; color: #111; padding: 16px 24px 10px; }
.entity-detail-events { overflow-x: auto; padding-bottom: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.entity-detail-events::-webkit-scrollbar { display: none; }
.entity-detail-events-inner { display: flex; gap: 12px; padding: 0 24px; }
.entity-detail-event-item { flex: 0 0 auto; width: 48%; min-width: 180px; max-width: 240px; padding: 16px; background: #f2f2f7; border-radius: 14px; scroll-snap-align: start; }
.entity-detail-event-title { font-size: 0.92rem; font-weight: 700; color: #111; margin-bottom: 8px; line-height: 1.3; }
.entity-detail-event-meta { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #888; margin-bottom: 4px; }
.entity-detail-event-meta svg { width: 14px; height: 14px; flex-shrink: 0; color: #888; }
.entity-detail-programs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 16px 16px; }
.entity-detail-program-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: 8px; color: #16a34a; font-size: 0.75rem; font-weight: 600; }
.entity-detail-info-grid { margin: 0 16px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.entity-detail-info-item { padding: 10px 12px; background: #f8f8fa; border-radius: 10px; }
.entity-detail-info-label { font-size: 0.68rem; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.entity-detail-info-value { font-size: 0.88rem; color: #111; font-weight: 500; }
.entity-detail-info-full { margin: 0 16px 8px; padding: 12px 14px; background: #f8f8fa; border-radius: 12px; }
.entity-detail-info-full .info-title { font-size: 0.82rem; font-weight: 600; color: #333; margin-bottom: 4px; }
.entity-detail-info-full .info-text { font-size: 0.82rem; color: #666; line-height: 1.5; }
.entity-detail-stats { display: flex; gap: 8px; margin: 0 16px 12px; }
.entity-detail-stat { flex: 1; padding: 12px; background: #f8f8fa; border-radius: 12px; text-align: center; }
.entity-detail-stat .stat-value { font-size: 1.25rem; font-weight: 700; color: #d4af37; }
.entity-detail-stat .stat-label { font-size: 0.68rem; color: #999; margin-top: 2px; }
.entity-detail-contact { margin: 0 16px 16px; padding: 12px 14px; background: #f8f8fa; border-radius: 12px; }
.entity-detail-contact-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.85rem; }
.entity-detail-contact-row svg { width: 14px; height: 14px; color: #999; flex-shrink: 0; }
.entity-detail-contact-row a { color: #3366CC; text-decoration: none; }
.entity-detail-contact-row span { color: #333; }
.entity-detail-footer { padding: 12px 16px 24px; display: flex; gap: 8px; }
.entity-detail-footer-btn { flex: 1; padding: 12px; border-radius: 12px; border: none; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.2s, transform 0.1s; }
.entity-detail-footer-btn:hover { transform: translateY(-1px); }
.entity-detail-footer-btn.primary { background: #3366CC; color: #fff; }
.entity-detail-footer-btn.secondary { background: #f0f0f5; border: 1px solid #ddd; color: #333; }
.entity-detail-footer-btn svg { width: 16px; height: 16px; }
.entity-detail-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; gap: 12px; }
.entity-detail-spinner { width: 32px; height: 32px; border: 3px solid #ddd; border-top-color: #3366CC; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.entity-detail-loading-text { font-size: 0.85rem; color: #999; }
.entity-detail-hours { margin: 0 16px 12px; padding: 12px 14px; background: #f8f8fa; border-radius: 12px; }
.entity-detail-hours-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: #777; padding: 3px 0; }
.entity-detail-hours-row .day { color: #333; font-weight: 500; }
.entity-detail-hours-row .time { color: #666; text-align: right; }
.entity-detail-social { display: flex; gap: 8px; margin: 0 16px 16px; flex-wrap: wrap; }
.entity-detail-social a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: #f0f0f5; border: 1px solid #ddd; border-radius: 8px; color: #3366CC; font-size: 0.78rem; font-weight: 600; text-decoration: none; }
/* Hero image */
.entity-detail-hero { width: 100%; height: 200px; object-fit: cover; border-radius: 16px 16px 0 0; display: block; }
.entity-detail-hero-carousel { position: relative; width: 100%; height: 200px; overflow: hidden; border-radius: 16px 16px 0 0; }
.entity-detail-hero-carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.entity-detail-hero-carousel img.active { opacity: 1; }
.entity-detail-hero-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.entity-detail-hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.entity-detail-hero-dots span.active { background: #fff; }
/* Owner edit bar */
.entity-detail-edit-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 20px 0; }
.entity-detail-edit-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ddd; background: #f8f8fa; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.entity-detail-edit-toggle:hover { background: #eee; }
.entity-detail-edit-toggle.active { background: #3366CC; color: #fff; border-color: #3366CC; }
.entity-detail-add-section-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; border: 1px solid #ddd; background: #f8f8fa; color: #3366CC; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.entity-detail-add-section-btn:hover { background: #eee; }
.entity-detail-delete-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(220,38,38,0.3); background: rgba(220,38,38,0.06); color: #DC2626; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.entity-detail-delete-btn:hover { background: rgba(220,38,38,0.12); }
.entity-detail-delete-btn svg { color: #DC2626; }
/* Editable field */
.entity-detail-editable { position: relative; }
.entity-detail-editable.editing { background: #f0f4ff; border-radius: 8px; padding: 8px; }
.entity-detail-editable textarea, .entity-detail-editable input[type="text"] { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; font-family: inherit; font-size: 0.88rem; color: #111; background: #fff; resize: vertical; box-sizing: border-box; }
.entity-detail-save-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; margin-top: 6px; border-radius: 8px; border: none; background: #3366CC; color: #fff; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
/* Message owner button */
.entity-detail-msg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid #ddd; background: #f0f0f5; color: #3366CC; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.entity-detail-msg-btn:hover { background: #e8e8f0; }
/* Add section modal */
.entity-detail-add-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; }
.entity-detail-add-modal.active { display: flex; }
.entity-detail-add-modal-content { background: #fff; border-radius: 16px; padding: 24px; max-width: 400px; width: 90%; max-height: 70vh; max-height: 70dvh; overflow-y: auto; }
.entity-detail-add-modal-title { font-size: 1.1rem; font-weight: 700; color: #111; margin-bottom: 16px; }
.entity-detail-add-modal-item { padding: 12px 14px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: background 0.15s; }
.entity-detail-add-modal-item:hover { background: #f0f4ff; }
.entity-detail-add-modal-item h4 { font-size: 0.9rem; font-weight: 600; color: #111; margin: 0 0 2px; }
.entity-detail-add-modal-item p { font-size: 0.78rem; color: #777; margin: 0; }
/* PSA card */
.entity-detail-psa { margin: 0 16px 8px; padding: 14px; background: #f8f8fa; border-radius: 12px; border-left: 3px solid #d4af37; }
.entity-detail-psa-title { font-size: 0.88rem; font-weight: 600; color: #111; margin-bottom: 4px; }
.entity-detail-psa-text { font-size: 0.82rem; color: #444; line-height: 1.5; }
.entity-detail-psa-meta { font-size: 0.72rem; color: #999; margin-top: 6px; }
/* Gallery grid */
.entity-detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 16px 12px; border-radius: 12px; overflow: hidden; }
.entity-detail-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; }
/* Gallery lightbox */
.gallery-lightbox { position: fixed; inset: 0; z-index: 100000; background: #000; display: none; flex-direction: column; }
.gallery-lightbox.active { display: flex; }
.gallery-lightbox-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); flex-shrink: 0; }
.gallery-lightbox-title { color: #fff; font-size: 0.95rem; font-weight: 600; text-align: center; flex: 1; }
.gallery-lightbox-subtitle { color: #888; font-size: 0.75rem; font-weight: 400; }
.gallery-lightbox-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox-body { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; min-height: 0; }
.gallery-lightbox-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,0.5); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.gallery-lightbox-nav:hover { background: rgba(0,0,0,0.7); }
.gallery-lightbox-nav.prev { left: 12px; }
.gallery-lightbox-nav.next { right: 12px; }
.gallery-lightbox-nav:disabled { opacity: 0.3; cursor: default; }
.gallery-lightbox-footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; }
.gallery-lightbox-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); border: none; padding: 0; cursor: pointer; transition: background 0.2s; }
.gallery-lightbox-dot.active { background: #fff; }
.gallery-lightbox-label { color: #aaa; font-size: 0.78rem; text-align: center; padding: 0 16px 4px; }
/* Staff list */
.entity-detail-staff-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin: 0 16px 4px; background: #f8f8fa; border-radius: 10px; }
.entity-detail-staff-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: #666; flex-shrink: 0; }
.entity-detail-staff-name { font-size: 0.85rem; font-weight: 600; color: #111; }
.entity-detail-staff-role { font-size: 0.75rem; color: #777; }
/* Job listing */
.entity-detail-job { margin: 0 16px 8px; padding: 12px 14px; background: #f8f8fa; border-radius: 12px; }
.entity-detail-job-title { font-size: 0.88rem; font-weight: 600; color: #111; }
.entity-detail-job-meta { font-size: 0.78rem; color: #777; margin-top: 2px; }
.entity-detail-job-desc { font-size: 0.82rem; color: #444; margin-top: 6px; line-height: 1.5; }
/* Vocation process steps */
.entity-detail-step { display: flex; gap: 12px; margin: 0 16px 8px; }
.entity-detail-step-num { width: 28px; height: 28px; border-radius: 50%; background: #3366CC; color: #fff; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.entity-detail-step-text { flex: 1; }
.entity-detail-step-title { font-size: 0.85rem; font-weight: 600; color: #111; }
.entity-detail-step-desc { font-size: 0.78rem; color: #666; margin-top: 2px; line-height: 1.4; }
/* Member count badge */
.entity-detail-member-count { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; color: #777; margin-top: 4px; }
@media (min-width: 769px) { .entity-detail-overlay { align-items: center; } .entity-detail-panel { border-radius: 20px; max-height: 80vh; max-height: 80dvh; } }
@media (max-width: 768px) {
    .entity-detail-overlay { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: stretch; }
    .entity-detail-panel { border-radius: 0; max-height: none; max-width: none; height: 100%; animation: none; }
    .entity-detail-topnav { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
    .entity-detail-header { padding: 6px 16px 12px; }
    .entity-detail-name { font-size: 1.15rem; }
    .entity-detail-card { margin: 0 12px 12px; }
    .entity-detail-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .entity-detail-hero, .entity-detail-hero-carousel { height: 200px; }
}
