/*
 * GENERATED FILE — do not edit directly.
 * Source: apps/ui/site_files/css/fonts.css + {tokens,themes,base,components,motion,overlays,responsive,utilities}.css
 * Build: npm run ui:build
 */

@layer yp-tokens, yp-themes, yp-base, yp-components, yp-motion, yp-overlays, yp-responsive, yp-utilities;
/* cairo */
/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/cairo-1-748022f50c42.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/cairo-2-da6ada83c3a8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/cairo-3-82c13cbd1352.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* manrope */
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/manrope-1-de37de877dc1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/manrope-2-c268b459a932.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/manrope-3-2fb2e8cbfd52.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/manrope-4-6bbb044ab420.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/manrope-5-3911b66d9f2e.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/manrope-6-a30ddcd34970.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* source-sans-3 */
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/source-sans-3-1-6aba01e1a800.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/source-sans-3-2-b6b721e08d03.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/source-sans-3-3-3576fb9237b1.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/source-sans-3-4-5360981f035c.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/source-sans-3-5-ff34bf5a131a.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/source-sans-3-6-a85a7459bdb3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/ui-assets/fonts/source-sans-3-7-7a19a7027e12.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* nunito-sans */
/* cyrillic-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/nunito-sans-1-8a8e11bad67c.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/nunito-sans-2-d3fe75d4c86f.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/nunito-sans-3-05ad6c0ccbb6.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/nunito-sans-4-c648ee5bfda7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/nunito-sans-5-29e389049684.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ibm-plex-sans */
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/ibm-plex-sans-1-7d0037a17088.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/ibm-plex-sans-2-9409ee21811f.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/ibm-plex-sans-3-f598dd0700f1.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/ibm-plex-sans-4-73e7f7b1c980.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/ibm-plex-sans-5-d160e20920ae.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/ui-assets/fonts/ibm-plex-sans-6-e2291e842cf5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@layer yp-tokens {
:root {
    /* Typography */
    --yp-font-sans: "Manrope", "Segoe UI Variable Text", "Segoe UI", Arial, system-ui, sans-serif;
    --yp-font-display: "Manrope", "Segoe UI Variable Display", "Segoe UI", Arial, system-ui, sans-serif;
    --yp-font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --yp-font-size-xs: .75rem;
    --yp-font-size-sm: .875rem;
    --yp-font-size-md: 1rem;
    --yp-font-size-lg: 1.125rem;
    --yp-font-size-xl: 1.25rem;
    --yp-font-size-2xl: 1.5rem;
    --yp-font-size-3xl: 1.875rem;
    --yp-font-size-4xl: 2.25rem;
    --yp-line-tight: 1.2;
    --yp-line-normal: 1.55;
    --yp-line-relaxed: 1.8;

    /* Yalla Pay 2026 V.01 identity - official palette. */
    --yp-vivid-blue: #0c6aef;
    --yp-electric-indigo: #2b0bc6;
    --yp-emerald-green: #00cc77;
    --yp-electric-lime: #66f20b;
    --yp-brand-gradient: linear-gradient(125deg, var(--yp-vivid-blue), var(--yp-electric-indigo));

    /* Brand primitives */
    --yp-brand-50: #ecf4ff;
    --yp-brand-100: #d8e9ff;
    --yp-brand-200: #b5d4ff;
    --yp-brand-300: #85baff;
    --yp-brand-400: #428ff9;
    --yp-brand-500: #0c6aef;
    --yp-brand-600: #095bda;
    --yp-brand-700: #1244b7;
    --yp-brand-800: #2630a0;
    --yp-brand-900: #2b0bc6;

    /* Neutral primitives */
    --yp-navy-950: #070a1d;
    --yp-navy-900: #0e1533;
    --yp-navy-850: #151d3a;
    --yp-navy-800: #1d2949;
    --yp-navy-700: #334165;
    --yp-navy-600: #506081;
    --yp-slate-500: #64748b;
    --yp-slate-400: #94a3b8;
    --yp-slate-300: #cbd5e1;
    --yp-slate-200: #e2e8f0;
    --yp-slate-100: #f1f5f9;
    --yp-slate-50: #f8fafc;
    --yp-white: #ffffff;
    --yp-black: #000000;

    /* Wealth / trust primitives */
    --yp-gold-300: #b9ff74;
    --yp-gold-400: #91f841;
    --yp-gold-500: #66f20b;
    --yp-gold-600: #42b809;
    --yp-emerald-deep: #1c2180;
    --yp-wealth-navy: #0c1643;
    --yp-wealth-emerald: #2b0bc6;

    /* State primitives */
    --yp-green-500: #00a969;
    --yp-green-400: #00cc77;
    --yp-amber-500: #b7791f;
    --yp-amber-400: #d69e2e;
    --yp-red-500: #d64256;
    --yp-red-400: #ea6576;
    --yp-blue-500: #0c6aef;
    --yp-blue-400: #428ff9;

    /* Sizing */
    --yp-space-1: .25rem;
    --yp-space-2: .5rem;
    --yp-space-3: .75rem;
    --yp-space-4: 1rem;
    --yp-space-5: 1.25rem;
    --yp-space-6: 1.5rem;
    --yp-space-8: 2rem;
    --yp-space-10: 2.5rem;
    --yp-space-12: 3rem;
    --yp-space-16: 4rem;
    --yp-radius-xs: .375rem;
    --yp-radius-sm: .5rem;
    --yp-radius-md: .75rem;
    --yp-radius-lg: 1rem;
    --yp-radius-xl: 1.5rem;
    --yp-radius-full: 9999px;
    --yp-control-sm: 2.125rem;
    --yp-control-md: 2.75rem;
    --yp-control-lg: 3.25rem;
    --yp-shell: 1440px;
    --yp-content: 1180px;
    --yp-sidebar: 260px;

    /* Motion / layering */
    --yp-ease: cubic-bezier(.2,.8,.2,1);
    --yp-duration-fast: 120ms;
    --yp-duration: 180ms;
    --yp-z-dropdown: 1000;
    --yp-z-sticky: 1100;
    --yp-z-modal: 2000;
    --yp-z-toast: 3000;
}

:root {
    /* Responsive reference breakpoints (documentation/runtime metadata; media queries use matching literals). */
    --yp-breakpoint-xs: 480px;
    --yp-breakpoint-sm: 640px;
    --yp-breakpoint-md: 768px;
    --yp-breakpoint-lg: 1024px;
    --yp-breakpoint-xl: 1280px;
    --yp-breakpoint-2xl: 1536px;

    /* Semantic motion. */
    --yp-motion-instant: 80ms;
    --yp-motion-fast: 120ms;
    --yp-motion-normal: 180ms;
    --yp-motion-slow: 260ms;
    --yp-motion-enter: 220ms;
    --yp-motion-exit: 160ms;
    --yp-ease-standard: cubic-bezier(.2, 0, 0, 1);
    --yp-ease-emphasized: cubic-bezier(.2, .8, .2, 1);
    --yp-ease-decelerate: cubic-bezier(0, 0, .2, 1);
    --yp-ease-accelerate: cubic-bezier(.4, 0, 1, 1);
}


html[lang="ar"] { --yp-font-sans: "Cairo", Tahoma, Arial, sans-serif; --yp-font-display: "Cairo", Tahoma, Arial, sans-serif; }
html[lang="en"] { --yp-font-sans: "Manrope", Arial, sans-serif; --yp-font-display: "Manrope", Arial, sans-serif; }
html[lang="fr"] { --yp-font-sans: "Source Sans 3", Arial, sans-serif; --yp-font-display: "Source Sans 3", Arial, sans-serif; }
html[lang="es"] { --yp-font-sans: "Nunito Sans", Arial, sans-serif; --yp-font-display: "Nunito Sans", Arial, sans-serif; }
html[lang="de"] { --yp-font-sans: "IBM Plex Sans", Arial, sans-serif; --yp-font-display: "IBM Plex Sans", Arial, sans-serif; }
}

