﻿/* ============================================================================
 * dc-modern.css â€” shared design system for the eMassar modernized pages
 * Used by: ChooseBeneficiaryCategory.aspx, InvestorPortalDefault.aspx,
 *          Default.aspx, SingleSignOn.aspx
 *
 * Layer order (specificity-friendly cascade):
 *   1. Tokens        â€” CSS custom properties (:root, body.dm)
 *   2. Master hide   â€” neutralise MasterPage.master / InvestorPortal.master chrome
 *   3. Base reset    â€” box-sizing + typography reset scoped to #dc-root
 *   4. Shell         â€” #dc-root, background layers, animations
 *   5. Header        â€” #dc-hdr and its controls
 *   6. Back bar
 *   7. Stage / lede
 *   8. Cards         â€” .card-wrap and everything inside it
 *   9. Forms         â€” inputs, buttons (server-rendered)
 *  10. Footer + support modal
 *  11. Forget-password modal (server-side form)
 *  12. SSO card      â€” SingleSignOn.aspx spinner
 *  13. Utilities     â€” .disp, RTL toggles
 *  14. Responsive    â€” media queries at the end so they win
 *
 * Selectors are scoped under #dc-root so nothing leaks into legacy pages.
 * ============================================================================ */


/* â”€â”€ 1. Design tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --burg:      #B64D5C;
    --amber:     #E8A06D;
    --logo-ink:  #2F1947;
    --bg:        #faf7f3;
    --bg-grad:   linear-gradient(to bottom, #fff 0%, #fffdfb 34%, #faf7f3 100%);

    --panel:        rgba(255,255,255,.92);
    --panel-line:   rgba(47,25,71,.12);
    --panel-line-h: rgba(47,25,71,.8);

    --txt:   #2F1947;
    --txt-m: rgba(47,25,71,.58);
    --head:  #191720;
    --accent:#7A3FB0;
    --hair:  rgba(47,25,71,.1);

    --btn:     #2F1947;
    --btn-h:   #432565;
    --btn-txt: #fff;

    --far:  rgba(47,25,71,.016);
    --com:  rgba(232,160,109,.05);
    --ind:  rgba(47,25,71,.032);
    --free: rgba(182,77,92,.038);
    --edge: rgba(47,25,71,.05);
    --win:  rgba(47,25,71,.026);

    --glow: radial-gradient(ellipse 1200px 460px at 22% 96%, rgba(232,160,109,.04) 0%, transparent 62%),
            radial-gradient(ellipse  900px 420px at 82% 100%, rgba(182,77,92,.024) 0%, transparent 60%);

    --shd:   0 1px 2px rgba(47,25,71,.05);
    --shd-h: 0 24px 56px -18px rgba(47,25,71,.3);
    --hdr:   rgba(255,255,255,.9);
}

body.dm {
    --logo-ink:  rgba(255,255,255,.95);
    --bg:        #000000;
    --bg-grad:   linear-gradient(to bottom, #1c1c1c 0%, #0c0c0c 40%, #000000 100%);

    --panel:        rgba(255,255,255,.08);
    --panel-line:   rgba(255,255,255,.13);
    --panel-line-h: rgba(232,160,109,.7);

    --txt:   rgba(255,255,255,.94);
    --txt-m: rgba(255,255,255,.5);
    --head:  rgba(255,255,255,.94);
    --accent:#C79BF0;
    --hair:  rgba(255,255,255,.12);

    --btn:   #2F1947;
    --btn-h: #432565;

    --far:  rgba(255,255,255,.013);
    --com:  rgba(232,160,109,.032);
    --ind:  rgba(140,90,215,.045);
    --free: rgba(182,77,92,.04);
    --edge: rgba(255,255,255,.042);
    --win:  rgba(232,160,109,.04);

    --glow: radial-gradient(ellipse 1200px 500px at 22% 98%, rgba(232,160,109,.028) 0%, transparent 62%),
            radial-gradient(ellipse  950px 440px at 82% 100%, rgba(140,90,215,.042) 0%, transparent 62%);

    --shd:   none;
    --shd-h: 0 24px 56px -18px rgba(0,0,0,.7);
    --hdr:   rgba(18,18,18,.90);
}


/* â”€â”€ 2. Master chrome hide â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body > .header,
body > footer,
#popup-modal { display: none !important; }
body        { overflow: hidden; margin: 0; }


/* â”€â”€ 3. Base reset (scoped) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#dc-root,
#dc-root *,
#dc-root *::before,
#dc-root *::after { box-sizing: border-box; }

#dc-root h1, #dc-root h2, #dc-root h3, #dc-root h4,
#dc-root p,  #dc-root ul, #dc-root ol,
#dc-root figure, #dc-root blockquote { margin: 0; padding: 0; }


/* â”€â”€ 4. Shell + background layers + animations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes dc-rise       { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes dc-rise-sm    { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes dc-plan       { from { opacity:0; } to { opacity:1; } }
@keyframes dc-fade       { from { opacity:0; } to { opacity:1; } }
@keyframes dc-spin       { to   { transform: rotate(360deg); } }
@keyframes dc-pulse-ring { 0% { transform:scale(.6); opacity:.7; } 100% { transform:scale(1.6); opacity:0; } }

#dc-root {
    position: fixed; inset: 0; z-index: 10;
    overflow-y: auto; overflow-x: hidden;
    font-family: 'Cairo', system-ui, sans-serif;
    background: var(--bg-grad); background-attachment: fixed;
    color: var(--txt);
    display: flex; flex-direction: column;
    transition: background .5s, color .4s;
}

/* Only reset color for links that should inherit context. Branded pills
   keep their explicit color via their own :not() exemption below. */
