/* Shared visual refinements. Components inherit the existing light/dark theme. */
:root {
    --bg-secondary: #f1f3f6;
    --blue-medium: #315f86;
    --border-color: #dde3e8;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-lg: 0 18px 48px rgb(21 43 63 / 7%);
}
body { background-image: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #fff5f5 100%); background-attachment: fixed; }
h1, h2 { letter-spacing: -.035em; }
.navbar { padding-block: 1rem; box-shadow: 0 4px 24px rgb(15 23 42 / 4%); }
.navbar-logo { height: 33px; }
.nav-link { font-size: .9rem; }
.nav-link.active { border-radius: 8px; }
.navbar-menu { gap: 1rem; }
.card, .video-card { border-radius: 18px; box-shadow: 0 5px 24px rgb(15 23 42 / 4%); }
.btn { min-height: 44px; border-radius: 10px; font-size: .95rem; }
.btn-primary { background: #223f91; color: #fff; box-shadow: 0 4px 12px rgb(30 58 138 / 12%); }
.btn-primary:hover { background: #315f86; color: #fff; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--blue-medium); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; padding: 12px 20px; background: var(--bg-elevated); border: 2px solid var(--blue-medium); border-radius: 8px; }
.skip-link:focus { top: 12px; }
#missions-map { scroll-margin-top: 110px; }
.welcome-hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 26px; overflow: hidden; background: #132e43; color: #dbe4eb; position: relative; }
.eyebrow { display: block; color: #dac28f; font-size: .72rem; letter-spacing: .17em; font-weight: 600; margin-bottom: 1.7rem; }
.welcome-copy h1 { color: #fff; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1.08; font-weight: 500; margin-bottom: 1.5rem; }
.welcome-copy h1 em { font-family: Georgia, serif; font-weight: 400; color: #e6c990; }
.welcome-copy > p { max-width: 480px; font-size: 1.03rem; line-height: 1.8; color: #c9d6df; }
.welcome-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.welcome-primary { background: #e8ce9c; color: #172d3e; }
.welcome-primary:hover { background: #f4deba; color: #172d3e; }
.welcome-primary span { margin-left: 1rem; }
.welcome-secondary { color: #fff; border: 1px solid #6a7e8d; background: transparent; }
.welcome-secondary:hover { background: #274459; color: #fff; }
.welcome-note { margin-top: 2rem; font-size: .8rem; color: #b9cbd7; }
.welcome-note span { color: #e6c990; padding-right: .5rem; }
.welcome-art { display: flex; flex-direction: column; align-items: center; padding-top: 1rem; }
.sanctuary-arch { position: relative; isolation: isolate; width: min(100%, 310px); height: 330px; border-radius: 160px 160px 12px 12px; overflow: hidden; border: 1px solid #c1af8670; background: radial-gradient(ellipse at 50% 52%, #e9d9ad 0%, #b5aa86 22%, #607d80 52%, #284b5d 83%); box-shadow: 0 0 0 15px #ffffff03, 0 0 0 16px #d7bc8130, 0 0 0 32px #ffffff02; }
.sanctuary-cross { position: absolute; width: 7px; height: 120px; background: #f5e5c0; left: calc(50% - 3px); top: 77px; box-shadow: 0 0 35px #ffe6a7; }
.sanctuary-cross::after { content: ''; position: absolute; width: 66px; height: 7px; background: #f5e5c0; top: 32px; left: -30px; }
.sanctuary-horizon { position: absolute; width: 140%; height: 135px; left: -20%; bottom: -30px; background: #284b56; border-radius: 50% 65% 0 0; transform: rotate(-12deg); }
.sanctuary-horizon::after { content: ''; position: absolute; width: 110%; height: 120px; bottom: -40px; left: 30px; background: #1b3949; border-radius: 60% 50% 0 0; transform: rotate(25deg); }
.art-caption { margin-top: 3rem; color: #c8b791; font-size: .62rem; letter-spacing: .2em; }
.community-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.5rem 0 3rem; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-elevated); }
.community-paths a { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; color: var(--text-blue); }
.community-paths a + a { border-left: 1px solid var(--border-color); }
.community-paths a:hover { background: var(--blue-light); }
.community-paths strong { display: block; font-size: .96rem; font-weight: 600; }
.community-paths small { display: block; color: var(--text-muted); font-size: .78rem; margin-top: .25rem; }
.path-number { font-size: .73rem; color: var(--text-muted); }
.community-paths a > span:last-child { margin-left: auto; }
.form-card { background: var(--bg-elevated); border-top: 4px solid var(--blue-primary); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.form-card input:not([type=checkbox]):not([type=radio]), .form-card textarea, .form-card select { width: 100%; min-height: 48px; border: 1px solid var(--border-color); border-radius: 10px; padding: .8rem 1rem; background: var(--bg-secondary); color: var(--text-blue); font: inherit; }
.form-card input:focus { border-color: var(--blue-medium); }
table { width: 100%; border-collapse: collapse; }
th { font-size: .75rem; letter-spacing: .04em; }
tbody tr:hover { background: var(--blue-light); }
html[data-theme="dark"] .welcome-hero { border: 1px solid #344a5d; }
html[data-theme="dark"] .form-card { background: var(--bg-elevated); }
@media (max-width: 1100px) and (min-width: 1025px) { .nav-user { display: none; } }
@media (max-width: 760px) {
    .container { padding-inline: 1rem; margin-top: 1rem; }
    .welcome-hero { grid-template-columns: 1fr; padding: 2.2rem 1.5rem; }
    .welcome-art { display: none; }
    .welcome-copy h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
    .community-paths { grid-template-columns: 1fr; }
    .community-paths a + a { border-left: 0; border-top: 1px solid var(--border-color); }
    .community-paths a { padding: 1.2rem; }
    .form-card { margin: 2rem auto; }
    .navbar { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Community identity and the account journey. */
.brand-wordmark { display: block; color: var(--blue-primary); font-size: .74rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4; white-space: nowrap; }
.brand-wordmark small { display: block; color: var(--text-muted); font-size: .58rem; letter-spacing: .2em; margin-top: .25rem; font-weight: 500; }
.navbar-brand { gap: .8rem; }
.navbar-logo { max-width: 500px; object-fit: contain; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; max-width: 1100px; align-items: stretch; gap: 0; margin-block: 3.5rem; }
.auth-story { padding: clamp(2rem, 5vw, 4rem); border-radius: 24px 0 0 24px; background: linear-gradient(135deg, var(--blue-light), var(--bg-elevated)); border: 1px solid var(--border-color); border-top: 4px solid var(--red-primary); color: var(--text-blue); display: flex; flex-direction: column; align-items: flex-start; }
.auth-story h1 { color: var(--blue-primary); font-family: var(--font-sans); font-weight: 800; font-size: clamp(2.5rem, 4vw, 3.6rem); line-height: 1.13; letter-spacing: -.035em; margin: .5rem 0 1.5rem; }
.auth-story > p { max-width: 360px; font-size: 1rem; line-height: 1.85; }
.auth-emblem { display: grid; place-items: center; width: 120px; height: 155px; border: 1px solid var(--border-color); border-radius: 70px 70px 12px 12px; margin: 3rem 0 1.5rem; color: var(--blue-primary); font-size: 4rem; background: var(--bg-elevated); }
.auth-story blockquote { font-family: var(--font-sans); font-size: 1.4rem; font-style: normal; font-weight: 700; color: var(--blue-primary); max-width: 300px; line-height: 1.5; }
.auth-story .eyebrow { color: var(--red-primary); }
.auth-back { margin-top: auto; padding-top: 2.5rem; color: var(--blue-primary); font-size: .9rem; }
.auth-back:hover { color: var(--red-primary); }
.auth-layout .form-card { max-width: none !important; width: 100%; margin: 0; border: 1px solid var(--border-color); border-left: 0; border-radius: 0 24px 24px 0; padding: clamp(1.5rem, 4vw, 3rem); }
.auth-layout .form-card h2 { text-align: left !important; font-size: 1.8rem; line-height: 1.25; }
.auth-layout .form-card > p { text-align: left !important; color: var(--text-muted) !important; }
.auth-layout .form-group label { font-size: .85rem; }
.portal-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; padding: 2rem; background: var(--bg-elevated); border: 1px solid var(--border-color); border-left: 3px solid #b99d64; border-radius: 16px; }
.dashboard-heading { display: block; }
.filter-bar { border-radius: 16px; background: var(--bg-elevated); box-shadow: none; border: 1px solid var(--border-color); }
.video-card { overflow: hidden; border: 1px solid var(--border-color); transition: transform .2s ease, box-shadow .2s ease; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card { background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: 16px; }
.footer-welcome { max-width: 1200px; margin: 0 auto 3rem; padding-bottom: 3rem; border-bottom: 1px solid #ffffff20; position: relative; }
.footer-welcome h2 { font-family: var(--font-sans); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--blue-primary); line-height: 1.2; }
.footer-home { display: inline-block; color: #e2c892; border-bottom: 1px solid #e2c89280; padding-bottom: .4rem; margin-top: 1.5rem; }
.footer-home:hover { color: #fff; }
.site-footer { background: var(--blue-light) !important; color: var(--text-blue) !important; border-top: 1px solid var(--border-color); }
.site-footer .footer-container h4 { font-size: .8rem !important; letter-spacing: .1em !important; border-bottom: 0 !important; font-weight: 600 !important; }
@media (min-width: 1200px) { .footer-home { position: absolute; right: 0; bottom: 3rem; } }
@media (max-width: 1200px) { .brand-wordmark { display: none; } }
@media (max-width: 760px) {
    .auth-layout { grid-template-columns: 1fr; margin-block: 1.5rem; }
    .auth-story { border-radius: 20px 20px 0 0; padding: 2rem; }
    .auth-story h1 { font-size: 2.5rem; }
    .auth-story .eyebrow { margin-bottom: .5rem; }
    .auth-emblem, .auth-story blockquote { display: none; }
    .auth-back { padding-top: 1.5rem; }
    .auth-layout .form-card { border: 1px solid var(--border-color); border-radius: 0 0 20px 20px; }
    .portal-page-heading { padding: 1.4rem; }
    .brand-wordmark { display: block; }
}

/* Let mobile grid children shrink to the available card width. */
.home-page, .home-page :where(section, div, p, blockquote),
.auth-layout > *, .community-paths > *, .map-full-section > *, .map-sidebar > * {
    min-width: 0;
}
.home-page :where(p, blockquote, h1, h2, h3, h4), .auth-layout p {
    overflow-wrap: anywhere;
}
@media (max-width: 560px) {
    .home-page > div[style], .home-page .romans-verse-card,
    .home-page .scripture-card, .home-page .hope-question-card,
    .home-page .hope-highlight-card {
        padding: 1.25rem !important;
    }
    .home-page div[style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1.25rem !important;
    }
    .home-page .map-full-section { grid-template-columns: minmax(0, 1fr); }
    .home-page .romans-verse-card { margin-block: 1.5rem !important; }
    .home-page .scripture-card p, .home-page .romans-verse-card p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    .welcome-actions { flex-direction: column; }
    .welcome-actions .btn { width: 100%; }
    .navbar-brand { min-width: 0; gap: .5rem; }
    .brand-wordmark { white-space: normal; font-size: .65rem; }
    .navbar-logo { max-width: 75px; }
}

/* Keep the original hope section comfortable inside narrow mobile cards. */
@media (max-width: 560px) {
    .home-page .hope-hero-section > div {
        padding: 1.1rem !important;
        margin-block: 1.5rem !important;
    }
    .home-page .hope-hero-section h2 {
        font-size: 1.35rem !important;
        letter-spacing: 0 !important;
    }
    .home-page .hope-hero-section p { overflow-wrap: anywhere; }
}
/* Playback controls stay visible and usable on touch screens. */
.modern-player { position: relative; background: #080f19; border-radius: 16px; overflow: hidden; }
.live-feed-window.modern-player { display: block; aspect-ratio: auto; }
.modern-player video, .live-feed-window.modern-player video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #000; }
.modern-player .media-controls { color: #eaf1fc; padding: .8rem 1rem; background: linear-gradient(180deg, #172436, #0d1828); pointer-events: all; }
.modern-player [hidden] { display: none !important; }
.media-timeline { display: flex; padding: .5rem 0 .75rem; cursor: pointer; }
.media-timeline input[type=range] { --played: 0%; width: 100%; height: 5px; accent-color: #e2c28c; cursor: pointer; border-radius: 8px; background: linear-gradient(to right, #e2c28c var(--played), #526077 var(--played)); padding: 10px 0; box-sizing: content-box; pointer-events: all; touch-action: none; }
.media-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; pointer-events: all; }
.media-toolbar button, .media-toolbar select { font: inherit; font-size: .75rem; min-height: 36px; padding: .4rem .65rem; border: 1px solid #516079; border-radius: 8px; background: #243248; color: #fff; cursor: pointer; pointer-events: all; }
.media-toolbar button:hover { background: #344760; }
.media-toolbar button:disabled { opacity: .45; cursor: default; }
.media-toolbar button[data-action="play"] { background: #e2c28c; border-color: #e2c28c; color: #152232; font-weight: 700; }
.media-time { color: #c7d4e6; font-size: .75rem; font-variant-numeric: tabular-nums; margin-right: auto; white-space: nowrap; }
.media-volume { width: 65px; accent-color: #e2c28c; pointer-events: all; }
.media-feedback { display: block; color: #f6cf91; font-size: .8rem; }
.media-feedback:empty { display: none; }
.playback-badge { background: #e2e8f0; color: #334155; }
.playback-badge[data-state="live"] { background: #dc2626; color: #fff; }
.playback-badge[data-state="replaying"] { background: #1d4ed8; color: #fff; }
.playback-badge[data-state="buffering"], .playback-badge[data-state="connecting"] { background: #fef3c7; color: #92400e; }
.modern-player:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.modern-player:fullscreen video { flex: 1; min-height: 0; max-height: calc(100vh - 130px) !important; object-fit: contain; }
.live-feed-window .live-placeholder { min-height: 260px; }
@media (max-width: 560px) {
    .modern-player .media-controls { padding: .6rem; }
    .media-toolbar button, .media-toolbar select { min-height: 42px; }
    .media-volume { width: 55px; }
}
/* Video card player: static layout (non-live), controls below video */
.video-player-wrapper.modern-player { height: auto; padding-bottom: 0; display: flex; flex-direction: column; }
.video-player-wrapper.modern-player video { position: static; height: auto; object-fit: contain; }
.video-player-wrapper.modern-player .media-controls { position: static; background: linear-gradient(180deg, #172436, #0d1828); padding: .7rem .9rem; }

/* Reference design shared by every portal page. */
input, select, textarea, button { font-family: var(--font-sans); }
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--blue-primary); font-weight: 800; }
.card, .video-card, .stat-card, .form-card { border-top: 4px solid var(--blue-primary); }
.auth-layout .form-card { border-top: 4px solid var(--blue-primary); }
.portal-page-heading { border-left: 0; border-top: 4px solid var(--blue-primary); background: linear-gradient(135deg, var(--blue-light), var(--bg-elevated)); }
.btn-secondary { background: var(--blue-light); border: 1px solid var(--border-color); color: var(--blue-primary); }
.btn-secondary:hover { background: var(--blue-medium); color: #fff; }
.form-card input:not([type=checkbox]):not([type=radio]), .form-card textarea, .form-card select { background: var(--bg-elevated); }
.site-footer :where(h2, h3, h4, p, a:not(.footer-maps-btn), span) { color: var(--text-blue) !important; }
.site-footer :where(h2, h3, h4, a:not(.footer-maps-btn)) { color: var(--blue-primary) !important; }
.site-footer a:not(.footer-maps-btn):hover { color: var(--red-primary) !important; }
.site-footer .footer-maps-btn { background: #1e3a8a !important; color: #ffffff !important; border: 1px solid #1e3a8a; border-radius: 10px !important; min-height: 44px; }
.site-footer .footer-maps-btn:hover,
.site-footer .footer-maps-btn:focus-visible { background: #315f86 !important; color: #ffffff !important; border-color: #315f86; }
.site-footer .footer-maps-btn svg { color: inherit; stroke: currentColor; }

/* Live feed player: overlaid controls on top of video */
.modern-player { position: relative; isolation: isolate; overflow: hidden; background: #080b12; }
.browser-player-frame { position: relative; }
.player-session-controls { position: absolute; top: .75rem; right: .75rem; z-index: 4; display: flex; gap: .5rem; }
.player-session-controls button { font: inherit; color: #fff; background: rgb(24 24 24 / 75%); border: 1px solid rgb(255 255 255 / 30%); border-radius: 24px; padding: .45rem .8rem; cursor: pointer; }
.player-session-controls button:disabled { display: none; }
.player-session-controls button[hidden] { display: none; }
/* Overlaid controls for live feed (not .video-player-wrapper) */
.live-feed-window.modern-player .media-controls,
.browser-player-frame.modern-player .media-controls { position: absolute; z-index: 3; inset: auto 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 80%)); padding: 2rem .75rem .65rem; border: 0; pointer-events: all; }
.modern-player .media-controls[hidden] { display: none; }
.modern-player .media-timeline input[type=range] { height: 5px; accent-color: #ff1744; background: linear-gradient(to right, #ff1744 var(--played), rgb(255 255 255 / 45%) var(--played)); padding: 10px 0; box-sizing: content-box; pointer-events: all; touch-action: none; }
.modern-player .media-toolbar { gap: .35rem; flex-wrap: wrap; }
.modern-player .media-toolbar button, .modern-player .media-toolbar select { color: #fff; background: rgb(24 24 24 / 65%); border: 0; border-radius: 24px; min-height: 36px; padding: .4rem .65rem; }
.modern-player .media-toolbar button:hover { background: rgb(65 65 65 / 85%); }
.modern-player .media-toolbar button[data-action="play"] { background: rgb(24 24 24 / 65%); color: #fff; font-size: 1rem; }
.modern-player [data-action="live"]::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a3a3a3; margin-right: .4rem; }
.modern-player [data-action="live"].at-live-edge::before { background: #ff1744; }
.modern-player .media-time { color: #fff; }
.modern-player .media-volume { accent-color: #fff; }
.modern-player .media-feedback { color: #fff; background: rgb(0 0 0 / 55%); }
.modern-player video { display: block; object-fit: contain; }
.modern-player:fullscreen video { max-height: 100vh !important; height: 100%; width: 100%; }
@media (max-width: 560px) {
    .modern-player .media-volume { display: none; }
    .modern-player .media-toolbar button, .modern-player .media-toolbar select { min-height: 36px; padding-inline: .45rem; }
    .modern-player .media-controls { padding-inline: .5rem; }
}
.footer-welcome { border-color: var(--border-color); }
.footer-home { color: var(--blue-primary); border-color: var(--blue-medium); }
.welcome-hero { background: linear-gradient(135deg, var(--blue-light), var(--bg-elevated)); color: var(--text-blue); border: 1px solid var(--border-color); }
.welcome-copy h1 { color: var(--blue-primary); font-weight: 800; }
.welcome-copy h1 em { font-family: var(--font-sans); font-style: normal; font-weight: 800; color: var(--red-primary); }
.welcome-copy > p, .welcome-note { color: var(--text-muted); }
.welcome-hero .eyebrow, .welcome-note span { color: var(--red-primary); }
.welcome-primary { background: var(--blue-primary); color: var(--bg-elevated); }
.welcome-secondary { color: var(--blue-primary); border-color: var(--border-color); }
.media-toolbar button[data-action="play"] { background: #315f86; border-color: #315f86; color: white; }
.media-timeline input { accent-color: #93c5fd; background: linear-gradient(to right, #93c5fd var(--played), #526077 var(--played)); }
.media-volume { accent-color: #93c5fd; }
.media-feedback { color: #dbeafe; }
@media (max-width: 760px) {
    .container > .grid-2, .card > div[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
    .grid-2 > *, .auth-layout > * { min-width: 0; }
    .card { overflow-wrap: anywhere; }
}

/* ── Custom Popup Screen & Modal UI (Website Design) ──────────────────────── */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.custom-modal-card {
    background: var(--bg-elevated, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 450px;
    width: 100%;
    padding: 1.85rem;
    transform: scale(0.9) translateY(12px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-sans);
}
.custom-modal-backdrop.is-open .custom-modal-card {
    transform: scale(1) translateY(0);
}
.custom-modal-backdrop.is-closing .custom-modal-card {
    transform: scale(0.92) translateY(8px);
    opacity: 0;
}
.custom-modal-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.custom-modal-icon-badge.danger {
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
html[data-theme="dark"] .custom-modal-icon-badge.danger {
    background: rgba(239, 68, 68, 0.15);
}
.custom-modal-icon-badge.warning {
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
html[data-theme="dark"] .custom-modal-icon-badge.warning {
    background: rgba(245, 158, 11, 0.15);
}
.custom-modal-icon-badge.info {
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.2);
}
html[data-theme="dark"] .custom-modal-icon-badge.info {
    background: rgba(37, 99, 235, 0.15);
}
.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-blue, #1e293b);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.custom-modal-text {
    font-size: 0.95rem;
    color: var(--text-muted, #64748b);
    line-height: 1.55;
    margin-bottom: 1.6rem;
}
.custom-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
.custom-modal-actions.single button {
    width: 100%;
}
.btn-modal-cancel {
    padding: 0.65rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-blue, #334155);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-modal-cancel:hover {
    background: var(--border-color, #e2e8f0);
}
.btn-modal-danger {
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background: #dc2626;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.btn-modal-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}
.btn-modal-primary {
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background: var(--blue-medium, #2563eb);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-modal-primary:hover {
    background: var(--blue-primary, #1d4ed8);
    transform: translateY(-1px);
}

/* ── Custom Toast Notifications ────────────────────────────────────────────── */
.custom-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 390px;
    width: 90%;
    pointer-events: none;
}
.custom-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: var(--bg-elevated, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
    color: var(--text-blue, #1e293b);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-sans);
}
.custom-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}
.custom-toast.is-hiding {
    transform: translateX(110%);
    opacity: 0;
}
.custom-toast-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.custom-toast-icon svg {
    width: 22px;
    height: 22px;
}
.custom-toast-content {
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
}
.custom-toast-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}
.custom-toast-close:hover {
    color: var(--text-blue, #1e293b);
}