@layer yp-themes {
:root,
html[data-theme="light"] {
    color-scheme: light;
    --yp-bg: #f6f8ff;
    --yp-bg-elevated: #edf2fc;
    --yp-surface: #ffffff;
    --yp-surface-2: #f9fbff;
    --yp-surface-3: #edf2fc;
    --yp-surface-hover: #f1f5ff;
    --yp-text: #141c39;
    --yp-text-soft: #344260;
    --yp-text-muted: #64748b;
    --yp-text-faint: #94a3b8;
    --yp-border: #dfe6f5;
    --yp-border-strong: #c2cdea;
    --yp-primary: var(--yp-brand-500);
    --yp-primary-hover: var(--yp-brand-600);
    --yp-primary-soft: var(--yp-brand-50);
    --yp-wealth-panel-start: var(--yp-wealth-navy);
    --yp-wealth-panel-mid: var(--yp-emerald-deep);
    --yp-wealth-panel-end: var(--yp-wealth-emerald);
    --yp-wealth-on-panel: var(--yp-white);
    --yp-wealth-gold: var(--yp-gold-300);
    --yp-wealth-emerald-bright: var(--yp-brand-400);
    --yp-shadow-ink: var(--yp-navy-950);
    --yp-wealth-shadow-ink: var(--yp-black);
    --yp-on-primary: var(--yp-white);
    --yp-success: var(--yp-green-500);
    --yp-success-soft: #e5fff3;
    --yp-warning: var(--yp-amber-500);
    --yp-warning-soft: #fff8e8;
    --yp-danger: var(--yp-red-500);
    --yp-danger-soft: #fff0f2;
    --yp-info: var(--yp-blue-500);
    --yp-info-soft: #eaf2ff;
    --yp-focus: rgba(12,106,239,.24);
    --yp-overlay: rgba(8,13,23,.58);
    --yp-contrast-surface: var(--yp-navy-950);
    --yp-on-contrast: var(--yp-white);
    --yp-on-contrast-muted: var(--yp-slate-300);
    --yp-contrast-border: var(--yp-navy-700);
    --yp-shadow-xs: 0 1px 2px rgba(15,23,42,.05);
    --yp-shadow-sm: 0 6px 18px rgba(15,23,42,.07);
    --yp-shadow-md: 0 18px 48px rgba(15,23,42,.10);
    --yp-shadow-lg: 0 28px 80px rgba(15,23,42,.16);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --yp-bg: #070a1d;
    --yp-bg-elevated: #0e1533;
    --yp-surface: #151d3a;
    --yp-surface-2: #1d2949;
    --yp-surface-3: #243052;
    --yp-surface-hover: #2d3a61;
    --yp-text: #f6f8ff;
    --yp-text-soft: #d8e0eb;
    --yp-text-muted: #9aa8bb;
    --yp-text-faint: #73839a;
    --yp-border: #334165;
    --yp-border-strong: #506081;
    --yp-primary: #428ff9;
    --yp-primary-hover: #74b0ff;
    --yp-primary-soft: rgba(66,143,249,.16);
    --yp-wealth-panel-start: var(--yp-wealth-navy);
    --yp-wealth-panel-mid: var(--yp-emerald-deep);
    --yp-wealth-panel-end: var(--yp-wealth-emerald);
    --yp-wealth-on-panel: var(--yp-white);
    --yp-wealth-gold: var(--yp-gold-300);
    --yp-wealth-emerald-bright: var(--yp-brand-400);
    --yp-shadow-ink: var(--yp-navy-950);
    --yp-wealth-shadow-ink: var(--yp-black);
    --yp-on-primary: #ffffff;
    --yp-success: #45c796;
    --yp-success-soft: rgba(50,184,132,.12);
    --yp-warning: #e6b94f;
    --yp-warning-soft: rgba(214,158,46,.13);
    --yp-danger: #f27b89;
    --yp-danger-soft: rgba(234,101,118,.12);
    --yp-info: #70a0ff;
    --yp-info-soft: rgba(79,131,241,.13);
    --yp-focus: rgba(66,143,249,.30);
    --yp-overlay: rgba(0,0,0,.72);
    --yp-contrast-surface: var(--yp-black);
    --yp-on-contrast: var(--yp-white);
    --yp-on-contrast-muted: var(--yp-slate-300);
    --yp-contrast-border: var(--yp-navy-700);
    --yp-shadow-xs: 0 1px 2px rgba(0,0,0,.28);
    --yp-shadow-sm: 0 8px 20px rgba(0,0,0,.22);
    --yp-shadow-md: 0 20px 55px rgba(0,0,0,.30);
    --yp-shadow-lg: 0 30px 90px rgba(0,0,0,.42);
}

html[data-theme="contrast"] {
    color-scheme: dark;
    --yp-bg: #000000;
    --yp-bg-elevated: #000000;
    --yp-surface: #000000;
    --yp-surface-2: #0a0a0a;
    --yp-surface-3: #151515;
    --yp-surface-hover: #202020;
    --yp-text: #ffffff;
    --yp-text-soft: #ffffff;
    --yp-text-muted: #e6e6e6;
    --yp-text-faint: #cfcfcf;
    --yp-border: #ffffff;
    --yp-border-strong: #ffffff;
    --yp-primary: #ffd400;
    --yp-primary-hover: #ffe34d;
    --yp-primary-soft: #241f00;
    --yp-wealth-panel-start: var(--yp-wealth-navy);
    --yp-wealth-panel-mid: var(--yp-emerald-deep);
    --yp-wealth-panel-end: var(--yp-wealth-emerald);
    --yp-wealth-on-panel: var(--yp-white);
    --yp-wealth-gold: var(--yp-gold-300);
    --yp-wealth-emerald-bright: var(--yp-brand-400);
    --yp-shadow-ink: var(--yp-navy-950);
    --yp-wealth-shadow-ink: var(--yp-black);
    --yp-on-primary: #000000;
    --yp-success: #67ffb5;
    --yp-success-soft: #002b19;
    --yp-warning: #ffd400;
    --yp-warning-soft: #241f00;
    --yp-danger: #ff8092;
    --yp-danger-soft: #31000a;
    --yp-info: #7db5ff;
    --yp-info-soft: #001d42;
    --yp-focus: #00e5ff;
    --yp-overlay: rgba(0,0,0,.86);
    --yp-contrast-surface: var(--yp-black);
    --yp-on-contrast: var(--yp-white);
    --yp-on-contrast-muted: var(--yp-white);
    --yp-contrast-border: var(--yp-white);
    --yp-shadow-xs: none;
    --yp-shadow-sm: none;
    --yp-shadow-md: none;
    --yp-shadow-lg: none;
}
}