#dc-root a:not(.card-btn):not(.hdr-esv):not(.dc-sup-link):not(.back-btn):not(.card-more):not(.card-forgot):not(#dc-esv):not(#dc-sup-link) {
    color: inherit;
    text-decoration: none;
}

.disp        { font-family: 'Cairo', system-ui, sans-serif; }
[dir=rtl] #dc-root,
html[lang=ar] #dc-root { font-family: 'Cairo', Tahoma, system-ui, sans-serif; }
html[lang=ar] .disp    { font-family: 'Cairo', Tahoma, system-ui, sans-serif; }

#dc-glow {
    position: fixed; left: 0; right: 0; bottom: 0; height: 74vh;
    z-index: 0; pointer-events: none;
    background: var(--glow); transition: background .6s;
}
#dc-plan {
    position: fixed; left: 0; right: 0; bottom: 0; height: 42vh; min-height: 230px;
    z-index: 0; pointer-events: none;
    animation: dc-plan 1.6s .15s ease both;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.72) 52%, transparent 96%);
            mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.72) 52%, transparent 96%);
}
#dc-plan svg  { width: 100%; height: 100%; display: block; }
#dc-plan path, #dc-plan rect, #dc-plan g { transition: fill .5s, stroke .5s; }


/* â”€â”€ 5. Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#dc-hdr {
    position: sticky; top: 0; z-index: 50;
    background: var(--hdr);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hair);
    padding: 0 34px; height: 74px; min-height: 74px;
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
    transition: background .5s, border-color .4s;
}
#dc-hdr-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark   { height: 34px; width: auto; display: block; flex-shrink: 0; }
.logo-mark path { transition: fill .4s; }
#dc-wordmark {
    font-family: 'Cairo', system-ui, sans-serif;
    font-size: 1.0625rem; font-weight: 700; color: var(--txt);
    letter-spacing: -.02em;
    padding-inline-start: 12px;
    border-inline-start: 1px solid var(--hair);
    transition: color .4s, border-color .4s;
}
#dc-spacer { flex: 1; }

/* Accessibility font-size controls */
#dc-a11y {
    display: flex; align-items: center; gap: 1px;
    border: 1px solid var(--hair); border-radius: 999px; padding: 3px;
    transition: border-color .4s;
}
/* Target by element so the rule works regardless of class name on the buttons */
#dc-a11y button,
.a11y-btn {
    border: none; outline: none; background: transparent;
    cursor: pointer; border-radius: 999px;
    color: var(--txt); font-family: inherit;
    direction: ltr; unicode-bidi: isolate;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s;
}
#dc-a11y button:hover,
.a11y-btn:hover { background: var(--hair); }
/* Size variants — class-name aliases: new (a11y-dec/mid/inc) and old (small/mid/big) */
.a11y-dec, #dc-a11y button.small { width: 34px; height: 32px; font-size: .8rem; font-weight: 700; }
.a11y-mid, #dc-a11y button.mid  { width: 30px; height: 32px; font-size: .72rem; color: var(--txt-m); }
.a11y-inc, #dc-a11y button.big  { width: 34px; height: 32px; font-size: 1rem; font-weight: 700; }

