/* ============================================================
   Wuthqa Platform — SaaS surfaces (pricing, auth, dashboard, promo)
   Loaded after site.css + site-pages.css. Shares brand tokens.
   ============================================================ */

/* ---- Platform marketing: features + how-it-works ---------- */
.wq-pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wq-pf-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.wq-pf-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.wq-pf-ic { width: 52px; height: 52px; border-radius: var(--r-lg); background: var(--teal-tint); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.wq-pf-card h4 { color: var(--teal); font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.wq-pf-card p { color: var(--fg-2); font-size: 15px; line-height: 1.8; }

.wq-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: how; }
.wq-how-step { position: relative; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 30px 24px; }
.wq-how-step .n { width: 44px; height: 44px; border-radius: var(--r-full); background: var(--teal); color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.wq-how-step h4 { color: var(--teal); font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.wq-how-step p { color: var(--fg-2); font-size: 14.5px; line-height: 1.75; }

/* ---- Homepage promo band ---------------------------------- */
.wq-promo { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-900) 100%); color: #fff; }
.wq-promo-mark { position: absolute; right: -120px; bottom: -130px; width: 420px; opacity: .08; filter: brightness(0) invert(1); pointer-events: none; }
.wq-promo-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 72px 32px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.wq-promo-copy h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.25; margin: 10px 0 16px; }
.wq-promo-copy p { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.85; max-width: 520px; }
.wq-promo-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.wq-promo-points { display: flex; flex-direction: column; gap: 14px; }
.wq-promo-point { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 18px 20px; }
.wq-promo-point .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: rgba(165,149,107,.2); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wq-promo-point .t { font-weight: 700; font-size: 16px; }
.wq-promo-point .d { font-size: 13.5px; color: rgba(255,255,255,.72); margin-top: 2px; }

/* ---- Pricing ---------------------------------------------- */
.wq-billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 40px; }
.wq-billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full); padding: 5px; }
.wq-billing-toggle button { font-family: var(--font-ar); font-weight: 600; font-size: 14.5px; color: var(--fg-2); background: none; border: none; cursor: pointer; padding: 9px 22px; border-radius: var(--r-full); transition: all .25s var(--ease); }
.wq-billing-toggle button.on { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.wq-billing-save { font-size: 13px; font-weight: 600; color: var(--gold-600); background: var(--gold-tint); padding: 5px 13px; border-radius: var(--r-full); }

.wq-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.wq-plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px 30px; display: flex; flex-direction: column; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.wq-plan:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.wq-plan.featured { border-color: var(--teal); border-width: 2px; box-shadow: var(--shadow-lg); }
.wq-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-family: var(--font-ar); font-weight: 700; font-size: 12.5px; padding: 6px 16px; border-radius: var(--r-full); white-space: nowrap; }
.wq-plan-name { font-size: 21px; font-weight: 700; color: var(--teal); }
.wq-plan-tagline { font-size: 14px; color: var(--fg-3); margin-top: 6px; min-height: 38px; }
.wq-plan-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.wq-plan-price .cur { font-family: var(--font-en); font-size: 18px; font-weight: 600; color: var(--fg-2); }
.wq-plan-price .amt { font-family: var(--font-en); font-size: 44px; font-weight: 700; color: var(--teal); letter-spacing: -.02em; line-height: 1; }
.wq-plan-price .per { font-size: 14px; color: var(--fg-3); }
.wq-plan-price .custom { font-size: 30px; font-weight: 700; color: var(--teal); }
.wq-plan-note { font-size: 12.5px; color: var(--fg-3); min-height: 18px; }
.wq-plan-cta { margin: 24px 0; justify-content: center; text-decoration: none; }
.wq-plan-includes { display: flex; flex-direction: column; gap: 13px; border-top: 1px solid var(--border-soft); padding-top: 22px; }
.wq-plan-includes .lb { font-size: 12.5px; font-weight: 700; color: var(--fg-3); letter-spacing: .04em; text-transform: uppercase; }
.wq-incl { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--fg); line-height: 1.6; }
.wq-incl .ic { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.wq-incl strong { color: var(--teal); font-weight: 700; }

/* ---- Top-up credits --------------------------------------- */
.wq-topups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wq-topup { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.wq-topup:hover { border-color: var(--gold); transform: translateY(-3px); }
.wq-topup .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--gold-tint); color: var(--gold-600); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.wq-topup .t { font-weight: 700; color: var(--teal); font-size: 16px; }
.wq-topup .p { font-family: var(--font-en); font-weight: 700; color: var(--fg); font-size: 22px; margin-top: 10px; }
.wq-topup .p span { font-family: var(--font-ar); font-size: 13px; font-weight: 500; color: var(--fg-3); }

/* ---- FAQ -------------------------------------------------- */
.wq-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.wq-faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 26px; }
.wq-faq-item h4 { color: var(--teal); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.wq-faq-item p { color: var(--fg-2); font-size: 15px; line-height: 1.8; }

/* ============================================================
   Auth (login / register)
   ============================================================ */
.wq-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.05fr; }
.wq-auth-brand { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--teal) 0%, var(--teal-900) 100%); color: #fff; padding: 56px 56px 48px; display: flex; flex-direction: column; }
.wq-auth-brand-mark { position: absolute; left: -90px; bottom: -110px; width: 420px; opacity: .09; filter: brightness(0) invert(1); }
.wq-auth-brand .logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; }
.wq-auth-brand .logo img { width: 46px; height: 46px; border-radius: var(--r-md); }
.wq-auth-brand-body { margin-top: auto; position: relative; z-index: 1; }
.wq-auth-brand-body h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.wq-auth-brand-body p { color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.85; max-width: 420px; margin-bottom: 26px; }
.wq-auth-vals { display: flex; flex-direction: column; gap: 14px; }
.wq-auth-val { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.wq-auth-val .ic { color: var(--gold); flex-shrink: 0; }
.wq-auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--surface); }
.wq-auth-card { width: 100%; max-width: 440px; }
.wq-auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.wq-auth-back { font-size: 13.5px; color: var(--fg-3); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.wq-auth-back:hover { color: var(--teal); }
.wq-auth-card h1 { color: var(--teal); font-size: 28px; font-weight: 700; }
.wq-auth-card .sub { color: var(--fg-2); font-size: 15px; margin: 8px 0 26px; line-height: 1.7; }
.wq-seg { display: flex; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 5px; margin-bottom: 22px; }
.wq-seg button { flex: 1; font-family: var(--font-ar); font-weight: 600; font-size: 14.5px; color: var(--fg-2); background: none; border: none; cursor: pointer; padding: 11px; border-radius: var(--r-sm); transition: all .22s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.wq-seg button.on { background: var(--teal); color: #fff; }
.wq-field { margin-bottom: 16px; }
.wq-field label { display: block; font-family: var(--font-ar); font-weight: 600; font-size: 13.5px; color: var(--teal); margin-bottom: 7px; }
.wq-input { width: 100%; font-family: var(--font-ar); font-size: 15px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--fg); transition: border-color .22s var(--ease); }
.wq-input:focus { outline: none; border-color: var(--gold); }
.wq-input.en { font-family: var(--font-en); direction: ltr; }
.wq-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wq-auth-aux { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 22px; font-size: 13.5px; }
.wq-auth-aux a { color: var(--gold-600); text-decoration: none; }
.wq-auth-aux label { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); cursor: pointer; }
.wq-auth-submit { width: 100%; justify-content: center; padding: 15px; font-size: 16px; }
.wq-auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--fg-3); font-size: 13px; }
.wq-auth-or::before, .wq-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.wq-oauth { display: flex; flex-direction: column; gap: 11px; }
.wq-oauth button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-ar); font-weight: 600; font-size: 14.5px; color: var(--fg); background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px; cursor: pointer; transition: border-color .22s var(--ease), background .22s var(--ease); }
.wq-oauth button:hover { border-color: var(--teal); }
.wq-oauth .nafath { background: var(--teal); color: #fff; border-color: var(--teal); }
.wq-oauth .nafath:hover { background: var(--teal-700); }
.wq-auth-foot { text-align: center; font-size: 14px; color: var(--fg-2); margin-top: 24px; }
.wq-auth-foot a { color: var(--gold-600); font-weight: 600; text-decoration: none; }

/* Order summary (register w/ plan) */
.wq-order { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; margin-bottom: 22px; }
.wq-order-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wq-order-head .tag { font-size: 12px; font-weight: 700; color: var(--gold-600); background: var(--gold-tint); padding: 4px 11px; border-radius: var(--r-full); }
.wq-order-head .nm { font-weight: 700; color: var(--teal); font-size: 17px; }
.wq-order-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--fg-2); padding: 7px 0; }
.wq-order-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-soft); margin-top: 8px; padding-top: 14px; font-weight: 700; color: var(--teal); font-size: 17px; }
.wq-order-total .amt { font-family: var(--font-en); }