@layer yp-base {
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--yp-bg); color: var(--yp-text); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--yp-bg); color: var(--yp-text); font-family: var(--yp-font-sans); font-size: var(--yp-font-size-md); line-height: var(--yp-line-normal); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--yp-info); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { margin-block: 0; color: var(--yp-text); font-family: var(--yp-font-display); line-height: var(--yp-line-tight); letter-spacing: -.025em; }
h1 { line-height: var(--yp-line-relaxed) !important; }
p { color: var(--yp-text-muted); }
code, pre { font-family: var(--yp-font-mono); }
code { direction: ltr; unicode-bidi: isolate; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yp-focus); outline-offset: 2px; }
::selection { background: var(--yp-primary); color: var(--yp-on-primary); }
html[dir="rtl"] body { text-align: start; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="url"], html[dir="rtl"] input[type="number"], html[dir="rtl"] code, html[dir="rtl"] pre { direction: ltr; text-align: left; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
}

@layer yp-components {
.yp-page { min-height: 100vh; background: var(--yp-bg); color: var(--yp-text); }
.yp-shell { width: min(var(--yp-shell), calc(100% - 40px)); margin-inline: auto; }
.yp-content { width: min(var(--yp-content), calc(100% - 40px)); margin-inline: auto; }
.yp-stack { display: grid; gap: var(--yp-space-4); }
.yp-cluster { display: flex; align-items: center; gap: var(--yp-space-3); flex-wrap: wrap; }

.yp-card { border: 1px solid var(--yp-border); border-radius: var(--yp-radius-lg); background: var(--yp-surface); box-shadow: var(--yp-shadow-sm); }
.yp-card-body { padding: var(--yp-space-6); }
.yp-card-header, .yp-card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--yp-space-4); padding: var(--yp-space-5) var(--yp-space-6); }
.yp-card-header { border-bottom: 1px solid var(--yp-border); }
.yp-card-footer { border-top: 1px solid var(--yp-border); }

.yp-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: var(--yp-control-md); padding-inline: 1rem; border: 1px solid transparent; border-radius: var(--yp-radius-md); background: var(--yp-surface-2); color: var(--yp-text); font-weight: 750; text-decoration: none; cursor: pointer; transition: background var(--yp-duration-fast) var(--yp-ease), border-color var(--yp-duration-fast) var(--yp-ease), transform var(--yp-duration-fast) var(--yp-ease); }
.yp-btn:hover { transform: translateY(-1px); background: var(--yp-surface-hover); }
.yp-btn:active { transform: translateY(0); }
.yp-btn-primary { background: var(--yp-primary); color: var(--yp-on-primary); border-color: var(--yp-primary); }
.yp-btn-primary:hover { background: var(--yp-primary-hover); border-color: var(--yp-primary-hover); }
.yp-btn-secondary { background: var(--yp-surface-2); border-color: var(--yp-border); color: var(--yp-text); }
.yp-btn-danger { background: var(--yp-danger-soft); border-color: var(--yp-danger); color: var(--yp-danger); }
.yp-btn-warning { background: var(--yp-warning-soft); border-color: var(--yp-warning); color: var(--yp-warning); }
.yp-btn-success { background: var(--yp-success-soft); border-color: var(--yp-success); color: var(--yp-success); }
.yp-btn-info { background: var(--yp-info-soft); border-color: var(--yp-info); color: var(--yp-info); }
.yp-btn-ghost { background: transparent; border-color: transparent; color: var(--yp-text-muted); }
.yp-btn-sm { min-height: var(--yp-control-sm); padding-inline: .75rem; font-size: var(--yp-font-size-sm); }
.yp-btn-lg { min-height: var(--yp-control-lg); padding-inline: 1.25rem; }
.yp-btn[disabled], .yp-btn[aria-disabled="true"] { opacity: .52; cursor: not-allowed; transform: none; }

.yp-icon { display: block; width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
[data-yp-icon] { display: inline-grid; place-items: center; line-height: 0; vertical-align: middle; }
[data-yp-icon] > .yp-icon { align-self: center; justify-self: center; }
.yp-icon-sm { width: .95em; height: .95em; }
.yp-icon-lg { width: 1.45em; height: 1.45em; }
.yp-icon-xl { width: 2rem; height: 2rem; }
.yp-icon-button { appearance: none; display: inline-grid; place-items: center; width: var(--yp-control-md); height: var(--yp-control-md); padding: 0; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-md); background: var(--yp-surface-2); color: var(--yp-text); cursor: pointer; }
.yp-icon-button:hover { border-color: var(--yp-border-strong); background: var(--yp-surface-hover); }

.yp-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--yp-space-2); min-width: 0; max-width: 100%; }
.yp-label { color: var(--yp-text-soft); font-size: var(--yp-font-size-sm); font-weight: 750; }
.yp-help { color: var(--yp-text-faint); font-size: var(--yp-font-size-xs); }
.yp-input, .yp-select, .yp-textarea { width: 100%; min-width: 0; max-width: 100%; min-height: var(--yp-control-md); padding: .7rem .85rem; border: 1px solid var(--yp-border-strong); border-radius: var(--yp-radius-md); background: var(--yp-surface); color: var(--yp-text); outline: 0; }
.yp-textarea { min-height: 7rem; resize: vertical; }
.yp-input::placeholder, .yp-textarea::placeholder { color: var(--yp-text-faint); }
.yp-input:focus, .yp-select:focus, .yp-textarea:focus { border-color: var(--yp-primary); box-shadow: 0 0 0 3px var(--yp-focus); }
.yp-input[aria-invalid="true"], .yp-select[aria-invalid="true"], .yp-textarea[aria-invalid="true"] { border-color: var(--yp-danger); }