/* Theme + language buttons */
.hdr-icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--hair); border-radius: 999px;
    background: transparent; cursor: pointer; color: var(--txt);
    flex-shrink: 0;
    transition: all .2s;
}
.hdr-icon-btn:hover { border-color: var(--txt); background: var(--hair); }
/* ── SweetAlert2 theme override — matches dc-modern design system ──────── */
/* Backdrop */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(20,8,36,.55) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.swal2-container { z-index: 99999 !important; }
/* Popup card */
.swal2-popup {
    background: var(--panel) !important;
    color: var(--txt) !important;
    border: 1px solid var(--panel-line) !important;
    border-radius: 18px !important;
    font-family: inherit !important;
    box-shadow: 0 30px 70px -20px rgba(20,8,36,.4) !important;
    padding-bottom: 24px !important;
}
/* Remove icon-specific tinted backgrounds (error=pink, warning=yellow, etc.) */
.swal2-popup.swal2-icon-error,
.swal2-popup.swal2-icon-warning,
.swal2-popup.swal2-icon-success,
.swal2-popup.swal2-icon-info,
.swal2-popup.swal2-icon-question {
    background: var(--panel) !important;
    color: var(--txt) !important;
}
/* Title + body text */
.swal2-title {
    color: var(--txt) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: -.024em !important;
}
.swal2-html-container {
    color: var(--txt-m) !important;
    font-size: .9rem !important;
    line-height: 1.55 !important;
}
/* Error icon */
.swal2-icon.swal2-error {
    border-color: var(--burg) !important;
    color: var(--burg) !important;
}
.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: var(--burg) !important;
}
/* Warning icon */
.swal2-icon.swal2-warning {
    border-color: var(--amber) !important;
    color: var(--amber) !important;
}
/* Success icon */
.swal2-icon.swal2-success,
.swal2-icon.swal2-success [class^=swal2-success-line] {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}
.swal2-success-ring { border-color: rgba(99,52,144,.25) !important; }
/* Confirm button */
.swal2-styled.swal2-confirm {
    background: var(--btn) !important;
    color: var(--btn-txt) !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    padding: 10px 28px !important;
    font-size: .875rem !important;
    box-shadow: none !important;
    border: none !important;
}
.swal2-styled.swal2-confirm:hover  { background: var(--btn-h) !important; }
.swal2-styled.swal2-confirm:focus  { box-shadow: 0 0 0 3px rgba(47,25,71,.35) !important; }
/* Cancel button */
.swal2-styled.swal2-cancel {
    background: transparent !important;
    color: var(--txt-m) !important;
    border: 1px solid var(--hair) !important;
    border-radius: 999px !important;
    font-family: inherit !important;
    padding: 10px 28px !important;
    font-size: .875rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.swal2-styled.swal2-cancel:hover { border-color: var(--txt) !important; }

/* Mobile PKI: modernize loading overlay — remove old white card, keep spinner centered */
#loadingModal        { z-index: 9999 !important; }
#loadingModalContent { background: transparent !important; border: none !important;
                       box-shadow: none !important; margin: 0 !important;
                       padding: 0 !important; width: auto !important; }

.dc-logout-btn       { width: auto; padding: 0 14px; gap: 7px; }
.dc-logout-btn:hover { color: var(--burg) !important; border-color: var(--burg) !important; }
.dc-logout-lbl       { font-size: .8rem; font-weight: 600; white-space: nowrap; line-height: 1; }
@media (max-width: 768px) {
    .dc-logout-btn   { width: 40px; padding: 0; }
    .dc-logout-lbl   { display: none; }
}

