/* ============================================
   DESIGN SYSTEM: TYPOGRAPHY & COLORS
   ============================================ */
:root {
    /* Typography - GLOBAL FONT TOKENS */
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Legacy tokens (use new ones above) */
    --enso-font-heading: var(--font-display);
    --enso-font-body: var(--font-body);

    /* Colors */
    --enso-primary: #5F8575;
    --enso-primary-light: #7A9B90;
    --enso-primary-dark: #4A6B61;

    --enso-text-dark: #111111;
    --enso-text-medium: #2B2B2A;
    --enso-text-brown: #2B1A14;
    --enso-text-light: #6B6B6A;
    --enso-text-muted-gray: #6A6A6A;
    --enso-bg-cream: #F7F5F1;
    --enso-border-light: #E0DFDB;

    /* Spacing */
    --enso-space-xs: 0.5rem;
    --enso-space-sm: 0.75rem;
    --enso-space-m: 1rem;
    --enso-space-l: 1.5rem;
    --enso-space-xl: 2rem;
    --enso-space-xxl: 3rem;
    --enso-space-3xl: 4rem;

    /* Success & Status */
    --enso-success: #5F8575;
    --enso-warning: #D4A574;
    --enso-danger: #C65D5D;
}

/* ============================================
   ENSŌ BRAND TYPOGRAPHY
   ============================================ */

/* Logo (ENSŌ) - unified across all pages */
.enso-logo {
    font-family: var(--enso-font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
    font-size: 1.6rem;
    color: var(--enso-text-brown);
    text-decoration: none;
}
.enso-logo:hover {
    color: var(--enso-text-brown);
    text-decoration: none;
}

/* Main headings (H1) */
.enso-heading {
    font-family: var(--enso-font-heading);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--enso-text-brown);
}

/* Subheading / intro text */
.enso-subheading {
    font-family: var(--enso-font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--enso-text-muted-gray);
}

/* Section titles (H2/H3) */
.enso-section-title {
    font-family: var(--enso-font-heading);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--enso-text-brown);
    margin-bottom: 0.75rem;
}

/* ============================================
   GLOBAL TYPOGRAPHY
   ============================================ */
html, body {
    font-family: var(--enso-font-body);
    color: var(--enso-text-dark);
    background: #FAFAF8;
}

.page-container {
    background: #FAFAF8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--enso-font-heading);
}

/* Bold text: inherit font-family, only change weight */
strong, b, .fw-bold {
    font-family: inherit;
    font-weight: 600;
}

/* ============================================
   HEADING SCALE
   ============================================ */
.enso-heading-xxl {
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.03em;
}

.enso-heading-xl {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.enso-heading-l {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.25;
}

.enso-heading-m {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
}

.enso-heading-s {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================
   BODY TEXT SCALE
   ============================================ */
.enso-body {
    font-size: 1rem;
    line-height: 1.6;
}

.enso-body-l {
    font-size: 1.125rem;
    line-height: 1.7;
}

.enso-body-s {
    font-size: 0.875rem;
    line-height: 1.5;
}

.enso-body-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.enso-text-muted {
    color: rgba(107, 107, 106, 0.85);
}

.enso-text-light {
    color: var(--enso-text-light);
}

.enso-text-dark {
    color: var(--enso-text-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
.enso-button-primary,
.enso-button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    background: none;
    box-shadow: none;
    position: static;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.enso-button-primary {
    background-color: #5F8575;
    color: #FFFFFF;
    border-color: #5F8575;
}

.enso-button-primary:hover {
    background-color: #4b6c61;
    border-color: #4b6c61;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.enso-button-ghost {
    background-color: transparent;
    color: #1F2724;
    border-color: #5F8575;
}

.enso-button-ghost:hover {
    background-color: rgba(95, 133, 117, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.enso-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: transparent;
    color: #2B1A14;
    border: 2px solid #5F8575;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.enso-button-secondary:hover {
    background-color: rgba(95, 133, 117, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    color: #2B1A14;
}

.enso-text-link {
    color: #2B1A14;
    text-decoration: underline;
    opacity: 0.85;
    transition: opacity 0.18s ease;
}

.enso-text-link:hover {
    opacity: 1;
    color: #5F8575;
}

/* ============================================
   GUEST LANDING PAGE
   ============================================ */
.guest-hero {
    position: relative;
    min-height: 74vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.guest-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.98);
}

.guest-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(95,133,117,0.2) 0%, rgba(95,133,117,0.1) 50%, rgba(95,133,117,0.25) 100%);
}

.guest-hero-inner {
    position: relative;
    z-index: 1;
    padding: 64px 0;
}

.guest-hero-card {
    max-width: 560px;
    padding: 44px 44px 34px;
    border-radius: 28px;
}

.guest-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
    margin-bottom: 12px;
}

.guest-hero-linkrow {
    margin-top: 10px;
}

.guest-hero-bullets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}

.guest-pill-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.guest-pill-card-large {
    padding: 18px 18px;
}

.guest-pill-title {
    font-family: var(--enso-font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--enso-text-brown);
}

.guest-pill-text {
    font-family: var(--enso-font-body);
    opacity: 0.85;
    font-size: 0.9rem;
    color: var(--enso-text-medium);
}

.guest-step-number {
    font-family: var(--enso-font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #5F8575;
    opacity: 0.7;
}

.guest-cta-strip {
    margin-top: 26px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.guest-faq {
    display: grid;
    gap: 12px;
    max-width: 780px;
}

.guest-faq-item {
    padding: 14px 16px;
    border-radius: 16px;
}

.guest-faq-item summary {
    font-family: var(--enso-font-heading);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guest-faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: #5F8575;
}

.guest-faq-item[open] summary::after {
    content: '-';
}

.guest-final-card {
    padding: 44px;
    border-radius: 28px;
}

@media (max-width: 980px) {
    .guest-hero-card {
        max-width: 100%;
        padding: 28px;
    }
    .guest-final-card {
        padding: 28px;
    }
}

/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */
.enso-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--enso-space-l);
}

.enso-section {
    padding: 4rem var(--enso-space-l);
}

/* ============================================
   GLASS CARDS (Core Design System)
   ============================================ */
.enso-card-glass {
    background: rgba(247, 245, 241, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.enso-card-glass:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

/* ============================================
   FEATURED SESSIONS/LOCATIONS CARDS
   ============================================ */
.enso-session-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.enso-session-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.enso-session-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #5F8575 0%, #7A9B90 100%);
    object-fit: cover;
}

.enso-session-content {
    padding: 1.5rem;
}

.enso-session-room {
    font-size: 0.85rem;
    color: var(--enso-text-light);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.enso-session-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--enso-text-dark);
    margin-bottom: 0.5rem;
}

.enso-session-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--enso-primary);
}

