/* WAAPI Glass Minimal Design System
 * Derived from WAAPI-redesign.html with full Cairo typography, original SVG logos,
 * and high-contrast light / dark theme tokens.
 */

:root {
    /* Shorthand tokens used in redesign blade templates */
    --bg: #F1F7F3;
    --ink: #10261B;
    --p: #1B7F4B;
    --btn: #2ED16B;
    --mut: #4F6B5C;
    --mint: #E4F2E9;
    --mint-soft: #7FD9A5;

    /* Namespaced tokens */
    --wa-redesign-bg: #F1F7F3;
    --wa-redesign-text: #10261B;
    --wa-redesign-muted: #4F6B5C;
    --wa-redesign-brand: #1B7F4B;
    --wa-redesign-btn: #2ED16B;
    --wa-redesign-mint-light: #E4F2E9;
    --wa-redesign-mint-soft: #7FD9A5;
    --wa-redesign-glass-bg: rgba(255, 255, 255, 0.55);
    --wa-redesign-glass-border: rgba(255, 255, 255, 0.75);
    --wa-redesign-glass-shadow: 0 12px 40px -16px rgba(16, 38, 27, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark {
    /* Shorthand tokens used in redesign blade templates */
    --bg: #0A0E0C;
    --ink: #F8FAFC;
    --p: #2ED16B;
    --btn: #2ED16B;
    --mut: #94A3B8;
    --mint: rgba(46, 209, 107, 0.12);
    --mint-soft: #2ED16B;

    /* Namespaced tokens */
    --wa-redesign-bg: #0A0E0C;
    --wa-redesign-text: #F8FAFC;
    --wa-redesign-muted: #94A3B8;
    --wa-redesign-brand: #2ED16B;
    --wa-redesign-btn: #2ED16B;
    --wa-redesign-mint-light: rgba(46, 209, 107, 0.12);
    --wa-redesign-mint-soft: #2ED16B;
    --wa-redesign-glass-bg: rgba(18, 24, 21, 0.75);
    --wa-redesign-glass-border: rgba(255, 255, 255, 0.08);
    --wa-redesign-glass-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Page shell */
.pg {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    background: #F1F7F3;
    color: #10261B;
    line-height: 1.7;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif !important;
}

body,
.font-cairo,
.font-tajawal,
h2,
h3,
h4,
h5,
h6,
.hh2,
.eb,
.logo,
.plan-price-value,
p,
.mut,
.btn,
label,
input,
textarea,
select,
button,
li,
td,
th {
    font-family: 'Cairo', sans-serif !important;
}

/* Main Headings & CTA Headline ONLY: Playpen Sans Arabic */
h1,
.hh,
.font-playpen,
.cta-title {
    font-family: 'Playpen Sans Arabic', 'Cairo', sans-serif !important;
}

/* Main Headings & CTA Headline inner elements (e.g. colored spans, em, strong) inherit heading font */
h1 *,
.hh *,
.font-playpen *,
.cta-title * {
    font-family: inherit !important;
}

.dark .pg {
    background: #0A0E0C;
    color: #F8FAFC;
}

/* Blurred background orbs */
.bl {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.dark .bl {
    opacity: 0.08 !important;
    filter: blur(140px) !important;
}

.z {
    position: relative;
    z-index: 1;
}

.w {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.pt-hero {
    padding-top: 196px !important;
}

@media (max-width: 900px) {
    .pt-hero {
        padding-top: 140px !important;
    }
}

@media (max-width: 640px) {
    .pt-hero {
        padding-top: 120px !important;
    }
}

/* Redesign Header navigation */
.waapi-public-nav-links {
    gap: 8px !important;
}

.waapi-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px !important;
    border-radius: 9999px;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    text-decoration: none !important;
    color: #475569 !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.waapi-nav-link:hover {
    color: #0F172A !important;
    background: rgba(0, 0, 0, 0.04);
}

.waapi-nav-link.is-active {
    color: #1B7F4B !important;
    font-weight: 700 !important;
    background: rgba(27, 127, 75, 0.08);
}

/* Header navigation in Dark Mode */
.dark .waapi-nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
}

.dark .waapi-nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.06);
}

.dark .waapi-nav-link.is-active {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.waapi-nav-link .waapi-nav-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #1B7F4B;
    margin-inline-start: 6px;
}

.dark .waapi-nav-link.is-active .waapi-nav-dot {
    background: #2ED16B;
    box-shadow: 0 0 8px #2ED16B;
}

@media (min-width: 1280px) {
    .waapi-public-nav-links {
        gap: 12px !important;
    }
    .waapi-nav-link {
        font-size: 15px !important;
        padding: 7px 16px !important;
    }
}

/* Login link in header */
.waapi-login-link {
    color: #475569 !important;
    font-size: 15px !important;
    transition: color 0.2s ease;
}

.waapi-login-link:hover {
    color: #1B7F4B !important;
}

.dark .waapi-login-link {
    color: #FFFFFF !important;
}

.dark .waapi-login-link:hover {
    color: #2ED16B !important;
}

/* Frosted glass minimal card */
.gl {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 40px -16px rgba(16, 38, 27, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    position: relative;
}

.dark .gl {
    background: rgba(18, 24, 21, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Fallback for browsers not supporting backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .gl {
        background: rgba(255, 255, 255, 0.95);
    }
    .dark .gl {
        background: #111714;
    }
}

/* Floating navbar container - always completely transparent */
#main-nav,
#main-nav.glass-nav,
body.waapi-home-page #main-nav {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.gs {
    background: rgba(255, 255, 255, 0.85);
}

.dark .gs {
    background: rgba(22, 28, 25, 0.85);
}

/* Logo styling */
.logo {
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.5px;
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10261B;
}

.dark .logo {
    color: #F8FAFC;
}

.logo i {
    font-style: normal;
    font-size: 11px;
    background: #7FD9A5;
    color: #0B3B22;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0;
    font-weight: 700;
}

.dark .logo i {
    background: #1B7F4B;
    color: #E4F2E9;
}

/* Button styles */
.btn.b1,
.btn.b2,
.btn.bo,
.wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    min-height: 52px;
    font-family: inherit;
    border: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.b1 {
    background: #2ED16B;
    color: #0B2417 !important;
}

.b1:hover {
    background: #26BD5F;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(46, 209, 107, 0.45);
}

.b2 {
    background: #1B7F4B;
    color: #ffffff !important;
}

.b2:hover {
    background: #166A3E;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(27, 127, 75, 0.4);
}

.bo {
    border: 1px solid rgba(27, 127, 75, 0.45);
    color: #1B7F4B !important;
    background: rgba(255, 255, 255, 0.4);
}

.bo:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: #1B7F4B;
    transform: translateY(-2px);
}

.dark .bo {
    border-color: rgba(255, 255, 255, 0.15);
    color: #F8FAFC !important;
    background: rgba(255, 255, 255, 0.04);
}

.dark .bo:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF !important;
}