.yp-search-select { position: relative; width: 100%; min-width: 0; max-width: 100%; }
.yp-search-select-source {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}
.yp-search-select-trigger {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: var(--yp-control-md);
    padding-block: .7rem;
    padding-inline-start: .9rem;
    padding-inline-end: 1.25rem;
    border: 1px solid var(--yp-border-strong);
    border-radius: var(--yp-radius-md);
    background: var(--yp-surface);
    color: var(--yp-text);
    font: inherit;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
    outline: 0;
}
.yp-search-select-trigger:focus-visible,
.yp-search-select.is-open .yp-search-select-trigger {
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px var(--yp-focus);
}
.yp-search-select.is-invalid .yp-search-select-trigger { border-color: var(--yp-danger); }
.yp-search-select.is-disabled .yp-search-select-trigger { opacity: .55; cursor: not-allowed; }
.yp-search-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.yp-search-select-chevron {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    margin-inline-start: .45rem;
    color: var(--yp-text-muted);
    transition: transform var(--yp-motion-fast) var(--yp-ease-standard);
}
.yp-search-select.is-open .yp-search-select-chevron { transform: rotate(180deg); }
.yp-search-select-chevron .yp-icon { width: 1rem; height: 1rem; }
.yp-search-select-popover {
    position: absolute;
    z-index: calc(var(--yp-z-dropdown) + 2);
    inset-inline: 0;
    inset-block-start: calc(100% + .4rem);
    overflow: hidden;
    border: 1px solid var(--yp-border-strong);
    border-radius: var(--yp-radius-lg);
    background: var(--yp-surface);
    box-shadow: var(--yp-shadow-md);
}
.yp-search-select-popover[hidden] { display: none !important; }
.yp-search-select-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem;
    border-bottom: 1px solid var(--yp-border);
    background: var(--yp-surface-2);
}
.yp-search-select-search-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    color: var(--yp-text-muted);
}
.yp-search-select-search-icon .yp-icon { width: 1.05rem; height: 1.05rem; }
.yp-search-select-search-input {
    width: 100%;
    min-width: 0;
    min-height: 2.4rem;
    padding: .45rem .65rem;
    border: 1px solid var(--yp-border);
    border-radius: var(--yp-radius-sm);
    background: var(--yp-surface);
    color: var(--yp-text);
    font: inherit;
    outline: 0;
}
.yp-search-select-search-input:focus {
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 2px var(--yp-focus);
}
.yp-search-select-options {
    display: grid;
    gap: .2rem;
    max-height: 17rem;
    overflow-y: auto;
    padding: .4rem;
}
.yp-search-select-option {
    appearance: none;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.65rem;
    padding: .5rem .7rem;
    border: 0;
    border-radius: var(--yp-radius-sm);
    background: transparent;
    color: var(--yp-text-soft);
    font: inherit;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
}
.yp-search-select-option:hover,
.yp-search-select-option:focus-visible {
    background: var(--yp-surface-hover);
    color: var(--yp-text);
    outline: 0;
}
.yp-search-select-option[aria-selected="true"] {
    background: var(--yp-primary-soft);
    color: var(--yp-primary);
}
.yp-search-select-option:disabled { opacity: .45; cursor: not-allowed; }
.yp-search-select-empty {
    padding: 1rem .75rem;
    color: var(--yp-text-muted);
    text-align: center;
    font-size: var(--yp-font-size-sm);
}

.yp-badge, .yp-chip { display: inline-flex; align-items: center; gap: .4rem; width: max-content; max-width: 100%; border-radius: var(--yp-radius-full); font-size: var(--yp-font-size-xs); font-weight: 800; }
.yp-badge { padding: .35rem .6rem; background: var(--yp-primary-soft); color: var(--yp-primary); }
.yp-chip { min-height: 1.8rem; padding-inline: .65rem; border: 1px solid var(--yp-border); background: var(--yp-surface-2); color: var(--yp-text-soft); }
.yp-chip-success { border-color: var(--yp-success); background: var(--yp-success-soft); color: var(--yp-success); }
.yp-chip-warning { border-color: var(--yp-warning); background: var(--yp-warning-soft); color: var(--yp-warning); }
.yp-chip-danger { border-color: var(--yp-danger); background: var(--yp-danger-soft); color: var(--yp-danger); }
.yp-chip-info { border-color: var(--yp-info); background: var(--yp-info-soft); color: var(--yp-info); }

.yp-status { padding: .85rem 1rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-md); background: var(--yp-surface-2); color: var(--yp-text-soft); }
.yp-status-success { border-color: var(--yp-success); background: var(--yp-success-soft); color: var(--yp-success); }
.yp-status-warning { border-color: var(--yp-warning); background: var(--yp-warning-soft); color: var(--yp-warning); }
.yp-status-danger { border-color: var(--yp-danger); background: var(--yp-danger-soft); color: var(--yp-danger); }
.yp-status-info { border-color: var(--yp-info); background: var(--yp-info-soft); color: var(--yp-info); }

.yp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--yp-space-3); }
.yp-metric { min-width: 0; padding: var(--yp-space-5); border: 1px solid var(--yp-border); border-radius: var(--yp-radius-lg); background: var(--yp-surface-2); }
.yp-metric strong { display: block; color: var(--yp-text); font-family: var(--yp-font-display); font-size: var(--yp-font-size-2xl); line-height: var(--yp-line-tight); }
.yp-metric span { display: block; margin-top: .35rem; color: var(--yp-text-muted); font-size: var(--yp-font-size-xs); }

.yp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--yp-space-4); flex-wrap: wrap; }
.yp-toolbar-actions { display: flex; align-items: center; gap: var(--yp-space-2); flex-wrap: wrap; }

.yp-table-wrap { overflow: auto; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-lg); background: var(--yp-surface); }
.yp-table { width: 100%; border-collapse: collapse; }
.yp-table th, .yp-table td { padding: .8rem .9rem; border-bottom: 1px solid var(--yp-border); text-align: start; vertical-align: middle; }
.yp-table th { position: sticky; top: 0; z-index: 1; background: var(--yp-surface-2); color: var(--yp-text-muted); font-size: var(--yp-font-size-xs); text-transform: uppercase; letter-spacing: .05em; }
.yp-table tbody tr:hover { background: var(--yp-surface-hover); }
.yp-table tbody tr:last-child td { border-bottom: 0; }