/* ============================================
   GRID UTILITIES
   ============================================ */
.enso-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.enso-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ============================================
   VISUAL TWEAKS: HERO HEADING
   ============================================ */
.enso-heading-xxl {
  font-size: 3.4rem !important;
  letter-spacing: 0.03em !important;
}

/* ============================================
   ENSŌ FULL-WIDTH HERO WITH ROOM BACKGROUND
   ============================================ */
.enso-hero-room {
    position: relative;
    padding: 8rem 0 7rem;
    background-image:
        linear-gradient(
            to bottom,
            rgba(95, 133, 117, 0.15),
            rgba(95, 133, 117, 0.25)
        ),
        url("/static/images/homepage-hero.jpg");
    background-size: cover;
    background-position: center;
    color: #111111;
}

.enso-hero-overlay {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--enso-space-l);
    display: flex;
    justify-content: flex-start;
}

.enso-hero-room .enso-hero-card {
    max-width: 520px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(247, 245, 241, 0.83);
    border-radius: 32px;
    padding: 3.5rem 3rem;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.30);
    transform: translateY(24px);
}

.enso-hero-room .enso-heading-xxl {
    text-align: left;
    color: #1a1a1a;
}

.enso-hero-room .enso-body,
.enso-hero-room .enso-body-l,
.enso-hero-room .enso-hero-tagline {
    text-align: left;
    color: #2B2B2A;
}

.enso-cta-group {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.enso-hero-room .enso-cta-group {
    justify-content: flex-start;
}

/* ============================================
   ENSŌ BRAND MARK IN HERO
   ============================================ */
.enso-hero-room {
    position: relative;
}

/* hero brand top niet nodig omdat ENSŌ al in de navbar staat */
.enso-hero-brand-top {
    display: none;
}

.enso-hero-logo-word {
    font-family: var(--enso-font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.78);
}

/* ENSŌ circle verborgen */
.enso-hero-orb {
    display: none;
}

/* ============================================
   ENSŌ FOOTER STYLING (Calm Base Layer)
   ============================================ */
.enso-footer {
    background: #E9E5DF;
    padding: 3rem 0 2rem;
    margin-top: 0;
}

.enso-footer .enso-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--enso-space-l) !important;
}

.enso-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.enso-footer-brand {
    flex: 0 0 auto;
    max-width: 320px;
}