.hdr-lang-btn {
    padding: 9px 16px;
    border: 1px solid var(--hair); border-radius: 999px;
    background: transparent; color: var(--txt);
    font-size: .875rem; font-weight: 600; line-height: 1.3;
    font-family: inherit; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    display: flex; align-items: center; gap: 7px;
    transition: all .2s;
}
.hdr-lang-btn:hover { border-color: var(--txt); background: var(--hair); }

/* E-Services pill â€” !important beats style.css `.button` / `a` overrides */
.hdr-esv, #dc-esv {
    padding: 11px 26px !important;
    background: var(--btn) !important; color: #fff !important;
    border: none !important; border-radius: 999px !important;
    font-size: .875rem !important; font-weight: 600; line-height: 1.3;
    cursor: pointer; white-space: nowrap; font-family: inherit; flex-shrink: 0;
    text-decoration: none !important;
    display: inline-flex; align-items: center;
    transition: background .22s, transform .22s;
}
.hdr-esv:hover, #dc-esv:hover {
    background: var(--btn-h) !important; color: #fff !important;
    transform: translateY(-1px);
}


/* â”€â”€ 6. Back bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#dc-backbar {
    position: relative; z-index: 20;
    align-self: stretch; width: 100%;
    margin: 12px 0 0; padding: 0 40px;
    display: flex; justify-content: flex-start;
    text-align: start;
}
#dc-backbar-inner {
    max-width: 1280px; width: 100%; margin: 0 auto;
    display: flex; justify-content: flex-start;
}
[dir=rtl] .back-arrow { transform: scaleX(-1); }
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px 7px 12px;
    border: 1px solid var(--hair); border-radius: 999px;
    background: var(--panel); box-shadow: var(--shd);
    color: var(--txt) !important;
    font-size: .8125rem; font-weight: 600;
    text-decoration: none !important;
    transition: border-color .2s, background .3s, box-shadow .3s, transform .2s;
}
.back-btn:hover {
    border-color: var(--panel-line-h); box-shadow: var(--shd-h);
    transform: translateY(-1px); color: var(--txt) !important;
}


/* â”€â”€ 7. Stage + lede â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#dc-stage {
    flex: 1; position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
    gap: 48px; align-items: center;
    max-width: 1280px; width: 100%; margin: 0 auto;
    padding: 18px 40px 18px;
}
/* SSO page â€” single centered column */
#dc-stage.dc-stage--center {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 40px 60px; gap: 28px;
    animation: dc-fade .6s ease both;
}
#dc-lede {
    display: flex; flex-direction: column; align-items: flex-start;
    text-align: start; gap: 20px;
    animation: dc-rise .8s cubic-bezier(.16,1,.3,1) both;
}
.eyebrow-row  { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-hair,
.eyebrow-line { width: 26px; height: 1px; background: var(--amber); display: block; }
.eyebrow-tx,
.eyebrow-text { font-size: .72rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--amber); }

#dc-lede h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700; line-height: 1.22; letter-spacing: -.038em;
    color: var(--head); text-wrap: balance;
    text-align: start;
    transition: color .4s;
}
html[lang=ar] #dc-lede h1,
[dir=rtl]     #dc-lede h1 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.35; }
#dc-lede .sub, .lede-sub {
    font-size: 1.0625rem; line-height: 1.68;
    color: var(--txt-m); max-width: 42ch; text-wrap: pretty;
    transition: color .4s;
}
.h1-accent { color: var(--btn); transition: color .4s; }
html[lang=ar] .h1-accent,
[dir=rtl]     .h1-accent { display: block; }


/* â”€â”€ 8. Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#dc-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }

.card-wrap {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shd);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: border-color .3s, box-shadow .35s, transform .35s, background .4s;
}
.card-wrap:hover {
    border-color: var(--panel-line-h); box-shadow: var(--shd-h);
    transform: translateY(-4px);
}
.card-1 { animation: dc-rise .8s .12s cubic-bezier(.16,1,.3,1) both; }
.card-2 { animation: dc-rise .8s .20s cubic-bezier(.16,1,.3,1) both; }
.card-3 { animation: dc-rise .8s .28s cubic-bezier(.16,1,.3,1) both; }
.card-4 { animation: dc-rise .8s .36s cubic-bezier(.16,1,.3,1) both; }

/* ChooseBeneficiaryCategory uses the wider Investor/Contractor layout */
.card-investor   { animation: dc-rise .8s .14s cubic-bezier(.16,1,.3,1) both; }
.card-contractor { animation: dc-rise .8s .26s cubic-bezier(.16,1,.3,1) both; }