.yp-theme-switcher { display: inline-flex; align-items: center; gap: .2rem; padding: .2rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-md); background: var(--yp-surface-2); }
.yp-theme-choice { appearance: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--yp-radius-sm); background: transparent; color: var(--yp-text-muted); cursor: pointer; }
.yp-theme-choice:hover { background: var(--yp-surface-hover); color: var(--yp-text); }
.yp-theme-choice[aria-pressed="true"] { background: var(--yp-primary-soft); color: var(--yp-primary); }

.yp-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--yp-text); text-decoration: none; }
.yp-brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .85rem; background: var(--yp-primary); color: var(--yp-on-primary); box-shadow: var(--yp-shadow-xs); }
.yp-brand-copy { display: grid; gap: .1rem; }
.yp-brand-copy strong { font-family: var(--yp-font-display); font-size: 1.05rem; }
.yp-brand-copy small { color: var(--yp-text-muted); font-size: .68rem; }

.yp-empty { display: grid; justify-items: center; gap: var(--yp-space-3); padding: var(--yp-space-10); color: var(--yp-text-muted); text-align: center; }
.yp-empty .yp-icon { color: var(--yp-text-faint); font-size: 2rem; }

.yp-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-xl); background: var(--yp-surface); color: var(--yp-text); box-shadow: var(--yp-shadow-lg); overflow: hidden; }
.yp-dialog::backdrop { background: var(--yp-overlay); backdrop-filter: blur(3px); }

@media (max-width: 900px) { .yp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .yp-shell, .yp-content { width: min(100% - 24px, var(--yp-shell)); } .yp-card-body, .yp-card-header, .yp-card-footer { padding-inline: var(--yp-space-4); } .yp-metrics { grid-template-columns: 1fr; } .yp-toolbar { align-items: stretch; flex-direction: column; } }


.yp-language-switcher { position: relative; }
.yp-language-switcher > summary { list-style: none; display: inline-flex; align-items: center; gap: .45rem; min-height: var(--yp-control-md); padding: 0 .75rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-md); background: var(--yp-surface); color: var(--yp-text-soft); font-size: var(--yp-font-size-sm); font-weight: 750; cursor: pointer; user-select: none; transition: background var(--yp-motion-fast) var(--yp-ease-standard), border-color var(--yp-motion-fast) var(--yp-ease-standard), color var(--yp-motion-fast) var(--yp-ease-standard); }
.yp-language-switcher > summary::-webkit-details-marker { display: none; }
.yp-language-switcher > summary:hover { background: var(--yp-surface-hover); color: var(--yp-text); border-color: var(--yp-border-strong); }
.yp-language-switcher > summary:focus-visible { outline: 3px solid var(--yp-focus); outline-offset: 2px; }
.yp-language-switcher[open] > summary { background: var(--yp-primary-soft); color: var(--yp-primary); border-color: var(--yp-primary); }
.yp-language-current { white-space: nowrap; }
.yp-language-chevron { width: .9rem; height: .9rem; transition: transform var(--yp-motion-fast) var(--yp-ease-standard); }
.yp-language-switcher[open] .yp-language-chevron { transform: rotate(180deg); }
.yp-language-menu { position: absolute; z-index: var(--yp-z-dropdown); inset-block-start: calc(100% + .5rem); inset-inline-end: 0; display: grid; gap: .25rem; width: max-content; min-width: 12rem; padding: .45rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-lg); background: var(--yp-surface); box-shadow: var(--yp-shadow-md); }
.yp-language-option { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .65rem; min-height: 2.7rem; padding: .45rem .65rem; border-radius: var(--yp-radius-md); color: var(--yp-text-soft); text-decoration: none; font-size: var(--yp-font-size-sm); }
.yp-language-option:hover { background: var(--yp-surface-hover); color: var(--yp-text); }
.yp-language-option[aria-current="page"] { background: var(--yp-primary-soft); color: var(--yp-primary); font-weight: 800; }
.yp-language-code { display: grid; place-items: center; min-width: 2rem; height: 1.65rem; padding-inline: .3rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-sm); background: var(--yp-surface-2); color: var(--yp-text-muted); font-size: .67rem; font-weight: 850; letter-spacing: .04em; }
.yp-language-option[aria-current="page"] .yp-language-code { border-color: color-mix(in srgb, var(--yp-primary) 35%, var(--yp-border)); color: var(--yp-primary); }
.yp-language-selected { width: 1rem; height: 1rem; color: var(--yp-primary); opacity: 0; }
.yp-language-option[aria-current="page"] .yp-language-selected { opacity: 1; }
@media (max-width: 639px) {
    .yp-language-switcher > summary { width: var(--yp-control-md); justify-content: center; padding: 0; }
    .yp-language-current, .yp-language-chevron { display: none; }
    .yp-language-menu {
        position: fixed;
        inset: 4.75rem .75rem auto .75rem;
        width: auto;
        min-width: 0;
        max-height: calc(100dvh - 5.5rem);
        overflow: auto;
    }
}

.yp-brand-image { display:block; width:2.6rem; height:2.6rem; flex:0 0 auto; filter:drop-shadow(0 8px 18px rgba(5,150,105,.14)); }
.yp-search-select-search[hidden] { display: none !important; }

.yp-currency {
    color: var(--yp-success) !important;
    font-weight: 900;
    letter-spacing: .035em;
    unicode-bidi: isolate;
    white-space: nowrap;
}


