/* Zawqio Design System v6 — shared visual language for public, auth and dashboard surfaces */
:root{
  --zq-font-ar:"Alexandria","Noto Sans Arabic",Tahoma,sans-serif;
  --zq-font-en:"Manrope","DM Sans","Inter","Segoe UI",sans-serif;
  --zq-brand-950:#052f34;
  --zq-brand-900:#073b43;
  --zq-brand-800:#0a4a52;
  --zq-brand-700:#0d5c64;
  --zq-brand-100:#dff1f1;
  --zq-brand-50:#eff8f7;
  --zq-gold-600:#b47b20;
  --zq-gold-500:#d49a37;
  --zq-gold-100:#fbefd7;
  --zq-ink-950:#0d1c21;
  --zq-ink-800:#26363c;
  --zq-ink-600:#56676d;
  --zq-ink-500:#718087;
  --zq-line:#dfe6e7;
  --zq-line-strong:#cfd9db;
  --zq-surface:#ffffff;
  --zq-canvas:#f5f8f8;
  --zq-success:#0f8a5f;
  --zq-danger:#c53f44;
  --zq-warning:#a76a08;
  --zq-info:#236eae;
  --zq-radius-xs:8px;
  --zq-radius-sm:12px;
  --zq-radius-md:16px;
  --zq-radius-lg:22px;
  --zq-radius-xl:30px;
  --zq-shadow-xs:0 1px 2px rgba(5,47,52,.04);
  --zq-shadow-sm:0 8px 24px rgba(5,47,52,.07);
  --zq-shadow-md:0 18px 48px rgba(5,47,52,.11);
  --zq-focus:0 0 0 4px rgba(13,92,100,.15);
  --zq-ease:cubic-bezier(.2,.75,.25,1);
}

html[lang="ar"],html[dir="rtl"] body{font-family:var(--zq-font-ar)}
html[lang="en"] body,html[dir="ltr"] body{font-family:var(--zq-font-en)}
body{font-weight:500;color:var(--zq-ink-950);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit}
h1,h2,h3,h4,h5,h6,.display-1,.display-2,.display-3,.display-4,.display-5,.display-6{
  font-family:inherit;font-weight:800;letter-spacing:-.035em;line-height:1.24;color:inherit
}
html[dir=ltr] h1,html[dir=ltr] h2,html[dir=ltr] h3,html[dir=ltr] h4{letter-spacing:-.045em}
small,.small{font-weight:500}

.zq-icon{display:inline-block;flex:0 0 auto;vertical-align:-.18em;overflow:visible;color:currentColor}
.zq-icon--sm{width:16px;height:16px}.zq-icon--md{width:20px;height:20px}.zq-icon--lg{width:24px;height:24px}.zq-icon--xl{width:28px;height:28px}

:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:0;box-shadow:var(--zq-focus)!important}
::selection{background:var(--zq-brand-100);color:var(--zq-brand-950)}

