:root { --site-bg: #0b0f17; --site-card: #101724; --site-subcard: #111b2b; --site-hover: #1a2536; --site-ink: #f0f5fc; --site-secondary: #b5c0d0; --site-gold: #fcd34d; --site-green: #6ee7b7; --site-border: #29384c; --site-scheme: dark; }
html[data-theme="light"] { --site-bg: #f3f6fa; --site-card: #fff; --site-subcard: #f4f7fb; --site-hover: #eaf0f7; --site-ink: #172338; --site-secondary: #475970; --site-gold: #86530b; --site-green: #006a4a; --site-border: #dce4ee; --site-scheme: light; }
.site-page a[href="mailto:support@zadfinance.com"],.site-footer a[href="mailto:support@zadfinance.com"]{text-decoration:underline;text-underline-offset:3px}
/* Public pages and the shared footer use local CSS on every screen size. */
.native-app [data-browser-install] { display: none !important; }
@media (min-width: 641px) { .native-app .site-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.site-page { margin: 0; background: var(--site-bg); color: var(--site-ink); font-family: 'Cairo', sans-serif; line-height: 1.8; color-scheme: var(--site-scheme); }
.site-page *, .site-footer * { box-sizing: border-box; }
.site-page a, .site-footer a { text-decoration: none; color: inherit; }
.site-page button, .site-footer button { font: inherit; cursor: pointer; }
.site-page img { max-width: 100%; }
.site-skip { position: absolute; top: -100px; inset-inline-start: 16px; z-index: 10; padding: 12px; background: #fbbf24; color: #101725 !important; border-radius: 10px; }
.site-skip:focus { top: 12px; }
.site-page :is(a, button, summary):focus-visible, .site-footer :is(a, button):focus-visible { outline: 2px solid #fbbf24; outline-offset: 4px; }
.site-wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--site-border); flex-wrap: wrap; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--site-ink); }
.site-brand img { width: 36px; height: 36px; border: 0; border-radius: 0; object-fit: contain; padding: 0; background: transparent; box-shadow: none; }
.site-brand strong { font-size: 21px; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-button, .site-language, .app-download-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 15px; border: 1px solid var(--site-border); border-radius: 12px; color: var(--site-ink); background: var(--site-subcard); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .18s, transform .18s; }
.site-button:hover, .site-language:hover, .app-download-link:hover { background: var(--site-hover); }
.site-button:active, .site-language:active, .app-download-link:active { transform: scale(.98); }
.site-primary { background: #fbbf24; color: #101725 !important; border-color: #fbbf24; }
.site-primary:hover { background: #fcd34d; }
.site-text-link { color: var(--site-gold) !important; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: underline !important; text-underline-offset: 5px; }
.site-text-link > svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-hero { padding-block: clamp(32px, 6vw, 64px); max-width: 800px; }
.site-eyebrow { color: var(--site-gold); font-size: 13px; font-weight: 700; margin: 0 0 12px; }
.site-hero h1 { font-size: clamp(27px, 4vw, 44px); line-height: 1.45; margin: 0 0 16px; letter-spacing: -.025em; }
.site-hero p:not(.site-eyebrow) { color: var(--site-secondary); max-width: 68ch; font-size: 15px; margin: 0; }
.site-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--site-secondary); font-size: 12px; margin-top: 20px; }
.site-content-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.site-toc { position: sticky; top: 24px; border: 1px solid var(--site-border); background: var(--site-card); border-radius: 20px; padding: 20px; }
.site-toc h2 { font-size: 14px; margin: 0 0 8px; color: var(--site-ink); }
.site-toc a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; font-size: 13px; color: var(--site-secondary); }
.site-toc a:hover { color: var(--site-gold); }
.site-document { border: 1px solid var(--site-border); background: var(--site-card); border-radius: 24px; padding: clamp(20px, 4vw, 36px); min-width: 0; }
.site-document section { scroll-margin-top: 24px; }
.site-document section + section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--site-border); }
.site-document h2, .site-section h2 { font-size: 19px; margin: 0 0 16px; line-height: 1.6; color: var(--site-ink); }
.site-document h3, .site-card h3 { font-size: 15px; color: var(--site-ink); margin: 0 0 8px; }
.site-document p, .site-document li, .site-card p { font-size: 14px; color: var(--site-secondary); overflow-wrap: anywhere; }
.site-document p { margin: 0 0 16px; }
.site-document ul { margin: 0; padding-inline-start: 22px; }
.site-document li + li { margin-top: 12px; }
.site-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.site-card { background: var(--site-card); border: 1px solid var(--site-border); padding: 24px; border-radius: 20px; min-width: 0; }
.site-card p { margin: 0 0 16px; }
.site-callout { border-inline-start: 3px solid #fbbf24; padding: 18px 22px; background: #f59e0b09; border-radius: 12px; }
.site-section { margin-top: 40px; }
.site-section:last-child { margin-bottom: 48px; }
.site-faq { margin-bottom: 12px; background: var(--site-card); border: 1px solid var(--site-border); border-radius: 16px; padding: 4px 20px; }
.site-faq summary { min-height: 60px; padding-block: 16px; cursor: pointer; font-size: 14px; font-weight: 700; }
.site-faq p { margin: 0 0 18px; color: var(--site-secondary); font-size: 14px; }
.site-download { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 5vw, 48px); background: radial-gradient(ellipse at top right, #f59e0b10, transparent 60%), var(--site-card); border: 1px solid #f59e0b30; border-radius: 28px; }
.site-download h2 { font-size: 25px; margin: 0 0 12px; }
.site-download p { color: var(--site-secondary); font-size: 14px; }
.site-download .site-button { margin-top: 12px; }
.site-download-status { display: inline-block; background: #10b98114; border: 1px solid #10b98140; color: var(--site-green); font-size: 12px; border-radius: 30px; padding: 4px 12px; margin-bottom: 14px; }
.site-store-panel { padding: 24px; border: 1px solid var(--site-border); border-radius: 20px; background: var(--site-subcard); }
.site-store-panel h3 { margin: 0 0 12px; font-size: 16px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: flex; align-items: center; gap: 12px; min-width: 155px; flex: 1 1 155px; max-width: 210px; padding: 10px 14px; background: #06090f; border: 1px solid #64748b; border-radius: 10px; color: #fff; text-align: start; user-select: none; }
.store-badge svg { width: 28px; height: 32px; flex-shrink: 0; }
.store-badge span { display: block; font-size: 11px; color: #fcd34d; line-height: 1.5; }
.store-badge strong { display: block; font: 600 18px/1.5 system-ui, sans-serif; white-space: nowrap; }
.site-store-note { margin: 16px 0 0 !important; font-size: 12px !important; }
.site-install-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-install-guides ol { padding-inline-start: 20px; color: var(--site-secondary); font-size: 13px; }
.site-install-guides li + li { margin-top: 12px; }
.site-install-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 1px solid #f59e0b50; border-radius: 24px; background: var(--site-card); color: var(--site-ink); font: 14px/1.8 'Cairo', sans-serif; }
.site-install-dialog::backdrop { background: #020617c9; backdrop-filter: blur(6px); }
.site-install-dialog h2 { margin: 0 0 12px; }
.site-install-dialog p { color: var(--site-secondary); }
.site-install-dialog a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer { margin-top: 48px; padding: 32px 0 12px; border-top: 1px solid var(--site-border); color: var(--site-secondary); font: 13px/1.8 'Cairo', sans-serif; text-align: start; width: 100%; }
.site-footer-grid { display: grid; grid-template-columns: 1.15fr .7fr 1.2fr; gap: 28px; }
.site-footer h2 { color: var(--site-ink); font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.site-footer p { max-width: 30ch; margin: 14px 0 8px; }
.site-footer nav a { display: flex; align-items: center; min-height: 44px; width: fit-content; }
.site-footer a:hover { color: var(--site-gold); }
.site-footer-brand > a:last-child { display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.site-footer .store-badge { min-width: 145px; padding: 8px 12px; }
.site-footer .store-badge strong { font-size: 16px; }
.site-footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--site-border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer-bottom small { font-size: 12px; }
.site-footer-bottom button { min-height: 44px; padding: 8px; background: transparent; border: 0; color: inherit; }
.site-footer-mobile-top { display: none; }
#loginScreen { flex-direction: column; justify-content: flex-start; gap: 24px; }
#loginScreen > .glass-card { margin-block: auto 0; flex-shrink: 0; }
#loginScreen > .site-footer { width: min(100%, 900px); margin-block: 0 auto; flex-shrink: 0; }
#registerScreen > div, #verifyEmailScreen > div { flex-direction: column; gap: 24px; }
#registerScreen .site-footer, #verifyEmailScreen .site-footer { max-width: 1024px; margin-top: 0; }
#appContainer > .site-footer { padding-inline: 16px; margin-bottom: 96px; }
.auth-language-row { justify-content: space-between; align-items: center; gap: 8px; }
.app-download-link { border-color: #f59e0b40; color: var(--site-gold); font-size: 12px; padding-inline: 12px; }
.app-download-link svg { width: 16px; height: 16px; }
.theme-light #appContainer .site-footer { color: #475569; border-color: #cbd5e1; }
.theme-light #appContainer .site-footer :is(h2, .site-brand) { color: #0f172a; }
.theme-light #appContainer .site-text-link, .theme-light #appContainer .app-download-link { color: #92400e !important; }
.theme-light #appContainer .site-footer-bottom { border-color: #cbd5e1; }
.site-reveal { opacity: 1; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.site-reveal.site-revealed { opacity: 1; transform: none; }
.site-page main { animation: site-enter .3s ease both; }
#appContainer .tab-view:not(.hidden) { animation: site-enter .24s ease both; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .site-card { transition: transform .2s, border-color .2s; } .site-card:hover { transform: translateY(-2px); border-color: #f59e0b50; } }
@keyframes site-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 769px) { #appContainer > .site-footer { margin-bottom: 0; } }
@media (max-width: 900px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } .site-footer-apps { grid-column: 1 / -1; } .site-content-grid { grid-template-columns: 1fr; } .site-toc { position: static; } .site-toc nav { display: flex; flex-wrap: wrap; gap: 4px 20px; } }
@media (max-width: 640px) {
    .site-header { gap: 12px; }
    .site-header nav { width: 100%; justify-content: space-between; }
    .site-header nav .site-button { padding-inline: 10px; font-size: 12px; }
    .site-download, .site-cards, .site-install-guides { grid-template-columns: 1fr; }
    .site-download { gap: 20px; }
    .site-store-panel { padding: 18px; }

    /* Keep the mobile footer useful without another full screen of content. */
    .site-footer { margin-top: 20px; padding-block: 10px 6px; font-size: 11px; }
    .site-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .site-footer-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; grid-column: auto; min-width: 0; }
    .site-footer .site-brand { gap: 8px; }
    .site-footer .site-brand img { width: 26px; height: 26px; }
    .site-footer .site-brand strong { font-size: 14px; }
    .site-footer-brand p, .site-footer-brand > a:last-child, .site-footer h2 { display: none; }
    .site-footer-mobile-top { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px; border: 0; background: transparent; color: inherit; font-size: 11px; white-space: nowrap; }
    .site-footer nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .site-footer nav a { min-width: 0; width: 100%; min-height: 44px; justify-content: center; padding: 2px; line-height: 1.5; text-align: center; }
    .site-footer-apps { grid-column: auto; min-width: 0; }
    .site-footer .store-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .site-footer .store-badge { min-width: 0; width: 100%; max-width: none; min-height: 44px; gap: 6px; padding: 4px 8px; border-radius: 8px; }
    .site-footer .store-badge svg { width: 20px; height: 24px; }
    .site-footer .store-badge span { font-size: 10px; line-height: 1.35; }
    .site-footer .store-badge strong { font-size: 13px; line-height: 1.4; }
    .site-footer-apps .site-text-link { min-height: 44px; width: 100%; justify-content: center; font-size: 11px; line-height: 1.5; }
    .site-footer-bottom { justify-content: center; margin-top: 4px; padding-top: 6px; gap: 0; }
    .site-footer-bottom small { font-size: 10px; line-height: 1.6; text-align: center; }
    .site-footer-bottom button { display: none; }
    #appContainer > .site-footer { padding-inline: 4px; }
    #loginScreen, #registerScreen > div, #verifyEmailScreen > div { gap: 12px; }
}
@media (max-width: 420px) { .auth-language-row .app-download-link { padding-inline: 10px; } .site-header nav .site-language { padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) { .site-page *, .site-footer *, .app-download-link { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .site-reveal { opacity: 1; transform: none; } }