/* Yalla Pay 2026 V.01 — unified digital identity */
.yp-brand-image { object-fit:contain; filter:drop-shadow(0 5px 14px rgba(12,106,239,.14)); }
.yp-brand-copy strong {font-family:var(--yp-font-display);letter-spacing:-.035em;}
.yp-brand-copy strong .yp-brand-yalla {color:var(--yp-text);}
.yp-brand-copy strong .yp-brand-pay {color:var(--yp-electric-indigo);}
html[data-theme="dark"] .yp-brand-copy strong .yp-brand-pay,
html[data-theme="contrast"] .yp-brand-copy strong .yp-brand-pay {color:#a9a1ff;}
.yp-btn-primary {background:var(--yp-brand-gradient);border-color:var(--yp-vivid-blue);color:#fff;box-shadow:0 6px 18px rgba(12,106,239,.15);}
.yp-btn-primary:hover {background:linear-gradient(125deg,#095bda,#2407a9);border-color:#095bda;color:#fff;box-shadow:0 10px 22px rgba(43,11,198,.2);}
.yp-btn-primary:focus-visible {outline:3px solid var(--yp-electric-lime);outline-offset:2px;}
.yp-badge {border-color:color-mix(in srgb,var(--yp-vivid-blue) 25%,var(--yp-border));}
html[data-theme="contrast"] .yp-btn-primary,
html[data-theme="contrast"] .yp-btn-primary:hover {background:var(--yp-primary);border-color:var(--yp-primary);color:var(--yp-on-primary);}
}

@layer yp-motion {
@keyframes yp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes yp-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes yp-slide-up { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes yp-slide-down { from { opacity: 0; transform: translateY(-.6rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes yp-scale-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes yp-drawer-in-start { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes yp-drawer-in-end { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes yp-spin { to { transform: rotate(360deg); } }
@keyframes yp-pulse { 0%, 100% { opacity: .58; } 50% { opacity: 1; } }
@keyframes yp-skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes yp-progress-indeterminate { 0% { transform: translateX(-110%); } 55% { transform: translateX(55%); } 100% { transform: translateX(220%); } }
@keyframes yp-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-.22rem); } 75% { transform: translateX(.22rem); } }

.yp-animate-fade-in { animation: yp-fade-in var(--yp-motion-enter) var(--yp-ease-decelerate) both; }
.yp-animate-slide-up { animation: yp-slide-up var(--yp-motion-enter) var(--yp-ease-emphasized) both; }
.yp-animate-slide-down { animation: yp-slide-down var(--yp-motion-enter) var(--yp-ease-emphasized) both; }
.yp-animate-scale-in { animation: yp-scale-in var(--yp-motion-enter) var(--yp-ease-emphasized) both; }
.yp-animate-shake { animation: yp-shake 280ms var(--yp-ease-standard); }

.yp-spinner { display: inline-block; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; border: 2px solid var(--yp-border-strong); border-top-color: var(--yp-primary); border-radius: 50%; animation: yp-spin .72s linear infinite; }
.yp-spinner-sm { width: 1rem; height: 1rem; }
.yp-spinner-lg { width: 2rem; height: 2rem; border-width: 3px; }

.yp-skeleton { position: relative; overflow: hidden; min-height: 1rem; border-radius: var(--yp-radius-sm); background: linear-gradient(90deg, var(--yp-surface-2) 25%, var(--yp-surface-hover) 45%, var(--yp-surface-2) 65%); background-size: 220% 100%; animation: yp-skeleton 1.4s ease-in-out infinite; color: transparent !important; user-select: none; }
.yp-skeleton-line { height: .85rem; }
.yp-skeleton-title { height: 1.4rem; width: min(70%, 24rem); }
.yp-skeleton-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; }

.yp-progress { position: relative; width: 100%; height: .5rem; overflow: hidden; border-radius: var(--yp-radius-full); background: var(--yp-surface-3); }
.yp-progress-bar { display: block; width: var(--yp-progress, 0%); height: 100%; border-radius: inherit; background: var(--yp-primary); transition: width var(--yp-motion-normal) var(--yp-ease-standard); }
.yp-progress[aria-busy="true"] .yp-progress-bar { width: 45%; animation: yp-progress-indeterminate 1.2s var(--yp-ease-standard) infinite; }

.yp-btn, .yp-icon-button, .yp-theme-choice, .yp-card, .yp-chip, .yp-input, .yp-select, .yp-textarea {
    transition-duration: var(--yp-motion-fast);
    transition-timing-function: var(--yp-ease-standard);
}

@media (prefers-reduced-motion: reduce) {
    .yp-spinner { animation-duration: 1.5s; }
    .yp-skeleton { animation: none; background: var(--yp-surface-2); }
    .yp-progress[aria-busy="true"] .yp-progress-bar { animation: none; width: 45%; }
    .yp-animate-fade-in, .yp-animate-slide-up, .yp-animate-slide-down, .yp-animate-scale-in, .yp-animate-shake,
    .yp-modal[open], .yp-drawer[open], .yp-toast { animation: none !important; }
}
}

@layer yp-overlays {
.yp-alert { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .8rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-md); background: var(--yp-surface-2); color: var(--yp-text-soft); }
.yp-alert-icon { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-top: .05rem; border-radius: var(--yp-radius-sm); color: var(--yp-info); }
.yp-alert-content { min-width: 0; }
.yp-alert-title { display: block; margin: 0 0 .2rem; color: var(--yp-text); font-weight: 800; }
.yp-alert-message { margin: 0; color: inherit; font-size: var(--yp-font-size-sm); line-height: 1.55; overflow-wrap: anywhere; }
.yp-alert-actions { display: flex; gap: .45rem; align-items: center; margin-top: .65rem; flex-wrap: wrap; }
.yp-alert-close { margin: -.25rem -.25rem 0 0; }
html[dir="rtl"] .yp-alert-close { margin: -.25rem 0 0 -.25rem; }
.yp-alert-success { border-color: var(--yp-success); background: var(--yp-success-soft); color: var(--yp-success); }
.yp-alert-success .yp-alert-icon { color: var(--yp-success); }
.yp-alert-warning { border-color: var(--yp-warning); background: var(--yp-warning-soft); color: var(--yp-warning); }
.yp-alert-warning .yp-alert-icon { color: var(--yp-warning); }
.yp-alert-danger { border-color: var(--yp-danger); background: var(--yp-danger-soft); color: var(--yp-danger); }
.yp-alert-danger .yp-alert-icon { color: var(--yp-danger); }
.yp-alert-info { border-color: var(--yp-info); background: var(--yp-info-soft); color: var(--yp-info); }
.yp-alert-info .yp-alert-icon { color: var(--yp-info); }

.yp-banner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .75rem; align-items: center; width: 100%; padding: .7rem max(1rem, calc((100vw - var(--yp-shell))/2)); border-bottom: 1px solid var(--yp-border); background: var(--yp-surface-2); color: var(--yp-text-soft); }
.yp-banner-success { background: var(--yp-success-soft); color: var(--yp-success); }
.yp-banner-warning { background: var(--yp-warning-soft); color: var(--yp-warning); }
.yp-banner-danger { background: var(--yp-danger-soft); color: var(--yp-danger); }
.yp-banner-info { background: var(--yp-info-soft); color: var(--yp-info); }

.yp-toast-region { position: fixed; z-index: var(--yp-z-toast); inset-block-start: 1rem; inset-inline-end: 1rem; display: grid; gap: .7rem; width: min(32rem, calc(100vw - 2rem)); pointer-events: none; }
.yp-toast { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .75rem; align-items: start; padding: .9rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-lg); background: var(--yp-surface); color: var(--yp-text); box-shadow: var(--yp-shadow-md); pointer-events: auto; animation: yp-slide-down var(--yp-motion-enter) var(--yp-ease-decelerate) both; overflow: hidden; }
.yp-toast[data-closing="true"] { animation: yp-fade-out var(--yp-motion-exit) var(--yp-ease-accelerate) both; }
.yp-toast-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--yp-radius-md); background: var(--yp-info-soft); color: var(--yp-info); }
.yp-toast-content { min-width: 0; }
.yp-toast-title { display: block; margin: .05rem 0 .15rem; color: var(--yp-text); font-size: var(--yp-font-size-sm); font-weight: 850; }
.yp-toast-message { margin: 0; color: var(--yp-text-muted); font-size: var(--yp-font-size-sm); line-height: 1.5; overflow-wrap: anywhere; }
.yp-toast-actions { display: flex; gap: .4rem; margin-top: .65rem; flex-wrap: wrap; }
.yp-toast-close { width: 2rem; height: 2rem; margin: -.15rem -.15rem 0 0; }
html[dir="rtl"] .yp-toast-close { margin: -.15rem 0 0 -.15rem; }
.yp-toast-progress { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--yp-border); transform-origin: left; }
html[dir="rtl"] .yp-toast-progress { transform-origin: right; }
.yp-toast-progress > i { display: block; width: 100%; height: 100%; background: currentColor; transform-origin: inherit; animation: yp-toast-countdown var(--yp-toast-duration, 5s) linear forwards; }
@keyframes yp-toast-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.yp-toast-success { border-color: color-mix(in srgb, var(--yp-success) 55%, var(--yp-border)); }
.yp-toast-success .yp-toast-icon { background: var(--yp-success-soft); color: var(--yp-success); }
.yp-toast-warning { border-color: color-mix(in srgb, var(--yp-warning) 55%, var(--yp-border)); }
.yp-toast-warning .yp-toast-icon { background: var(--yp-warning-soft); color: var(--yp-warning); }
.yp-toast-danger { border-color: color-mix(in srgb, var(--yp-danger) 55%, var(--yp-border)); }
.yp-toast-danger .yp-toast-icon { background: var(--yp-danger-soft); color: var(--yp-danger); }
.yp-toast-info .yp-toast-icon { background: var(--yp-info-soft); color: var(--yp-info); }