.card-bar         { height: 3px; }
.card-top-bar     { height: 3px; }
.card-bar-burg,   .bar-burg   { background: var(--burg); }
.card-bar-amber,  .bar-amber  { background: var(--amber); }
.bar-accent { background: var(--accent); }
.bar-grad   { background: var(--accent); }

.card-body {
    padding: 30px 28px 28px;
    display: flex; flex-direction: column; gap: 16px; flex: 1;
}
/* Compact 4-card layout for InvestorPortalDefault / Default */
.card-body.card-body--compact { padding: 18px 20px 16px; gap: 10px; }

.card-icon-wrap {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1px solid currentColor;
}
.card-head        { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head .icon-wrap { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon-burg,  .ic-burg   { color: var(--burg); }
.card-icon-amber, .ic-amber  { color: var(--amber); }
.ic-accent { color: var(--accent); }

.card-title, .card-head h2 {
    font-size: 1.25rem !important; font-weight: 700 !important;
    letter-spacing: -.024em;
    color: var(--txt) !important;
    text-align: start !important; width: auto !important;
    margin: 0 !important;
    transition: color .4s;
}
.card-head h2 { font-size: 1.0625rem !important; letter-spacing: -.02em; }

.card-desc {
    font-size: .875rem; line-height: 1.68;
    color: var(--txt-m); flex: 1; text-wrap: pretty;
    transition: color .4s;
}
.card-body--compact .card-desc { font-size: .8125rem; line-height: 1.5; }


/* â”€â”€ 9. Forms (server-rendered inputs / buttons) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card-input {
    width: 100% !important;
    padding: 9px 14px !important;
    border: 1px solid var(--panel-line) !important;
    border-radius: 10px !important;
    background: var(--panel) !important;
    color: var(--txt) !important;
    font-size: .85rem !important; font-family: inherit !important;
    text-align: start !important;
    box-shadow: none !important; margin: 0 !important;
    outline: none;
    transition: border-color .2s;
}
.card-input:focus { border-color: var(--accent) !important; }

/* Primary card button â€” wins over style.css .button / #login_btn / a rules */
.card-btn {
    display: block !important; width: 100% !important;
    padding: 13px 20px !important;
    background: var(--btn) !important; color: #fff !important;
    border: none !important; border-radius: 999px !important;
    font-size: .9rem !important; font-weight: 600 !important; line-height: 1.3 !important;
    cursor: pointer; font-family: inherit;
    text-align: center !important;
    margin: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .22s, transform .22s;
}
.card-btn:hover    { background: var(--btn-h) !important; transform: translateY(-1px); color: #fff !important; }
.card-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.card-foot {
    display: flex; align-items: center; justify-content: flex-end; gap: 6px;
    padding: 9px 16px;
    border-top: 1px solid var(--panel-line);
    color: var(--txt-m); font-size: .72rem; font-weight: 600;
    transition: color .2s, background .2s;
}
.card-foot.split { justify-content: space-between; }
.card-more,
.card-forgot {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--txt-m) !important; font-size: .72rem; font-weight: 600;
    text-decoration: none !important;
    background: transparent !important; border: none !important; padding: 0 !important;
    cursor: pointer;
    transition: color .2s;
}
.card-more:hover, .card-forgot:hover { color: var(--accent) !important; }

.badge {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: 999px;
    background: var(--hair); color: var(--accent);
    font-size: .6rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; white-space: nowrap;
}


/* â”€â”€ 10. Footer + support modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Override style.css `footer { position:fixed; background:#2E1A47; ... }` */
#dc-footer {
    position: relative !important; bottom: auto !important; width: auto !important;
    z-index: 1;
    background: transparent !important; box-shadow: none !important;
    padding: 18px 34px !important;
    display: flex !important; align-items: center; justify-content: space-between !important;
    gap: 18px; flex-wrap: wrap;
    color: var(--txt-m) !important; font-size: .78rem !important;
    letter-spacing: .01em; text-align: start !important;
    transition: color .4s;
}
#dc-copy      { order: 2; }
.dc-sup-link,
#dc-sup-link {
    order: 1;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 20px;
    border: 1px solid var(--hair); border-radius: 999px;
    background: var(--panel); box-shadow: var(--shd);
    color: var(--txt) !important;
    font-size: .8125rem; font-weight: 600; white-space: nowrap;
    cursor: pointer; text-decoration: none !important;
    transition: border-color .2s, background .3s, box-shadow .3s, transform .2s;
}
.dc-sup-link:hover,
#dc-sup-link:hover {
    border-color: var(--panel-line-h); box-shadow: var(--shd-h);
    transform: translateY(-1px); color: var(--txt) !important;
}

