@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  font-family: 'DM Sans', 'Noto Sans Arabic', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --text: #19241f;
  --muted: #7d8983;
  --line: #e9eeeb;
  --green: #15846a;
  --green-dark: #126b56;
  --green-soft: #e6f4ef;
  --shadow: 0 24px 70px rgb(30 58 47 / 10%);
  --welcome-background: radial-gradient(ellipse at 5% 0%, #ffffff 0, #eef8f1 48%, #dcefe3 100%);
  --welcome-foreground: #20382c;
  --welcome-eyebrow: #397453;
  --welcome-eyebrow-dot: #16836b;
  --welcome-heading: #213d30;
  --welcome-accent: #15846a;
  --welcome-description: #526d5e;
  --welcome-feature-title: #244535;
  --welcome-feature-text: #5d7568;
  --welcome-feature-green: #187d5b;
  --welcome-feature-lime: #6f8122;
  --welcome-feature-blue: #34788d;
  --welcome-feature-icon-background: rgb(255 255 255 / 78%);
  --welcome-feature-icon-border: rgb(21 132 106 / 14%);
  --welcome-pattern: rgb(21 132 106 / 24%);
  --welcome-pattern-opacity: .3;
  --welcome-orb: rgb(21 132 106 / 14%);
  --welcome-glow: rgb(66 157 105 / 24%);
  --welcome-footer: #638071;
  --welcome-status: #16836b;
  --note-background: rgb(255 255 255 / 96%);
  --note-border: rgb(21 132 106 / 20%);
  --note-title: #254a37;
  --note-meta: #71877a;
  --note-icon: #a88215;
  --preview-card-border: rgb(21 132 106 / 13%);
  --preview-card-shadow: 0 17px 38px rgb(40 89 60 / 16%);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101714;
  --surface: #171f1b;
  --surface-soft: #1d2823;
  --text: #edf4f0;
  --muted: #a0ada6;
  --line: #29362f;
  --green: #52b99b;
  --green-dark: #8ad3b9;
  --green-soft: #203a31;
  --shadow: 0 24px 70px rgb(0 0 0 / 32%);
  --welcome-background: radial-gradient(ellipse at 5% 0%, #25624f 0, #153c31 45%, #102e25 100%);
  --welcome-foreground: #f4fbf7;
  --welcome-eyebrow: #a9d3bd;
  --welcome-eyebrow-dot: #7dd5a5;
  --welcome-heading: #eff7f2;
  --welcome-accent: #82d4ad;
  --welcome-description: #b8ccc1;
  --welcome-feature-title: #eff7f2;
  --welcome-feature-text: #9eb7aa;
  --welcome-feature-green: #8ddcb2;
  --welcome-feature-lime: #d7e980;
  --welcome-feature-blue: #9bcee2;
  --welcome-feature-icon-background: rgb(255 255 255 / 7%);
  --welcome-feature-icon-border: rgb(255 255 255 / 11%);
  --welcome-pattern: rgb(255 255 255 / 30%);
  --welcome-pattern-opacity: .14;
  --welcome-orb: rgb(217 250 235 / 10%);
  --welcome-glow: rgb(93 175 136 / 20%);
  --welcome-footer: #91ac9c;
  --welcome-status: #80d7a4;
  --note-background: rgb(30 72 55 / 92%);
  --note-border: rgb(255 255 255 / 20%);
  --note-title: #f4fbf7;
  --note-meta: #a8c3b4;
  --note-icon: #d5eb81;
  --preview-card-border: rgb(255 255 255 / 13%);
  --preview-card-shadow: 0 17px 45px rgb(0 0 0 / 22%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); transition: background .25s ease, color .25s ease; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; padding: 0 5.4vw 44px; }
.topbar { width: min(1320px, 100%); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #16836b; box-shadow: 0 8px 18px rgb(21 132 106 / 22%); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font: 800 18px/1.2 'Manrope', sans-serif; letter-spacing: -.8px; }
.brand-copy small { margin-top: 3px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 2.3px; }
.topbar-actions { display: flex; align-items: center; gap: 13px; color: var(--muted); }
.language-picker { position: relative; }
.language-trigger { display: flex; min-height: 42px; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.language-trigger:hover, .language-trigger[aria-expanded='true'] { border-color: var(--line); background: var(--surface); }
.language-flag { display: inline-flex; width: 22px; flex: 0 0 22px; align-items: center; justify-content: center; font-size: 19px; line-height: 1; text-align: center; }
.language-flag-visual { display: inline-grid; width: 22px; height: 15px; flex: 0 0 22px; place-items: center; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 12%); }
.language-flag-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.language-flag-fallback { display: none; font-size: 17px; line-height: 1; }
.language-flag-visual.is-fallback .language-flag-image { display: none; }
.language-flag-visual.is-fallback .language-flag-fallback { display: inline; }
.language-chevron { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.language-trigger[aria-expanded='true'] .language-chevron { transform: rotate(180deg); }
.language-menu { position: absolute; z-index: 20; top: calc(100% + 9px); inset-inline-end: 0; width: 208px; padding: 6px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.language-option { display: flex; width: 100%; min-height: 43px; align-items: center; gap: 11px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: start; cursor: pointer; transition: background .15s, color .15s; }
.language-option:hover, .language-option:focus-visible { outline: none; background: var(--surface-soft); }
.language-option.is-selected { color: var(--green-dark); font-weight: 700; }
.language-check { margin-inline-start: auto; color: var(--green); font-size: 16px; opacity: 0; }
.language-option.is-selected .language-check { opacity: 1; }
.topbar-divider { height: 26px; width: 1px; background: var(--line); }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; transition: transform .2s, border-color .2s; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--green); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon, [data-theme='dark'] .sun-icon { display: none; }
[data-theme='dark'] .moon-icon { display: block; }
.main-content { width: min(1320px, 100%); min-height: min(740px, calc(100vh - 132px)); margin: 0 auto; display: grid; grid-template-columns: 1fr .91fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.welcome-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: clamp(42px, 5.4vw, 76px) clamp(36px, 5vw, 72px) 27px; overflow: hidden; color: var(--welcome-foreground); background: var(--welcome-background); }
.welcome-panel::before { position: absolute; z-index: -1; inset: 0; content: ''; opacity: var(--welcome-pattern-opacity); background-image: radial-gradient(var(--welcome-pattern) .65px, transparent .65px); background-size: 17px 17px; mask-image: linear-gradient(120deg, #000 0, transparent 74%); }
.welcome-orb { position: absolute; z-index: -1; border: 1px solid var(--welcome-orb); border-radius: 50%; pointer-events: none; }
.orb-one { width: 430px; height: 430px; inset-inline-end: -210px; top: 65px; }
.orb-two { width: 325px; height: 325px; inset-inline-end: -158px; top: 117px; }
.welcome-content { position: relative; z-index: 2; max-width: 500px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--welcome-eyebrow); font-size: 10px; font-weight: 700; letter-spacing: 1.45px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--welcome-eyebrow-dot); box-shadow: 0 0 12px var(--welcome-eyebrow-dot); }
h1, h2, p { margin-top: 0; }
h1 { margin: 22px 0 16px; color: var(--welcome-heading); font: 700 clamp(32px, 3.2vw, 48px)/1.17 'Manrope', 'Noto Sans Arabic', sans-serif; letter-spacing: -1.7px; }
h1 em { color: var(--welcome-accent); font-style: normal; }
.welcome-description { max-width: 410px; margin-bottom: 30px; color: var(--welcome-description); font-size: 14px; line-height: 1.8; }
.feature-list { display: grid; gap: 18px; }
.feature-item { display: flex; align-items: center; gap: 13px; }
.feature-icon { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border: 1px solid var(--welcome-feature-icon-border); border-radius: 12px; background: var(--welcome-feature-icon-background); }
.feature-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon-green { color: var(--welcome-feature-green); }.feature-icon-lime { color: var(--welcome-feature-lime); }.feature-icon-blue { color: var(--welcome-feature-blue); }
.feature-item strong, .feature-item small { display: block; }
.feature-item strong { margin-bottom: 3px; color: var(--welcome-feature-title); font-size: 12px; font-weight: 600; }
.feature-item small { color: var(--welcome-feature-text); font-size: 11px; }
.preview-scene { position: relative; z-index: 1; height: 210px; margin-top: 28px; }
.scene-glow { position: absolute; width: 300px; height: 180px; inset-inline-end: 9%; bottom: 0; border-radius: 50%; background: var(--welcome-glow); filter: blur(38px); }
.tasks-card { position: absolute; width: min(330px, 86%); inset-inline-end: 13%; top: 0; padding: 14px; border: 1px solid var(--preview-card-border); border-radius: 17px; background: rgb(250 255 251 / 97%); box-shadow: var(--preview-card-shadow); color: #1d3328; transform: rotate(-2deg); }
.tasks-header { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid #ecf1ed; }
.tasks-icon { width: 31px; height: 31px; display: grid; flex: 0 0 31px; place-items: center; border-radius: 10px; background: #e4f3e9; color: #16836b; }.tasks-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.tasks-heading { display: grid; min-width: 0; flex: 1; gap: 2px; }.tasks-heading b { font-size: 11px; }.tasks-heading small { color: #82958a; font-size: 9px; }.tasks-menu { color: #83948a; font-size: 11px; letter-spacing: 2px; }
.tasks-progress { height: 4px; margin: 10px 1px 7px; overflow: hidden; border-radius: 9px; background: #e9f0eb; }.tasks-progress span { display: block; width: 58%; height: 100%; border-radius: inherit; background: #58b884; }
.task-row { display: flex; min-height: 25px; align-items: center; gap: 8px; color: #41574a; font-size: 9px; line-height: 1.35; }.task-check { width: 14px; height: 14px; display: grid; flex: 0 0 14px; place-items: center; border: 1px solid #b8c9bd; border-radius: 5px; color: #fff; font-size: 9px; }.task-check.is-done { border-color: #58b884; background: #58b884; }
.floating-note { position: absolute; z-index: 2; inset-inline-start: 4%; bottom: 10px; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--note-border); border-radius: 12px; background: var(--note-background); box-shadow: 0 10px 28px rgb(0 0 0 / 17%); color: var(--note-title); transform: rotate(2deg); }
.note-icon { color: var(--note-icon); font-size: 17px; }.floating-note b, .floating-note small { display: block; }.floating-note b { font-size: 10px; }.floating-note small { margin-top: 3px; color: var(--note-meta); font-size: 9px; }.note-check { width: 17px; height: 17px; display: grid; place-items: center; margin-inline-start: 6px; border-radius: 50%; background: #72cb98; color: #143a2c; font-size: 10px; }
.panel-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 10px; color: var(--welcome-footer); font-size: 9px; }.footer-status { display: flex; align-items: center; gap: 6px; }.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--welcome-status); box-shadow: 0 0 8px var(--welcome-status); }
.connect-panel { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 42px clamp(30px, 4.4vw, 64px); }
.connect-inner { width: min(370px, 100%); }
.connect-heading { margin-bottom: 23px; }
.secure-label { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 1.1px; }
.secure-lock { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; background: var(--green-soft); }
.secure-lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
h2 { margin: 12px 0 6px; font: 700 27px/1.25 'Manrope', 'Noto Sans Arabic', sans-serif; letter-spacing: -.8px; }
.connect-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.method-panel[hidden] { display: none; }
.qr-frame { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin: 0 auto 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.qr-placeholder { width: 174px; height: 174px; padding: 6px; border-radius: 9px; }
.qr-caption { margin: 0 0 8px; color: var(--text); text-align: center; font-size: 11px; font-weight: 700; }
.qr-loading { display: grid; justify-items: center; gap: 13px; color: #6d8278; font-size: 10px; }
.qr-loading[hidden], #qr-code[hidden], #qr-retry[hidden], #qr-cancel[hidden] { display: none; }
.text-button { display: block; margin: 10px auto 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.loading-spinner { width: 27px; height: 27px; border: 2px solid #d7e7de; border-top-color: #16836b; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-retry { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 5px; border: 0; background: #fff; color: #15846a; font-size: 11px; font-weight: 700; cursor: pointer; }.qr-retry > span:first-child { font-size: 25px; }
.qr-expiry { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 19px; color: var(--muted); font-size: 9px; }.expiry-dot { width: 6px; height: 6px; border-radius: 50%; background: #d7a64b; }.expiry-timer { min-width: 28px; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 700; }
.instruction-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--text); font-size: 10px; }.instruction-number { width: 20px; height: 20px; display: grid; flex: 0 0 20px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font-size: 9px; font-weight: 700; }
.phone-panel { min-height: 309px; }.phone-illustration { position: relative; height: 100px; display: flex; justify-content: center; margin: -2px 0 11px; }.phone-orbit { position: absolute; top: 17px; width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); }.orbit-left { margin-inline-end: 65px; }.orbit-right { margin-inline-start: 65px; width: 31px; height: 31px; top: 34px; }.phone-device { position: relative; z-index: 1; width: 48px; height: 91px; display: flex; flex-direction: column; align-items: center; padding: 13px 7px 8px; border: 3px solid var(--green-dark); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 16px rgb(21 132 106 / 14%); }.phone-notch { position: absolute; top: 4px; width: 15px; height: 3px; border-radius: 5px; background: var(--line); }.phone-screen-logo { width: 24px; height: 24px; display: grid; place-items: center; margin: 9px 0 8px; border-radius: 8px; background: var(--green); color: white; font: 800 17px 'Manrope', sans-serif; }.phone-screen-line { width: 27px; height: 3px; margin-bottom: 4px; border-radius: 5px; background: var(--line); }.phone-screen-line.short { width: 17px; }.phone-check { position: absolute; z-index: 2; inset-inline-end: calc(50% - 39px); bottom: 5px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 50%; background: #73c995; color: #fff; font-size: 11px; }
.phone-intro { margin-bottom: 16px; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.65; }.field-label { display: block; margin-bottom: 7px; color: var(--text); font-size: 10px; font-weight: 700; }.phone-input-wrap { display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); transition: border-color .2s, box-shadow .2s; }.phone-input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgb(21 132 106 / 10%); }.country-code { color: var(--green); font-size: 14px; font-weight: 700; }.phone-input-wrap input { width: 100%; min-width: 0; height: 43px; border: 0; outline: none; background: transparent; color: var(--text); direction: ltr; text-align: start; font-size: 12px; }.phone-input-wrap input::placeholder { color: #9aa8a0; }.field-error { min-height: 14px; margin: 5px 0 2px; color: #d64f4f; font-size: 9px; }.submit-button { width: 100%; height: 43px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; background: #16836b; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }.submit-button:hover { transform: translateY(-1px); background: #116e59; }.submit-button:disabled { opacity: .65; cursor: wait; }.button-arrow { font-size: 16px; }
.phone-panel .submit-button { margin-top: 9px; }
.phone-success { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px; border: 1px solid rgb(21 132 106 / 20%); border-radius: 10px; background: var(--green-soft); }.success-mark { width: 27px; height: 27px; display: grid; flex: 0 0 27px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 14px; }.phone-success b, .phone-success strong, .phone-success small { display: block; }.phone-success b { color: var(--text); font-size: 10px; }.phone-success strong { margin: 3px 0; color: var(--green-dark); font: 800 17px 'Manrope', sans-serif; letter-spacing: 2px; }.phone-success small { color: var(--muted); font-size: 9px; }.phone-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 9px; }.phone-privacy span:first-child { color: var(--green); font-size: 13px; }
.demo-notice { display: flex; align-items: flex-start; gap: 9px; margin-top: 19px; padding: 10px 11px; border: 1px solid #eadfbe; border-radius: 9px; background: #fcf8eb; color: #78663c; }.demo-notice-icon { width: 15px; height: 15px; display: grid; flex: 0 0 15px; place-items: center; margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; font: 700 9px Georgia, serif; }.demo-notice p { margin: 0; font-size: 9px; line-height: 1.55; }
:root[data-theme='dark'] .demo-notice { border-color: #4e462e; background: #302c20; color: #d5c48d; }.connect-footer { margin-top: 17px; color: var(--muted); text-align: center; font-size: 9px; }.connect-footer a { color: var(--green); font-weight: 700; text-decoration: none; }.connect-footer a:hover { text-decoration: underline; }
.toast { position: fixed; z-index: 10; inset-inline-end: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 32px)); padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-size: 12px; }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid rgb(21 132 106 / 40%); outline-offset: 3px; }

[dir='rtl'] { font-family: 'Noto Sans Arabic', 'DM Sans', sans-serif; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] .brand-copy strong { font-family: 'Noto Sans Arabic', 'Manrope', sans-serif; letter-spacing: 0; }
[dir='rtl'] .eyebrow { letter-spacing: 0; }
[dir='rtl'] .button-arrow { transform: scaleX(-1); }

@media (max-width: 1000px) {
  .app-shell { padding-inline: 3vw; }
  .main-content { grid-template-columns: 1fr .95fr; }
  .welcome-panel { padding: 48px 36px 24px; }
  .connect-panel { padding-inline: 32px; }
  .preview-scene { height: 185px; }
}
@media (max-width: 760px) {
  .app-shell { padding: 0 18px 24px; }
  .topbar { height: 72px; }
  .brand-mark { width: 35px; height: 35px; }.brand-copy strong { font-size: 16px; }
  .topbar-actions { gap: 8px; }.language-trigger { min-height: 40px; gap: 7px; padding-inline: 8px; font-size: 13px; }
  .main-content { min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
  .welcome-panel { min-height: 390px; padding: 35px 30px 21px; }
  .welcome-content { max-width: 560px; }.eyebrow { font-size: 9px; }h1 { margin-top: 17px; font-size: clamp(32px, 7vw, 42px); }
  .welcome-description { max-width: 460px; margin-bottom: 20px; font-size: 12px; }.feature-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }.feature-item { align-items: flex-start; gap: 8px; }.feature-icon { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; }.feature-icon svg { width: 16px; height: 16px; }.feature-item strong { font-size: 9px; }.feature-item small { font-size: 8px; line-height: 1.45; }
  .preview-scene { position: absolute; width: 220px; height: 132px; inset-inline-end: 4%; bottom: 36px; margin: 0; opacity: .78; transform: scale(.75); transform-origin: bottom right; }.tasks-card { width: 258px; inset-inline-end: 3%; }.floating-note { inset-inline-start: 0; }.panel-footer { z-index: 3; font-size: 8px; }
  .connect-panel { padding: 34px 26px 31px; }.connect-inner { width: min(390px, 100%); }.connect-heading { margin-bottom: 20px; }
}
[dir='rtl'] .preview-scene { transform-origin: bottom left; }
@media (max-width: 460px) {
  .app-shell { padding-inline: 10px; }.topbar { height: 66px; }.topbar-actions { gap: 5px; }.language-trigger { min-height: 36px; gap: 5px; padding-inline: 6px; font-size: 12px; }.language-flag { width: 20px; flex-basis: 20px; font-size: 17px; }.language-flag-visual { width: 20px; height: 14px; flex-basis: 20px; }.language-chevron { width: 12px; }.language-menu { width: 196px; }.topbar-divider { height: 21px; }.icon-button { width: 33px; height: 33px; }
  .main-content { border-radius: 17px; }.welcome-panel { min-height: 0; gap: 22px; padding: 28px 20px 17px; }.welcome-description { max-width: 340px; }.feature-list { grid-template-columns: 1fr; gap: 9px; }.feature-item { display: flex; align-items: center; gap: 8px; }.feature-item strong { font-size: 9px; }.feature-item small { max-width: none; font-size: 8px; }.feature-icon { width: 29px; height: 29px; }.preview-scene { display: none; }.panel-footer { font-size: 7px; }
  .connect-panel { padding: 28px 18px 25px; }.connect-heading h2 { font-size: 24px; }.connect-heading p { font-size: 11px; }.method-tab { gap: 5px; font-size: 9px; }.qr-frame { width: 180px; height: 180px; }.qr-placeholder { width: 166px; height: 166px; }.instruction-row { align-items: flex-start; font-size: 9px; line-height: 1.5; }.instruction-number { width: 18px; height: 18px; flex-basis: 18px; }
}

/* Readability: keep important interface copy comfortably legible at every size. */
.language-trigger { font-size: 14px; }
.brand-copy strong { font-size: 20px; }
.brand-copy small { font-size: 11px; }
.eyebrow { font-size: 12px; }
.welcome-description { font-size: 16px; line-height: 1.75; }
.feature-item strong { font-size: 15px; }
.feature-item small { font-size: 13px; line-height: 1.5; }
.panel-footer { font-size: 11px; }
.secure-label { font-size: 11px; }
h2 { font-size: 30px; }
.connect-heading p { font-size: 14px; }
.method-tab { min-width: 0; gap: 5px; padding-inline: 4px; font-size: 12px; }
.qr-loading { font-size: 12px; }

.auth-page .app-shell { display: flex; min-height: 100vh; flex-direction: column; padding-bottom: 28px; }
.auth-main { width: min(560px, 100%); flex: 1; display: grid; place-items: center; margin: 0 auto; }
.auth-main .connect-panel { width: 100%; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.auth-main .connect-inner { width: min(400px, 100%); margin-inline: auto; }
.auth-main .connect-heading h1 { margin: 12px 0 6px; color: var(--text); font: 700 30px/1.25 'Manrope', 'Noto Sans Arabic', sans-serif; letter-spacing: -.8px; }
.auth-main .connect-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (max-width: 460px) {
  .auth-page .app-shell { padding-inline: 16px; }
  .auth-main .connect-panel { padding: 26px 20px; border-radius: 18px; }
  .auth-main .connect-heading h1 { font-size: 26px; }
}
.qr-retry { font-size: 13px; }
.qr-expiry { font-size: 12px; }
.instruction-row { font-size: 13px; line-height: 1.55; }
.instruction-number { font-size: 11px; }
.phone-intro { font-size: 13px; line-height: 1.65; }
.field-label { font-size: 13px; }
.phone-input-wrap input { font-size: 15px; }
.field-error { font-size: 11px; }
.submit-button { font-size: 14px; }
.phone-success b { font-size: 12px; }
.phone-success small { font-size: 11px; }
.phone-privacy { font-size: 11px; }
.demo-notice p { font-size: 12px; line-height: 1.6; }
.connect-footer { font-size: 11px; }
.dashboard-preview-link { display: flex; justify-content: center; margin-top: 14px; color: var(--green); font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.dashboard-preview-link:hover { color: var(--green-dark); text-decoration: underline; }
.toast { font-size: 14px; line-height: 1.5; }

@media (max-width: 760px) {
  .brand-copy strong { font-size: 18px; }
  .eyebrow { font-size: 11px; }
  .welcome-description { font-size: 15px; }
  .feature-item strong { font-size: 13px; }
  .feature-item small { font-size: 12px; }
  .panel-footer { font-size: 10px; }
}

@media (max-width: 460px) {
  .brand-copy strong { font-size: 16px; }
  .welcome-description { font-size: 14px; }
  .feature-item strong { font-size: 13px; }
  .feature-item small { font-size: 12px; }
  .panel-footer { font-size: 9px; }
  .connect-heading h2 { font-size: 27px; }
  .connect-heading p { font-size: 14px; }
  .method-tab { font-size: 12px; }
  .instruction-row { font-size: 12px; }
}

/* Keep the two-column desktop view within short laptop/browser viewports. */
@media (min-width: 761px) and (max-height: 850px) {
  .app-shell { min-height: 100svh; padding-bottom: 14px; }
  .topbar { height: 64px; }
  .main-content { height: calc(100svh - 78px); min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .welcome-panel { min-height: 0; padding: 22px clamp(28px, 3vw, 44px) 16px; }
  h1 { margin: 12px 0 10px; font-size: clamp(30px, 2.9vw, 40px); line-height: 1.12; }
  .welcome-description { margin-bottom: 12px; font-size: 14px; line-height: 1.55; }
  .feature-list { gap: 8px; }
  .feature-item { gap: 10px; }
  .feature-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .feature-item strong { font-size: 13px; }
  .feature-item small { font-size: 12px; line-height: 1.4; }
  .preview-scene { height: 148px; margin-top: 10px; }
  .tasks-card { padding: 11px; }
  .task-row { min-height: 22px; }
  .connect-panel { padding-block: 12px; }
  .connect-heading { margin-bottom: 12px; }
  .method-tabs { margin-bottom: 10px; }
  .method-tab { min-height: 36px; }
  .qr-frame { width: 156px; height: 156px; margin-bottom: 8px; }
  .qr-placeholder { width: 144px; height: 144px; }
  .qr-expiry { margin-bottom: 10px; }
  .instruction-row { margin: 5px 0; font-size: 12px; line-height: 1.35; }
  .instruction-number { width: 18px; height: 18px; flex-basis: 18px; }
  .demo-notice { margin-top: 10px; padding: 8px 9px; }
  .demo-notice p { font-size: 11px; line-height: 1.45; }
  .connect-footer { margin-top: 8px; }
  .dashboard-preview-link { margin-top: 7px; font-size: 11px; }
}
@media (min-width: 761px) and (max-height: 640px) {
  .topbar { height: 56px; }
  .main-content { height: calc(100svh - 70px); }
  .welcome-panel { padding: 14px 22px 12px; }
  h1 { margin: 9px 0 7px; font-size: clamp(27px, 2.4vw, 34px); }
  .welcome-description { margin-bottom: 8px; font-size: 13px; }
  .feature-list { gap: 5px; }
  .feature-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .preview-scene { height: 112px; margin-top: 6px; }
  .connect-panel { padding-block: 10px; }
  .connect-heading { margin-bottom: 8px; }
  .method-tabs { margin-bottom: 8px; }
  .qr-frame { width: 132px; height: 132px; margin-bottom: 6px; }
  .qr-placeholder { width: 120px; height: 120px; }
  .qr-expiry { margin-bottom: 7px; }
  .instruction-row { margin: 3px 0; }
  .demo-notice { margin-top: 7px; padding: 6px 8px; }
  .connect-footer { margin-top: 6px; }
  .dashboard-preview-link { margin-top: 5px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.brand-logo { display: block; width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