.yp-modal, .yp-drawer { width: auto; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--yp-text); overflow: visible; }
.yp-modal { inset: 0; margin: 0; width: 100%; height: 100%; }
.yp-modal[open] { display: grid; place-items: center; }
.yp-modal::backdrop { background: color-mix(in srgb,var(--yp-overlay) 82%,transparent); backdrop-filter: blur(2px); animation: yp-fade-in var(--yp-motion-enter) var(--yp-ease-decelerate); }
.yp-drawer::backdrop { background: var(--yp-overlay); backdrop-filter: blur(4px); animation: yp-fade-in var(--yp-motion-enter) var(--yp-ease-decelerate); }
.yp-modal[open] .yp-modal-panel { animation: yp-scale-in var(--yp-motion-enter) var(--yp-ease-emphasized) both; }
.yp-modal-panel { display: flex; flex-direction: column; width: min(42rem, calc(100vw - 2rem)); max-height: min(86vh, 52rem); border: 1px solid var(--yp-border); border-radius: var(--yp-radius-xl); background: var(--yp-surface); box-shadow: var(--yp-shadow-lg); overflow: hidden; }
.yp-modal-sm .yp-modal-panel { width: min(28rem, calc(100vw - 2rem)); }
.yp-modal-lg .yp-modal-panel { width: min(60rem, calc(100vw - 2rem)); }
.yp-modal-xl .yp-modal-panel { width: min(76rem, calc(100vw - 2rem)); }
.yp-modal-full .yp-modal-panel { width: calc(100vw - 2rem); height: calc(100vh - 2rem); max-height: none; }
.yp-modal-header, .yp-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--yp-space-4); flex: 0 0 auto; padding: var(--yp-space-5) var(--yp-space-6); }
.yp-modal-header { border-bottom: 1px solid var(--yp-border); }
.yp-modal-footer { justify-content: flex-end; border-top: 1px solid var(--yp-border); background: var(--yp-surface-2); }
.yp-modal-heading { min-width: 0; }
.yp-modal-title { margin: 0; font-size: var(--yp-font-size-xl); }
.yp-modal-subtitle { margin: .3rem 0 0; color: var(--yp-text-muted); font-size: var(--yp-font-size-sm); }
.yp-modal-body { min-height: 0; padding: var(--yp-space-6); overflow: auto; overscroll-behavior: contain; }
.yp-modal-body > :first-child { margin-top: 0; }
.yp-modal-body > :last-child { margin-bottom: 0; }
.yp-modal-close { flex: 0 0 auto; }
.yp-modal-tone-danger .yp-modal-header { border-top: 3px solid var(--yp-danger); }
.yp-modal-tone-warning .yp-modal-header { border-top: 3px solid var(--yp-warning); }
.yp-modal-tone-success .yp-modal-header { border-top: 3px solid var(--yp-success); }

.yp-drawer { margin: 0; inset: 0; width: 100%; height: 100%; }
.yp-drawer-panel { position: fixed; inset-block: 0; inset-inline-end: 0; display: flex; flex-direction: column; width: min(28rem, 92vw); height: 100dvh; border-inline-start: 1px solid var(--yp-border); background: var(--yp-surface); box-shadow: var(--yp-shadow-lg); animation: yp-drawer-in-end var(--yp-motion-enter) var(--yp-ease-emphasized) both; }
.yp-drawer-start .yp-drawer-panel { inset-inline-start: 0; inset-inline-end: auto; border-inline-start: 0; border-inline-end: 1px solid var(--yp-border); animation-name: yp-drawer-in-start; }
html[dir="rtl"] .yp-drawer-panel { animation-name: yp-drawer-in-start; }
html[dir="rtl"] .yp-drawer-start .yp-drawer-panel { animation-name: yp-drawer-in-end; }
.yp-drawer-lg .yp-drawer-panel { width: min(42rem, 96vw); }

.yp-loading-overlay { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: var(--yp-space-5); background: color-mix(in srgb, var(--yp-surface) 82%, transparent); backdrop-filter: blur(2px); }
.yp-loading-card { display: inline-flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-md); background: var(--yp-surface); box-shadow: var(--yp-shadow-sm); color: var(--yp-text-soft); font-weight: 700; }
.yp-loading-host { position: relative !important; }

.yp-popover { position: absolute; z-index: var(--yp-z-dropdown); width: min(22rem, calc(100vw - 2rem)); padding: .7rem; border: 1px solid var(--yp-border); border-radius: var(--yp-radius-md); background: var(--yp-surface); color: var(--yp-text); box-shadow: var(--yp-shadow-md); animation: yp-scale-in var(--yp-motion-fast) var(--yp-ease-decelerate) both; }