/* Typography tokens */
.eb {
    font-size: 14px;
    font-weight: 600;
    color: #1B7F4B;
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}

.dark .eb {
    color: #7FD9A5;
}

.hh {
    font-size: 72px;
    line-height: 1.2;
    margin: 0 0 20px;
    font-weight: 500;
    letter-spacing: -2px;
}

:is(.pg, .gl) h2:not([class*="text-"]):not(.app-content-shell h2),
h2.hh2 {
    font-size: 42px;
    line-height: 1.3;
    margin: 0 0 14px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

em {
    font-style: normal;
}

:is(.pg, .gl) h2:not([class*="text-"]):not(.app-content-shell h2) em,
h2.hh2 em {
    font-style: normal;
    color: #1B7F4B;
}

.dark :is(.pg, .gl) h2:not([class*="text-"]):not(.app-content-shell h2) em,
.dark h2.hh2 em {
    color: #2ED16B;
}

.mut {
    color: #4F6B5C;
}

.dark .mut {
    color: #94A3B8;
}

.mono,
code,
kbd,
pre,
samp,
.font-mono {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    direction: ltr;
}

/* Icon containers */
.ic {
    width: 44px;
    height: 44px;
    color: #1B7F4B;
    margin-bottom: 24px;
}

.ic svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dark .ic {
    color: #2ED16B;
}

/* Inputs and Forms */
input.in,
textarea.in,
select.in,
.in {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(27, 127, 75, 0.25);
    background: rgba(255, 255, 255, 0.75);
    font: inherit;
    font-size: 16px;
    color: #10261B;
    outline: none;
    transition: all 0.2s ease;
}

input.in:focus,
textarea.in:focus,
select.in:focus,
.in:focus {
    border-color: #1B7F4B;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(46, 209, 107, 0.25);
}

.dark input.in,
.dark textarea.in,
.dark select.in,
.dark .in {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

.dark input.in:focus,
.dark textarea.in:focus,
.dark select.in:focus,
.dark .in:focus {
    border-color: #2ED16B;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(46, 209, 107, 0.2);
}

:is(.pg, .gl) label:not(.ch):not(.switch):not(.custom-control-label):not([class*="flex"]):not([class*="inline-"]):not(.app-content-shell label),
.in-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px;
    color: #4F6B5C;
}

.dark :is(.pg, .gl) label:not(.ch):not(.switch):not(.custom-control-label):not([class*="flex"]):not([class*="inline-"]):not(.app-content-shell label),
.dark .in-label {
    color: #CBD5E1;
}

/* Tables and Rows */
.rw {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(27, 127, 75, 0.15);
}

.dark .rw {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.tb {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(27, 127, 75, 0.15);
    text-align: center;
}

.tb > :first-child {
    text-align: start;
}

.dark .tb {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Grids */
.g3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Check / Radio Cards */
.ch, label.ch {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 20px;
    border: 1px solid rgba(27, 127, 75, 0.2);
    background: rgba(255, 255, 255, 0.5);
    font-size: 17px;
    color: #10261B;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

label.ch.on {
    border: 1.5px solid #2ED16B;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px -8px rgba(16, 38, 27, 0.2);
}

.dark label.ch {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.09);
    color: #F8FAFC;
}

.dark label.ch.on {
    border-color: #2ED16B;
    background: rgba(46, 209, 107, 0.12);
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.5);
}

.ch input {
    accent-color: #1B7F4B;
    width: 20px;
    height: 20px;
    margin: 0;
}

.mk {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #E4F2E9;
    color: #1B7F4B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    direction: ltr;
    flex-shrink: 0;
}

.dark .mk {
    background: rgba(255, 255, 255, 0.06);
    color: #E2E8F0;
}

.soon {
    opacity: 0.55;
}

.tg {
    font-size: 12px;
    background: #E4F2E9;
    color: #1B7F4B;
    padding: 2px 12px;
    border-radius: 999px;
    margin-inline-start: auto;
}

.dark .tg {
    background: rgba(46, 209, 107, 0.14);
    color: #2ED16B;
}

.ck {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 14px;
}

.ck svg {
    width: 22px;
    height: 22px;
    flex: none;
    fill: none;
    stroke: #1B7F4B;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dark .ck svg {
    stroke: #2ED16B;
}

/* Tabs & Accordions */
.tab {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab.on {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px -8px rgba(16, 38, 27, 0.25);
    font-weight: 600;
    color: #1B7F4B;
}

.dark .tab {
    color: #94A3B8;
}

.dark .tab:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.04);
}

.dark .tab.on {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.5);
    color: #F8FAFC;
}