.btn,.zv5-btn,.icon-btn{
  font-family:inherit;font-weight:750;letter-spacing:-.012em;transition:transform .18s var(--zq-ease),box-shadow .18s var(--zq-ease),background-color .18s ease,border-color .18s ease,color .18s ease
}
.btn,.zv5-btn{gap:9px;border-radius:var(--zq-radius-sm)}
.btn:hover,.zv5-btn:hover{transform:translateY(-1px)}
.btn:active,.zv5-btn:active,.icon-btn:active{transform:translateY(0) scale(.985)}
.btn-primary,.zv5-btn--primary{background:var(--zq-brand-900);border-color:var(--zq-brand-900);color:#fff;box-shadow:0 10px 24px rgba(7,59,67,.18)}
.btn-primary:hover,.zv5-btn--primary:hover{background:var(--zq-brand-800);border-color:var(--zq-brand-800);box-shadow:0 14px 28px rgba(7,59,67,.22)}
.btn-outline,.zv5-btn--outline{border-color:var(--zq-line-strong);background:#fff;color:var(--zq-brand-900)}
.btn-outline:hover,.zv5-btn--outline:hover{border-color:var(--zq-brand-700);background:var(--zq-brand-50)}
.btn-gold{background:var(--zq-gold-500);color:var(--zq-brand-950);box-shadow:0 10px 24px rgba(180,123,32,.16)}
.icon-btn{display:inline-grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--zq-line);border-radius:13px;background:#fff;color:var(--zq-brand-900);box-shadow:var(--zq-shadow-xs)}
.icon-btn:hover{background:var(--zq-brand-50);border-color:#bfd5d7;box-shadow:var(--zq-shadow-sm)}

.card,.zv5-panel,.zv5-stat,.branch-panel{border-color:var(--zq-line)!important;box-shadow:var(--zq-shadow-xs)}
.card:hover,.zv5-stat:hover{border-color:#cfdcde}
.input,.select,.textarea,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{
  border-color:var(--zq-line-strong);border-radius:var(--zq-radius-sm);transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease
}
.input:focus,.select:focus,.textarea:focus,input:focus,select:focus,textarea:focus{border-color:var(--zq-brand-700);box-shadow:var(--zq-focus)}
.badge,.zv5-pill{font-weight:750;letter-spacing:-.01em}

.dashboard-shell{background:var(--zq-canvas)}
.dashboard-shell .sidebar{background:var(--zq-brand-950);border-inline-end:1px solid rgba(255,255,255,.06)}
.dashboard-shell .brand-logo-dashboard{filter:drop-shadow(0 8px 20px rgba(0,0,0,.16))}
.dashboard-shell .side-label{font-family:inherit;font-size:.67rem;font-weight:800;letter-spacing:.07em;color:rgba(255,255,255,.46)}
.dashboard-shell .side-nav{gap:4px}
.dashboard-shell .side-nav a{min-height:46px;padding:10px 11px;border-radius:13px;font-size:.78rem;font-weight:650;color:rgba(255,255,255,.74);transition:.18s var(--zq-ease)}
.dashboard-shell .side-nav a:hover{color:#fff;background:rgba(255,255,255,.075);transform:translateX(0)}
.dashboard-shell .side-nav a.active{color:#fff;background:linear-gradient(135deg,rgba(23,118,126,.76),rgba(15,83,91,.92));box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 10px 22px rgba(0,0,0,.13)}
html[dir=rtl] .dashboard-shell .side-nav a.active{box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 10px 22px rgba(0,0,0,.13)}
.dashboard-shell .side-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.065);color:rgba(255,255,255,.74);transition:.18s var(--zq-ease)}
.dashboard-shell .side-nav a:hover .side-icon,.dashboard-shell .side-nav a.active .side-icon{background:rgba(255,255,255,.12);color:#fff}
.dashboard-shell .side-icon .zq-icon{width:18px;height:18px}
.dashboard-shell .zv5-side-count{width:7px;height:7px;border-radius:999px;background:#6ed4b0;color:transparent;overflow:hidden;margin-inline-start:auto;box-shadow:0 0 0 4px rgba(110,212,176,.12)}
.dashboard-shell .topbar{background:rgba(255,255,255,.9);border-bottom:1px solid var(--zq-line);backdrop-filter:blur(16px)}
.dashboard-shell .zv5-topbar-context b{font-weight:800;letter-spacing:-.025em}
.dashboard-shell .zv5-topbar-context span{font-weight:500;color:var(--zq-ink-500)}
.dashboard-shell .user-chip{border-color:var(--zq-line);box-shadow:var(--zq-shadow-xs)}
.dashboard-shell .user-avatar,.zv5-workspace-avatar{background:linear-gradient(145deg,var(--zq-brand-800),var(--zq-brand-950));color:#fff;font-weight:800}
.dashboard-shell .zv5-stat-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--zq-brand-50);color:var(--zq-brand-800)}
.dashboard-shell .zv5-stat-icon .zq-icon{width:20px;height:20px}
.dashboard-shell .zv5-readiness-item i{display:grid;place-items:center;width:23px;height:23px;border-radius:999px;background:#eef2f2;color:var(--zq-ink-500);font-style:normal}
.dashboard-shell .zv5-readiness-item.done i{background:#e4f7ef;color:var(--zq-success)}

.zv5-feature-icon,.zv5-plan-icon{display:grid;place-items:center;color:var(--zq-brand-800)}
.zv5-feature-icon .zq-icon{width:24px;height:24px}
.zv5-plan-icon .zq-icon{width:26px;height:26px}
.zv5-check,.zv5-x{display:inline-grid!important;place-items:center;flex:0 0 auto;border-radius:999px;font-weight:800;line-height:1}
.zv5-check{width:22px;height:22px;background:#e5f7ef;color:var(--zq-success)}
.zv5-x{width:22px;height:22px;background:#fdebec;color:var(--zq-danger)}
.zv5-check .zq-icon,.zv5-x .zq-icon{width:13px;height:13px}
.zv5-comparison .zv5-check,.zv5-comparison .zv5-x{margin:auto}
.zv5-plan-badge{font-family:inherit;font-weight:800}

.zq-preview-ribbon>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.1)}
.zq-preview-ribbon .zq-icon{width:17px;height:17px}

@media(max-width:780px){
  .dashboard-shell .side-nav a{min-height:48px;font-size:.82rem}
  .dashboard-shell .side-icon{width:32px;height:32px}
}

@media(prefers-reduced-motion:reduce){.btn,.zv5-btn,.icon-btn,.side-nav a,.side-icon{transition:none!important}}

/* Icon integration across menus, ordering and active launch themes */
.dashboard-shell .zv5-user-menu a,.dashboard-shell .zv5-user-menu button,.dashboard-shell .zv5-plan-status a{display:flex;align-items:center;gap:9px}
.dashboard-shell .zv5-user-menu button{width:100%}
.dashboard-shell .zv5-plan-status a .zq-icon{opacity:.9}

.zqt-cafe,.zqt-burger,.zqt-market,.zqa-shell{font-family:var(--zq-font-ar)}
html[dir=ltr] .zqt-cafe,html[dir=ltr] .zqt-burger,html[dir=ltr] .zqt-market,html[dir=ltr] .zqa-shell{font-family:var(--zq-font-en)}
.zq-app-icon,.zq-app-cart,.zqa-icon-btn,.cart-fab,.modal-close,[data-close-cart],[data-close-checkout]{display:inline-grid;place-items:center}
.zq-app-icon .zq-icon,.zqa-icon-btn .zq-icon{width:19px;height:19px}
.zq-app-cart span,.cart-fab>span{display:grid;place-items:center}
.zq-app-cart .zq-icon,.cart-fab .zq-icon{width:20px;height:20px}
.cart-panel header>button .zq-icon,.checkout-card header>button .zq-icon,.modal-close .zq-icon{width:19px;height:19px}
.cart-empty>span{display:grid;place-items:center;width:58px;height:58px;margin-inline:auto;border-radius:18px;background:var(--zq-brand-50);color:var(--zq-brand-800)}
.cart-empty>span .zq-icon{width:28px;height:28px}
.order-type-grid label span{display:flex;align-items:center;gap:8px}
.order-type-grid label span .zq-icon{width:18px;height:18px}
.zq-table-order-context>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--zq-brand-50);color:var(--zq-brand-800)}
.zq-table-order-context>span .zq-icon{width:20px;height:20px}
.qty-control button .zq-icon{width:15px;height:15px}
.zq-theme-cta i{display:grid;place-items:center}
.zq-theme-cta i .zq-icon{width:17px;height:17px;transform:rotate(135deg)}
html[dir=ltr] .zq-theme-cta i .zq-icon{transform:rotate(45deg)}
.zq-market-search>span,.zq-market-quick-actions a>span,.zq-market-bottom-nav :is(a,button)>span{display:grid;place-items:center}
.zq-market-search>span .zq-icon{width:20px;height:20px}
.zq-market-quick-actions a>span .zq-icon,.zq-market-bottom-nav :is(a,button)>span .zq-icon{width:18px;height:18px}
.zq-status-dot{display:inline-block!important;width:8px!important;height:8px!important;border-radius:999px;background:#33c88a;box-shadow:0 0 0 5px rgba(51,200,138,.12)}
.zq-app-branch-option em .zq-icon{width:14px;height:14px}

@media(max-width:780px){
  .cart-fab .zq-icon,.zq-app-cart .zq-icon{width:19px;height:19px}
}

/* Dashboard detail pages */
.stat-icon,.branch-primary-badge,.branch-live-badge,.branch-switcher__icon,.branch-section-note>span{display:inline-flex;align-items:center;justify-content:center}
.stat-icon .zq-icon{width:20px;height:20px}
.branch-primary-badge,.branch-live-badge{gap:6px}
.branch-primary-badge .zq-icon{width:14px;height:14px}
.branch-live-badge .zq-status-dot{width:7px!important;height:7px!important;box-shadow:none}
.branch-live-badge.off .zq-status-dot{background:#9ca8ac}
.branch-switcher__icon .zq-icon{width:15px;height:15px}
.branch-section-note>span{width:38px;height:38px;border-radius:12px;background:var(--zq-brand-50);color:var(--zq-brand-800)}
.branch-section-note>span .zq-icon{width:20px;height:20px}
.zv5-branch-row-icon{display:grid;place-items:center}
.zv5-branch-row-icon .zq-icon{width:16px;height:16px}
.zv5-branch-row>strong{display:grid;place-items:center;color:var(--zq-brand-700)}
.zv5-branch-row>strong .zq-icon{width:16px;height:16px}
.zv5-demo-card-actions .zq-icon,.branch-card__actions .zq-icon,.branch-hero__actions .zq-icon{width:16px;height:16px}
.zq-burger-ticker span{display:grid;place-items:center}
.zq-burger-ticker span .zq-icon{width:18px;height:18px}

/* Archived/legacy theme compatibility so existing customers keep the same icon language */
.search-field>span,.v5-search>span,.menu-actions button,.round-action,.market-action,.signature-open,.market-order,.market-benefits>div{display:inline-flex;align-items:center;justify-content:center}
.search-field>span .zq-icon,.v5-search>span .zq-icon{width:18px;height:18px}
.menu-actions button .zq-icon,.round-action .zq-icon,.market-action .zq-icon{width:18px;height:18px}
.signature-open{gap:6px}.signature-open .zq-icon{width:15px;height:15px}
.market-order{gap:7px}.market-order svg{flex:0 0 auto}
.market-benefits>div{gap:7px}.market-benefits>div .zq-icon{width:17px;height:17px}
.branch-tabs a>span{display:grid;place-items:center}.branch-tabs a>span .zq-icon{width:17px;height:17px}
.branch-switcher-arrow .zq-icon,.branch-tab-arrow .zq-icon{width:18px;height:18px}
.theme-admin-item .summary-meta span{display:inline-flex;align-items:center;gap:5px}
.theme-admin-item .summary-meta .zq-icon{width:15px;height:15px}
.empty-icon .zq-icon{width:24px;height:24px}
.settings-handoff b{display:flex;align-items:center;gap:8px}