/* ============================================================
   Client dashboard
   ============================================================ */
/* site.css sets #app { overflow-x: hidden }, which makes #app a scroll
   container and breaks the sidebar's position:sticky. Restore visible
   overflow only when #app is hosting the dashboard. */
#app:has(.wq-dash) { overflow: visible; }
.wq-dash { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--surface); }
.wq-dash-side { background: var(--teal-900); color: #fff; display: flex; flex-direction: column; padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
.wq-dash-logo { display: flex; align-items: center; gap: 11px; padding: 6px 10px 22px; font-weight: 700; font-size: 16px; }
.wq-dash-logo img { width: 40px; height: 40px; border-radius: var(--r-md); }
.wq-dash-nav { display: flex; flex-direction: column; gap: 4px; }
.wq-dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); color: rgba(255,255,255,.78); text-decoration: none; font-family: var(--font-ar); font-weight: 500; font-size: 14.5px; transition: background .2s var(--ease), color .2s var(--ease); }
.wq-dash-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.wq-dash-nav a.active { background: var(--gold); color: #fff; }
.wq-dash-side-foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.wq-dash-side-foot a { color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.wq-dash-side-foot a:hover { color: var(--gold); }

.wq-dash-main { display: flex; flex-direction: column; min-width: 0; }
.wq-dash-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 32px; }
.wq-dash-top h1 { font-size: 21px; font-weight: 700; color: var(--teal); }
.wq-dash-top .sub { font-size: 13.5px; color: var(--fg-3); margin-top: 2px; }
.wq-dash-top-actions { display: flex; align-items: center; gap: 12px; }
.wq-dash-icon { width: 42px; height: 42px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--fg-2); cursor: pointer; }
.wq-dash-avatar { width: 42px; height: 42px; border-radius: var(--r-full); background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-en); }
.wq-dash-body { padding: 32px; display: flex; flex-direction: column; gap: 24px; }