.enso-footer-brand .enso-logo {
    font-family: var(--enso-font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
    font-size: 1.6rem;
    color: #2B2B2A;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.enso-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2B2B2A;
    opacity: 0.7;
    margin: 0;
}

.enso-footer-links {
    display: flex;
    gap: 3.5rem;
    flex: 1;
}

.enso-footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.enso-footer-column h4 {
    font-family: var(--enso-font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: #2B2B2A;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.03em;
}

.enso-footer-column a {
    font-size: 0.875rem;
    color: #2B2B2A;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.enso-footer-column a:hover {
    opacity: 1;
    color: #5F8575;
}

.enso-footer-divider {
    display: none;
}

.enso-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    font-size: 0.75rem;
    color: #2B2B2A;
    opacity: 0.6;
    flex-wrap: wrap;
}

.enso-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.enso-footer-credits {
    white-space: nowrap;
    font-style: italic;
    opacity: 0.8;
}

/* Mobile footer - hidden by default on desktop */
.enso-footer-mobile {
    display: none;
}

.enso-footer-mobile-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #2B2B2A;
    opacity: 0.7;
}

.enso-footer-mobile-content a {
    color: #2B2B2A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.enso-footer-mobile-content a:hover {
    color: #5F8575;
}

.enso-footer-mobile-divider {
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 900px) {
    .enso-footer-top {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .enso-hero-room {
        padding: 5.5rem 0 4.5rem;
        background-position: center;
    }


    .enso-hero-orb {
        top: 7.5rem;
        width: 46px;
        height: 46px;
    }

    .enso-hero-overlay {
        padding: 0 var(--enso-space-m);
        justify-content: center;
    }

    .enso-hero-room .enso-hero-card {
        max-width: 100%;
        padding: 2.5rem 2rem;
        border-radius: 24px;
        transform: translateY(12px);
    }

    .enso-hero-room .enso-heading-xxl,
    .enso-hero-room .enso-body,
    .enso-hero-room .enso-body-l,
    .enso-hero-room .enso-hero-tagline {
        text-align: center;
    }

    .enso-hero-room .enso-cta-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .enso-hero-room .enso-heading-xxl {
        font-size: 2.4rem;
    }

    .enso-footer {
        padding: 2.5rem 0;
        margin-top: 3rem;
    }

    .enso-footer-top {
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .enso-footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .enso-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .enso-footer-credits {
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .enso-section {
        padding: 3rem 1rem;
    }
    
    .enso-section-hero {
        padding: 4rem 1rem;
    }

    .enso-hero-room {
        min-height: 420px;
        padding: 3rem 0;
        background-attachment: scroll;
    }

    .enso-hero-overlay {
        padding: 0 1rem;
    }

    .enso-hero-room .enso-hero-card {
        max-width: 100%;
        padding: 2rem 1.5rem !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
    }

    .enso-hero-room .enso-heading-xxl {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .enso-hero-room .enso-body-l {
        font-size: 1rem;
    }

    .enso-hero-room .enso-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .enso-hero-room .enso-button-primary,
    .enso-hero-room .enso-button-ghost {
        width: 100%;
        text-align: center;
    }

    .enso-hero-room .enso-hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }
    
    .enso-heading-xl {
        font-size: 1.6rem;
    }
    
    .enso-grid-2,
    .enso-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


    .enso-footer-links {
        flex-direction: column;
        gap: var(--enso-space-m);
    }

    .enso-footer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile footer swap at 768px */
@media (max-width: 768px) {
    .enso-footer-desktop {
        display: none;
    }
    
    .enso-footer-mobile {
        display: block;
    }
    
    .enso-footer {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .enso-hero-room {
        min-height: 380px;
        padding: 2rem 0;
    }

    .enso-hero-room .enso-hero-card {
        padding: 1.5rem 1rem !important;
    }

    .enso-hero-room .enso-heading-xxl {
        font-size: 1.6rem;
    }

    .enso-section {
        padding: 2rem 0.75rem;
    }

    .enso-heading-xl {
        font-size: 1.4rem;
    }

    .enso-heading-m {
        font-size: 1.1rem;
    }
}

/* ============================================
   MESSAGING SYSTEM COMPONENTS
   ============================================ */

/* Thread Card (Inbox) */
.enso-thread-card {
    display: block;
    background: rgba(250,248,243,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 20px 22px;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.enso-thread-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

.enso-thread-card.unread {
    border-left: 4px solid #5F8575;
    background: rgba(244,241,235,0.85);
}

.thread-title {
    font-family: var(--enso-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--enso-text-brown);
}

.thread-subtitle {
    font-size: 14px;
    color: #8A857F;
    margin-top: 2px;
}

.thread-preview {
    margin-top: 6px;
    font-size: 15px;
    color: #2B1A14;
    opacity: 0.85;
}

.thread-meta {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8A857F;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: #5F8575;
    border-radius: 50%;
    display: inline-block;
}

/* Message Bubbles */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 120px;
}

.msg-wrapper.mine {
    text-align: right;
}

.msg-wrapper.mine .msg-body {
    display: inline-block;
    background: linear-gradient(135deg, #8BAA92, #5F8575);
    color: #FFFFFF;
    padding: 14px 18px;
    border-radius: 20px 20px 4px 20px;
    max-width: 80%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.msg-wrapper.theirs {
    text-align: left;
}

.msg-wrapper.theirs .msg-body {
    display: inline-block;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(95,133,117,0.18);
    padding: 14px 18px;
    border-radius: 20px 20px 20px 4px;
    max-width: 80%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.msg-time {
    font-size: 11px;
    color: #8A857F;
    margin-top: 4px;
}

/* Message Input Bar (sticky bottom) */
.msg-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(250,248,243,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.msg-input-bar textarea {
    flex: 1;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 14px;
    height: 52px;
    resize: none;
    font-family: var(--enso-font-body);
    font-size: 15px;
}

.msg-input-bar textarea:focus {
    outline: none;
    border-color: #5F8575;
}

/* Back Link */
.enso-link-back {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--enso-primary);
    text-decoration: none;
    font-size: 14px;
}

.enso-link-back:hover {
    color: var(--enso-primary-dark);
}

/* Announcement notice */
.enso-announcement-notice {
    background: rgba(250,248,243,0.75);
    backdrop-filter: blur(10px);
    border-left: 3px solid #5F8575;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    color: #5A524B;
    line-height: 1.5;
}

/* ============================================
   ENSŌ NOTIFICATION SYSTEM
   Toast + Modal Components
   ============================================ */

/* Toast Container */
.enso-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}

@media (max-width: 576px) {
    .enso-toast-container {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* Toast Item */
.enso-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    animation: ensoToastIn 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.enso-toast.hiding {
    animation: ensoToastOut 0.25s ease-in forwards;
}

@keyframes ensoToastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ensoToastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

@media (max-width: 576px) {
    @keyframes ensoToastIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes ensoToastOut {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(20px);
        }
    }
}

/* Toast Icon */
.enso-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 1px;
}

.enso-toast.success .enso-toast-icon {
    background: rgba(95, 133, 117, 0.15);
    color: #5F8575;
}

.enso-toast.info .enso-toast-icon {
    background: rgba(139, 134, 128, 0.15);
    color: #6A6A6A;
}

.enso-toast.warning .enso-toast-icon {
    background: rgba(212, 165, 116, 0.2);
    color: #B8884D;
}

.enso-toast.error .enso-toast-icon {
    background: rgba(198, 93, 93, 0.15);
    color: #C65D5D;
}

/* Toast Content */
.enso-toast-content {
    flex: 1;
    min-width: 0;
}

.enso-toast-message {
    font-family: var(--enso-font-body);
    font-size: 14px;
    line-height: 1.45;
    color: var(--enso-text-dark);
    margin: 0;
}

/* Toast Close Button */
.enso-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
    margin: -4px -4px -4px 0;
}

.enso-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

/* ============================================
   ENSŌ CONFIRM MODAL
   ============================================ */
.enso-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ensoFadeIn 0.2s ease-out;
}

.enso-modal-backdrop.hiding {
    animation: ensoFadeOut 0.15s ease-in forwards;
}

@keyframes ensoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ensoFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.enso-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: ensoModalIn 0.25s ease-out;
}

.enso-modal-backdrop.hiding .enso-modal {
    animation: ensoModalOut 0.15s ease-in forwards;
}

@keyframes ensoModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ensoModalOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

.enso-modal-header {
    padding: 24px 24px 0;
}

.enso-modal-title {
    font-family: var(--enso-font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--enso-text-brown);
    margin: 0;
}

.enso-modal-body {
    padding: 16px 24px 24px;
}

.enso-modal-text {
    font-family: var(--enso-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--enso-text-light);
    margin: 0;
}

.enso-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.enso-modal-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--enso-font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.enso-modal-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--enso-text-medium);
}

.enso-modal-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.enso-modal-btn.primary {
    background: var(--enso-primary);
    color: #fff;
}

.enso-modal-btn.primary:hover {
    background: var(--enso-primary-dark);
}

.enso-modal-btn.danger {
    background: #C65D5D;
    color: #fff;
}

.enso-modal-btn.danger:hover {
    background: #B54D4D;
}

/* Modal Input Elements */
.enso-modal-input-wrap {
    margin-top: 16px;
}

.enso-modal-textarea,
.enso-modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--enso-border-light);
    border-radius: 12px;
    font-family: var(--enso-font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--enso-text-dark);
    background: #FAFAF8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.enso-modal-textarea {
    min-height: 100px;
}

.enso-modal-textarea:focus,
.enso-modal-input:focus {
    outline: none;
    border-color: var(--enso-primary);
    box-shadow: 0 0 0 3px rgba(95, 133, 117, 0.15);
}

.enso-modal-textarea::placeholder,
.enso-modal-input::placeholder {
    color: var(--enso-text-light);
    opacity: 0.7;
}