#dc-modal-bg {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(20,8,36,.42); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
#dc-modal {
    width: 100%; max-width: 400px;
    background: var(--panel);
    border: 1px solid var(--panel-line); border-radius: 18px;
    box-shadow: 0 30px 70px -20px rgba(20,8,36,.5);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    overflow: hidden; text-align: start;
}
#dc-modal .modal-bar  { height: 3px; background: var(--amber); }
#dc-modal .modal-body,
#dc-modal #dc-modal-inner { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 18px; }
#dc-modal .modal-head,
#dc-modal .modal-hdr-row  { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
#dc-modal .modal-head h2,
#dc-modal .modal-hdr-row h2 {
    font-size: 1.1875rem !important; font-weight: 700 !important;
    letter-spacing: -.024em; color: var(--txt) !important;
    line-height: 1.25;
    text-align: start !important; width: auto !important; margin: 0 !important;
}
#dc-modal .modal-close,
#dc-modal .modal-close-btn {
    width: 30px; height: 30px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--hair); border-radius: 999px;
    background: transparent; color: var(--txt-m); cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
#dc-modal .modal-close:hover,
#dc-modal .modal-close-btn:hover { border-color: var(--txt); color: var(--txt); }
#dc-modal .contacts,
#dc-modal .modal-methods { display: flex; flex-direction: column; gap: 10px; }
#dc-modal .contact-row,
#dc-modal .modal-method-link {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--hair); border-radius: 12px;
    color: var(--txt) !important; text-decoration: none !important;
    transition: all .2s;
}
#dc-modal .contact-row:hover,
#dc-modal .modal-method-link:hover { border-color: var(--panel-line-h); background: var(--hair); }
#dc-modal .method-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#dc-modal .contact-row .lbl,
#dc-modal .method-label {
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--txt-m); display: block;
}
#dc-modal .contact-row .val,
#dc-modal .method-value {
    font-size: .9375rem; font-weight: 600; color: var(--txt);
    direction: ltr; unicode-bidi: isolate; display: block;
}
#dc-modal .hours,
#dc-modal .modal-hours { font-size: .78rem; line-height: 1.6; color: var(--txt-m); padding-top: 2px; }