.wq-bal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wq-bal { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; }
.wq-bal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wq-bal-ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--teal-tint); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.wq-bal-pct { font-family: var(--font-en); font-size: 12.5px; font-weight: 600; color: var(--fg-3); }
.wq-bal .big { font-family: var(--font-en); font-size: 30px; font-weight: 700; color: var(--teal); letter-spacing: -.02em; }
.wq-bal .big span { font-size: 16px; color: var(--fg-3); font-weight: 500; }
.wq-bal .lb { font-size: 13.5px; color: var(--fg-2); margin-top: 3px; }
.wq-bal-bar { height: 7px; border-radius: var(--r-full); background: var(--border); margin-top: 14px; overflow: hidden; }
.wq-bal-bar i { display: block; height: 100%; border-radius: var(--r-full); background: var(--gold); }

.wq-dash-2col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.wq-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px; }
.wq-card h3 { font-size: 17px; font-weight: 700; color: var(--teal); margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.wq-card h3 a { font-size: 13px; font-weight: 600; color: var(--gold-600); text-decoration: none; }
.wq-pkg-active { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border-radius: var(--r-lg); margin-bottom: 16px; }
.wq-pkg-active .ic { width: 50px; height: 50px; border-radius: var(--r-md); background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wq-pkg-active .nm { font-weight: 700; color: var(--teal); font-size: 17px; }
.wq-pkg-active .rn { font-size: 13px; color: var(--fg-3); margin-top: 3px; }
.wq-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wq-quick a { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: var(--teal); font-weight: 600; font-size: 14.5px; transition: border-color .25s var(--ease), background .25s var(--ease); }
.wq-quick a:hover { border-color: var(--teal); background: var(--surface); }
.wq-quick a .ic { color: var(--gold); }
.wq-activity { display: flex; flex-direction: column; }
.wq-act { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border-soft); }
.wq-act:first-child { border-top: none; padding-top: 0; }
.wq-act .ic { width: 38px; height: 38px; border-radius: var(--r-full); background: var(--surface); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wq-act .t { font-size: 14.5px; color: var(--fg); font-weight: 500; line-height: 1.5; }
.wq-act .d { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 980px) {
  .wq-pf-grid, .wq-how, .wq-pricing-grid { grid-template-columns: 1fr; }
  .wq-topups { grid-template-columns: 1fr 1fr; }
  .wq-promo-inner { grid-template-columns: 1fr; gap: 32px; }
  .wq-auth { grid-template-columns: 1fr; }
  .wq-auth-brand { display: none; }
  .wq-bal-grid { grid-template-columns: 1fr 1fr; }
  .wq-dash-2col { grid-template-columns: 1fr; }
  .wq-dash { grid-template-columns: 1fr; }
  .wq-dash-side { display: none; }
}
@media (max-width: 560px) {
  .wq-topups, .wq-bal-grid, .wq-quick, .wq-field-row, .wq-folders, .wq-doc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Dashboard sub-views
   ============================================================ */
.wq-view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wq-view-head h2 { font-size: 23px; font-weight: 700; color: var(--teal); }
.wq-view-head p { color: var(--fg-2); font-size: 14.5px; margin-top: 5px; max-width: 560px; line-height: 1.6; }

.wq-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ar); font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-full); white-space: nowrap; }
.wq-badge.ok { color: #15803d; background: #dcfce7; }
.wq-badge.pend { color: var(--gold-600); background: var(--gold-tint); }
.wq-badge.info { color: var(--teal); background: var(--teal-tint); }
.wq-badge.muted { color: var(--fg-3); background: var(--surface); }

.wq-rows { display: flex; flex-direction: column; }
.wq-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-soft); }
.wq-row:first-child { border-top: none; padding-top: 0; }
.wq-row > .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wq-row .main { flex: 1; min-width: 0; }
.wq-row .main .t { font-weight: 600; color: var(--fg); font-size: 15px; line-height: 1.5; }
.wq-row .main .d { font-size: 13px; color: var(--fg-3); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wq-row .end { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.wq-row .amt { font-family: var(--font-en); font-weight: 700; color: var(--teal); font-size: 15.5px; }
.wq-rowlink { color: var(--gold-600); font-size: 13.5px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: none; font-family: var(--font-ar); padding: 0; }
.wq-rowlink:hover { color: var(--gold); }

.wq-usage { display: flex; flex-direction: column; gap: 20px; }
.wq-usage-row .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; gap: 12px; }
.wq-usage-row .top .lb { font-weight: 600; color: var(--fg); font-size: 14.5px; }
.wq-usage-row .top .ct { font-family: var(--font-en); font-size: 13.5px; color: var(--fg-3); }

.wq-cons { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.wq-cons + .wq-cons { margin-top: 12px; }
.wq-cons .date { width: 66px; text-align: center; flex-shrink: 0; background: var(--teal-tint); border-radius: var(--r-md); padding: 11px 0; }
.wq-cons .date .d { font-family: var(--font-en); font-weight: 700; font-size: 22px; color: var(--teal); line-height: 1; }
.wq-cons .date .m { font-size: 11.5px; color: var(--fg-3); margin-top: 4px; }
.wq-cons .info { flex: 1; min-width: 0; }
.wq-cons .info .t { font-weight: 700; color: var(--teal); font-size: 15.5px; }
.wq-cons .info .meta { font-size: 13px; color: var(--fg-2); margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.wq-cons .info .meta span { display: inline-flex; align-items: center; gap: 5px; }

.wq-radios { display: flex; gap: 10px; }
.wq-radio { flex: 1; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; text-align: center; cursor: pointer; font-family: var(--font-ar); font-size: 14px; font-weight: 600; color: var(--fg-2); background: #fff; transition: all .2s var(--ease); }
.wq-radio.on { border-color: var(--teal); background: var(--teal-tint); color: var(--teal); }

.wq-select { width: 100%; font-family: var(--font-ar); font-size: 15px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--fg); cursor: pointer; }
.wq-select:focus { outline: none; border-color: var(--gold); }
.wq-textarea { width: 100%; font-family: var(--font-ar); font-size: 15px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--fg); min-height: 110px; resize: vertical; }
.wq-textarea:focus { outline: none; border-color: var(--gold); }

.wq-switch { width: 46px; height: 27px; border-radius: var(--r-full); background: var(--border); position: relative; cursor: pointer; transition: background .2s var(--ease); flex-shrink: 0; border: none; padding: 0; }
.wq-switch.on { background: var(--teal); }
.wq-switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: inset-inline-start .22s var(--ease); box-shadow: var(--shadow-sm); }
.wq-switch.on i { inset-inline-start: calc(100% - 24px); }
.wq-setrow { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--border-soft); }
.wq-setrow:first-child { border-top: none; padding-top: 0; }
.wq-setrow > div:first-child { flex: 1; min-width: 0; }
.wq-setrow .t { font-weight: 600; color: var(--fg); font-size: 14.5px; line-height: 1.4; }
.wq-setrow .d { font-size: 13px; color: var(--fg-3); margin-top: 3px; }