.faq {
    padding: 22px 0;
    border-bottom: 1px solid rgba(27, 127, 75, 0.15);
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dark .faq {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Dashboard specific styles */
.sb {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100%;
}

.si {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 16px;
    color: #4F6B5C;
    text-decoration: none;
    transition: all 0.2s ease;
}

.si:hover {
    color: #1B7F4B;
    background: rgba(255, 255, 255, 0.5);
}

.dark .si {
    color: #8EA696;
}

.dark .si:hover {
    color: #7FD9A5;
    background: rgba(255, 255, 255, 0.05);
}

.si svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.si.on {
    background: rgba(255, 255, 255, 0.9);
    color: #1B7F4B;
    font-weight: 600;
    box-shadow: 0 4px 16px -8px rgba(16, 38, 27, 0.25);
}

.dark .si.on {
    background: rgba(27, 127, 75, 0.35);
    color: #E8F5EC;
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.5);
}

.si b {
    margin-inline-start: auto;
    background: #2ED16B;
    color: #0B2417;
    font-size: 12px;
    border-radius: 999px;
    padding: 0 9px;
    font-weight: 700;
}

.kp {
    padding: 26px 28px;
}

.kp small {
    color: #4F6B5C;
    font-size: 14px;
}

.dark .kp small {
    color: #8EA696;
}

.kp div {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
}

.gl .th,
div.th {
    display: grid;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(27, 127, 75, 0.15);
    align-items: center;
    font-size: 15px;
}

.gl .th.h,
div.th.h {
    color: #4F6B5C;
    font-size: 14px;
    font-weight: 600;
}

.dark .gl .th,
.dark div.th {
    border-bottom-color: rgba(40, 82, 58, 0.4);
}

.dark .gl .th.h,
.dark div.th.h {
    color: #8EA696;
}

.st {
    font-size: 13px;
    padding: 2px 12px;
    border-radius: 999px;
    background: #E4F2E9;
    color: #1B7F4B;
    justify-self: start;
    font-weight: 600;
}

.st.w {
    background: #FFF1D6;
    color: #8A5A00;
}

.st.g {
    background: #EEE;
    color: #555;
}

.dark .st {
    background: rgba(27, 127, 75, 0.3);
    color: #7FD9A5;
}

.dark .st.w {
    background: rgba(255, 241, 214, 0.15);
    color: #F5C26B;
}

.dark .st.g {
    background: rgba(255, 255, 255, 0.1);
    color: #AAA;
}

.btn.sm,
.btn-sm-pill,
.gl .sm {
    padding: 8px 18px !important;
    min-height: 36px !important;
    font-size: 14px !important;
}

/* Responsive queries */
@media (max-width: 900px) {
    .g3, .g2, .sp, .two {
        grid-template-columns: 1fr !important;
    }
    .tb {
        grid-template-columns: 1fr !important;
        gap: 8px;
        text-align: start !important;
    }
    :is(.pg, .gl) h2:not([class*="text-"]):not(.app-content-shell h2),
    h2.hh2 {
        font-size: 32px !important;
    }
    .hh {
        font-size: 44px !important;
    }
    .w {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Back to Top Floating Button */
#back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px -5px rgba(27, 127, 75, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                background-color 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 0 24px rgba(46, 209, 107, 0.4);
}

#back-to-top:active {
    transform: scale(0.95);
}

.dark #back-to-top {
    background: rgba(17, 23, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.dark #back-to-top:hover {
    box-shadow: 0 0 24px rgba(46, 209, 107, 0.45);
}

#back-to-top.btt-hidden {
    opacity: 0 !important;
    transform: translateY(24px) scale(0.9) !important;
    pointer-events: none !important;
}