/* â”€â”€ 11. Forget-password modal (server-side form) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#myModal.dc-fp-modal {
    display: none; position: fixed; inset: 0; z-index: 210;
    background: rgba(20,8,36,.55); backdrop-filter: blur(3px);
    align-items: center; justify-content: center; padding: 24px;
}
#myModal.dc-fp-modal[data-open="1"] { display: flex; }
#myModal .modal-content {
    width: 100%; max-width: 400px;
    padding: 26px 26px 22px !important;
    background: var(--panel) !important;
    border: 1px solid var(--panel-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 70px -20px rgba(20,8,36,.5) !important;
    display: flex !important; flex-direction: column; gap: 14px;
    color: var(--txt) !important;
    position: static !important; margin: 0 !important;
}
#myModal .modal-content .close {
    position: absolute; top: 14px; right: 16px;
    cursor: pointer; font-size: 22px; line-height: 1; color: var(--txt-m);
}
#myModal .modal-content input[type=text],
#myModal .modal-content input[type=email],
#myModal .modal-content input[type=password] {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid var(--panel-line) !important; border-radius: 10px !important;
    background: var(--panel) !important; color: var(--txt) !important;
    font-size: .9rem !important; font-family: inherit !important;
    text-align: start !important; margin: 0 !important; box-shadow: none !important;
    outline: none;
}
#myModal .modal-content input[type=submit] {
    background: var(--btn) !important; color: #fff !important;
    border: none !important; border-radius: 999px !important;
    padding: 10px 20px !important; font-weight: 600 !important; cursor: pointer;
}


/* â”€â”€ 12. SSO card (SingleSignOn.aspx) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#sso-card {
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: 22px;
    box-shadow: var(--shd);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 44px 40px 40px;
    max-width: 460px; width: 100%;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 20px;
    animation: dc-rise-sm .7s cubic-bezier(.16,1,.3,1) both;
    transition: background .4s, border-color .3s, box-shadow .35s;
}
.sso-bar { height: 3px; background: var(--amber); border-radius: 2px; width: 44px; }
.sso-h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700; letter-spacing: -.024em;
    color: var(--head); line-height: 1.2;
    transition: color .4s;
}
.sso-sub {
    font-size: .9375rem; line-height: 1.6;
    color: var(--txt-m); max-width: 36ch;
    transition: color .4s;
}
.sso-hint {
    font-size: .75rem; color: var(--txt-m);
    letter-spacing: .04em; text-transform: uppercase;
}
.sso-spin-wrap { position: relative; width: 74px; height: 74px; }
.sso-spin {
    position: absolute; inset: 0;
    border: 3px solid var(--panel-line);
    border-top-color: var(--btn);
    border-radius: 999px;
    animation: dc-spin 1.05s linear infinite;
}
.sso-pulse {
    position: absolute; inset: 6px;
    border: 2px solid var(--amber);
    border-radius: 999px;
    animation: dc-pulse-ring 1.6s ease-out infinite;
}
/* MainDiv is the server-side error container */
#MainDiv, [id$="_MainDiv"] { width: 100%; }
#MainDiv:empty, [id$="_MainDiv"]:empty { display: none; }
#MainDiv:not(:empty), [id$="_MainDiv"]:not(:empty) {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--burg); border-radius: 14px;
    background: rgba(182,77,92,.06);
    color: var(--txt); font-size: .9rem; line-height: 1.55;
    text-align: start;
    box-shadow: var(--shd);
}
#dc-root.has-error .sso-bar   { background: var(--burg); }
#dc-root.has-error .sso-spin  { animation: none; border-top-color: var(--burg); opacity: .55; }
#dc-root.has-error .sso-pulse { animation: none; opacity: 0; }


/* â”€â”€ 13. Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Bidirectional language-toggle label */
[dir=ltr] .lang-rtl { display: none; }
[dir=rtl] .lang-ltr { display: none; }

/* Off-screen but participates in ViewState */
.dc-hidden {
    position: absolute !important; left: -9999px !important;
    width: 1px !important; height: 1px !important; overflow: hidden !important;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    #dc-root *,
    #dc-root *::before,
    #dc-root *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* â”€â”€ 14. Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1080px) {
    #dc-stage { grid-template-columns: 1fr !important; gap: 40px !important; align-items: start !important; }
    #dc-lede  { max-width: 640px !important; text-align: center !important; align-items: center !important; }
}

@media (max-width: 760px) {
    #dc-a11y { display: none !important; }
}

@media (max-width: 620px) {
    #dc-paths { grid-template-columns: 1fr !important; max-width: 440px !important; margin: 0 auto !important; }
}

@media (max-width: 520px) {
    .hdr-esv, #dc-esv        { padding: 9px 16px !important; font-size: .8rem !important; }
    #dc-wordmark, #dc-theme  { display: none !important; }
    #dc-hdr                  { padding: 0 18px !important; }
    #dc-hdr .logo-mark       { height: 26px !important; }
    #dc-backbar              { padding: 12px 18px 0 !important; }
    #dc-stage                { padding: 22px 18px 40px !important; }
    #sso-card                { padding: 32px 24px 28px !important; }
    html[lang=ar] #dc-lede h1,
    [dir=rtl]     #dc-lede h1 { font-size: 1.35rem !important; }
}