.wq-toast { display: flex; align-items: center; gap: 10px; background: #dcfce7; color: #15803d; border: 1px solid #86efac; border-radius: var(--r-md); padding: 13px 16px; font-family: var(--font-ar); font-size: 14px; font-weight: 600; margin-bottom: 18px; }

.wq-pay { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.wq-pay .card-ic { width: 50px; height: 36px; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--teal), var(--teal-900)); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wq-pay .nm { font-weight: 600; color: var(--fg); font-size: 14.5px; font-family: var(--font-en); }
.wq-pay .d { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }

/* ---- Calendar view ---------------------------------------- */
.wq-cal-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.wq-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.wq-cal-head .mo { font-size: 19px; font-weight: 700; color: var(--teal); }
.wq-cal-nav { display: flex; align-items: center; gap: 8px; }
.wq-cal-nav button { width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--border); background: #fff; color: var(--fg-2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .2s var(--ease), color .2s var(--ease); }
.wq-cal-nav button:hover { border-color: var(--teal); color: var(--teal); }
.wq-cal-today-btn { width: auto !important; padding: 0 16px; font-family: var(--font-ar); font-weight: 600; font-size: 13.5px; color: var(--teal) !important; }
.wq-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wq-cal-dow { text-align: center; font-family: var(--font-ar); font-size: 12px; font-weight: 700; color: var(--fg-3); padding: 4px 0 8px; }
.wq-cal-day { position: relative; min-height: 76px; border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.wq-cal-day:hover { border-color: var(--teal); }
.wq-cal-day.blank { border: none; background: none; cursor: default; }
.wq-cal-day .num { font-family: var(--font-en); font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.wq-cal-day.today .num { background: var(--teal); color: #fff; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wq-cal-day.sel { border-color: var(--teal); background: var(--teal-tint); }
.wq-cal-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.wq-cal-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-consultation { background: var(--teal); }
.dot-deadline { background: var(--amber-600); }
.dot-reminder { background: var(--gold); }
.wq-cal-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--fg-2); }
.wq-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wq-cal-side .day-lb { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.wq-cal-ev { display: flex; gap: 12px; align-items: stretch; padding: 13px 0; border-top: 1px solid var(--border-soft); }
.wq-cal-ev:first-of-type { border-top: none; padding-top: 0; }
.wq-cal-ev .bar { width: 4px; border-radius: 4px; flex-shrink: 0; }
.wq-cal-ev .t { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.5; }
.wq-cal-ev .tm { font-family: var(--font-en); font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }
.wq-cal-empty { text-align: center; color: var(--fg-3); padding: 34px 10px; font-size: 14px; }
@media (max-width: 980px) {
  .wq-cal-wrap { grid-template-columns: 1fr; }
  .wq-cal-day { min-height: 58px; }
}

/* ---- Documents (folders + search + grid/list) ------------- */
.wq-doc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.wq-search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.wq-search .ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.wq-search input { width: 100%; font-family: var(--font-ar); font-size: 14.5px; padding: 12px 15px; padding-inline-start: 42px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--fg); }
.wq-search input:focus { outline: none; border-color: var(--gold); }
.wq-doc-tools { display: flex; align-items: center; gap: 12px; }
.wq-doc-count { font-size: 13.5px; color: var(--fg-3); white-space: nowrap; }
.wq-viewtoggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px; }
.wq-viewtoggle button { width: 36px; height: 32px; border: none; background: none; color: var(--fg-3); cursor: pointer; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease); }
.wq-viewtoggle button.on { background: #fff; color: var(--teal); box-shadow: var(--shadow-sm); }

.wq-folders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.wq-folder { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); cursor: pointer; background: #fff; text-align: start; transition: border-color .2s var(--ease), background .2s var(--ease); font-family: var(--font-ar); }
.wq-folder:hover { border-color: var(--teal); }
.wq-folder.active { border-color: var(--teal); background: var(--teal-tint); }
.wq-folder .ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--teal-tint); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wq-folder.active .ic { background: var(--teal); color: #fff; }
.wq-folder .nm { font-weight: 700; color: var(--teal); font-size: 14.5px; }
.wq-folder .ct { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }

.wq-doc-group-h { display: flex; align-items: center; gap: 9px; font-family: var(--font-ar); font-size: 12.5px; font-weight: 700; color: var(--fg-3); letter-spacing: .03em; margin: 22px 0 8px; }
.wq-doc-group-h:first-child { margin-top: 0; }
.wq-doc-group-h .ic { color: var(--gold); }
.wq-doc-group-h .ct { color: var(--border); font-weight: 600; }

.wq-doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wq-doc-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.wq-doc-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.wq-doc-card .ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--surface); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.wq-doc-card .nm { font-weight: 600; color: var(--fg); font-size: 14.5px; line-height: 1.5; }
.wq-doc-card .meta { font-size: 12.5px; color: var(--fg-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wq-doc-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.wq-doc-empty { text-align: center; color: var(--fg-3); padding: 40px 10px; font-size: 14px; }
@media (max-width: 980px) {
  .wq-folders { grid-template-columns: 1fr 1fr; }
  .wq-doc-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wq-row { flex-wrap: wrap; }
  .wq-radios { flex-direction: column; }
  .wq-cons { flex-wrap: wrap; }
}