#back-to-top.btt-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

@media (max-width: 640px) {
    #back-to-top {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Page Transitions (Cross-Document View Transitions & Smooth Fallback) */
@view-transition {
    navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}

::view-transition-old(root),
::view-transition-new(root) {
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    animation: 0.22s cubic-bezier(0.4, 0, 1, 1) both waapiPageOut;
}

::view-transition-new(root) {
    animation: 0.26s cubic-bezier(0, 0, 0.2, 1) both waapiPageIn;
}

@keyframes waapiPageOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes waapiPageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keep floating navbar and back-to-top button smoothly anchored during page transitions */
#main-nav {
    view-transition-name: waapi-navbar;
}

#back-to-top {
    view-transition-name: waapi-back-to-top;
}

::view-transition-group(waapi-navbar) {
    animation-duration: 0.25s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-group(waapi-back-to-top) {
    animation-duration: 0.25s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Universal Glassmorphism Minimal System for All Modals, Popups & Dialogs
   ========================================================================== */

/* 1. Modal & Popup Backdrops */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation,
.modal-backdrop,
.modal-backdrop.show,
div[x-show].fixed.inset-0.bg-slate-900\/60,
div[x-show].fixed.inset-0.bg-slate-950\/70,
div[x-show].fixed.inset-0.bg-slate-950\/80,
div[x-show].fixed.inset-0.bg-slate-950\/60,
div[x-show].fixed.inset-0.bg-black\/50,
.modal.fade.show,
[id$="-modal"].fixed.inset-0,
[id$="Modal"].fixed.inset-0 {
    background: rgba(10, 14, 12, 0.65) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
}

/* 2. SweetAlert2 Popups */
.swal2-popup,
.swal2-modal,
.quick-swal,
.redistribute-swal-popup {
    background: rgba(255, 255, 255, 0.88) !important;
    -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
    backdrop-filter: blur(32px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 28px !important;
    box-shadow: 0 25px 60px -15px rgba(16, 38, 27, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    color: #10261B !important;
    font-family: inherit !important;
    padding: 28px !important;
}

.dark .swal2-popup,
.dark .swal2-modal,
.dark .quick-swal,
.dark .redistribute-swal-popup {
    background: rgba(13, 35, 25, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

.swal2-title {
    color: #10261B !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
}

.dark .swal2-title {
    color: #F8FAFC !important;
}

.swal2-html-container {
    color: #4F6B5C !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.dark .swal2-html-container {
    color: #94A3B8 !important;
}

.swal2-actions {
    margin-top: 24px !important;
    gap: 12px !important;
}

.swal2-confirm {
    background: #2ED16B !important;
    color: #0B2417 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px 28px !important;
    border: none !important;
    box-shadow: 0 8px 20px -6px rgba(46, 209, 107, 0.45) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.swal2-confirm:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 24px -6px rgba(46, 209, 107, 0.6) !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.6) !important;
    color: #4F6B5C !important;
    border: 1px solid rgba(27, 127, 75, 0.25) !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 12px 28px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.dark .swal2-cancel {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #E2E8F0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.swal2-close {
    color: #4F6B5C !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    border-radius: 999px !important;
}

.dark .swal2-close {
    color: #94A3B8 !important;
}

.swal2-close:hover {
    color: #10261B !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.dark .swal2-close:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* SweetAlert Icons */
.swal2-icon.swal2-success {
    border-color: #2ED16B !important;
    color: #2ED16B !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #2ED16B !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: 4px solid rgba(46, 209, 107, 0.3) !important;
}

/* 3. Bootstrap & Generic Modals & Dialogs */
.modal-content,
.modal-content-box,
.glass-modal,
dialog {
    background: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
    backdrop-filter: blur(32px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 28px !important;
    box-shadow: 0 25px 60px -15px rgba(16, 38, 27, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    color: #10261B !important;
}

.dark .modal-content,
.dark .modal-content-box,
.dark .glass-modal,
.dark dialog {
    background: rgba(13, 35, 25, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

.modal-header {
    border-bottom: 1px solid rgba(27, 127, 75, 0.12) !important;
    padding: 20px 24px !important;
}

.dark .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-footer {
    border-top: 1px solid rgba(27, 127, 75, 0.12) !important;
    padding: 16px 24px !important;
}

.dark .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 4. Glass Popovers & Dropdown Menus */
.dropdown-menu,
.glass-popover,
[x-show].absolute.z-50 {
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px -12px rgba(16, 38, 27, 0.18) !important;
}

.dark .dropdown-menu,
.dark .glass-popover,
.dark [x-show].absolute.z-50 {
    background: rgba(13, 35, 25, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.7) !important;
    color: #F8FAFC !important;
}

/* Progressive enhancement fallback for browsers without native Cross-Document View Transitions */
@media (prefers-reduced-motion: no-preference) {
    html.no-view-transitions body {
        animation: waapiPageEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes waapiPageEnter {
        from {
            opacity: 0;
            transform: translateY(4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    html.no-view-transitions body.waapi-page-exiting {
        opacity: 0 !important;
        transform: translateY(-4px) !important;
        transition: opacity 0.14s ease-in, transform 0.14s ease-in !important;
    }
}

