/* =================================================================
   SHARIK — Page-specific styles that complement app.css
   Design tokens and base component styles are in app.css.
   Only page-level unique patterns belong here.
   ================================================================= */

/* Logo mark handling */
.brand-mark.logo-mark{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:var(--r-md);overflow:hidden;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-xs)}
.brand-mark.logo-mark img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 16%}

/* Provider spotlight */
.provider-spotlight{display:flex;gap:1rem;align-items:center;position:relative}.provider-avatar{display:grid;place-items:center;width:58px;height:58px;flex-shrink:0;border-radius:18px;background:#eaf2ff;color:#2563eb;font-size:1.35rem;font-weight:800}.provider-spotlight h3{margin:0}.provider-spotlight bdi{font-size:.78rem;color:var(--muted)}.provider-spotlight p{margin:.5rem 0;color:#526176;font-size:.85rem}.provider-spotlight>div>div{display:flex;gap:.8rem;font-size:.78rem;font-weight:700}.provider-spotlight>i{margin-inline-start:auto;color:#2563eb;font-style:normal}

.provider-handle{font-size:.78rem;color:var(--muted)}

/* Escrow assurance strip */
.assurance-section{background:#0b1f3a;color:#fff}.assurance-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:4rem;align-items:center}.assurance-grid h2{color:#fff}.assurance-grid p{color:#bac8da;max-width:55ch}.assurance-flow{direction:rtl;display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap}.assurance-flow span{padding:1rem 1.2rem;border:1px solid #ffffff24;border-radius:14px;background:#ffffff0b;font-weight:700}.assurance-flow i{color:#7ea9f8;font-style:normal}

/* FAQ section */
.faq-grid{display:grid;grid-template-columns:.65fr 1.35fr;gap:3rem}.faq-grid details{border-bottom:1px solid var(--line);padding:1rem 0}.faq-grid summary{cursor:pointer;color:var(--navy);font-weight:700}.faq-grid details p{color:var(--muted);font-size:.9rem;margin:.7rem 0 0}

.inbox-page .page-head{background:var(--surface);color:var(--navy);border-bottom:1px solid var(--line)}
.inbox-page .page-head p,.inbox-page .breadcrumbs{color:var(--muted)}
.inbox-page .container{max-width:980px}.inbox-page .section{padding-block:1.8rem}
.inbox-search{display:grid;grid-template-columns:1fr auto;gap:.6rem;align-items:end;box-shadow:none}
.inbox-search label{grid-column:1/-1}.inbox-search .field{margin:0}
.inbox-item{padding:1.3rem;gap:1rem}.inbox-item .avatar{width:46px;height:46px;flex-shrink:0;border-radius:14px}
.inbox-item h2{font-size:1.05rem!important}.inbox-item p{font-size:.85rem;color:var(--muted)}
.inbox-unread{display:inline-grid;place-items:center;border-radius:99px;min-width:26px;padding:.05rem .45rem;background:#2563eb;color:#fff;font-size:.75rem}
.inbox-page .chat-head h1{font-size:1.4rem;margin:.4rem 0}.inbox-page .chat-thread{min-height:250px;padding:1.3rem}
.empty-state{text-align:center;padding:2.5rem 1.5rem}.empty-state p{color:var(--muted);max-width:48ch;margin:1rem auto}
.pagination{overflow:auto}.pagination nav{max-width:100%}.pagination svg{width:16px;height:16px}
.pagination a,.pagination span[aria-current]{border-radius:8px}.pagination a:hover{background:var(--soft)}
.resource-page .dash{grid-template-columns:260px minmax(0,1fr);max-width:100%;overflow:hidden}.resource-page .content{min-width:0;max-width:100%}.resource-header h1{font-size:1.65rem;margin:.6rem 0}
.resource-header .search{box-shadow:none;border:0;background:transparent;padding:0;max-width:600px}
.resource-header .field{min-width:0;margin:0}.resource-page th{white-space:nowrap}
.resource-note{font-size:.85rem;color:var(--muted);margin:.5rem 0 1.5rem}
.settings-form{max-width:760px;margin-inline:auto}.settings-form label{display:block;margin-top:1rem}.settings-form label:first-child{margin-top:0}.settings-form label small{display:block;color:var(--muted);font-weight:500}
.projects-page .page-head{background:var(--surface);color:var(--navy);border-bottom:1px solid var(--line)}.projects-page .page-head p,.projects-page .breadcrumbs{color:var(--muted)}.projects-page .section{padding-top:1.8rem}.project-filter{display:grid;grid-template-columns:1fr minmax(210px,.4fr) auto;gap:.8rem;align-items:end;box-shadow:none}.project-filter .field{margin:.3rem 0 0}.project-filter label{font-size:.82rem;font-weight:700}.project-index-list{display:grid;gap:.8rem;margin-top:1rem}.project-index-card{display:block}.project-index-head{display:flex;justify-content:space-between;gap:1rem}.project-index-head h2{margin:.5rem 0 .15rem;font-size:1.15rem!important}.project-index-head p{margin:0;color:var(--muted);font-size:.85rem}.project-index-meta{display:grid;grid-template-columns:repeat(3,1fr) auto;gap:1rem;align-items:end;border-top:1px solid var(--line);margin-top:1rem;padding-top:.8rem}.project-index-meta small,.project-index-meta strong{display:block}.project-index-meta small{color:var(--muted);font-size:.72rem}.project-index-meta strong{font-size:.85rem}.project-index-meta i{font-style:normal;color:var(--blue);font-size:1.2rem}
.resource-page .table-wrap{max-width:100%;overflow:auto}.resource-page .table-wrap td{max-width:260px;overflow-wrap:anywhere;font-size:.85rem}
@media(max-width:900px){.resource-page .dash{display:block}.resource-page .sidebar{display:flex;overflow:auto;gap:.4rem;width:100%;max-width:100vw}.resource-page .side-link{white-space:nowrap;flex-shrink:0}.resource-page .content{padding:1rem;overflow:hidden}.resource-header{display:block}.resource-header .search{display:grid;grid-template-columns:1fr;gap:.5rem;margin-top:1rem}.inbox-page .chat-head{flex-direction:column}}
@media(max-width:600px){.inbox-search{grid-template-columns:1fr}.inbox-search label{grid-column:auto}.inbox-item{padding:1rem}.brand-mark.logo-mark{width:2.65rem;height:2.65rem}.resource-page .content{padding:.75rem}.resource-page .table-wrap{margin-inline:0}}
.card:hover{transform:none;box-shadow:0 8px 24px rgba(15,23,42,.04);border-color:var(--line)}
a.card:hover,.service-card:hover{border-color:#9bbcf8;box-shadow:0 12px 30px rgba(15,23,42,.07)}
.section .card h2,.section .form-card h2{font-size:1.25rem;line-height:1.5}
.card h3{font-size:1.05rem}.card,.project-main,.project-side{min-width:0}
.field{min-height:46px}.field::placeholder{color:#738096;opacity:1}
.btn{font-weight:650}.btn:disabled{opacity:.65;cursor:wait;transform:none}
.breadcrumbs{flex-wrap:wrap}.section>.container>.breadcrumbs{color:#536884}
.file-button:focus-within{outline:3px solid #2563eb;outline-offset:3px}
.file-selection{grid-column:1/-1;color:#536884;font-size:.8rem;overflow-wrap:anywhere;margin:0}
.chat-compose{display:grid;align-items:center;gap:.65rem}.chat-compose .field{margin:0}
.message p{white-space:pre-wrap;overflow-wrap:anywhere}.message-meta{flex-wrap:wrap}
.message-meta span,.message small{font-size:.75rem}.message-meta span{unicode-bidi:plaintext}
.chat-access-note{padding:1rem 1.25rem;margin:0;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}
.project-page .project-heading{background:var(--surface);color:var(--navy);padding:1.8rem 0 0;border-bottom:1px solid var(--line)}
.project-heading .breadcrumbs{color:var(--muted);font-size:.8rem}
.project-title-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.project-title-row .service-top{justify-content:flex-start;font-size:.78rem}
.project-title-row h1{font-size:clamp(1.65rem,3vw,2.4rem);line-height:1.45;margin:.65rem 0 .35rem}
.project-title-row p{color:var(--muted);margin:0}.project-reference{font-variant-numeric:tabular-nums;color:#6c7c92}
.project-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:1.8rem 0 1.4rem;max-width:820px;gap:1.5rem}
.project-overview>div{border-inline-start:2px solid #dbe7fb;padding-inline-start:1rem}
.project-overview span{display:block;font-size:.8rem;color:var(--muted)}
.project-overview strong{display:block;font-size:1.2rem;font-variant-numeric:tabular-nums}
.project-overview small{font-size:.75rem;font-weight:500;color:var(--muted)}
.project-tabs{display:flex;gap:1.8rem;overflow:auto;scrollbar-width:thin}
.project-tabs a{white-space:nowrap;padding:.85rem 0;border-bottom:2px solid transparent;font-size:.9rem;color:#54657d}
.project-tabs a:hover,.project-tabs a:focus{color:var(--blue);border-color:var(--blue)}
.project-page>.footer{margin-top:1rem}.project-page .section{padding:1.8rem 0 3rem}
.project-page .project-grid{grid-template-columns:minmax(0,1fr) 300px;gap:1.4rem}
.project-page .project-main{gap:1.4rem}.project-page .card{padding:1.5rem;border-radius:16px;box-shadow:0 3px 12px #0b1f3a04}
.project-page .chat-card{padding:0}.project-page .section-head{align-items:flex-start;margin-bottom:1rem}
.project-page .section-head p{font-size:.85rem;margin:.4rem 0 0}
.project-page .section-head>strong{font-size:.9rem;white-space:nowrap}
.project-page [id^=project-]{scroll-margin-top:100px}
.project-page .milestone{padding:1.1rem 0 .2rem}.milestone>div:first-child{justify-content:flex-start;flex-wrap:wrap}
.milestone .step-no{flex-shrink:0;background:var(--blue-light);color:var(--blue);font-size:.8rem}
.project-empty{display:flex;align-items:center;gap:1rem;padding:1.4rem 0 .4rem}
.project-empty>span{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;background:var(--soft);border-radius:14px;color:var(--blue);font-size:1.4rem}
.project-empty h3{margin:0}.project-empty p{margin:.3rem 0;color:var(--muted);font-size:.85rem}
.project-page .facts.vertical{margin:1rem 0 0;gap:0}.project-page .facts div{display:flex;justify-content:space-between;gap:.8rem;background:transparent;padding:.8rem 0;border-bottom:1px solid var(--line);border-radius:0}
.project-page .facts div:last-child{border:0}.project-page .facts dd{font-size:.85rem;font-weight:650}
.dispute-panel summary{cursor:pointer;font-weight:650;color:#536079}.dispute-panel p{font-size:.8rem}.dispute-panel[open] summary{margin-bottom:.8rem}
.project-page .chat-head{background:var(--surface);padding:1.3rem 1.5rem}.project-page .chat-head p{max-width:50ch}
.project-page .chat-thread{padding:1.5rem;min-height:210px;background:var(--soft)}
.project-page .chat-empty{border:0;background:transparent;padding:1.2rem}.project-page .chat-empty p{font-size:.9rem}
.project-page .message{border:1px solid var(--line);background:var(--surface)}.project-page .message.mine{background:var(--blue-light);border-color:var(--line)}
.integration-notice{display:block;padding:.7rem .8rem;border:1px solid #f4cf79;border-radius:10px;background:#fff8e7;color:#815d10;font-size:.75rem;line-height:1.7}.revision-history{margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--line)}.revision-history>h3{margin:0 0 .65rem;font-size:.9rem}.revision-history article{padding:.75rem;border-radius:11px;background:var(--soft);margin-top:.55rem}.revision-history article>div{display:flex;align-items:center;justify-content:space-between;gap:.7rem}.revision-history article p{margin:.45rem 0;color:var(--text-2);font-size:.78rem}.revision-history article small{color:var(--muted);font-size:.68rem}.delivery-form{display:grid;gap:.45rem;margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--line)}.delivery-form .field{margin:0 0 .45rem}
@media(max-width:900px){.project-page .project-grid{grid-template-columns:1fr}.project-page .project-side{grid-row:auto}.project-title-row{align-items:flex-start}.project-title-row>.btn{white-space:nowrap}.project-page .project-side{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.project-title-row{flex-direction:column;gap:1rem}.project-title-row>.btn{min-height:40px;font-size:.85rem}.project-overview{gap:.65rem}.project-overview>div{padding-inline-start:.5rem}.project-overview strong{font-size:.94rem}.project-overview span{font-size:.7rem}.project-overview small{display:block}.project-tabs{gap:1.2rem}.project-tabs a{font-size:.8rem}.project-page .card{padding:1.1rem}.project-page .chat-card{padding:0}.project-page .chat-head,.project-page .chat-thread{padding:1.1rem}.project-page .section-head{flex-direction:column;gap:.5rem}.project-page .project-side{grid-template-columns:1fr}.project-page .chat-compose{grid-template-columns:1fr 1fr}.project-page .chat-compose>.field{grid-column:1/-1}.project-page .message{max-width:94%}.project-page .section{padding-top:1rem}.project-page .project-main{gap:1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:600px){.project-filter{grid-template-columns:1fr}.project-index-head{align-items:flex-start}.project-index-meta{grid-template-columns:1fr 1fr}.project-index-meta i{display:none}}
.admin-operation-page .page-head{background:var(--surface);color:var(--navy);border-bottom:1px solid var(--line)}.admin-operation-page .section{padding-top:1.8rem}.admin-filter{display:grid;grid-template-columns:1fr minmax(200px,.35fr) auto;gap:.7rem;align-items:center;box-shadow:none}.admin-filter .field{margin:0}.admin-user-list{display:grid;gap:.75rem;margin-top:1rem}.admin-user-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:1rem;align-items:center}.admin-user-row h2{font-size:1rem!important;margin:0}.admin-user-row p{font-size:.8rem;color:var(--muted);margin:.2rem 0}.admin-user-row .chip{font-size:.68rem;padding:.15rem .45rem}.admin-editor{max-width:800px;margin-inline:auto}.role-choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem;margin-block:.6rem 1.3rem}.role-choice-grid label{display:flex;align-items:center;gap:.7rem;border:1px solid var(--line);padding:.8rem;border-radius:12px;cursor:pointer}.role-choice-grid label:has(input:checked){border-color:#80aaf6;background:var(--blue-light)}.role-choice-grid strong,.role-choice-grid small{display:block}.role-choice-grid small{direction:ltr;color:var(--muted);font-size:.7rem}.editor-actions{display:flex;justify-content:flex-end;gap:.6rem;border-top:1px solid var(--line);padding-top:1rem}
@media(max-width:600px){.admin-filter{grid-template-columns:1fr}.admin-user-row{grid-template-columns:auto 1fr}.role-choice-grid{grid-template-columns:1fr}.editor-actions{display:grid}.editor-actions .btn{width:100%}}
.status-tabs{display:flex;gap:.5rem;overflow:auto;margin-bottom:1rem}.status-tabs a{padding:.6rem .9rem;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);white-space:nowrap;font-size:.82rem}.status-tabs a.active{background:var(--blue);color:#fff;border-color:var(--blue)}.identity-review-list{display:grid;gap:.8rem}.identity-review header{display:flex;justify-content:space-between;gap:1rem}.identity-review h2{margin:0;font-size:1rem!important}.identity-review header p{margin:.25rem 0;color:var(--muted);font-size:.8rem}.identity-meta{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;padding:.8rem 0;border-block:1px solid var(--line);margin:.8rem 0;font-size:.8rem}.review-reason{padding:.8rem;border-radius:10px;background:#fff1f2;color:#9f1239}
@media(max-width:600px){.hero-primary-actions{justify-content:center}.assurance-grid,.faq-grid{grid-template-columns:1fr;gap:1.5rem}.assurance-flow{gap:.45rem}.assurance-flow span{padding:.7rem}}
.taxonomy-layout{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}.taxonomy-panel>header,.role-admin-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding-bottom:1rem}.taxonomy-panel h2,.role-admin-card h2{margin:.15rem 0 0}.taxonomy-panel header small,.role-admin-card header small{color:var(--muted)}.taxonomy-create{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;padding:1rem 0}.taxonomy-create .field{margin:0}.taxonomy-create select{grid-column:1/-1}.taxonomy-create .btn{grid-column:1/-1}.taxonomy-list{display:grid;gap:.5rem;max-height:720px;overflow:auto;padding-inline-end:.2rem}.taxonomy-item{border:1px solid var(--line);border-radius:12px;background:var(--surface)}.taxonomy-item summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem;cursor:pointer}.taxonomy-item summary span:first-child{display:grid}.taxonomy-item summary small{color:var(--muted);font-size:.7rem}.taxonomy-item summary span:last-child{font-size:.72rem;color:var(--muted);white-space:nowrap}.taxonomy-edit{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;padding:.8rem;border-top:1px solid var(--line);background:var(--soft)}.taxonomy-edit label{font-size:.75rem;font-weight:700}.taxonomy-edit .field{margin:.2rem 0 0}.taxonomy-edit .check-line{display:flex;align-items:center;gap:.5rem}.role-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.role-admin-card{display:flex;flex-direction:column}.permission-preview{display:flex;gap:.4rem;flex-wrap:wrap;min-height:90px;padding:1rem 0}.permission-preview span{background:#eef4ff;color:#295baf;border-radius:99px;padding:.25rem .55rem;font-size:.7rem}.permission-preview em{color:var(--muted);font-style:normal;font-size:.82rem}.role-admin-card .btn{margin-top:auto}
@media(max-width:900px){.taxonomy-layout{grid-template-columns:1fr}.role-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.taxonomy-create,.taxonomy-edit,.role-admin-grid{grid-template-columns:1fr}.taxonomy-item summary{align-items:flex-start}.taxonomy-item summary span:last-child{white-space:normal;text-align:left}}

/* =================================================================
   SHARIK — Page bridge 2026.09
   The base shell/design system now lives in sharik-app.css.
   This bridge intentionally avoids redefining global brand tokens or
   forcing black sidebars. It only styles page-level compositions.
   ================================================================= */

/* Theme controls */
.theme-toggle,
.sidebar-theme {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-2);
  padding: .45rem .7rem;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.theme-toggle:hover,.sidebar-theme:hover{background:var(--soft);border-color:#CBD5E1;color:var(--text)}
.theme-moon{display:inline}.theme-sun{display:none}
html[data-theme="dark"] .theme-moon{display:none}
html[data-theme="dark"] .theme-sun{display:inline}
.sidebar-theme{width:100%;justify-content:flex-start}

/* Marketplace hero refinement */
.home-page .hero {
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  padding: clamp(4rem,8vw,7rem) 0 clamp(3.5rem,7vw,6rem);
  background:
    radial-gradient(circle at 12% 14%, rgba(37,99,235,.08), transparent 30%),
    radial-gradient(circle at 88% 62%, rgba(8,145,178,.055), transparent 34%),
    linear-gradient(180deg,#FFFFFF 0%,#F6F9FE 100%);
}
.home-page .hero-grid{grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);gap:clamp(2.5rem,6vw,5.5rem);align-items:center}
.home-page .hero h1{font-size:clamp(3rem,5vw,4.9rem);line-height:1.08;max-width:12ch;margin:1rem 0 1.15rem;letter-spacing:0!important}
.home-page .hero p{font-size:clamp(1rem,1.4vw,1.12rem);line-height:1.9;color:var(--text-2)}
.product-preview{position:relative;min-height:500px;display:grid;align-items:center}
.preview-glow{position:absolute;inset:8%;background:radial-gradient(circle,rgba(37,99,235,.17),rgba(8,145,178,.06) 38%,transparent 68%);filter:blur(16px)}
.preview-window{position:relative;z-index:2;background:rgba(255,255,255,.96);border:1px solid #D9E4F0;border-radius:24px;padding:1.15rem;box-shadow:0 30px 80px rgba(13,40,76,.14)}

/* Authenticated page shell — no public-header offsets and no black rail */
.account-mode{background:var(--page)}
.account-mode .topbar{margin-inline-start:0!important;background:var(--topbar-bg)!important}
.account-mode .topbar .nav{max-width:none;width:100%}
.account-shell{display:grid;grid-template-columns:minmax(0,1fr) var(--sidebar-width);min-height:100vh;background:var(--page)}
.account-main{grid-column:1;min-width:0}

/* Backoffice uses same visual language, slightly denser */
.backoffice-page{background:var(--page)}
.backoffice-shell{display:grid;grid-template-columns:minmax(0,1fr) 270px;min-height:100vh}
.admin-rail{position:fixed;inset-block:0;right:0;left:auto;width:270px;padding:0;overflow:auto;z-index:60;display:flex;flex-direction:column;background:var(--sidebar-bg);color:var(--text);border-inline-start:1px solid var(--line)}
.admin-profile{display:flex;align-items:center;gap:.75rem;padding:.85rem;border:1px solid var(--line);border-radius:14px;margin:.7rem;background:var(--soft)}

@media(max-width:900px){
  .home-page .hero{min-height:auto}
  .home-page .hero-grid{grid-template-columns:1fr;gap:2.5rem}
  .product-preview{width:min(620px,100%);margin:auto}
  .account-shell,.backoffice-shell{grid-template-columns:1fr}
  .account-main{grid-column:1}
  .account-mode .topbar{margin-inline-start:0!important}
  .theme-toggle b{display:none}.theme-toggle{width:42px;padding:.4rem}
}
@media(max-width:600px){
  .home-page .hero{padding:2.8rem 0 3.2rem}
  .home-page .hero h1{font-size:clamp(2.35rem,12vw,3.15rem);max-width:13ch;margin-inline:auto}
  .home-page .hero p{line-height:1.78}
  .product-preview{min-height:390px}
  .preview-window{padding:.8rem;border-radius:18px}
}

.integration-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:1rem;align-items:start}.integration-list{display:grid}.integration-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:.8rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--line)}.integration-list article:last-child{border:0}.integration-logo{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf4ff;color:var(--blue);font-weight:900}.integration-list h3{margin:0;font-size:.9rem}.integration-list p{margin:0;color:var(--muted);font-size:.7rem}.integration-form label{font-weight:800;font-size:.78rem}.conversation-audit-list{display:grid;gap:.7rem}.conversation-audit-list>a{display:flex;align-items:center;gap:1rem;color:inherit}.conversation-audit-list>a>div:nth-child(2){flex:1;min-width:0}.conversation-audit-list h2{font-size:1rem;margin:0}.conversation-audit-list p,.conversation-audit-list small{display:block;margin:.1rem 0;color:var(--muted);font-size:.72rem}.conversation-avatars{display:flex;direction:ltr}.conversation-avatars span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;margin-left:-8px;border:2px solid #fff;background:#dce8fb;color:var(--navy);font-weight:900}.admin-chat-review{padding:0;overflow:hidden}.admin-chat-review .chat-thread{max-height:68vh;min-height:420px}.admin-chat-review .chat-message:nth-child(even){justify-content:flex-end}.dark-breadcrumbs{color:var(--blue)}.row-actions{display:flex;gap:.4rem}
.message-files{display:grid;gap:.5rem;margin:.65rem 0}.message-image{display:block;overflow:hidden;border-radius:12px;background:#e5e7eb}.message-image img{display:block;max-width:100%;max-height:320px;object-fit:contain}.message-audio{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.message-audio audio{max-width:100%;height:38px}.message-audio a{font-size:.7rem;color:var(--blue);font-weight:800}.message-document{display:flex;align-items:center;gap:.6rem;padding:.65rem;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.message-document>span{font-size:1.2rem}.message-document strong,.message-document small{display:block;font-size:.72rem}.message-document small{color:var(--muted)}.username-field{display:flex;align-items:center;direction:ltr;border:1px solid #cbd5e1;border-radius:.75rem;background:var(--surface);margin:.35rem 0 .25rem}.username-field:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.13)}.username-field>span{padding-left:.8rem;color:var(--muted)}.username-field .field{border:0;box-shadow:none;margin:0;direction:ltr}.field-help{display:block;color:var(--muted);margin-bottom:1rem;font-size:.72rem}

/* Public layout: shared marketplace navigation and footer. */
.public-page{--navy:#0b1f3a;--blue:#2563eb;--blue-700:#1d4ed8;--surface:#f8fafc;--line:#e2e8f0;background:var(--surface);color:#1e293b}
.public-topbar{background:var(--topbar-bg);border-bottom:1px solid var(--line)}
.public-topbar .nav{min-height:76px;position:relative}
.public-nav-menu{min-width:0}
.public-header-search{display:flex;align-items:center;gap:.45rem;min-width:180px;max-width:240px;margin-inline-start:auto;border:1px solid var(--line);border-radius:10px;padding:.45rem .65rem;background:var(--soft)}
.public-header-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgb(37 99 235 / 14%)}
.public-header-search svg,.public-topbar .header-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.public-header-search svg{color:#64748b}
.public-header-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:.875rem}
.public-topbar .nav-actions{margin-inline-start:0;align-items:center}
.public-topbar .header-icon{background:var(--surface)}
.public-account-menu{position:relative}
.public-account-menu summary{display:flex;align-items:center;gap:.5rem;min-height:44px;padding:.25rem .45rem;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--navy);font-weight:700;cursor:pointer;list-style:none}
.public-account-menu summary::-webkit-details-marker{display:none}
.public-account-menu summary .avatar{width:34px;height:34px}
.public-account-menu>div{position:absolute;z-index:40;inset-block-start:calc(100% + .55rem);inset-inline-end:0;display:grid;width:210px;padding:.45rem;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 18px 42px rgb(15 23 42 / 14%)}
.public-account-menu>div a,.public-account-menu>div button{display:block;width:100%;border:0;border-radius:8px;padding:.65rem .75rem;background:transparent;color:var(--text);text-align:start;font:inherit;font-size:.875rem;cursor:pointer}
.public-account-menu>div a:hover,.public-account-menu>div button:hover,.public-account-menu>div a:focus-visible,.public-account-menu>div button:focus-visible{background:var(--soft);color:var(--blue)}
.public-account-menu>div form{border-top:1px solid var(--line);margin-top:.25rem;padding-top:.25rem}
.public-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem}
.public-footer .footer-about{display:flex;flex-direction:column;align-items:flex-start}
.public-footer .footer-about p{margin-block:.9rem 0}
.public-footer .brand span:last-child{font-size:1.25rem}
.public-page [id]{scroll-margin-top:96px}
@media(max-width:1100px){.public-header-search{display:none}.public-footer .footer-grid{grid-template-columns:1.2fr repeat(3,.8fr);gap:1.5rem}}
@media(max-width:900px){.public-nav-menu{inset-inline:0;inset-block-start:100%;right:auto;left:auto}.public-nav-menu .public-header-search{display:flex;max-width:none;margin:0 0 .8rem}.public-nav-menu .nav-actions{display:flex;flex-wrap:wrap}.public-account-menu{margin-inline-start:auto}}
@media(max-width:700px){.public-footer .footer-grid{grid-template-columns:1fr 1fr}.public-footer .footer-about{grid-column:1/-1}.public-account-menu>div{inset-inline-end:auto;inset-inline-start:0}}
@media(max-width:480px){.public-footer .footer-grid{grid-template-columns:1fr}.public-footer .footer-about{grid-column:auto}.public-nav-menu .nav-actions>.btn{flex:1}.public-account-menu{width:100%;margin:0}.public-account-menu summary{justify-content:center}.public-account-menu>div{position:static;width:100%;margin-top:.5rem;box-shadow:none}}

/* Dedicated authenticated dashboard layout. */
.dashboard-layout .account-main{min-width:0;min-height:100vh;margin:0}
.dashboard-layout .dashboard-topbar{margin-inline-start:0;background:var(--topbar-bg)}
.dashboard-topbar .nav{width:calc(100% - 2rem);max-width:1500px;margin-inline:auto;min-height:72px}
.dashboard-site-link{color:var(--muted);font-size:.82rem;font-weight:700}
.dashboard-site-link:hover{color:var(--blue)}
.dashboard-top-actions{display:flex;align-items:center;gap:.5rem;margin-inline-start:auto}
.dashboard-topbar .header-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dashboard-user{display:flex;align-items:center;gap:.55rem;min-height:44px;padding:.25rem .5rem;border-radius:10px;color:var(--navy)}
.dashboard-user:hover{background:var(--soft)}
.dashboard-user .avatar{width:34px;height:34px;flex:0 0 34px}
.dashboard-user b,.dashboard-user small{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-user b{font-size:.78rem}.dashboard-user small{font-size:.65rem;color:var(--muted)}
.dashboard-layout main>.flash{margin-block-start:1rem}
@media(max-width:900px){.dashboard-layout .account-main{margin:0}.dashboard-site-link{display:none}.dashboard-topbar .nav{width:calc(100% - 1.25rem)}.dashboard-topbar .sidebar-launch{margin-inline-end:0}.dashboard-user span:last-child{display:none}}
@media(max-width:520px){.dashboard-topbar .header-icon{width:38px;height:38px}.dashboard-top-actions{gap:.25rem}.dashboard-user{padding:.15rem}.dashboard-topbar .theme-toggle{display:none}}
.latest-requests-section{background:#f8fafc}.home-request-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.home-request-list .request-card{display:flex;flex-direction:column;align-items:stretch}.home-request-list .request-card>div{width:100%}.home-request-list .request-card .service-top{align-items:flex-start}.home-request-list .request-card h3{margin:.85rem 0}.home-request-list .request-budget{display:block;margin-top:auto;padding-top:1rem;border-top:1px solid var(--line)}
@media(max-width:900px){.home-request-list{grid-template-columns:1fr}}

/* Authentication layout and registration wizard. */
.auth-layout{min-height:100vh;background:linear-gradient(135deg,#f8fafc,#eaf2ff);color:#1e293b}
.auth-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:min(1120px,calc(100% - 2rem));min-height:76px;margin-inline:auto}
.auth-header>a:last-child{color:#475569;font-size:.875rem;font-weight:700}
.auth-layout main{padding-block:1rem 4rem}
.auth-layout .auth-section{background:transparent}
.auth-layout .auth-wrap{width:min(1040px,calc(100% - 2rem));margin-inline:auto}
.auth-layout .auth-flash{width:min(720px,calc(100% - 2rem));margin:0 auto 1rem}
.password-field{position:relative}.password-field .field{padding-inline-end:4.5rem}.password-toggle{position:absolute;inset-inline-end:.45rem;inset-block-start:50%;translate:0 -50%;border:0;border-radius:8px;padding:.35rem .55rem;background:#eaf2ff;color:var(--blue);font:inherit;font-size:.72rem;font-weight:800;cursor:pointer}.password-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.register-card{max-width:620px}
.register-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem;margin-bottom:1.5rem}
.register-heading>div>span{color:var(--blue);font-size:.78rem;font-weight:800}.register-heading h2{margin:.2rem 0 0}
.register-progress{display:flex;gap:.75rem;margin:0;padding:0;list-style:none;color:#64748b;font-size:.72rem}
.register-progress li{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.4rem;white-space:nowrap}
.register-progress li span{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;background:#fff;font-weight:800}
.register-progress li.active{color:var(--blue);font-weight:800}.register-progress li.active span{border-color:var(--blue);background:#eaf2ff}
.register-step{min-width:0;margin:0;padding:0;border:0}.register-step[hidden]{display:none}.register-step legend{margin-bottom:.35rem;color:var(--navy);font-size:1.15rem;font-weight:800}
.role-option-grid{display:grid;gap:.7rem;margin:1rem 0 1.4rem}
.role-option-grid label{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
.role-option-grid label:has(input:checked){border-color:var(--blue);background:#eaf2ff;box-shadow:0 0 0 2px rgb(37 99 235 / 10%)}
.role-option-grid input{margin-top:.35rem}.role-option-grid b,.role-option-grid small{display:block}.role-option-grid small{margin-top:.2rem;color:#64748b;font-size:.78rem}
.terms-check{align-items:flex-start}.register-actions{display:flex;justify-content:flex-end;gap:.65rem;margin-top:1rem}
@media(max-width:760px){.auth-layout .auth-wrap{grid-template-columns:1fr;gap:1.5rem}.auth-layout .auth-copy{text-align:center}.register-card{margin-inline:auto}}
@media(max-width:560px){.auth-header .brand span:last-child{display:none}.register-heading{display:block}.register-progress{margin-top:1rem;justify-content:space-between}.register-progress li{white-space:normal}.register-card{padding:1rem}.register-actions .btn{flex:1}}

/* Client dashboard. */
.client-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:1rem;margin-top:1rem}
.client-dashboard-grid .workspace-panel{min-width:0}.client-projects-panel{grid-row:span 2}
.client-action-row{display:grid;grid-template-columns:auto minmax(160px,1fr) auto minmax(100px,.55fr) auto;align-items:center;gap:.8rem;padding:1rem 0;border-bottom:1px solid var(--line)}
.client-action-row:last-child{border-bottom:0}.client-action-row h3,.client-offer h3,.client-conversations h3{margin:0;font-size:.85rem}.client-action-row small{display:block;color:var(--muted);font-size:.7rem}.client-action-row>strong{color:var(--blue);font-size:.72rem}
.client-progress b{display:block;color:var(--navy);font-size:.72rem}.client-progress i{display:block;height:5px;margin-top:.35rem;overflow:hidden;border-radius:99px;background:#e2e8f0}.client-progress i span{display:block;width:var(--progress,0%);height:100%;border-radius:inherit;background:var(--blue)}
.client-offer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.8rem 0;border-bottom:1px solid var(--line)}.client-offer:last-child{border:0}.client-offer>div>a{display:block;margin-top:.15rem;color:#64748b;font-size:.7rem}.client-offer>strong{text-align:end;color:var(--navy);font-size:.8rem}.client-offer>strong small{display:block;color:var(--muted);font-size:.65rem}
.client-conversations>a{display:flex;align-items:center;gap:.65rem;padding:.7rem 0;border-bottom:1px solid var(--line)}.client-conversations>a:last-child{border:0}.client-conversations>a>div{flex:1;min-width:0}.client-conversations p{margin:.12rem 0;color:var(--muted);font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.client-conversations>a>small{color:var(--muted);font-size:.65rem;white-space:nowrap}
.client-transactions>div:not(.panel-head):not(.quiet-state){display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.72rem 0;border-bottom:1px solid var(--line)}.client-transactions>div:last-child{border:0}.client-transactions b,.client-transactions small{display:block}.client-transactions b{font-size:.78rem}.client-transactions small{color:var(--muted);font-size:.65rem}.client-transactions>div>strong{font-size:.78rem;direction:ltr}.client-transactions .credit{color:#15803d}.client-transactions .debit{color:#b91c1c}
@media(max-width:1100px){.client-dashboard-grid{grid-template-columns:1fr}.client-projects-panel{grid-row:auto}}
@media(max-width:700px){.client-action-row{grid-template-columns:auto minmax(0,1fr) auto}.client-action-row .client-progress{grid-column:2/-1}.client-action-row>strong{grid-column:2/-1}.client-dashboard .workspace-actions{display:grid;width:100%}.client-dashboard .workspace-actions .btn{width:100%}}

/* Public category discovery: database-driven mega menu and directory. */
/* Public category directory. */
.category-icon svg{width:26px;height:26px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.home-page .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.home-page .category-card{align-items:flex-start}.home-page .category-card p{margin:.2rem 0;color:var(--muted);font-size:.72rem}.home-page .category-card div>span{display:block;margin-top:.55rem}
.category-hero,.category-detail-head{position:relative;overflow:hidden;background:linear-gradient(140deg,#f8fbff,#edf4ff);border-bottom:1px solid #dce8f8}.category-hero:after,.category-detail-head:after{content:"";position:absolute;width:420px;height:420px;inset-inline-end:-140px;inset-block-start:-260px;border:70px solid rgb(37 99 235 / 6%);border-radius:50%}.category-hero>.container,.category-detail-head>.container{position:relative;z-index:1;padding-block:3.5rem}.breadcrumbs{display:flex;align-items:center;gap:.5rem;margin-bottom:1.25rem;color:#64748b;font-size:.78rem}.breadcrumbs a:hover{color:var(--blue)}.category-hero h1,.category-detail-head h1{margin:.65rem 0;color:var(--navy);font-size:clamp(2.2rem,5vw,4rem);letter-spacing:-.05em}.category-hero p,.category-detail-head p{max-width:680px;margin:.5rem 0;color:#526278;font-size:1.02rem}.category-search{display:flex;align-items:center;gap:.6rem;width:min(680px,100%);margin-top:1.5rem;padding:.5rem;border:1px solid #cddcf1;border-radius:14px;background:#fff;box-shadow:0 16px 38px rgb(23 58 102 / 8%)}.category-search>span{padding-inline-start:.55rem;color:#64748b}.category-search input{flex:1;min-width:0;border:0;outline:0;background:transparent}.category-directory{background:#fff}.category-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.category-directory-card{display:flex;flex-direction:column;min-height:295px;padding:1.25rem;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm);transition:.2s}.category-directory-card:hover{border-color:#bcd3f7;box-shadow:var(--shadow-md);transform:translateY(-3px)}.category-directory-card header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.category-directory-card .category-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#eaf2ff;color:var(--blue)}.category-directory-card h2{margin:0;font-size:1.05rem}.category-directory-card header p{margin:0;color:var(--muted);font-size:.7rem}.icon-link{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f1f5f9;color:var(--blue);font-weight:900}.category-child-links{display:grid;gap:.12rem;padding-top:.7rem}.category-child-links>a{display:flex;justify-content:space-between;gap:.5rem;padding:.38rem .2rem;color:#475569;font-size:.78rem}.category-child-links>a:hover{color:var(--blue)}.category-child-links>a span{color:#94a3b8}.category-more{margin-top:auto;padding-top:.7rem;color:var(--blue);font-size:.72rem;font-weight:800}.category-bottom-cta{background:#0b1f3a;color:#dbeafe}.category-bottom-cta>.container{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding-block:3rem}.category-bottom-cta h2{max-width:720px;margin:.5rem 0 0;color:#fff;font-size:clamp(1.5rem,3vw,2.25rem)}
.category-title-row{display:flex;align-items:center;gap:1.2rem}.category-icon-large{display:grid;place-items:center;flex:0 0 80px;width:80px;height:80px;border-radius:22px;background:#fff;color:var(--blue);box-shadow:0 16px 35px rgb(23 58 102 / 10%)}.category-icon-large svg{width:40px;height:40px}.category-actions{display:flex;gap:.65rem;margin-top:1.5rem}.category-specialties{padding-block:4rem;background:#fff}.specialty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.specialty-grid>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:#fff;transition:.18s}.specialty-grid>a:hover{border-color:#9bbcf3;background:#f8fbff;transform:translateY(-2px)}.specialty-grid>a>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eaf2ff;color:var(--blue);font-weight:900}.specialty-grid h3{margin:0;color:var(--navy);font-size:.88rem}.specialty-grid p{margin:.15rem 0;color:var(--muted);font-size:.68rem}.specialty-grid i{color:var(--blue);font-style:normal}.category-market-content{background:#f8fafc}.category-empty{border:1px dashed #cbd5e1;border-radius:16px;background:#fff}.category-requests{background:#fff}
@media(max-width:1100px){.home-page .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.category-directory-grid,.specialty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.home-page .category-grid,.category-directory-grid,.specialty-grid{grid-template-columns:1fr}.category-hero>.container,.category-detail-head>.container{padding-block:2.5rem}.category-search{display:grid;grid-template-columns:auto minmax(0,1fr)}.category-search .btn{grid-column:1/-1;width:100%}.category-title-row{align-items:flex-start}.category-icon-large{flex-basis:58px;width:58px;height:58px;border-radius:17px}.category-icon-large svg{width:29px;height:29px}.category-actions,.category-bottom-cta>.container{align-items:stretch;flex-direction:column}.category-actions{display:grid}.category-directory-card{min-height:0}}

/* Service marketplace and checkout. */
.services-hero{background:linear-gradient(135deg,#0b1f3a,#123d70);color:#dbeafe}.services-hero>.container{padding-block:3.2rem}.services-hero .breadcrumbs{color:#a9c4e8}.services-hero h1{margin:.55rem 0;color:#fff;font-size:clamp(2.35rem,5vw,4.15rem);letter-spacing:-.05em}.services-hero p{margin:.4rem 0;color:#c8d9ef;font-size:1.02rem}.services-search{display:flex;align-items:center;gap:.55rem;width:min(720px,100%);margin-top:1.5rem;padding:.5rem;border:1px solid rgb(255 255 255 / 18%);border-radius:14px;background:#fff;box-shadow:0 18px 46px rgb(0 0 0 / 18%);color:#64748b}.services-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#1e293b}.service-browse-section{padding-block:3rem;background:#f8fafc}.service-browser{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.4rem;align-items:start}.service-browser>aside{position:sticky;inset-block-start:94px}.service-filters{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm);overflow:hidden}.service-filters>summary{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.1rem;border-bottom:1px solid var(--line);list-style:none;color:var(--navy);font-weight:850;cursor:pointer}.service-filters>summary::-webkit-details-marker{display:none}.service-filters>summary b{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-inline-start:.35rem;border-radius:99px;background:#eaf2ff;color:var(--blue);font-size:.68rem}.service-filters>summary i{display:none;font-style:normal}.filter-body{display:block;padding:.2rem 1rem 1rem}.filter-group{margin:0;padding:1rem 0;border:0;border-bottom:1px solid var(--line)}.filter-group>label,.filter-group>legend{display:block;margin-bottom:.55rem;color:#334155;font-size:.78rem;font-weight:850}.filter-group .field{width:100%;margin:0;background:#f8fafc}.filter-choice{display:flex;align-items:center;gap:.55rem;margin:.45rem 0;color:#526278;font-size:.78rem;cursor:pointer}.filter-choice input,.verified-filter input{accent-color:var(--blue)}.money-filter{position:relative}.money-filter span{position:absolute;inset-inline-end:.7rem;inset-block-start:50%;transform:translateY(-50%);color:#64748b;font-size:.7rem}.money-filter input{padding-inline-end:3rem}.verified-filter{display:flex;align-items:center;gap:.55rem;padding:1rem 0;color:#334155;font-size:.75rem;font-weight:750}.filter-actions{display:grid;gap:.55rem}.filter-actions>a{text-align:center;color:#64748b;font-size:.72rem}.results-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1rem}.results-toolbar>div>span{color:var(--blue);font-size:.72rem;font-weight:850}.results-toolbar h2{margin:.15rem 0;color:var(--navy);font-size:1.55rem}.results-toolbar form{display:flex;align-items:center;gap:.55rem}.results-toolbar label{color:#64748b;font-size:.72rem}.results-toolbar select{min-height:40px;border:1px solid var(--line);border-radius:10px;padding:.4rem .65rem;background:#fff;color:#334155}.service-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.service-market-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow-sm);transition:.2s}.service-market-card:hover{border-color:#a9c5f8;box-shadow:var(--shadow-md);transform:translateY(-4px)}.service-card-cover{position:relative;display:grid;place-items:center;min-height:160px;overflow:hidden;background:linear-gradient(145deg,#eef5ff,#dce9fb)}.service-card-pattern{position:absolute;width:190px;height:190px;border:30px solid rgb(37 99 235 / 7%);border-radius:50%;inset-inline-end:-55px;inset-block-start:-80px}.service-card-icon{position:relative;display:grid;place-items:center;width:62px;height:62px;border:1px solid rgb(255 255 255 / 80%);border-radius:19px;background:rgb(255 255 255 / 78%);color:var(--blue);box-shadow:0 12px 30px rgb(30 64 175 / 10%)}.service-card-icon svg{width:30px;height:30px;stroke:currentColor;stroke-width:1.6}.service-type-badge,.service-popular-badge{position:absolute;inset-block-start:.75rem;border-radius:99px;padding:.25rem .55rem;background:rgb(255 255 255 / 88%);color:#475569;font-size:.65rem;font-weight:850}.service-type-badge{inset-inline-start:.75rem}.service-popular-badge{inset-inline-end:.75rem;background:#0b1f3a;color:#fff}.service-card-content{display:flex;flex:1;flex-direction:column;padding:1rem}.service-card-provider{display:flex;align-items:center;gap:.4rem;color:#64748b;font-size:.7rem}.service-card-provider .avatar{width:27px;height:27px;font-size:.65rem}.service-card-provider .verified{width:16px;height:16px;font-size:.56rem}.service-market-card h3{margin:.75rem 0 .55rem;color:var(--navy);font-size:.93rem;line-height:1.65}.service-card-rating{display:flex;align-items:center;gap:.3rem;min-height:25px;color:#d59608;font-size:.72rem}.service-card-rating small{color:#64748b}.service-card-rating .new-provider{color:#64748b}.service-market-card footer{display:flex;align-items:flex-end;justify-content:space-between;gap:.55rem;margin-top:auto;padding-top:.8rem;border-top:1px solid var(--line);color:#64748b;font-size:.65rem}.service-market-card footer strong{color:var(--navy);font-size:.9rem;text-align:end}.service-market-card footer strong small{display:block;color:#64748b;font-size:.6rem;font-weight:500}.service-empty{border:1px dashed #cbd5e1;border-radius:18px;background:#fff}.alert-warning{margin-bottom:1rem;border:1px solid #f6d599;background:#fff8e7;color:#8a5708}
.service-detail-head{background:linear-gradient(145deg,#f8fbff,#edf4ff);border-bottom:1px solid #dce8f8}.service-detail-head>.container{padding-block:2.5rem}.service-heading-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:2rem}.service-detail-head h1{max-width:900px;margin:.65rem 0;color:var(--navy);font-size:clamp(2rem,4vw,3.25rem);line-height:1.35;letter-spacing:-.045em}.service-owner-line{display:inline-flex;align-items:center;gap:.55rem;margin-top:.5rem;color:#475569}.service-owner-line small,.service-owner-line b{display:block}.service-owner-line small{font-size:.63rem;color:#64748b}.service-owner-line b{font-size:.78rem}.service-proof{display:grid;grid-template-columns:repeat(3,1fr);min-width:360px;border:1px solid #d8e4f4;border-radius:15px;background:rgb(255 255 255 / 75%)}.service-proof>div{padding:.85rem;text-align:center;border-inline-end:1px solid #d8e4f4}.service-proof>div:last-child{border:0}.service-proof strong,.service-proof span{display:block}.service-proof strong{color:var(--navy);font-size:1.25rem}.service-proof span{color:#64748b;font-size:.63rem}.service-detail-section{padding-block:2.5rem}.service-detail-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,.65fr);gap:1.25rem;align-items:start}.service-detail-layout>main{display:grid;gap:1rem}.service-content-card,.checkout-card{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}.service-content-card{padding:1.5rem}.service-content-card>h2,.content-card-head h2{margin:0;color:var(--navy);font-size:1.3rem}.service-description{margin-top:1rem;color:#475569;line-height:2}.content-card-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem}.content-card-head>div>span{color:var(--blue);font-size:.68rem;font-weight:850}.content-card-head>a{color:var(--blue);font-size:.72rem;font-weight:800}.package-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.package-comparison>article{display:flex;flex-direction:column;min-height:220px;padding:1rem;border:1px solid var(--line);border-radius:14px;background:#f9fbfe}.package-comparison header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.package-comparison header>span{border-radius:99px;background:#eaf2ff;color:var(--blue);padding:.2rem .45rem;font-size:.62rem;font-weight:850}.package-comparison header>strong{color:var(--navy);font-size:.8rem}.package-comparison h3{margin:1rem 0 .25rem;color:var(--navy);font-size:.9rem}.package-comparison p{margin:.2rem 0;color:#64748b;font-size:.72rem}.package-comparison footer{display:flex;justify-content:space-between;gap:.5rem;margin-top:auto;padding-top:.8rem;color:#526278;font-size:.66rem}.provider-summary-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.9rem}.provider-summary .provider-avatar{width:64px;height:64px;font-size:1.3rem}.provider-summary h2{margin:.2rem 0;color:var(--navy);font-size:1.15rem}.provider-summary p{margin:0;color:#64748b;font-size:.75rem}.provider-summary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}.provider-summary-stats span{color:#64748b;font-size:.7rem}.provider-summary-stats b{display:block;color:var(--navy);font-size:1rem}.service-review{padding:1rem 0;border-top:1px solid var(--line)}.service-review>div{display:flex;align-items:center;gap:.55rem}.service-review b,.service-review small{display:block}.service-review b{font-size:.78rem}.service-review small{color:#64748b;font-size:.63rem}.service-review .review-stars{display:block;margin:.6rem 0 .2rem;color:#e0a10a;font-size:.72rem}.service-review p{margin:.2rem 0;color:#475569;font-size:.78rem}.service-checkout{position:sticky;inset-block-start:94px}.checkout-card{overflow:hidden}.checkout-card>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;border-bottom:1px solid var(--line)}.checkout-card>header span{color:var(--blue);font-size:.65rem;font-weight:850}.checkout-card>header h2{margin:.15rem 0;color:var(--navy);font-size:1.05rem}.save-service{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#e11d48;font-size:1.25rem;cursor:pointer}.checkout-card>form{padding:1rem}.checkout-packages{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.checkout-packages label{position:relative;display:grid;min-width:0;cursor:pointer}.checkout-packages input{position:absolute;opacity:0}.checkout-packages label>span{display:grid;place-items:center;min-height:66px;padding:.55rem;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:center}.checkout-packages label>span b,.checkout-packages label>span small{display:block}.checkout-packages label>span b{color:var(--navy);font-size:.72rem}.checkout-packages label>span small{color:#64748b;font-size:.57rem}.checkout-packages label>strong{margin-top:.25rem;color:var(--navy);font-size:.7rem;text-align:center}.checkout-packages input:checked+span{border-color:var(--blue);background:#eaf2ff;box-shadow:0 0 0 2px rgb(37 99 235 / 10%)}.checkout-extras,.checkout-requirements{margin:1rem 0 0;padding:1rem 0 0;border:0;border-top:1px solid var(--line)}.checkout-extras legend,.checkout-requirements legend{padding:0;color:var(--navy);font-size:.78rem;font-weight:850}.checkout-extras>label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:.55rem;margin-top:.7rem;cursor:pointer}.checkout-extras input{margin-top:.25rem;accent-color:var(--blue)}.checkout-extras b,.checkout-extras small{display:block}.checkout-extras b{font-size:.72rem}.checkout-extras small{color:#64748b;font-size:.6rem}.checkout-extras strong{color:var(--navy);font-size:.68rem}.checkout-requirements>p{margin:.3rem 0 .8rem;color:#64748b;font-size:.65rem}.checkout-requirements>label{display:block;margin:.65rem 0 .2rem;color:#334155;font-size:.7rem;font-weight:750}.checkout-requirements>label span{color:#dc2626}.checkout-requirements .field{width:100%;margin:0}.form-error{display:block;margin:.2rem 0;color:#b91c1c;font-size:.65rem}.checkout-summary{display:grid;gap:.55rem;margin:1rem 0;padding:1rem 0;border-block:1px solid var(--line)}.checkout-summary>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:#64748b;font-size:.7rem}.checkout-summary dt,.checkout-summary dd{margin:0}.checkout-summary dd{color:#334155;font-weight:750}.checkout-summary .checkout-total{padding-top:.6rem;border-top:1px dashed #cbd5e1;color:var(--navy);font-size:.85rem;font-weight:850}.checkout-summary .checkout-total dd{color:var(--blue);font-size:1.05rem}.checkout-note{margin:.7rem 0 0;color:#64748b;text-align:center;font-size:.62rem}.checkout-blocked{border-radius:11px;padding:.75rem;background:#f1f5f9;color:#526278;text-align:center;font-size:.72rem}.related-services{background:#fff}
@media(max-width:1150px){.service-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-detail-layout{grid-template-columns:minmax(0,1fr) 340px}.package-comparison{grid-template-columns:1fr}.package-comparison>article{min-height:0}}
@media(max-width:900px){.service-browser{grid-template-columns:1fr}.service-browser>aside,.service-checkout{position:static}.service-filters>summary i{display:block}.service-filters:not([open]) .filter-body{display:none}.service-heading-grid,.service-detail-layout{grid-template-columns:1fr}.service-proof{min-width:0}.service-checkout{grid-row:1}.checkout-card{max-width:680px;margin-inline:auto}.package-comparison{grid-template-columns:repeat(3,minmax(0,1fr))}.service-detail-layout>main{grid-row:2}}
@media(max-width:620px){.services-hero>.container{padding-block:2.5rem}.services-search{display:grid;grid-template-columns:auto minmax(0,1fr)}.services-search .btn{grid-column:1/-1}.results-toolbar{align-items:flex-start;flex-direction:column}.results-toolbar form{width:100%;justify-content:space-between}.service-results-grid{grid-template-columns:1fr}.service-card-cover{min-height:145px}.service-heading-grid{gap:1rem}.service-proof{grid-template-columns:1fr}.service-proof>div{display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid #d8e4f4;text-align:start}.service-proof>div:last-child{border:0}.package-comparison{grid-template-columns:1fr}.provider-summary-head{grid-template-columns:auto minmax(0,1fr)}.provider-summary-head>.btn{grid-column:1/-1}.provider-summary-stats{grid-template-columns:1fr 1fr}.service-content-card{padding:1rem}.checkout-packages{grid-template-columns:1fr}.checkout-packages label{grid-template-columns:minmax(0,1fr) auto;align-items:center}.checkout-packages label>strong{margin:0;padding-inline:.4rem}.checkout-packages label>span{align-items:start;justify-items:start;min-height:0;text-align:start}.content-card-head{align-items:flex-start;flex-direction:column}}

/* Project request discovery, creation, and offer decisions. */
.request-wizard-page{min-height:100%;background:#f7f9fc}.request-wizard-intro{background:linear-gradient(135deg,#0b1f3a,#174a83);color:#dbeafe}.request-wizard-intro .content{padding-block:2.6rem}.request-wizard-intro .breadcrumbs{color:#b9d2f0}.request-wizard-intro h1{margin:.55rem 0;color:#fff;font-size:clamp(2rem,4vw,3.15rem);letter-spacing:-.05em}.request-wizard-intro p{max-width:620px;margin:.3rem 0;color:#c7d9ef}.request-wizard-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1.2rem;align-items:start;padding-block:2rem}.request-wizard-card{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:var(--shadow-sm)}.request-wizard-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:.3rem;margin:0;padding:1rem 1.2rem;border-bottom:1px solid var(--line);list-style:none}.request-wizard-progress li{display:flex;align-items:center;gap:.45rem;color:#94a3b8;font-size:.67rem;font-weight:800}.request-wizard-progress li span{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid #cbd5e1;border-radius:50%;background:#fff;font-size:.65rem}.request-wizard-progress li.active,.request-wizard-progress li.complete{color:var(--blue)}.request-wizard-progress li.active span{border-color:var(--blue);background:var(--blue);color:#fff}.request-wizard-progress li.complete span{border-color:#86efac;background:#dcfce7;color:#15803d}.request-wizard-step{margin:0;padding:1.5rem;border:0}.request-wizard-step[hidden]{display:none}.request-wizard-step legend{padding:0;color:var(--navy);font-size:1.3rem;font-weight:900}.request-wizard-step>p{margin:.35rem 0 1.4rem;color:#64748b;font-size:.82rem}.request-wizard-step>label{display:block;margin:.95rem 0 .35rem;color:#334155;font-size:.8rem;font-weight:850}.request-wizard-step>label small{color:#94a3b8;font-weight:500}.request-wizard-step>.field{width:100%;margin:0}.wizard-actions{display:flex;justify-content:space-between;gap:.65rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--line)}.skill-selection{display:flex;flex-wrap:wrap;gap:.55rem}.skill-selection label{cursor:pointer}.skill-selection input{position:absolute;opacity:0}.skill-selection span{display:block;border:1px solid var(--line);border-radius:99px;padding:.45rem .72rem;color:#526278;font-size:.74rem;transition:.15s}.skill-selection input:checked+span{border-color:var(--blue);background:#eaf2ff;color:var(--blue);font-weight:800}.file-uploader{display:grid;justify-items:center;gap:.35rem;margin-top:1.25rem;padding:1.5rem;border:1px dashed #9db9e5;border-radius:15px;background:#f8fbff;color:#47607f;text-align:center;cursor:pointer}.file-uploader>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eaf2ff;color:var(--blue);font-size:1.3rem}.file-uploader b{color:var(--navy);font-size:.82rem}.file-uploader small{font-size:.68rem}.file-uploader input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.request-wizard-card .file-selection{margin:.65rem 0 0;color:#64748b;font-size:.7rem}.request-contract-types{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.request-contract-types label{position:relative;display:flex;gap:.65rem;padding:1rem;border:1px solid var(--line);border-radius:13px;cursor:pointer}.request-contract-types input{margin-top:.25rem;accent-color:var(--blue)}.request-contract-types b,.request-contract-types small{display:block}.request-contract-types b{color:var(--navy);font-size:.82rem}.request-contract-types small{margin-top:.15rem;color:#64748b;font-size:.68rem}.request-contract-types label:has(input:checked){border-color:var(--blue);background:#f3f7ff;box-shadow:0 0 0 2px rgb(37 99 235 / 8%)}.currency-field{position:relative}.currency-field .field{width:100%;margin:0;padding-inline-end:3.1rem}.currency-field span{position:absolute;inset-inline-end:.8rem;inset-block-start:50%;transform:translateY(-50%);color:#64748b;font-size:.7rem}.request-review{display:grid;gap:.15rem;margin:0}.request-review>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--line)}.request-review dt{color:#64748b;font-size:.75rem}.request-review dd{margin:0;color:#26364b;font-size:.78rem;font-weight:750}.request-safety-note{display:flex;align-items:flex-start;gap:.65rem;margin-top:1rem;padding:.85rem;border-radius:12px;background:#eef7ff;color:#395575;font-size:.72rem}.request-safety-note>span{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:#d5f5e9;color:#07836b;font-weight:900}.request-safety-note p{margin:0}.request-wizard-side{display:grid;gap:1rem;position:sticky;inset-block-start:94px}.request-wizard-side>section,.request-wizard-side>form{padding:1.1rem;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm)}.request-wizard-side .side-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eaf2ff;color:var(--blue)}.request-wizard-side h2{margin:.65rem 0;color:var(--navy);font-size:1rem}.request-wizard-side p{color:#64748b;font-size:.72rem}.request-wizard-side ul{display:grid;gap:.55rem;margin:0;padding:0 1.1rem 0 0;color:#526278;font-size:.72rem}.request-wizard-side .field{width:100%;margin:.5rem 0}.request-detail-head{background:linear-gradient(145deg,#f8fbff,#edf4ff);border-bottom:1px solid #dce8f8}.request-detail-head>.container{padding-block:2.5rem}.request-head-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:2rem}.request-status-line{display:flex;align-items:center;gap:.55rem;color:#64748b;font-size:.72rem}.request-detail-head h1{margin:.7rem 0;color:var(--navy);font-size:clamp(2rem,4vw,3.25rem);letter-spacing:-.05em}.request-detail-head p{margin:0;color:#64748b}.request-budget-box{display:grid;grid-template-columns:auto auto;align-items:end;gap:.1rem .35rem;min-width:245px;padding:1rem 1.15rem;border:1px solid #d8e4f4;border-radius:16px;background:rgb(255 255 255 / 78%)}.request-budget-box small{grid-column:1/-1;color:#64748b;font-size:.67rem}.request-budget-box strong{color:var(--navy);font-size:1.25rem}.request-budget-box span{color:#64748b;font-size:.72rem}.request-detail-section{padding-block:2.5rem}.request-detail-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,.55fr);gap:1.25rem;align-items:start}.request-detail-layout>main{display:grid;gap:1rem}.request-content-card{padding:1.4rem;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}.request-skills{margin-top:1.4rem;padding-top:1rem;border-top:1px solid var(--line)}.request-skills h3{margin:0 0 .65rem;color:var(--navy);font-size:.85rem}.request-skills>div{display:flex;flex-wrap:wrap;gap:.45rem}.request-skills span{border-radius:99px;background:#eff5ff;color:#315eae;padding:.3rem .55rem;font-size:.68rem;font-weight:750}.request-facts-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:0}.request-facts-grid>div{display:grid;gap:.25rem;padding:1rem;border-inline-end:1px solid var(--line)}.request-facts-grid>div:last-child{border:0}.request-facts-grid span{color:#64748b;font-size:.65rem}.request-facts-grid b{color:#334155;font-size:.75rem}.private-file-note{display:flex;gap:.55rem;padding:.75rem;border-radius:11px;background:#f8fafc;color:#64748b;font-size:.7rem}.private-file-note p{margin:0}.request-file-list{display:grid;gap:.5rem;margin-top:1rem}.request-file-list a{display:flex;align-items:center;gap:.65rem;padding:.7rem;border:1px solid var(--line);border-radius:10px;background:#fff}.request-file-list a>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#eaf2ff;color:var(--blue)}.request-file-list b,.request-file-list small{display:block}.request-file-list b{color:#334155;font-size:.72rem}.request-file-list small{color:#64748b;font-size:.62rem}.offers-count{border-radius:99px;background:#eaf2ff;color:var(--blue);padding:.3rem .55rem;font-size:.67rem;font-weight:850}.received-offer{padding:1rem 0;border-top:1px solid var(--line)}.received-offer header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.offer-provider{display:flex;align-items:center;gap:.55rem}.offer-provider b,.offer-provider small{display:block}.offer-provider b{color:var(--navy);font-size:.8rem}.offer-provider small{color:#64748b;font-size:.65rem}.offer-provider .verified{font-style:normal}.received-offer header>div{text-align:end}.received-offer header>div strong,.received-offer header>div small{display:block}.received-offer header>div strong{color:var(--navy);font-size:.8rem}.received-offer header>div small{color:#64748b;font-size:.65rem}.received-offer>p{margin:.8rem 0;color:#475569;font-size:.78rem}.received-offer footer{display:flex;align-items:center;gap:.65rem}.received-offer footer>span{margin-inline-end:auto;color:#d59608;font-size:.7rem}.received-offer footer .status{font-size:.65rem}.received-offer footer .btn{min-height:36px;padding:.4rem .75rem;font-size:.7rem}.request-offer-aside{display:grid;gap:.8rem;position:sticky;inset-block-start:94px}.request-offer-card,.request-trust-card{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}.request-offer-card{padding:1.15rem}.request-offer-card>header>span{color:var(--blue);font-size:.68rem;font-weight:850}.request-offer-card h2{margin:.2rem 0;color:var(--navy);font-size:1.15rem}.request-offer-card header p{margin:.3rem 0 1rem;color:#64748b;font-size:.72rem}.request-offer-card label{display:block;margin:.7rem 0 .3rem;color:#334155;font-size:.72rem;font-weight:800}.request-offer-card .field{width:100%;margin:0}.request-offer-card .form-grid{gap:.55rem}.request-offer-card .btn{margin-top:1rem}.offer-form-note{margin:.65rem 0 0;color:#64748b;text-align:center;font-size:.62rem}.request-trust-card{display:flex;gap:.65rem;padding:1rem}.request-trust-card>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#eaf2ff;color:var(--blue)}.request-trust-card b{color:var(--navy);font-size:.76rem}.request-trust-card p{margin:.2rem 0 0;color:#64748b;font-size:.66rem}
@media(max-width:950px){.request-wizard-layout,.request-detail-layout{grid-template-columns:1fr}.request-wizard-side,.request-offer-aside{position:static;grid-template-columns:1fr 1fr}.request-detail-layout>main{grid-row:2}.request-offer-aside{grid-row:1}.request-facts-grid{grid-template-columns:1fr 1fr}.request-facts-grid>div:nth-child(2){border-inline-end:0}.request-facts-grid>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:620px){.request-wizard-intro .content,.request-detail-head>.container{padding-block:2rem}.request-wizard-layout{padding-block:1rem}.request-wizard-progress{grid-template-columns:repeat(5,auto);justify-content:space-between;padding:.75rem}.request-wizard-progress li b{display:none}.request-wizard-step{padding:1rem}.request-contract-types,.request-wizard-side{grid-template-columns:1fr}.request-review>div{grid-template-columns:1fr;gap:.15rem}.request-head-grid{grid-template-columns:1fr;gap:1rem}.request-budget-box{min-width:0}.request-facts-grid{grid-template-columns:1fr}.request-facts-grid>div{border-inline-end:0;border-bottom:1px solid var(--line)}.request-facts-grid>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.received-offer header,.received-offer footer{align-items:flex-start;flex-direction:column}.received-offer footer>span{margin:0}.request-wizard-side{position:static}.request-offer-aside{grid-template-columns:1fr}.request-detail-section{padding-block:1.5rem}}

.requests-hero{background:linear-gradient(135deg,#eff6ff,#f8fbff);border-bottom:1px solid #dce8f8}.requests-hero>.container{padding-block:3rem}.requests-hero-grid{display:flex;align-items:end;justify-content:space-between;gap:1.5rem}.requests-hero h1{margin:.55rem 0;color:var(--navy);font-size:clamp(2.3rem,5vw,4rem);letter-spacing:-.055em}.requests-hero p{max-width:720px;margin:.3rem 0;color:#526278}.requests-search{display:flex;align-items:center;gap:.55rem;width:min(700px,100%);margin-top:1.4rem;padding:.5rem;border:1px solid #cddcf1;border-radius:14px;background:#fff;box-shadow:0 14px 32px rgb(23 58 102 / 8%);color:#64748b}.requests-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#1e293b}.request-browse-section{padding-block:3rem;background:#f8fafc}.request-browser{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.4rem;align-items:start}.request-browser>aside{position:sticky;inset-block-start:94px}.budget-range-fields{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}.budget-range-fields .field{width:100%;margin:0}.project-request-list{display:grid;gap:.8rem}.project-request-card{display:grid;grid-template-columns:minmax(0,1fr) 215px;gap:1rem;padding:1.15rem;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-sm);transition:.18s}.project-request-card:hover{border-color:#aac6f5;box-shadow:var(--shadow-md);transform:translateY(-2px)}.request-card-top{display:flex;align-items:center;gap:.6rem;color:#64748b;font-size:.67rem}.category-pill{border-radius:99px;background:#eaf2ff;color:var(--blue);padding:.25rem .5rem;font-weight:800}.project-request-card h3{margin:.65rem 0 .35rem;color:var(--navy);font-size:1rem}.project-request-card p{margin:0;color:#64748b;font-size:.76rem;line-height:1.8}.request-card-meta,.request-card-skills{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem}.request-card-meta span{color:#64748b;font-size:.66rem}.request-card-meta span+span{padding-inline-start:.45rem;border-inline-start:1px solid var(--line)}.request-card-skills span{border-radius:99px;background:#f1f5f9;color:#526278;padding:.2rem .45rem;font-size:.62rem}.project-request-card>aside{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding-inline-start:1rem;border-inline-start:1px solid var(--line)}.request-client-mini{display:flex;align-items:center;gap:.4rem;color:#64748b;font-size:.66rem}.request-client-mini .avatar{width:25px;height:25px;font-size:.6rem}.request-client-mini .verified{font-style:normal}.project-request-card>aside>strong{color:var(--navy);font-size:.98rem;text-align:end}.project-request-card>aside>strong small{font-size:.67rem;font-weight:500}.project-request-card>aside>b{color:var(--blue);font-size:.67rem}
@media(max-width:950px){.request-browser{grid-template-columns:1fr}.request-browser>aside{position:static}.request-browser .service-filters>summary i{display:block}.request-browser .service-filters:not([open]) .filter-body{display:none}}
@media(max-width:620px){.requests-hero>.container{padding-block:2.2rem}.requests-hero-grid{align-items:flex-start;flex-direction:column}.requests-search{display:grid;grid-template-columns:auto minmax(0,1fr)}.requests-search .btn{grid-column:1/-1}.project-request-card{grid-template-columns:1fr}.project-request-card>aside{align-items:flex-start;gap:.65rem;padding:1rem 0 0;border:0;border-top:1px solid var(--line)}.project-request-card>aside>strong{text-align:start}.request-card-meta span+span{padding-inline-start:.35rem}.request-browser{gap:1rem}}

/* Provider workspace. */
.provider-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.8fr);gap:1rem;margin-top:1rem}.provider-projects{grid-row:span 2}.provider-project-row{display:grid;grid-template-columns:auto minmax(150px,1fr) auto minmax(100px,.55fr) auto;align-items:center;gap:.8rem;padding:1rem 0;border-bottom:1px solid var(--line)}.provider-project-row:last-child{border-bottom:0}.provider-project-row h3,.provider-offers h3,.provider-opportunities h3{margin:0;color:var(--navy);font-size:.85rem}.provider-project-row small{display:block;color:var(--muted);font-size:.68rem}.provider-project-row>i,.provider-opportunities>a>i{color:var(--blue);font-style:normal}.provider-offers>a{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.8rem 0;border-bottom:1px solid var(--line)}.provider-offers>a:last-child{border:0}.provider-offers a span,.provider-offers a small{display:block;color:var(--muted);font-size:.64rem}.provider-offers a span{color:var(--blue)}.provider-offers a>strong{text-align:end;color:var(--navy);font-size:.78rem}.provider-offers a>strong small{margin-top:.1rem}.provider-opportunities>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem;padding:.75rem 0;border-bottom:1px solid var(--line)}.provider-opportunities>a:last-child{border:0}.opportunity-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:#eaf2ff;color:var(--blue);font-size:.9rem}.provider-opportunities small,.provider-opportunities p{display:block;margin:0;color:var(--muted);font-size:.65rem}.provider-opportunities p{margin-top:.2rem;color:#334155}.provider-opportunities h3{margin:.1rem 0;font-size:.78rem}
@media(max-width:1100px){.provider-dashboard-grid{grid-template-columns:1fr}.provider-projects{grid-row:auto}}
@media(max-width:700px){.provider-project-row{grid-template-columns:auto minmax(0,1fr) auto}.provider-project-row>.status{grid-column:2/3}.provider-project-row .client-progress{grid-column:2/-1}.provider-project-row>i{display:none}.provider-dashboard .workspace-actions{display:grid;width:100%}.provider-dashboard .workspace-actions .btn{width:100%}}

/* Provider catalog publisher. */
.provider-listings-hero{background:linear-gradient(135deg,#eff6ff 0%,#f9fbff 56%,#edf4ff 100%);border-bottom:1px solid #dce8f8}.provider-listings-hero>.content{padding-block:2.4rem}.provider-listings-head{display:flex;justify-content:space-between;align-items:end;gap:2rem}.provider-listings-head>div:first-child>span,.listing-form-head>span,.listing-catalog .panel-head span{color:var(--blue);font-size:.7rem;font-weight:850}.provider-listings-head h1{margin:.25rem 0;color:var(--navy);font-size:clamp(1.9rem,4vw,3rem)}.provider-listings-head p{max-width:600px;margin:0;color:#526278}.listing-summary{display:grid;grid-template-columns:repeat(2,minmax(105px,1fr));gap:.7rem;flex-shrink:0}.listing-summary>div{padding:.8rem 1rem;border:1px solid #d6e4fa;border-radius:14px;background:#ffffffbb;text-align:center}.listing-summary b,.listing-summary small{display:block}.listing-summary b{color:var(--navy);font-size:1.25rem}.listing-summary small{color:#64748b;font-size:.65rem}.provider-listings-section{padding-block:2rem 3rem}.provider-listings-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.72fr);gap:1.25rem;align-items:start}.listing-catalog,.listing-publish-form{border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm)}.listing-catalog{padding:1.25rem}.listing-catalog .panel-head{margin-bottom:.5rem}.listing-catalog .panel-head h2,.listing-form-head h2{margin:.2rem 0;color:var(--navy);font-size:1.15rem}.listing-catalog .panel-head>a{font-size:.72rem}.provider-listing-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.85rem;padding:1rem 0;border-top:1px solid var(--line)}.listing-row-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#eaf2ff;color:var(--blue);font-size:1rem;font-weight:850}.listing-row-copy{min-width:0}.listing-row-copy>div{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.listing-row-copy .category-pill{font-size:.58rem}.listing-row-copy .status{font-size:.58rem}.listing-row-copy h3{margin:.35rem 0 .15rem;font-size:.86rem;overflow-wrap:anywhere}.listing-row-copy h3 a{color:var(--navy)}.listing-row-copy p{margin:0;color:#64748b;font-size:.66rem}.listing-open{color:var(--blue);font-size:.69rem;font-weight:800;white-space:nowrap}.listing-open i{font-style:normal;margin-inline-start:.2rem}.listing-empty{text-align:center;padding:3.2rem 1rem 2rem}.listing-empty>span{display:grid;place-items:center;width:46px;height:46px;margin:auto;border-radius:14px;background:#eaf2ff;color:var(--blue);font-size:1.2rem}.listing-empty h3{margin:.8rem 0 .25rem;color:var(--navy);font-size:1rem}.listing-empty p{max-width:34ch;margin:0 auto 1rem;color:#64748b;font-size:.75rem}.listing-pagination{margin-top:1rem}.listing-publish-form{padding:1.25rem;position:sticky;inset-block-start:90px}.listing-form-head{padding-bottom:1rem;border-bottom:1px solid var(--line)}.listing-form-head p{margin:.25rem 0 0;color:#64748b;font-size:.7rem}.listing-publish-form fieldset{margin:0;padding:1.05rem 0;border:0;border-bottom:1px solid var(--line)}.listing-publish-form legend{padding:0;margin-bottom:.75rem;color:var(--navy);font-size:.8rem;font-weight:850}.listing-publish-form label{display:block;margin:.65rem 0 .28rem;color:#334155;font-size:.72rem;font-weight:800}.listing-publish-form label small{color:#94a3b8;font-weight:600}.listing-publish-form .field{width:100%;margin:0}.listing-publish-form .form-grid{gap:.6rem}.listing-publish-form .short-field{max-width:130px}.listing-publish-note{display:flex;align-items:flex-start;gap:.6rem;margin:1rem 0;color:#64748b;font-size:.68rem;line-height:1.7}.listing-publish-note span{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:99px;background:#eaf2ff;color:var(--blue);font-weight:850}.listing-publish-note p{margin:0}.listing-publish-form .btn{margin-top:.2rem}
@media(max-width:1050px){.provider-listings-layout{grid-template-columns:1fr}.listing-publish-form{position:static}.listing-publish-form fieldset{max-width:720px}.provider-listings-head{align-items:flex-start}}
@media(max-width:620px){.provider-listings-hero>.content{padding-block:1.8rem}.provider-listings-head{display:grid;gap:1rem}.listing-summary{width:100%}.provider-listings-layout{gap:1rem}.listing-catalog,.listing-publish-form{padding:1rem;border-radius:16px}.provider-listing-row{grid-template-columns:auto minmax(0,1fr)}.listing-open{grid-column:2/3}.listing-publish-form .form-grid{grid-template-columns:1fr}.listing-publish-form .short-field{max-width:none}}
.saved-setting{display:flex;justify-content:space-between;gap:.75rem;margin:.55rem 0 0;padding:.65rem .75rem;border:1px solid var(--line);border-radius:10px;background:#f8fafc;font-size:.75rem}.saved-setting span{color:var(--muted);direction:plaintext}

/* Provider Public Profile */
.provider-profile-hero{border:1px solid var(--line);border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--shadow-sm);padding:2rem;margin-block:-2.5rem 1.5rem;display:flex;flex-wrap:wrap;gap:1.5rem;align-items:center;justify-content:space-between}
.provider-profile-info{display:flex;align-items:center;gap:1.25rem}
.provider-avatar-frame{position:relative;flex-shrink:0}
.provider-avatar-circle{width:92px;height:92px;border-radius:50%;background:var(--blue-light);color:var(--blue);display:grid;place-items:center;font-size:2.25rem;font-weight:800;border:4px solid var(--surface);box-shadow:0 4px 12px rgb(37 99 235 / 12%)}
.provider-avatar-frame .verified-badge{position:absolute;inset-block-end:2px;inset-inline-end:2px;width:26px;height:26px;background:var(--blue);color:#fff;border-radius:50%;display:grid;place-items:center;border:2px solid var(--surface)}
.provider-meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:.85rem;font-size:.82rem;color:var(--muted);margin-top:.4rem}
.provider-meta-row span{display:inline-flex;align-items:center;gap:.35rem}
.provider-stats-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.5rem}
.provider-stat-box{padding:1.25rem;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-sm);text-align:center}
.provider-stat-box strong{display:block;font-size:1.6rem;color:var(--navy);font-weight:800}
.provider-stat-box span{display:block;font-size:.78rem;color:var(--muted);margin-top:.2rem}
.provider-profile-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.65fr);gap:1.5rem;align-items:start}
.portfolio-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}
.portfolio-card{border:1px solid var(--line);border-radius:var(--r-md);padding:1.25rem;background:var(--surface);transition:border-color .15s,box-shadow .15s}
.portfolio-card:hover{border-color:#93c5fd;box-shadow:var(--shadow-sm)}
.provider-spec-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.provider-spec-item{display:flex;align-items:center;justify-content:space-between;padding:.75rem;background:var(--soft);border:1px solid var(--line);border-radius:var(--r-md);font-size:.85rem}
@media(max-width:950px){.provider-profile-layout{grid-template-columns:1fr}.provider-stats-strip{grid-template-columns:repeat(2,1fr)}.provider-profile-hero{margin-block:-1.5rem 1rem}}
@media(max-width:600px){.provider-profile-info{flex-direction:column;text-align:center}.provider-meta-row{justify-content:center}.provider-stats-strip{grid-template-columns:1fr}}

/* Inbox & Messages */
.inbox-list{display:grid;gap:.65rem}
.inbox-card{display:flex;align-items:center;gap:1.25rem;padding:1.25rem;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-sm);text-decoration:none;color:inherit;transition:transform .18s,box-shadow .18s,border-color .18s}
.inbox-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--blue)}
.inbox-card.unread{border-inline-start:4px solid var(--blue);background:var(--blue-light)}
.inbox-avatar{width:48px;height:48px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:1.25rem;font-weight:800;flex-shrink:0}

/* =================================================================
   FINAL PAGE-SPECIFIC POLISH — loaded after all legacy page modules.
   ================================================================= */

/* Never allow page modules to reintroduce a black workspace */
.account-sidebar,.admin-rail{
  background:var(--sidebar-bg)!important;
  color:var(--text)!important;
}
.account-sidebar .brand,.admin-rail .brand{color:var(--navy)!important}
.account-sidebar .side-link,.admin-rail .side-link{color:var(--muted)!important}
.account-sidebar .side-link:hover,.admin-rail .side-link:hover{background:var(--soft)!important;color:var(--text)!important}
.account-sidebar .side-link.active,.admin-rail .side-link.active{background:var(--sidebar-active-bg)!important;color:var(--sidebar-active-text)!important}

html[data-theme="dark"] .account-sidebar .side-link,
html[data-theme="dark"] .admin-rail .side-link {
  color: #CBD5E1 !important;
}
html[data-theme="dark"] .account-sidebar .side-link svg,
html[data-theme="dark"] .admin-rail .side-link svg {
  color: #94A3B8 !important;
}
html[data-theme="dark"] .account-sidebar .side-link:hover,
html[data-theme="dark"] .admin-rail .side-link:hover {
  background: rgba(255, 255, 255, .04) !important;
  color: #F8FAFC !important;
}
html[data-theme="dark"] .account-sidebar .side-link:hover svg,
html[data-theme="dark"] .admin-rail .side-link:hover svg {
  color: #F8FAFC !important;
}
html[data-theme="dark"] .account-sidebar .side-link.active,
html[data-theme="dark"] .admin-rail .side-link.active {
  background: rgba(59, 130, 246, .14) !important;
  color: #60A5FA !important;
  border: 1px solid rgba(59, 130, 246, .15) !important;
}
html[data-theme="dark"] .account-sidebar .side-link.active svg,
html[data-theme="dark"] .admin-rail .side-link.active svg {
  color: #3B82F6 !important;
}

/* Dashboard pages: tighter hierarchy and less dead space */
.account-home,.provider-dashboard,.client-dashboard{padding-block:clamp(1rem,2vw,1.8rem)}
.workspace-greeting,.account-home .workspace-head,.provider-dashboard .workspace-head,.client-dashboard .workspace-head{margin-bottom:1.25rem}
.workspace-grid,.provider-dashboard-grid{align-items:start}
.dashboard-panel,.workspace-card,.provider-projects,.provider-offers,.provider-opportunities{border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-xs)}

/* Authentication: correct two-column balance on large screens */
.auth-split{grid-template-columns:minmax(360px,.92fr) minmax(460px,1.08fr);align-items:center}
.auth-card{justify-self:end}
@media(max-width:900px){.auth-split{grid-template-columns:1fr}.auth-card{justify-self:center}.auth-brand{text-align:center}}

/* Public cards */
.home-page .category-card,.service-card,.project-request-card,.provider-spotlight{border-color:#e0e8f1!important}
.home-page .category-card:hover,.service-card:hover,.project-request-card:hover{transform:translateY(-2px);border-color:#b8d0f7!important;box-shadow:var(--shadow-md)!important}

/* Page headings: Arabic-friendly tracking */
.services-hero h1,.requests-hero h1,.request-wizard-intro h1,.service-detail-head h1,.provider-listings-head h1,.category-hero h1,.category-detail-head h1{letter-spacing:0!important}

/* Filters and search feel like one system */
.services-search,.requests-search,.category-search,.public-header-search{box-shadow:none}
.service-filters,.request-browser>aside>.card{border-color:#e0e8f1;box-shadow:var(--shadow-xs)}

/* Project page */
.project-page .project-heading{background:linear-gradient(180deg,#fff,#fbfdff);border-color:#e2e8f0}
.project-page .project-grid{gap:1.1rem}
.project-page .card{border-color:#e0e8f1!important;box-shadow:var(--shadow-xs)!important}
.project-tabs{border-bottom:1px solid var(--line);gap:.25rem}
.project-tabs a{padding:.8rem .7rem;border-radius:9px 9px 0 0}
.project-tabs a:hover{background:#f8fafc}

/* Inbox */
.inbox-page .container{max-width:1160px}
.inbox-item{border:1px solid #e0e8f1;border-radius:14px;transition:.16s}
.inbox-item:hover{border-color:#bfd3f3;background:#fbfdff}
.inbox-unread{box-shadow:0 3px 10px rgba(37,99,235,.18)}

/* Provider catalog */
.provider-listings-hero{background:linear-gradient(180deg,#f8fbff,#f3f7fd)!important}
.listing-catalog,.listing-publish-form{border-color:#e0e8f1!important;box-shadow:var(--shadow-xs)!important}

/* Admin tables / taxonomy */
.admin-operation-page .page-head{background:#fff;color:var(--navy);border-bottom:1px solid var(--line)}
.admin-operation-page .page-head h1{color:var(--navy)}
.status-tabs a{background:#fff;border-color:#dce5ef}
.status-tabs a.active{background:#eaf2ff;color:#1d4ed8;border-color:#bfd3f6}
.taxonomy-item{border-color:#e0e8f1}
.taxonomy-item summary:hover{background:#f8fafc}

/* Inline icon helpers for page-specific actions */
.icon-chip{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#eaf2ff;color:#2563eb}
.icon-chip .ui-icon{--icon-size:18px}
.icon-chip.success{background:#ecfdf5;color:#16a34a}.icon-chip.warning{background:#fffbeb;color:#d97706}.icon-chip.danger{background:#fef2f2;color:#dc2626}

/* Better mobile density */
@media(max-width:620px){
  .project-request-card,.listing-catalog,.listing-publish-form,.project-page .card{border-radius:14px}
  .request-browser,.provider-listings-layout,.service-browser{gap:.85rem}
  .section{padding-block:3rem}
}


/* Final RTL/layout guard: loaded after page modules. */
/* Note: .admin-sidebar is excluded from border override — it uses its own dark-themed border. */
@media(min-width:1024px){
  .account-sidebar,.admin-rail{right:0!important;left:auto!important;border-right:0!important;border-left:1px solid var(--line)!important}
  .admin-sidebar{right:0!important;left:auto!important}
  .dashboard-layout{display:grid!important;grid-template-columns:var(--sidebar-width) minmax(0,1fr)!important}
  .dashboard-layout .account-sidebar{grid-column:1!important;grid-row:1!important}
  .dashboard-layout .account-main{grid-column:2!important;grid-row:1!important;margin:0!important;min-width:0!important}
}
@media(max-width:1023px){
  .dashboard-layout{display:block!important}
  .account-sidebar,.admin-sidebar,.admin-rail{right:0!important;left:auto!important}
  .dashboard-layout .account-main{margin:0!important;width:100%!important}
}


/* =====================================================================
   SEMANTIC COMPLETION — current Blade markup, RTL-first
   Repairs renamed components and fills page-level styling gaps.
   ===================================================================== */

/* Shared content states and controls */
.empty{display:grid;place-items:center;gap:.55rem;min-height:150px;padding:2rem;border:1px dashed var(--line);border-radius:var(--r-lg);background:color-mix(in srgb,var(--surface) 92%,var(--soft));color:var(--muted);text-align:center}
.empty h2,.empty h3{margin:0;color:var(--text);font-size:1rem}.empty p{margin:0}.compact-empty{min-height:110px;padding:1.35rem}
.pagination-wrap{display:flex;justify-content:center;margin-top:1.5rem}.pagination-wrap nav{max-width:100%;overflow:auto;padding:.25rem}
.tag{display:inline-flex;align-items:center;gap:.3rem;padding:.28rem .58rem;border:1px solid var(--line);border-radius:var(--r-full);background:var(--soft);color:var(--text-2);font-size:.72rem;font-weight:700}
.provider-line{display:flex;align-items:center;gap:.7rem;min-width:0}.provider-line>div{min-width:0}.provider-line strong,.provider-line small{display:block}.provider-line small{color:var(--muted);font-size:.72rem}
.btn-light{background:#fff;color:#0b1f3a;border-color:#fff;box-shadow:0 6px 18px rgba(15,23,42,.14)}.btn-light:hover:not(:disabled){background:#f8fafc;border-color:#f8fafc;transform:translateY(-1px)}
.btn-outline-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}.btn-outline-light:hover:not(:disabled){background:rgba(255,255,255,.1);border-color:#fff}
.eyebrow-dark{background:rgba(255,255,255,.1);color:#dbeafe;border:1px solid rgba(255,255,255,.16)}
.wallet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.received-offers,.client-offers-panel{min-width:0}.service-results,.request-results{min-width:0}

/* Current home hero markup (replaces stale preview-* class names) */
.hero-copy{min-width:0}.accent-text{color:var(--blue);position:relative}.hero-primary-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.hero-search-icon{display:grid;place-items:center;flex:0 0 34px;color:var(--blue)}
.hero-proof>div:last-child strong,.hero-proof>div:last-child small{display:block}.hero-proof>div:last-child small{color:var(--muted);font-size:.75rem}
.preview-window>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}
.preview-brand>span:first-child{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,var(--blue),var(--cyan));color:#fff;font-weight:900;box-shadow:0 7px 18px rgba(37,99,235,.2)}
.preview-brand b,.preview-brand small{display:block}.preview-brand b{font-size:.85rem;color:var(--text)}.preview-brand small{font-size:.62rem;color:var(--muted)}
.preview-status{padding:.28rem .58rem;border-radius:var(--r-full);background:var(--success-bg);color:var(--success);font-size:.64rem;font-weight:800;white-space:nowrap}
.preview-progress{display:grid;gap:.55rem;margin:1rem 0}.preview-progress>div:first-child{display:flex;justify-content:space-between;gap:1rem;color:var(--muted);font-size:.65rem}.preview-progress strong{color:var(--text-2)}
.preview-bar{height:7px;overflow:hidden;border-radius:99px;background:var(--soft)}.preview-bar>span{display:block;width:68%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--cyan))}
.preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.preview-grid article{padding:.8rem;border:1px solid var(--line);border-radius:var(--r-md);background:var(--soft)}
.preview-grid small,.preview-grid strong,.preview-grid article>span{display:block}.preview-grid small,.preview-grid article>span{color:var(--muted);font-size:.62rem}.preview-grid strong{margin:.18rem 0;color:var(--text);font-size:.78rem}
.preview-conversation{display:grid;gap:.48rem;padding:.9rem 0}.preview-conversation>div{display:flex;align-items:center;gap:.5rem}.preview-conversation>div.mine{flex-direction:row-reverse}.preview-conversation>div>span{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:var(--soft);color:var(--muted);font-size:.62rem;font-weight:800}.preview-conversation p{margin:0;padding:.48rem .68rem;border-radius:10px;background:var(--soft);color:var(--text-2);font-size:.66rem;line-height:1.55}.preview-conversation .mine p{background:var(--blue-light);color:var(--blue-hover)}
.preview-window>footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-top:.9rem;border-top:1px solid var(--line);color:var(--muted);font-size:.65rem}.preview-window>footer>span{display:inline-flex;align-items:center;gap:.35rem}.preview-window>footer button{border:0;border-radius:8px;background:var(--navy);color:#fff;padding:.45rem .7rem;font:inherit;font-size:.65rem;font-weight:700}
.preview-secure{right:-1.25rem;left:auto}.preview-rating{left:-1.25rem;right:auto}.preview-rating>span{display:block;color:#e6a20b;font-size:.65rem;letter-spacing:.08rem}.preview-rating b,.preview-rating small{display:block}.preview-rating small{color:var(--muted);font-size:.58rem}
.trust-promise{display:grid!important;grid-template-columns:auto 1fr;align-content:center;column-gap:.5rem}.trust-promise .pulse-dot{grid-row:1 / span 2;width:10px;height:10px;border-radius:50%;background:var(--success);box-shadow:0 0 0 5px rgba(22,163,74,.1)}.trust-promise strong,.trust-promise>span:last-child{text-align:start}.trust-promise>span:last-child{font-size:.72rem;color:var(--muted)}

/* Home section rhythm */
.categories-section,.providers-section,.faq-section{background:var(--surface)}.featured-section,.reviews-section{background:var(--page)}
.workflow-section{overflow:hidden;background:linear-gradient(135deg,#081c35 0%,#0b274a 58%,#12385f 100%);color:#d7e2ef}.workflow-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(2rem,6vw,5rem);align-items:center}.workflow-copy h2{margin:.9rem 0;color:#fff;font-size:clamp(2rem,4vw,3.2rem)}.workflow-copy p{margin-bottom:1.35rem;color:#b7c8dc;line-height:1.95}.workflow-steps{display:grid;gap:.75rem}.workflow-steps article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1rem;align-items:start;padding:1.15rem;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.065);backdrop-filter:blur(8px)}.workflow-steps article>span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#fff;color:#0b1f3a;font-size:.75rem;font-weight:900}.workflow-steps h3{margin:0 0 .2rem;color:#fff}.workflow-steps p{margin:0;color:#b7c8dc;font-size:.84rem}
.final-cta-section{background:var(--surface)}.cta-panel{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:clamp(1.6rem,4vw,3rem);overflow:hidden;border-radius:24px;background:linear-gradient(125deg,#0b1f3a,#153d69 65%,#175174);color:#dbe7f4;box-shadow:0 24px 60px rgba(11,31,58,.18)}.cta-panel h2{margin:.8rem 0 .4rem;color:#fff;font-size:clamp(1.8rem,4vw,2.7rem)}.cta-panel p{margin:0;color:#c3d2e3}.cta-actions{display:flex;gap:.65rem;flex-wrap:wrap;flex:0 0 auto}

/* Backoffice titles and operational pages */
.backoffice-title{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}.backoffice-title h1{margin:.2rem 0 0}.backoffice-title>div>span{color:var(--blue);font-size:.7rem;font-weight:850}.security-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.42rem .7rem;border:1px solid #bfdbfe;border-radius:99px;background:#eff6ff;color:#1d4ed8;font-size:.7rem;font-weight:800;white-space:nowrap}.message-body{color:var(--text-2);line-height:1.85}

/* Owner command center */
.owner-content{display:grid;gap:1rem;padding-block:.4rem 1.5rem}.owner-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding:clamp(1.5rem,3vw,2.2rem);border-radius:22px;background:linear-gradient(135deg,#0b1f3a,#173f6c);color:#c8d7e8;box-shadow:0 18px 44px rgba(11,31,58,.16)}.owner-hero>div>span{display:inline-block;margin-bottom:.45rem;color:#8fbcff;font-size:.72rem;font-weight:850}.owner-hero h1{max-width:720px;margin:0 0 .5rem;color:#fff;font-size:clamp(1.8rem,3vw,2.6rem)}.owner-hero p{margin:0;color:#b9c9db}.owner-hero>strong{display:block;min-width:190px;color:#fff;font-size:clamp(1.6rem,3vw,2.4rem);text-align:end}.owner-hero>strong small{display:block;color:#9fb4ca;font-size:.66rem;font-weight:650}
.owner-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.owner-metrics article{padding:1.1rem;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-xs)}.owner-metrics span,.owner-metrics small,.owner-metrics b{display:block}.owner-metrics span{color:var(--muted);font-size:.7rem;font-weight:750}.owner-metrics b{margin:.25rem 0;color:var(--navy);font-size:1.7rem}.owner-metrics small{color:var(--muted);font-size:.65rem}
.owner-attention,.owner-panel{padding:1.15rem;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-xs)}.owner-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:.85rem}.owner-section-head span{color:var(--blue);font-size:.68rem;font-weight:850}.owner-section-head h2{margin:.12rem 0 0;font-size:1.15rem}.owner-section-head a{color:var(--blue);font-size:.7rem;font-weight:800;white-space:nowrap}.attention-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.attention-grid a{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem;border:1px solid var(--line);border-radius:13px;background:var(--page);transition:.16s}.attention-grid a:hover{border-color:#b9cff3;transform:translateY(-1px)}.attention-grid span{color:var(--text-2);font-size:.72rem}.attention-grid b{display:grid;place-items:center;min-width:32px;height:32px;border-radius:9px;background:#fff;color:var(--navy);font-size:.9rem}
.owner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.owner-project{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 0;border-top:1px solid var(--line)}.owner-project:first-of-type{border-top:0}.owner-project strong,.owner-project small{display:block}.owner-project strong{color:var(--text);font-size:.78rem}.owner-project small,.owner-audit small{color:var(--muted);font-size:.66rem}.owner-audit{padding:.75rem 0;border-top:1px solid var(--line)}.owner-audit:first-of-type{border-top:0}.owner-audit b{display:block;color:var(--text);font-size:.76rem}

/* Auth/public navigation semantic fallbacks */
.auth-header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:76px}.auth-features,.auth-steps-summary{min-width:0}.nav-menu{display:flex;align-items:center;gap:.3rem}.footer-trust{display:flex;align-items:center;gap:.45rem;color:#94a3b8;font-size:.75rem}.mega-tab{cursor:pointer}

/* Responsive semantic completion */
@media(max-width:1100px){.owner-metrics,.attention-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.workflow-grid{grid-template-columns:1fr}.workflow-copy{text-align:center}.workflow-copy p{margin-inline:auto}.preview-secure,.preview-rating{display:none}.cta-panel{align-items:flex-start;flex-direction:column}.owner-hero{align-items:flex-start;flex-direction:column}.owner-hero>strong{text-align:start}.owner-grid{grid-template-columns:1fr}.nav-menu{flex-wrap:wrap}}
@media(max-width:620px){.hero-primary-actions,.hero-primary-actions .btn,.cta-actions,.cta-actions .btn{width:100%}.hero-search-icon{display:none}.preview-grid{grid-template-columns:1fr}.preview-conversation{display:none}.preview-window>footer{align-items:flex-start;flex-direction:column}.owner-metrics,.attention-grid,.wallet-grid{grid-template-columns:1fr}.owner-section-head,.backoffice-title{align-items:flex-start;flex-direction:column}.workflow-steps article{grid-template-columns:1fr}.workflow-steps article>span{width:38px;height:38px}.auth-header-inner{min-height:66px}}

@media(prefers-reduced-motion:reduce){.attention-grid a,.btn{transition:none!important}.attention-grid a:hover,.btn:hover{transform:none!important}}

/* Dark mode overrides for hard-coded light semantic surfaces */
html[data-theme="dark"] .public-page {
  --navy: var(--dark-text);
  --blue: var(--dark-primary);
  --blue-700: var(--dark-primary-hover);
  --surface: var(--dark-surface);
  --line: var(--dark-border);
  background: var(--dark-bg);
  color: var(--dark-text);
}

html[data-theme="dark"] .preview-window {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .btn-light {
  background: var(--dark-surface-2);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .security-chip {
  background: var(--dark-surface-2);
  border-color: var(--dark-border);
  color: #93c5fd;
}

html[data-theme="dark"] .attention-grid b {
  background: var(--dark-surface);
  color: var(--dark-text);
}

/* Heroes & Headers in Dark Mode */
html[data-theme="dark"] .home-page .hero {
  background:
    radial-gradient(circle at 12% 14%, rgba(59,130,246,.12), transparent 40%),
    radial-gradient(circle at 88% 62%, rgba(8,145,178,.08), transparent 45%),
    linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 100%);
}

html[data-theme="dark"] .category-hero,
html[data-theme="dark"] .category-detail-head,
html[data-theme="dark"] .requests-hero,
html[data-theme="dark"] .provider-listings-hero,
html[data-theme="dark"] .service-detail-head,
html[data-theme="dark"] .request-wizard-intro,
html[data-theme="dark"] .request-detail-head {
  background: linear-gradient(135deg, var(--dark-bg-secondary), var(--dark-surface-2));
  border-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] .category-hero h1,
html[data-theme="dark"] .category-detail-head h1,
html[data-theme="dark"] .requests-hero h1,
html[data-theme="dark"] .provider-listings-head h1,
html[data-theme="dark"] .service-detail-head h1,
html[data-theme="dark"] .request-detail-head h1,
html[data-theme="dark"] .request-wizard-intro h1 {
  color: var(--dark-text);
}

html[data-theme="dark"] .category-hero p,
html[data-theme="dark"] .category-detail-head p,
html[data-theme="dark"] .requests-hero p,
html[data-theme="dark"] .provider-listings-head p,
html[data-theme="dark"] .service-detail-head p,
html[data-theme="dark"] .request-detail-head p,
html[data-theme="dark"] .request-wizard-intro p {
  color: var(--dark-text-secondary);
}

/* Page Heads in Dark Mode */
html[data-theme="dark"] .inbox-page .page-head,
html[data-theme="dark"] .projects-page .page-head,
html[data-theme="dark"] .project-page .project-heading,
html[data-theme="dark"] .admin-operation-page .page-head {
  background: var(--dark-bg-secondary);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

/* Cards & Surface Elements in Dark Mode */
html[data-theme="dark"] .provider-profile-hero,
html[data-theme="dark"] .provider-stat-box,
html[data-theme="dark"] .portfolio-card,
html[data-theme="dark"] .service-content-card,
html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .service-market-card,
html[data-theme="dark"] .category-directory-card,
html[data-theme="dark"] .specialty-grid > a,
html[data-theme="dark"] .project-request-card,
html[data-theme="dark"] .request-wizard-card,
html[data-theme="dark"] .request-content-card,
html[data-theme="dark"] .request-offer-card,
html[data-theme="dark"] .request-trust-card,
html[data-theme="dark"] .service-filters,
html[data-theme="dark"] .status-tabs a,
html[data-theme="dark"] .taxonomy-item,
html[data-theme="dark"] .role-option-grid label,
html[data-theme="dark"] .register-card,
html[data-theme="dark"] .request-wizard-side > section,
html[data-theme="dark"] .request-wizard-side > form {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] .status-tabs a.active {
  background: var(--dark-primary);
  color: #ffffff;
  border-color: var(--dark-primary);
}

html[data-theme="dark"] .taxonomy-edit,
html[data-theme="dark"] .admin-profile {
  background: var(--dark-surface-2);
  border-color: var(--dark-border);
}

/* Search Fields & Inputs */
html[data-theme="dark"] .category-search,
html[data-theme="dark"] .services-search,
html[data-theme="dark"] .requests-search,
html[data-theme="dark"] .public-header-search,
html[data-theme="dark"] .username-field {
  background: var(--dark-bg-secondary);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] .category-search input,
html[data-theme="dark"] .services-search input,
html[data-theme="dark"] .requests-search input,
html[data-theme="dark"] .public-header-search input {
  color: var(--dark-text);
}

html[data-theme="dark"] .category-search input::placeholder,
html[data-theme="dark"] .services-search input::placeholder,
html[data-theme="dark"] .requests-search input::placeholder,
html[data-theme="dark"] .public-header-search input::placeholder {
  color: var(--dark-text-muted);
}

/* Chat & Messages in Project Page */
html[data-theme="dark"] .project-page .chat-head {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .project-page .chat-thread {
  background: var(--dark-bg-secondary);
}

html[data-theme="dark"] .project-page .message {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] .project-page .message.mine {
  background: var(--dark-primary-soft);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--dark-text);
}

html[data-theme="dark"] .message-document {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

/* Public & Dashboard Topbars & Menus */
html[data-theme="dark"] .account-mode .topbar,
html[data-theme="dark"] .dashboard-layout .dashboard-topbar,
html[data-theme="dark"] .public-topbar {
  background: rgba(7, 16, 28, 0.92) !important;
  border-color: var(--dark-border);
}

html[data-theme="dark"] .admin-rail {
  background: var(--dark-bg-secondary);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .public-account-menu summary,
html[data-theme="dark"] .public-account-menu > div {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] .public-account-menu > div a,
html[data-theme="dark"] .public-account-menu > div button {
  color: var(--dark-text-secondary);
}

html[data-theme="dark"] .public-account-menu > div a:hover,
html[data-theme="dark"] .public-account-menu > div button:hover {
  background: var(--dark-primary-soft);
  color: #60A5FA;
}

html[data-theme="dark"] .dashboard-user:hover {
  background: var(--dark-surface-2);
}

/* Marketplace Section Backgrounds */
html[data-theme="dark"] .category-directory,
html[data-theme="dark"] .category-specialties,
html[data-theme="dark"] .category-requests,
html[data-theme="dark"] .related-services,
html[data-theme="dark"] .latest-requests-section,
html[data-theme="dark"] .service-browse-section,
html[data-theme="dark"] .request-browse-section {
  background: var(--dark-bg);
}

html[data-theme="dark"] .category-icon-large {
  background: var(--dark-surface-2);
  border: 1px solid var(--dark-border);
}

html[data-theme="dark"] .service-card-cover {
  background: linear-gradient(145deg, var(--dark-surface), var(--dark-surface-2));
}

html[data-theme="dark"] .service-card-icon {
  background: rgba(13, 27, 45, 0.9);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .service-type-badge {
  background: var(--dark-surface-2);
  color: var(--dark-text-secondary);
}

html[data-theme="dark"] .service-proof,
html[data-theme="dark"] .request-budget-box {
  background: var(--dark-surface-2);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .service-proof > div {
  border-color: var(--dark-border);
}

html[data-theme="dark"] .service-proof strong,
html[data-theme="dark"] .request-budget-box strong {
  color: var(--dark-text);
}

html[data-theme="dark"] .package-comparison > article {
  background: var(--dark-surface-2);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .checkout-packages label > span {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .checkout-packages input:checked + span {
  background: var(--dark-primary-soft);
  border-color: var(--dark-primary);
}

html[data-theme="dark"] .checkout-packages label > span b {
  color: var(--dark-text);
}

html[data-theme="dark"] .save-service {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .request-wizard-progress li span,
html[data-theme="dark"] .register-progress li span {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .request-file-list a {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] .request-file-list b {
  color: var(--dark-text);
}

html[data-theme="dark"] .file-uploader {
  background: var(--dark-surface-2);
  border-color: var(--dark-border);
  color: var(--dark-text-secondary);
}

html[data-theme="dark"] .file-uploader b {
  color: var(--dark-text);
}

html[data-theme="dark"] .request-contract-types label {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .request-contract-types label:has(input:checked) {
  background: var(--dark-primary-soft);
  border-color: var(--dark-primary);
}

html[data-theme="dark"] .request-contract-types b {
  color: var(--dark-text);
}

html[data-theme="dark"] .results-toolbar select {
  background: var(--dark-bg-secondary);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

/* Last-mile class coverage found by Blade audit. */
.form-foot{color:var(--muted);font-size:.875rem;text-align:center}
.meta{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;color:var(--muted);font-size:.72rem}
.topbar-user-text{display:grid;min-width:0;line-height:1.25}.topbar-user-text strong,.topbar-user-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-user-text small{color:var(--muted);font-size:.65rem}
.group{position:relative}
.hover\:bg-slate-50\/70:hover{background:rgb(248 250 252 / .7)}
.backdrop\:bg-slate-900\/40::backdrop{background:rgb(15 23 42 / .4);backdrop-filter:blur(2px)}
@media(max-width:900px){.account-sidebar,.admin-sidebar,.admin-rail{border-right:0!important;border-left:1px solid var(--line)!important}}
.focus\:outline-none:focus{outline:none}
.focus-visible\:ring-offset-2:focus-visible{outline-offset:2px}
.hover\:bg-blue-50:hover{background:#eff6ff}

html[data-theme="dark"] .hover\:bg-slate-50\/70:hover {
  background: var(--dark-surface-2) !important;
}

html[data-theme="dark"] .hover\:bg-blue-50:hover {
  background: var(--dark-primary-soft) !important;
}

/* =====================================================================
   SHARIK WORKSPACE & MARKETPLACE REFINEMENTS (UI/UX OVERHAUL)
   ===================================================================== */

/* 1. Account Sidebar 3-Part Architecture */
.account-sidebar {
  overflow-y: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
}

.account-sidebar-fixed-top {
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
}

.account-sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: 1rem;
}

.account-sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}

.account-sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.account-sidebar-fixed-bottom {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--sidebar-border);
  background: var(--sidebar-bg);
  padding: 0.65rem 0.85rem 0.85rem;
  z-index: 2;
}

.account-sidebar .role-switch-pill {
  display: flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 3px;
  margin: 0.65rem 1rem 0.85rem;
  gap: 2px;
}

.account-sidebar .role-switch-item {
  flex: 1;
  text-align: center;
  font-size: 0.76rem;
  padding: 0.35rem 0.5rem;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.account-sidebar .role-switch-item.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.account-sidebar .sidebar-group-title {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.1rem 0.35rem;
}

.account-sidebar .side-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.84rem;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-inline-start: 3px solid transparent;
}

.account-sidebar .side-link:hover {
  background: var(--soft);
  color: var(--text);
}

.account-sidebar .side-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-weight: 700;
  border-inline-start-color: var(--primary);
}

.account-sidebar .side-link svg {
  flex-shrink: 0;
}

/* 2. "السوق الحالي" Card & Market Switcher */
.market-current-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
}

.market-current-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.market-current-flag {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.market-current-info {
  min-width: 0;
}

.market-current-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.market-current-title .market-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.market-current-title .market-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.market-currency-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.market-current-hint {
  font-size: 0.78rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.45;
}

.market-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  white-space: nowrap;
}

/* 3. Market Selector Modal Dialog */
.market-modal-dialog {
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  padding: 0;
  width: 92vw;
  max-width: 640px;
  max-height: 85vh;
  margin: auto;
  overflow: hidden;
}

.market-modal-dialog::backdrop {
  background: rgba(11, 31, 58, 0.6);
  backdrop-filter: blur(4px);
}

.market-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.market-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.market-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.market-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.65rem;
}

.market-country-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-size: 0.84rem;
  transition: all 0.15s ease;
}

.market-country-card:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}

.market-country-card.active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.market-country-flag {
  font-size: 1.35rem;
  line-height: 1;
}

/* 4. Quick Category Pills */
.quick-category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.25rem;
  scrollbar-width: none;
}

.quick-category-pills::-webkit-scrollbar {
  display: none;
}

.quick-category-pills .category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition: all 0.15s ease;
}

.quick-category-pills .category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quick-category-pills .category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* 5. Internal Dashboard Footer */
.dashboard-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle, var(--line));
  background: var(--surface);
  padding: 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dashboard-footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dashboard-footer-links a:hover {
  color: var(--primary);
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #10b981;
}

.system-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* 6. Dark mode overrides for new elements */
html[data-theme="dark"] .market-current-card {
  background: rgba(30, 58, 102, 0.2);
  border-color: rgba(59, 130, 246, 0.2);
}

html[data-theme="dark"] .market-current-flag {
  background: var(--dark-surface-2, #1e293b);
  border-color: var(--dark-border, #334155);
}

html[data-theme="dark"] .market-current-title .market-name {
  color: var(--dark-text, #f8fafc);
}

html[data-theme="dark"] .market-modal-dialog {
  background: var(--dark-surface, #0f172a);
  color: var(--dark-text, #f8fafc);
  border: 1px solid var(--dark-border, #334155);
}

html[data-theme="dark"] .market-modal-header {
  background: var(--dark-surface, #0f172a);
  border-bottom-color: var(--dark-border, #334155);
}

html[data-theme="dark"] .market-modal-header h3 {
  color: var(--dark-text, #f8fafc);
}

html[data-theme="dark"] .market-country-card {
  background: var(--dark-surface-2, #1e293b);
  border-color: var(--dark-border, #334155);
  color: var(--dark-text, #f8fafc);
}

html[data-theme="dark"] .market-country-card:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

html[data-theme="dark"] .market-country-card.active {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #60a5fa;
}

html[data-theme="dark"] .quick-category-pills .category-pill {
  background: var(--dark-surface-2, #1e293b);
  border-color: var(--dark-border, #334155);
  color: var(--dark-text-muted, #94a3b8);
}

html[data-theme="dark"] .quick-category-pills .category-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

html[data-theme="dark"] .dashboard-footer {
  background: var(--dark-surface, #0f172a);
  border-top-color: var(--dark-border, #334155);
}

/* ==========================================================================
   SHARIK UX 2.0 - REFINED DESIGN SYSTEM & COMPONENT RULES
   ========================================================================== */

/* 1. Modern Unified User Header (74px) */
.sharik-user-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 74px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .sharik-user-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.user-header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.header-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-nav-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  text-decoration: none;
  transition: all 0.15s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

html[data-theme="dark"] .header-nav-link {
  color: #94a3b8;
}

html[data-theme="dark"] .header-nav-link:hover,
html[data-theme="dark"] .header-nav-link.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* Header Global Search Bar (320-380px) */
.header-search-bar {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.header-search-input {
  width: 100%;
  height: 42px;
  border-radius: 9999px;
  background: var(--bg-surface-secondary, #f1f5f9);
  border: 1px solid var(--border-subtle, #e2e8f0);
  padding-inline-start: 2.5rem;
  padding-inline-end: 4.5rem;
  font-size: 0.875rem;
  color: var(--text-primary, #0f172a);
  outline: none;
  transition: all 0.2s ease;
}

.header-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

html[data-theme="dark"] .header-search-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

html[data-theme="dark"] .header-search-input:focus {
  background: #1e293b;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.header-search-icon {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.header-search-kbd {
  position: absolute;
  inset-inline-end: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .header-search-kbd {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

/* Header Unified Create Button */
.header-create-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 42px;
  padding: 0 1.15rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  list-style: none;
}

.header-create-cta::-webkit-details-marker {
  display: none;
}

.header-create-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Header 44x44 Touch Target Icon Buttons */
.header-icon-btn {
  width: 44px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #64748b;
  position: relative;
  text-decoration: none;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.header-icon-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

html[data-theme="dark"] .header-icon-btn {
  color: #94a3b8;
}

html[data-theme="dark"] .header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.header-icon-badge {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
}

html[data-theme="dark"] .header-icon-badge {
  box-shadow: 0 0 0 2px #0f172a;
}

/* Header Avatar Trigger (Zero Text Clipping) */
.header-avatar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 3px 6px 3px 3px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-subtle, #e2e8f0);
  cursor: pointer;
  transition: all 0.2s ease;
  list-style: none;
}

.header-avatar-trigger::-webkit-details-marker {
  display: none;
}

.header-avatar-trigger:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

html[data-theme="dark"] .header-avatar-trigger {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .header-avatar-trigger:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Account Dropdown Panel */
.account-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: 280px;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  padding: 0.75rem;
  z-index: 100;
  animation: dropdownAnim 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownAnim {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-theme="dark"] .account-dropdown-panel {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-user-banner {
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  border-radius: 0.85rem;
  background: var(--bg-surface-secondary, #f8fafc);
  border: 1px solid var(--border-subtle, #f1f5f9);
}

html[data-theme="dark"] .dropdown-user-banner {
  background: #1e293b;
  border-color: #334155;
}

.account-dropdown-panel a.dropdown-nav-item,
.account-dropdown-panel button.dropdown-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--text-primary, #0f172a);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: inherit;
}

.account-dropdown-panel a.dropdown-nav-item:hover,
.account-dropdown-panel button.dropdown-nav-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

html[data-theme="dark"] .account-dropdown-panel a.dropdown-nav-item,
html[data-theme="dark"] .account-dropdown-panel button.dropdown-nav-item {
  color: #f8fafc;
}

html[data-theme="dark"] .account-dropdown-panel a.dropdown-nav-item:hover,
html[data-theme="dark"] .account-dropdown-panel button.dropdown-nav-item:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* 2. Marketplace Context Bar (Market Selector) */
.marketplace-context-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  padding: 0.65rem 0;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

html[data-theme="dark"] .marketplace-context-bar {
  background: #0b1120;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.market-country-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--bg-surface-secondary, #f1f5f9);
  border: 1px solid var(--border-subtle, #e2e8f0);
  color: var(--text-primary, #0f172a);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-country-trigger:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

html[data-theme="dark"] .market-country-trigger {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

html[data-theme="dark"] .market-country-trigger:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* Marketplace Selector Modal Dialog */
.market-modal-dialog {
  border: none;
  border-radius: 1.5rem;
  padding: 0;
  max-width: 540px;
  width: 92%;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.market-modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

html[data-theme="dark"] .market-modal-dialog {
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.market-country-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface-secondary, #f8fafc);
  text-decoration: none;
  color: var(--text-primary, #0f172a);
  transition: all 0.15s ease;
}

.market-country-card-item:hover,
.market-country-card-item.active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

html[data-theme="dark"] .market-country-card-item {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

html[data-theme="dark"] .market-country-card-item:hover,
html[data-theme="dark"] .market-country-card-item.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

/* 3. Modern Service Card (16:10, Rating Hierarchy, Micro-interactions) */
.sharik-service-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 1.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
}

.sharik-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

html[data-theme="dark"] .sharik-service-card {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .sharik-service-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.4);
}

.card-cover-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sharik-service-card:hover .card-cover-img {
  transform: scale(1.05);
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.card-fav-btn:hover {
  color: #e11d48;
  transform: scale(1.1);
}

html[data-theme="dark"] .card-fav-btn {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
}

.card-badge-floating {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.card-body-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-seller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.card-title-link:hover {
  color: #2563eb;
}

html[data-theme="dark"] .card-title-link {
  color: #f8fafc;
}

html[data-theme="dark"] .card-title-link:hover {
  color: #60a5fa;
}

.card-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary, #64748b);
}

.card-footer-strip {
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html[data-theme="dark"] .card-footer-strip {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.card-price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

html[data-theme="dark"] .card-price-value {
  color: #f8fafc;
}

/* 4. Marketplace Responsive Grid (4 columns >=1440px) */
.sharik-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1400px) {
  .sharik-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sharik-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .sharik-services-grid {
    grid-template-columns: 1fr;
  }
}

/* 5. Marketplace Layout Grid & Sticky Filters Sidebar (280px) */
.marketplace-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .marketplace-layout-grid {
    grid-template-columns: 1fr;
  }
}

.desktop-filters-sidebar {
  position: sticky;
  top: 90px;
}

.filters-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .filters-card-wrapper {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 6. Marketplace Compact Hero & Category Strip */
.marketplace-compact-hero {
  padding: 2.25rem 0 1.5rem;
  background: linear-gradient(135deg, #0b1f3a 0%, #172a46 100%);
  color: #ffffff;
}

.marketplace-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.marketplace-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.marketplace-breadcrumb a:hover {
  color: #ffffff;
}

.category-strip-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-strip-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-strip-tile:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.category-strip-tile.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 7. Workspace Utility Footer (Single-line Compact 48px) */
.workspace-utility-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  background: #ffffff;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 0.75rem;
}

html[data-theme="dark"] .workspace-utility-footer {
  background: #0f172a;
  border-top-color: #1e293b;
  color: #94a3b8;
}

.workspace-utility-footer a {
  color: inherit;
  text-decoration: none;
}

.workspace-utility-footer a:hover {
  color: #2563eb;
}

html[data-theme="dark"] .workspace-utility-footer a:hover {
  color: #60a5fa;
}

/* 8. Account Sidebar Marketplace CTA Button */
.sidebar-marketplace-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563eb !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.sidebar-marketplace-cta:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

html[data-theme="dark"] .sidebar-marketplace-cta {
  color: #60a5fa !important;
  border-color: rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .sidebar-marketplace-cta:hover {
  color: #ffffff !important;
}

/* 9. Mobile Drawers & Backdrops */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .mobile-nav-drawer {
  transform: translateX(-100%);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

html[data-theme="dark"] .mobile-nav-drawer {
  background: #0f172a;
  border-inline-end: 1px solid #334155;
}

/* =================================================================
   SHARIK — V5 User Header
   ================================================================= */
.sharik-user-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    color: var(--navy);
}

html[data-theme="dark"] .sharik-user-header {
    background: rgba(11, 31, 58, 0.95);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}

.user-header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* 1. Right Group (Brand & Nav) */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--navy);
}

.brand-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.brand-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.header-desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-tab-btn:hover, .nav-tab-btn:focus-visible {
    background: var(--soft);
    color: var(--blue);
}

.nav-tab-btn.active {
    color: var(--blue);
    background: var(--blue-light);
}

.nav-dropdown-wrapper {
    position: relative;
}

/* Dropdown styling */
.header-menu-dropdown, .categories-panel-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    z-index: 110;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(0);
}

.header-menu-dropdown[hidden], .categories-panel-menu[hidden] {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
}

.categories-panel-menu {
    right: 0; /* Align right since RTL */
    width: 720px;
    padding: 1.5rem;
}

.categories-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-panel-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-panel-main-link {
    display: flex;
    flex-direction: column;
    color: var(--navy);
    text-decoration: none;
}
.category-panel-main-link strong {
    font-size: 0.95rem;
    font-weight: 800;
    transition: color 0.15s;
}
.category-panel-main-link small {
    font-size: 0.75rem;
    color: var(--muted);
}
.category-panel-main-link:hover strong {
    color: var(--blue);
}

.category-sub-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.category-sub-links .sub-link {
    font-size: 0.8rem;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s;
}
.category-sub-links .sub-link:hover {
    color: var(--blue);
}

.categories-panel-foot {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}
.view-all-cats-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}
.view-all-cats-link:hover {
    text-decoration: underline;
}

/* 2. Center Group (Global Search) */
.header-center-group {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
}

.header-global-search {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-field {
    width: 100%;
    height: 44px;
    padding: 0 2.5rem 0 3.5rem; /* Space for icon and kbd */
    border-radius: 22px;
    border: 1px solid var(--line-strong, var(--line));
    background: var(--soft);
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.header-search-field:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--blue-light);
}

.search-symbol {
    position: absolute;
    right: 1rem;
    color: var(--muted);
    pointer-events: none;
    display: flex;
}

.search-kbd-hint {
    position: absolute;
    left: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    color: var(--muted);
    font-family: monospace;
    pointer-events: none;
}

/* 3. Left Group (Actions & Profile) */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.header-icon-action:hover, .header-icon-action:focus-visible {
    background: var(--soft);
    color: var(--blue);
}

.header-icon-action.active {
    background: var(--blue-light);
    color: var(--blue);
}

.action-count-pill {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
    border: 2px solid var(--surface);
}

.action-dot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--surface);
}

/* Create Button */
.create-action-wrapper {
    position: relative;
    margin-left: 0.5rem;
}

.header-create-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 40px;
    padding: 0 1rem;
    border-radius: 20px;
    background: var(--navy);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.header-create-cta:hover {
    background: var(--primary);
}

.header-create-cta .chevron-rot {
    transition: transform 0.2s;
    opacity: 0.7;
}

.header-create-cta[aria-expanded="true"] .chevron-rot {
    transform: rotate(180deg);
}

.create-dropdown-menu {
    left: 0;
    width: 280px;
    padding: 0.75rem;
}

.dropdown-heading-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.05em;
}

.menu-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    color: var(--text-2);
    transition: background 0.15s;
}

.menu-action-item:hover {
    background: var(--soft);
}

.action-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
}

.action-item-icon.blue { background: #e0f2fe; color: #0284c7; }
.action-item-icon.purple { background: #f3e8ff; color: #9333ea; }
.action-item-icon.cyan { background: #ccfbf1; color: #0d9488; }

.menu-action-item div {
    display: flex;
    flex-direction: column;
}
.menu-action-item strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
}
.menu-action-item small {
    font-size: 0.7rem;
    color: var(--muted);
}

.menu-divider {
    height: 1px;
    background: var(--line);
    margin: 0.5rem 0;
}

/* Notifications Dropdown */
.notifications-action-wrapper {
    position: relative;
}

.notifs-dropdown-menu {
    left: 0;
    width: 320px;
    padding: 0;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.notif-dropdown-header strong {
    font-size: 0.95rem;
}
.notif-unread-chip {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--r-full);
}

.notif-dropdown-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item-row {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.notif-item-row:hover {
    background: var(--soft);
}
.notif-item-row:last-child {
    border-bottom: none;
}

.notif-row-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.notif-row-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.notif-row-text strong {
    font-size: 0.85rem;
    color: var(--navy);
    line-height: 1.4;
}
.notif-row-text small {
    font-size: 0.75rem;
    color: var(--muted);
}

.notif-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.notif-dropdown-footer {
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}
.view-all-notifs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}
.view-all-notifs:hover {
    text-decoration: underline;
}

/* Account Menu Dropdown */
.account-menu-wrapper {
    position: relative;
    margin-right: 0.25rem;
}

.header-avatar-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.header-avatar-trigger:hover, .header-avatar-trigger[aria-expanded="true"] {
    border-color: var(--blue);
    background: var(--soft);
}

.user-avatar-disc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    overflow: hidden;
}
.user-avatar-disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-dropdown-panel {
    left: 0;
    width: 260px;
    padding: 1rem;
}

.account-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.account-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}
.account-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-name {
    font-size: 0.95rem;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-email {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-role-badge {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    background: var(--surface-3);
    color: var(--text-2);
    padding: 0.15rem 0.4rem;
    border-radius: var(--r-sm);
    width: fit-content;
}

.account-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.account-menu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--r-sm);
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}
.account-menu-link:hover {
    background: var(--soft);
    color: var(--blue);
}
.account-menu-link.highlight-market-link {
    color: var(--primary);
}
.account-menu-link.admin-special-link {
    color: #059669; /* emerald-600 */
}
.account-menu-link.logout-link {
    color: var(--danger);
}
.account-menu-link.logout-link:hover {
    background: var(--danger-bg);
}

.logout-menu-form {
    margin: 0;
}

/* Guest Buttons */
.guest-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.btn-guest-ghost, .btn-guest-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 38px;
    padding: 0 1rem;
    border-radius: 19px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-guest-ghost {
    color: var(--navy);
    background: transparent;
}
.btn-guest-ghost:hover {
    background: var(--soft);
}

.btn-guest-primary {
    background: var(--blue);
    color: #fff;
}
.btn-guest-primary:hover {
    background: var(--blue-hover);
    box-shadow: var(--shadow-sm);
}

/* Mobile Nav Drawer Button */
.mobile-nav-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.mobile-nav-hamburger .bar {
    width: 20px;
    height: 2px;
    background: var(--navy);
    transition: all 0.2s;
}

/* Mobile Nav Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.mobile-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface);
    z-index: 1010;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-nav-drawer.is-open {
    right: 0;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--line);
}
.drawer-close-action {
    background: transparent;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--r-sm);
}
.drawer-close-action:hover {
    background: var(--soft);
}

.drawer-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.drawer-user-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
}
.drawer-user-card small {
    color: var(--muted);
    font-size: 0.75rem;
}

.drawer-group-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.drawer-links-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--r-sm);
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}
.drawer-nav-item:hover {
    background: var(--soft);
    color: var(--blue);
}
.drawer-nav-item svg {
    color: var(--muted);
}

.drawer-footer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: transparent;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .header-desktop-nav {
        display: none;
    }
    .header-center-group {
        display: none;
    }
    .mobile-nav-hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .header-create-cta span, .header-create-cta .chevron-rot {
        display: none;
    }
    .header-create-cta {
        padding: 0;
        width: 40px;
        justify-content: center;
    }
    .guest-nav-actions .btn-guest-primary span {
        display: none;
    }
}

/* =================================================================
   SHARIK — V5 Marketplace Services
   ================================================================= */
.marketplace-experience {
    background: var(--page);
    min-height: calc(100vh - 76px);
}

/* =====================================================================
   MARKETPLACE EXPERIENCE — HERO, CONTEXT BAR, CATEGORY STRIP & GRID
   ===================================================================== */
.marketplace-experience {
    background: var(--page, #f8fafc);
    min-height: calc(100vh - 72px);
}

html[data-theme="dark"] .marketplace-experience {
    background: #0b1528;
}

/* 1. Compact Hero (Full-width Deep Blue) */
.marketplace-compact-hero {
    background: #071730;
    background: linear-gradient(180deg, #071730 0%, #0c234b 100%);
    color: #ffffff;
    padding: 3.25rem 0 3.5rem;
    position: relative;
    width: 100%;
}

.hero-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.marketplace-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.15rem;
    align-self: center;
}

.marketplace-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.marketplace-breadcrumb a:hover {
    color: #ffffff;
}

.marketplace-breadcrumb .sep {
    color: #475569;
    font-size: 0.8rem;
}

.marketplace-breadcrumb .active-crumb {
    color: #cbd5e1;
}

.marketplace-breadcrumb .active-crumb.current {
    color: #ffffff;
    font-weight: 600;
}

.hero-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 1.15rem;
}

.hero-badge-pill svg {
    color: #60a5fa;
}

.hero-main-title {
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff !important;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: #cbd5e1;
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.65;
    text-align: center;
}

/* 2. Focused Hero Search Box (Cohesive Single Component, 730–760px, RTL) */
.hero-search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 750px;
    margin-inline: auto;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    direction: rtl;
    box-sizing: border-box;
}

.hero-search-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.search-ico-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    padding-inline-start: 1rem;
    padding-inline-end: 0.5rem;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: none;
    outline: none;
    font-size: 0.98rem;
    font-family: inherit;
    color: #0b1f3a;
    background: transparent;
    padding-inline: 0.5rem;
    text-align: start;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.85rem;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, transform 0.1s ease;
}

.hero-search-submit:hover {
    background: #1d4ed8;
}

.hero-search-submit:active {
    transform: scale(0.98);
}

/* 3. Market Bar (Dark / Black Bar below Hero) */
.marketplace-context-bar {
    width: 100%;
    background: #061122;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 0;
    color: #ffffff;
}

.market-context-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.market-context-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.market-iso-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.market-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.market-headline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.market-country-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.market-currency-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
}

.market-sub-scope {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.scope-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
}

.scope-text {
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-context-actions {
    flex-shrink: 0;
}

.btn-market-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-market-switch:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.market-count-chip {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.3);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
}

/* 4. Category Strip (Full-width White Strip) */
.marketplace-categories-strip {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html[data-theme="dark"] .marketplace-categories-strip {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.categories-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0;
}

.categories-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.category-strip-tile {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 0.35rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.18s ease;
}

html[data-theme="dark"] .category-strip-tile {
    color: #94a3b8;
}

.category-strip-tile:hover {
    color: #2563eb;
}

html[data-theme="dark"] .category-strip-tile:hover {
    color: #60a5fa;
}

.category-strip-tile.is-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 700;
}

html[data-theme="dark"] .category-strip-tile.is-active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

.cat-tile-icon {
    display: flex;
    align-items: center;
    color: inherit;
}

/* 5. Main Layout Grid */
.marketplace-main-section {
    padding: 2.5rem 0 4rem;
}

.marketplace-layout-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

/* Sidebar Filters (Sticky & Scrollable) */
.desktop-filters-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.filters-card-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

html[data-theme="dark"] .filters-card-wrapper {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filters-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

html[data-theme="dark"] .filters-card-header {
    background: #0f172a;
    border-bottom-color: #334155;
}

.filters-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

html[data-theme="dark"] .filters-header-title {
    color: #f8fafc;
}

.filter-count-badge {
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 12px;
}

.filters-reset-action {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.filters-reset-action:hover {
    color: #ef4444;
}

.filters-form-body {
    display: flex;
    flex-direction: column;
}

.filter-accordion-item {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

html[data-theme="dark"] .filter-accordion-item {
    border-bottom-color: #334155;
}

.filter-accordion-item:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
}

html[data-theme="dark"] .filter-label {
    color: #f1f5f9;
}

.filter-select-field, .filter-price-field {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s;
}

html[data-theme="dark"] .filter-select-field,
html[data-theme="dark"] .filter-price-field {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.filter-select-field:focus, .filter-price-field:focus {
    border-color: #2563eb;
}

.filter-radios-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-radio-row, .filter-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #334155;
}

html[data-theme="dark"] .filter-radio-row,
html[data-theme="dark"] .filter-checkbox-row {
    color: #cbd5e1;
}

.filter-radio-row input, .filter-checkbox-row input {
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
}

.filter-price-input-box {
    position: relative;
}

.currency-tag {
    position: absolute;
    inset-inline-end: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.filter-price-field {
    padding-inline-end: 3.25rem;
}

.filters-submit-wrap {
    padding: 1.15rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

html[data-theme="dark"] .filters-submit-wrap {
    background: #0f172a;
    border-top-color: #334155;
}

/* 6. Results Header & Services Grid */
.results-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.results-meta-side {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

html[data-theme="dark"] .results-title {
    color: #f8fafc;
}

.results-total-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

html[data-theme="dark"] .results-total-badge {
    color: #94a3b8;
}

.results-sort-side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.88rem;
    color: #64748b;
    white-space: nowrap;
}

html[data-theme="dark"] .sort-label {
    color: #94a3b8;
}

.sort-select-field {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    cursor: pointer;
}

html[data-theme="dark"] .sort-select-field {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

/* Active Filter Chips */
.active-filter-chips-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.chips-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s;
}

html[data-theme="dark"] .filter-chip {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.filter-chip:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* Services Grid (3 cols desktop, 2 cols tablet, 1 col mobile) */
.sharik-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Empty State */
.marketplace-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

html[data-theme="dark"] .marketplace-empty-state {
    background: #1e293b;
    border-color: #334155;
}

.empty-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    margin-bottom: 1rem;
}

html[data-theme="dark"] .empty-icon-circle {
    background: #0f172a;
    color: #94a3b8;
}

.marketplace-empty-state h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: #0f172a;
}

html[data-theme="dark"] .marketplace-empty-state h3 {
    color: #f8fafc;
}

.marketplace-empty-state p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

html[data-theme="dark"] .marketplace-empty-state p {
    color: #94a3b8;
}

/* Pagination */
.marketplace-pagination-wrap {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Mobile Filters Drawer */
.mobile-filter-bar {
    display: none;
    margin-bottom: 1rem;
}

.btn-mobile-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
    cursor: pointer;
}

html[data-theme="dark"] .btn-mobile-filters {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.mobile-filters-dialog {
    padding: 0;
    border: none;
    border-radius: 20px 20px 0 0;
    margin: auto 0 0 0;
    width: 100%;
    max-width: none;
    height: 90vh;
    max-height: 90vh;
    background: #ffffff;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}

html[data-theme="dark"] .mobile-filters-dialog {
    background: #1e293b;
    color: #f8fafc;
}

.mobile-filters-dialog::backdrop {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.drawer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

html[data-theme="dark"] .drawer-header {
    border-bottom-color: #334155;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
}

.drawer-form-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer-submit-footer {
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

html[data-theme="dark"] .drawer-submit-footer {
    border-top-color: #334155;
}

/* 7. Responsive Breakpoints */
@media (max-width: 1200px) {
    .categories-scroll-wrapper {
        gap: 1.5rem;
    }
    .sharik-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .marketplace-layout-grid {
        grid-template-columns: 1fr;
    }
    .desktop-filters-sidebar {
        display: none;
    }
    .mobile-filter-bar {
        display: block;
    }
}

@media (max-width: 768px) {
    .marketplace-compact-hero {
        padding: 2.25rem 0 2.5rem;
    }
    .hero-main-title {
        font-size: 1.85rem;
    }
    .hero-tagline {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    .hero-search-wrapper {
        padding: 4px;
        border-radius: 14px;
    }
    .hero-search-input {
        font-size: 0.9rem;
        height: 44px;
    }
    .hero-search-submit {
        height: 44px;
        padding: 0 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .market-context-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .market-context-info {
        width: 100%;
    }
    .market-context-actions {
        width: 100%;
    }
    .btn-market-switch {
        width: 100%;
        justify-content: center;
    }
    .scope-text {
        white-space: normal;
    }
    .categories-scroll-wrapper {
        gap: 1.25rem;
    }
    .sharik-services-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   VISUAL STABILITY PASS — responsive geometry, icon rhythm and density
   This layer intentionally changes presentation only.
   ===================================================================== */

/* Prevent intrinsic content (long Arabic titles, money and media) from
   widening cards or forcing a horizontal page scroll. */
html { overflow-x: clip; }
body { min-width: 0; }
img, video, canvas { max-width: 100%; }
.container, .account-main, .dashboard-main-content,
.workspace-main, .workspace-side, .panel, .card { min-width: 0; }
h1, h2, h3, p, a, strong, small { overflow-wrap: break-word; }

/* One coherent icon language: predictable sizing and optical alignment. */
.btn > svg, .arrow-link > svg, .header-icon > svg,
.header-icon-action > svg, .drawer-nav-item > svg,
.account-menu-link > svg, .sidebar-link > svg,
.bottom-nav-item > svg {
    flex: 0 0 auto;
    vertical-align: middle;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-icon, .header-icon-action, .theme-toggle,
.mobile-nav-hamburger, .drawer-close-action, .sidebar-launch {
    min-width: 44px;
    min-height: 44px;
}

/* The drawer previously mixed logical positioning with a physical `right`
   offset, which left it visibly covering the page in RTL while closed. */
.mobile-nav-drawer {
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    right: -340px !important;
    left: auto !important;
    transform: none !important;
    visibility: hidden;
    pointer-events: none;
}
.mobile-nav-drawer.is-open {
    right: 0 !important;
    visibility: visible;
    pointer-events: auto;
}
.mobile-drawer-backdrop:not(.is-open) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Keep the large header useful at laptop widths without squeezing five nav
   links, search, theme and authentication controls into the same row. */
@media (max-width: 1320px) {
    .user-header-container { gap: .85rem; }
    .header-right-group { gap: 1rem; }
    .header-desktop-nav { display: none; }
    .mobile-nav-hamburger { display: flex; }
    .header-center-group { max-width: 430px; }
}

@media (max-width: 940px) {
    .sharik-user-header { height: 68px; }
    .user-header-container { height: 68px; padding-inline: 1rem; }
    .header-center-group { display: none; }
    .brand-title { font-size: 1.12rem; }
    .brand-logo-frame { width: 36px; height: 36px; }
}

/* Home grids stay balanced with small datasets and compact at phone sizes. */
.featured-section .service-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 340px));
    justify-content: start;
}
.providers-section .grid-3,
.reviews-section .grid-3 {
    align-items: stretch;
}
.providers-section .provider-spotlight,
.reviews-section .review-card { height: 100%; }

/* Forms, tables and cards share the same interaction polish. */
input, select, textarea, button { font: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue) 28%, transparent);
    outline-offset: 2px;
}
.table-wrap { border-radius: var(--r-lg); }
table { width: 100%; }
.btn, .header-icon, .header-icon-action, .nav-tab-btn,
.drawer-nav-item, .account-menu-link { -webkit-tap-highlight-color: transparent; }

@media (max-width: 720px) {
    :root { --container-pad: 1rem; }

    .section { padding-block: 2.75rem; }
    .section-head {
        align-items: flex-start;
        margin-block-end: 1.35rem;
    }
    .section-head h2 { font-size: clamp(1.45rem, 7vw, 1.9rem); }
    .section-head p { line-height: 1.7; }

    .home-page .hero { padding-block: 2.25rem 2.75rem; }
    .home-page .hero-grid { gap: 1.8rem; }
    .home-page .hero-copy { text-align: center; }
    .home-page .hero h1 {
        max-width: 14ch;
        margin-inline: auto;
        font-size: clamp(2.05rem, 10.5vw, 2.75rem);
        line-height: 1.16;
    }
    .home-page .hero p { font-size: .95rem; }
    .hero-search { min-height: 54px; padding: .35rem .45rem; }
    .hero-search input { min-width: 0; font-size: .88rem; }
    .hero-search .btn { min-width: 68px; padding-inline: .8rem; }
    .hero-primary-actions { display: grid; grid-template-columns: 1fr; }
    .popular-searches { justify-content: center; row-gap: .5rem; }
    .hero-proof { justify-content: center; }

    .home-page .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .category-card {
        min-height: 124px;
        flex-direction: column;
        gap: .65rem;
        padding: 1rem;
    }
    .home-page .category-card .category-icon { width: 46px; height: 46px; }
    .featured-section .service-results-grid,
    .providers-section .grid-3,
    .reviews-section .grid-3 { grid-template-columns: 1fr; }
    .featured-section .service-results-grid { justify-content: stretch; }
    .workflow-grid, .assurance-grid, .faq-grid { gap: 1.5rem; }
    .workflow-steps article { padding: 1rem; }
    .trust-stats { overflow: hidden; border-radius: 0; }

    /* Dashboard: full-width content, no desktop rail residue, calmer toolbar. */
    .dashboard-layout { display: block !important; }
    .dashboard-layout .account-main { width: 100% !important; margin: 0 !important; }
    .dashboard-topbar { min-height: 64px; }
    .dashboard-topbar-inner { min-height: 64px; padding-inline: .75rem; gap: .45rem; }
    .topbar-breadcrumb { display: none; }
    .topbar-actions { gap: .3rem; margin-inline-start: auto; }
    .topbar-user-text, .wallet-chip-label, .quick-create summary span { display: none; }
    .topbar-user { padding: .2rem; }
    .quick-create summary { width: 44px; min-width: 44px; padding: 0; }
    .dashboard-main-content { padding: 1.25rem 1rem calc(6rem + env(safe-area-inset-bottom)); }
    .page-head-row { gap: 1rem; }
    .workspace-quick-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .workspace-quick-actions .btn { width: 100%; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .stat-card { min-height: 138px; padding: 1rem; }
    .workspace-grid { gap: 1rem; }
    .panel { border-radius: 16px; overflow: hidden; }
    .panel-head { padding: 1rem; }
    .project-row { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
    .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
    .mobile-bottom-nav-inner { width: 100%; }
    .bottom-nav-item { min-width: 0; }

    .table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; }
    .table-wrap table { min-width: 680px; }
}

@media (max-width: 430px) {
    .user-header-container { padding-inline: .75rem; }
    .brand-title { display: none; }
    .guest-nav-actions { gap: .25rem; margin: 0; }
    .btn-guest-ghost { padding-inline: .75rem; }
    .btn-guest-primary { width: 42px; padding: 0; }
    .home-page .category-grid { grid-template-columns: 1fr; }
    .home-page .category-card { min-height: 0; flex-direction: row; }
    .stats-row { grid-template-columns: 1fr; }
    .stat-card { min-height: 120px; }
}

/* A few legacy views still carry desktop grid columns inline. Inline styles
   outrank their responsive modules, so normalize those grids at phone size. */
@media (max-width: 720px) {
    main [style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .client-dashboard-grid,
    .provider-dashboard-grid,
    .wallet-grid,
    .provider-listings-section > .container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
    }
    .client-action-row,
    .provider-project-row {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
    }
    .client-offer,
    .provider-opportunities > a {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
    }
    .settings-nav-card,
    .listing-publish-form,
    .wallet-grid > aside {
        position: static !important;
    }
}



@media (max-width: 430px) {
    .header-left-group { gap: .2rem; }
    .header-left-group > a[aria-label="الخدمات المحفوظة"],
    .header-left-group > .account-menu-wrapper { display: none; }
    .create-action-wrapper { margin: 0; }
    .header-icon-action, .theme-toggle, .mobile-nav-hamburger { width: 40px; min-width: 40px; }
}
/* Unified public colour system + providers directory */
.providers-index-page,.category-page,.marketplace-services-page{background:var(--page);color:var(--text)}
.providers-directory-hero{padding:clamp(3rem,7vw,5.5rem) 0;color:#fff;background:radial-gradient(circle at 18% 15%,rgba(37,99,235,.32),transparent 34%),linear-gradient(135deg,#071730,#102d5b)}
.providers-directory-hero__content{max-width:900px;text-align:center}.providers-directory-kicker{display:inline-flex;padding:.4rem .85rem;border:1px solid rgba(147,197,253,.3);border-radius:999px;color:#bfdbfe;background:rgba(37,99,235,.16);font-size:.82rem;font-weight:700}
.providers-directory-hero h1{color:#fff;font-size:clamp(2rem,5vw,3.4rem);line-height:1.2;margin:1rem 0 .75rem}.providers-directory-hero p{color:#cbd5e1;max-width:690px;margin:0 auto 1.75rem;line-height:1.8}
.providers-directory-search{max-width:720px;margin:auto;display:flex;align-items:center;gap:.75rem;padding:.5rem .6rem .5rem 1rem;border-radius:16px;background:#fff;color:#64748b;box-shadow:0 18px 50px rgba(0,0,0,.24)}.providers-directory-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#0f172a;font:inherit}
.providers-results-header{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.providers-results-header h2{margin:.25rem 0 0;color:var(--text)}.providers-count{color:var(--muted);font-size:.9rem}
.providers-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.provider-directory-card{display:flex;flex-direction:column;min-height:310px;padding:1.4rem;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-sm)}
.provider-directory-card__top{display:flex;align-items:start;justify-content:space-between}.provider-avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;color:#2563eb;background:rgba(37,99,235,.1);font-size:1.5rem;font-weight:800}.verified-pill{padding:.25rem .55rem;border-radius:999px;color:#047857;background:#d1fae5;font-size:.72rem;font-weight:800}
.provider-directory-card h3{margin:1rem 0 .3rem}.provider-directory-card h3 a{color:var(--text);text-decoration:none}.provider-directory-card p{color:var(--muted);min-height:2.8em;margin:0 0 .75rem}.provider-rating{color:#f59e0b;font-weight:800}.provider-skills{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0}.provider-skills span{padding:.28rem .55rem;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--soft);font-size:.75rem}
.provider-directory-card footer{display:flex;justify-content:space-between;gap:.75rem;margin-top:auto;padding-top:1rem;border-top:1px solid var(--line);color:var(--muted);font-size:.78rem}.provider-directory-card footer a{color:var(--blue);font-weight:700;text-decoration:none}.providers-empty-state{padding:4rem 1.5rem;border:1px dashed var(--line);border-radius:18px;text-align:center;background:var(--surface)}.providers-empty-state h3{color:var(--text)}.providers-empty-state p{color:var(--muted)}
html[data-theme="dark"] .marketplace-services-page,html[data-theme="dark"] .category-page,html[data-theme="dark"] .providers-index-page{--page:#07111f;--surface:#0f1c2e;--soft:#13243a;--text:#f8fafc;--muted:#a8b5c7;--line:#263852}
html[data-theme="dark"] .marketplace-services-page .sharik-user-header,html[data-theme="dark"] .category-page .sharik-user-header,html[data-theme="dark"] .providers-index-page .sharik-user-header{background:#091525!important;border-bottom-color:#263852!important}
html[data-theme="dark"] .category-page-wrapper,html[data-theme="dark"] .category-content-section{background:#07111f!important;color:#f8fafc}html[data-theme="dark"] .category-page .card,html[data-theme="dark"] .category-page .service-empty{background:#0f1c2e!important;border-color:#263852!important;color:#f8fafc!important}html[data-theme="dark"] .category-page .service-empty h3{color:#f8fafc!important}html[data-theme="dark"] .category-page .service-empty p{color:#a8b5c7!important}
html[data-theme="dark"] .marketplace-services-page .hero-search-wrapper{background:#fff!important}html[data-theme="dark"] .marketplace-services-page .hero-search-input{color:#0f172a!important;background:transparent!important}
@media(max-width:900px){.providers-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.providers-directory-grid{grid-template-columns:1fr}.providers-directory-search{flex-wrap:wrap}.providers-directory-search input{flex-basis:calc(100% - 40px)}.providers-directory-search .btn{width:100%}.providers-results-header{align-items:start;flex-direction:column}}