@media (max-width: 639px) {
    .yp-toast-region { inset-block-start: auto; inset-block-end: .75rem; inset-inline: .75rem; width: auto; }
    .yp-toast { border-radius: var(--yp-radius-md); }
    .yp-modal { inset: 0; margin: 0; width: 100%; height: 100%; }
    .yp-modal-panel, .yp-modal-sm .yp-modal-panel, .yp-modal-lg .yp-modal-panel, .yp-modal-xl .yp-modal-panel { position: fixed; inset-inline: 0; bottom: 0; width: 100%; max-height: 92dvh; border-radius: var(--yp-radius-xl) var(--yp-radius-xl) 0 0; border-inline: 0; border-bottom: 0; }
    .yp-modal-full .yp-modal-panel { inset: 0; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
    .yp-modal-header, .yp-modal-footer { padding-inline: var(--yp-space-4); }
    .yp-modal-body { padding: var(--yp-space-4); }
    .yp-modal-footer { display: grid; grid-template-columns: 1fr; }
    .yp-modal-footer > .yp-btn { width: 100%; }
    .yp-banner { padding-inline: .85rem; }
}


/* Financial-state feedback: intentionally prominent and persistent for money-moving workflows. */
.yp-toast-financial { width: min(32rem, calc(100vw - 2rem)); min-height: 5.25rem; padding: 1.05rem 1.1rem; border-width: 2px; box-shadow: var(--yp-shadow-lg); }
.yp-toast-financial .yp-toast-icon { width: 2.8rem; height: 2.8rem; border-radius: var(--yp-radius-lg); }
.yp-toast-financial .yp-toast-icon .yp-icon { width: 1.45rem; height: 1.45rem; }
.yp-toast-financial .yp-toast-title { font-size: var(--yp-font-size-lg); font-weight: 900; line-height: 1.3; }
.yp-toast-financial .yp-toast-message { color: var(--yp-text); font-size: var(--yp-font-size-md); font-weight: 700; line-height: 1.55; }
.yp-toast-financial .yp-toast-progress { height: 4px; }
.yp-financial-state { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .9rem; align-items: center; margin: .85rem 0; padding: 1rem 1.1rem; border: 2px solid var(--yp-info); border-radius: var(--yp-radius-lg); background: var(--yp-info-soft); color: var(--yp-text); box-shadow: var(--yp-shadow-sm); }
.yp-financial-state-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--yp-surface); color: var(--yp-info); }
.yp-financial-state-icon .yp-icon { width: 1.35rem; height: 1.35rem; }
.yp-financial-state-copy { min-width: 0; }
.yp-financial-state-title { display: block; margin: 0 0 .18rem; font-size: var(--yp-font-size-md); font-weight: 900; }
.yp-financial-state-message { margin: 0; color: var(--yp-text-soft); font-size: var(--yp-font-size-sm); font-weight: 700; line-height: 1.5; }
.yp-financial-state.is-loading .yp-financial-state-icon .yp-icon { animation: yp-financial-spin 1s linear infinite; }
.yp-financial-state.is-pending, .yp-financial-state.is-auth-required { border-color: var(--yp-warning); background: var(--yp-warning-soft); }
.yp-financial-state.is-pending .yp-financial-state-icon, .yp-financial-state.is-auth-required .yp-financial-state-icon { color: var(--yp-warning); }
.yp-financial-state.is-approved, .yp-financial-state.is-complete { border-color: var(--yp-success); background: var(--yp-success-soft); }
.yp-financial-state.is-approved .yp-financial-state-icon, .yp-financial-state.is-complete .yp-financial-state-icon { color: var(--yp-success); }
.yp-financial-state.is-failed, .yp-financial-state.is-cancelled { border-color: var(--yp-danger); background: var(--yp-danger-soft); }
.yp-financial-state.is-failed .yp-financial-state-icon, .yp-financial-state.is-cancelled .yp-financial-state-icon { color: var(--yp-danger); }
@keyframes yp-financial-spin { to { transform: rotate(360deg); } }
@media (max-width:639px) {
  .yp-toast-financial { width: 100%; min-height: 5rem; padding: 1rem; }
  .yp-toast-financial .yp-toast-title { font-size: var(--yp-font-size-md); }
  .yp-financial-state { padding: .9rem; }
}
}

@layer yp-responsive {
.yp-container { width: min(var(--yp-shell), calc(100% - 40px)); margin-inline: auto; }
.yp-grid { display: grid; gap: var(--yp-space-4); }
.yp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yp-grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.yp-sidebar-layout { display: grid; grid-template-columns: minmax(13rem, var(--yp-sidebar)) minmax(0, 1fr); gap: var(--yp-space-6); align-items: start; }
.yp-responsive-table { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.yp-scroll-x { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.yp-wrap { flex-wrap: wrap; }
.yp-mobile-only { display: none !important; }

@media (max-width: 1279px) {
    .yp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    .yp-sidebar-layout { grid-template-columns: 1fr; }
    .yp-hide-tablet { display: none !important; }
    .yp-stack-tablet { flex-direction: column !important; align-items: stretch !important; }
}

@media (max-width: 767px) {
    .yp-grid-3, .yp-grid-4 { grid-template-columns: 1fr; }
    .yp-hide-mobile { display: none !important; }
    .yp-mobile-only { display: initial !important; }
    .yp-stack-mobile { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
    .yp-full-mobile { width: 100% !important; }
    .yp-actions-mobile { display: grid !important; grid-template-columns: 1fr; width: 100%; }
    .yp-actions-mobile > * { width: 100%; }
}

@media (max-width: 639px) {
    .yp-container, .yp-shell, .yp-content { width: min(100% - 24px, var(--yp-shell)); }
    .yp-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
    :root { --yp-control-md: 2.875rem; --yp-control-lg: 3.125rem; }
    .yp-card { border-radius: var(--yp-radius-md); }
}
}

@layer yp-utilities {
.yp-text-muted { color: var(--yp-text-muted) !important; }
.yp-text-soft { color: var(--yp-text-soft) !important; }
.yp-text-success { color: var(--yp-success) !important; }
.yp-text-warning { color: var(--yp-warning) !important; }
.yp-text-danger { color: var(--yp-danger) !important; }
.yp-text-info { color: var(--yp-info) !important; }
.yp-bg-surface { background: var(--yp-surface) !important; }
.yp-border { border: 1px solid var(--yp-border) !important; }
.yp-shadow-none { box-shadow: none !important; }
.yp-w-full { width: 100% !important; }
.yp-nowrap { white-space: nowrap !important; }
.yp-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
}
