/* Collaborative Work — unified professional application layer */
:root{
  --cw-navy:#0b1f3f;
  --cw-ink:#0f2139;
  --cw-muted:#62738a;
  --cw-blue:#1268e5;
  --cw-blue-strong:#0a56c7;
  --cw-cyan:#35c7f3;
  --cw-surface:#ffffff;
  --cw-canvas:#f4f8fd;
  --cw-soft:#edf5ff;
  --cw-line:#dce7f4;
  --cw-success:#079455;
  --cw-warning:#d97706;
  --cw-danger:#dc3545;
  --cw-radius-sm:12px;
  --cw-radius:18px;
  --cw-radius-lg:26px;
  --cw-shadow-sm:0 8px 24px rgba(15,33,57,.06);
  --cw-shadow:0 18px 50px rgba(15,33,57,.09);
  --cw-shadow-lg:0 28px 80px rgba(15,33,57,.14);
  --cw-ease:cubic-bezier(.2,.7,.2,1);
}

html{scroll-behavior:smooth}
body.cw-system-shell{
  color:var(--cw-ink);
  background:
    radial-gradient(circle at 8% 2%,rgba(53,199,243,.10),transparent 25rem),
    radial-gradient(circle at 96% 16%,rgba(18,104,229,.08),transparent 28rem),
    var(--cw-canvas);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.cw-system-shell::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.34;
  background-image:linear-gradient(rgba(18,104,229,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(18,104,229,.022) 1px,transparent 1px);
  background-size:32px 32px;
  mask-image:linear-gradient(to bottom,#000,transparent 76%);
}
body.cw-system-shell main,
body.cw-system-shell #main-content{position:relative}
body.cw-system-shell main>.container,
body.cw-system-shell #main-content>.container,
body.cw-system-shell>.container.py-4,
body.cw-system-shell>.container.py-5{width:min(1380px,calc(100% - 36px));max-width:1380px}

/* Shared navigation polish */
body.cw-system-shell>.navbar{
  border-bottom:1px solid rgba(220,231,244,.92)!important;
  box-shadow:0 10px 36px rgba(15,33,57,.045)!important;
}
body.cw-system-shell>.navbar .nav-link{font-weight:720;color:#334761;transition:color .2s ease,background .2s ease,transform .2s ease}
body.cw-system-shell>.navbar .nav-link:hover{color:var(--cw-blue);transform:translateY(-1px)}
body.cw-system-shell>.navbar .nav-link:focus-visible{outline:3px solid rgba(18,104,229,.18);outline-offset:3px;border-radius:12px}

/* Page introductions */
.cw-auto-hero{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:flex-end;justify-content:space-between;gap:22px;
  margin:0 0 22px!important;padding:26px 30px!important;
  border:1px solid rgba(204,221,241,.95);border-radius:var(--cw-radius-lg);
  background:linear-gradient(125deg,rgba(255,255,255,.98),rgba(239,247,255,.96));
  box-shadow:var(--cw-shadow-sm);
}
.cw-auto-hero::before{
  content:"";position:absolute;z-index:-1;width:280px;height:280px;border-radius:50%;right:-90px;top:-155px;
  background:linear-gradient(145deg,rgba(18,104,229,.19),rgba(53,199,243,.08));
}
.cw-auto-hero::after{
  content:"";position:absolute;left:0;top:24px;bottom:24px;width:4px;border-radius:0 4px 4px 0;
  background:linear-gradient(180deg,var(--cw-blue),var(--cw-cyan));
}
.cw-auto-hero h1,.cw-auto-hero h2,.cw-auto-hero h3{margin:0!important;color:var(--cw-navy);font-weight:900!important;letter-spacing:-.035em;line-height:1.08}
.cw-auto-hero h1{font-size:clamp(1.7rem,3vw,2.5rem)}
.cw-auto-hero h2,.cw-auto-hero h3{font-size:clamp(1.5rem,2.5vw,2.15rem)}
.cw-auto-hero h1 i,.cw-auto-hero h2 i,.cw-auto-hero h3 i{color:var(--cw-blue)!important}
.cw-auto-hero p,.cw-auto-hero .small-muted,.cw-auto-hero .text-muted{margin:.55rem 0 0;color:var(--cw-muted)!important;font-size:1rem}

/* Surfaces */
body.cw-system-shell .card,
body.cw-system-shell .list-card,
body.cw-system-shell .cw-pro-surface{
  border:1px solid var(--cw-line)!important;border-radius:var(--cw-radius)!important;background:rgba(255,255,255,.97)!important;
  box-shadow:var(--cw-shadow-sm);position:relative;
}
body.cw-system-shell .card-header{
  padding:18px 22px;border-bottom:1px solid var(--cw-line);background:linear-gradient(180deg,#fff,#f8fbff);
  color:var(--cw-navy);font-weight:850;
}
body.cw-system-shell .card-body{padding:22px}
body.cw-system-shell .card-footer{padding:16px 22px;border-top:1px solid var(--cw-line);background:#fbfdff}
body.cw-system-shell .list-card{transition:transform .24s var(--cw-ease),box-shadow .24s var(--cw-ease),border-color .24s ease}
body.cw-system-shell .list-card:hover{transform:translateY(-3px);border-color:#bdd8f8!important;box-shadow:var(--cw-shadow)}

/* Controls */
body.cw-system-shell .form-label{margin-bottom:.45rem;color:#273b56;font-size:.84rem;font-weight:800!important;letter-spacing:.005em}
body.cw-system-shell .form-control,
body.cw-system-shell .form-select,
body.cw-system-shell .input-group-text{
  min-height:46px;border:1px solid #cfdded;border-radius:12px;background-color:#fff;color:var(--cw-ink);
  box-shadow:0 1px 0 rgba(15,33,57,.02);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
body.cw-system-shell textarea.form-control{min-height:112px;resize:vertical}
body.cw-system-shell .form-control:hover,body.cw-system-shell .form-select:hover{border-color:#abc8ea}
body.cw-system-shell .form-control:focus,body.cw-system-shell .form-select:focus{
  border-color:var(--cw-blue);box-shadow:0 0 0 4px rgba(18,104,229,.12);background:#fff;
}
body.cw-system-shell .form-control::placeholder{color:#8b9aaf}
body.cw-system-shell .form-check-input{width:1.12rem;height:1.12rem;border-color:#b9cbe0}
body.cw-system-shell .form-check-input:checked{background-color:var(--cw-blue);border-color:var(--cw-blue)}
body.cw-system-shell .form-text,body.cw-system-shell .small-muted{color:var(--cw-muted)!important;line-height:1.5}

body.cw-system-shell .btn{
  min-height:42px;border-radius:12px;padding:.62rem 1rem;font-weight:800;letter-spacing:-.01em;
  display:inline-flex;align-items:center;justify-content:center;gap:.42rem;transition:transform .18s var(--cw-ease),box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
body.cw-system-shell .btn:hover{transform:translateY(-1px)}
body.cw-system-shell .btn-primary{
  border-color:transparent!important;background:linear-gradient(135deg,var(--cw-blue),#178bdc)!important;
  box-shadow:0 10px 22px rgba(18,104,229,.21);color:#fff!important;
}
body.cw-system-shell .btn-primary:hover{background:linear-gradient(135deg,var(--cw-blue-strong),#087dcc)!important;box-shadow:0 14px 30px rgba(18,104,229,.28)}
body.cw-system-shell .btn-outline-primary,body.cw-system-shell .btn-outline-secondary{border-color:#a9c8ec;color:var(--cw-blue);background:#fff}
body.cw-system-shell .btn-outline-primary:hover,body.cw-system-shell .btn-outline-secondary:hover{border-color:var(--cw-blue);background:var(--cw-soft);color:var(--cw-blue-strong)}
body.cw-system-shell .btn-light{border:1px solid var(--cw-line);background:#f7faff;color:#344861}
body.cw-system-shell .btn-danger{box-shadow:0 9px 20px rgba(220,53,69,.18)}
body.cw-system-shell .btn-sm{min-height:36px;padding:.45rem .72rem;border-radius:10px}
body.cw-system-shell .btn:focus-visible{outline:3px solid rgba(18,104,229,.18);outline-offset:3px}

/* Status, tabs and data */
body.cw-system-shell .badge,body.cw-system-shell .pill{border-radius:999px;padding:.42rem .68rem;font-weight:800;letter-spacing:.01em}
body.cw-system-shell .alert{border:1px solid transparent;border-radius:15px;padding:15px 17px;box-shadow:none}
body.cw-system-shell .alert-info{color:#125088;background:#eef7ff;border-color:#cce7ff}
body.cw-system-shell .alert-success{color:#08673e;background:#ecfdf3;border-color:#abefc6}
body.cw-system-shell .alert-warning{color:#8b4a06;background:#fff8e8;border-color:#f8dda2}
body.cw-system-shell .alert-danger{color:#9f2735;background:#fff1f3;border-color:#ffc7cf}
body.cw-system-shell .nav-tabs{gap:8px;border:0;padding:6px;border-radius:15px;background:#eaf2fb}
body.cw-system-shell .nav-tabs .nav-link{border:0!important;border-radius:11px;color:#53677f;font-weight:800;padding:.72rem 1rem}
body.cw-system-shell .nav-tabs .nav-link.active{color:var(--cw-blue)!important;background:#fff;box-shadow:0 6px 18px rgba(15,33,57,.08)}
body.cw-system-shell .table-responsive{border:1px solid var(--cw-line);border-radius:16px;background:#fff}
body.cw-system-shell .table{margin:0;color:#263a54}
body.cw-system-shell .table>thead>tr>th{padding:13px 15px;border:0;background:#f2f7fd;color:#52667e;font-size:.73rem;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap}
body.cw-system-shell .table>tbody>tr>td{padding:14px 15px;border-color:#e8eff7;vertical-align:middle}
body.cw-system-shell .table>tbody>tr{transition:background .16s ease}
body.cw-system-shell .table>tbody>tr:hover{background:#f8fbff}
body.cw-system-shell .pagination,.pagetion{gap:6px}
body.cw-system-shell .page-link{min-width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--cw-line)!important;border-radius:10px!important;color:var(--cw-blue);font-weight:750}
body.cw-system-shell .page-item.active .page-link{background:var(--cw-blue)!important;color:#fff;border-color:var(--cw-blue)!important}

/* Empty content with a useful, intentional layout */
.cw-pro-empty{
  min-height:270px!important;margin:0!important;padding:44px 24px!important;border:1px dashed #bfd4ec!important;border-radius:18px!important;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  background:linear-gradient(145deg,#fafdff,#f2f8ff)!important;color:var(--cw-muted)!important;
}
.cw-pro-empty>.bi:first-child,.cw-pro-empty>.cw-pro-empty-icon{
  width:62px;height:62px;margin:0 0 15px!important;border-radius:20px;display:grid;place-items:center;
  background:#e4f1ff;color:var(--cw-blue);font-size:1.55rem;box-shadow:inset 0 0 0 1px #cbe3ff;
}
.cw-pro-empty strong{display:block;margin-bottom:5px;color:var(--cw-navy);font-size:1.08rem}

/* Modals and dynamic overlays */
body.cw-system-shell .modal-backdrop.show{opacity:.56;backdrop-filter:blur(5px)}
body.cw-system-shell .modal-content{border:1px solid rgba(220,231,244,.9);border-radius:24px;box-shadow:var(--cw-shadow-lg);overflow:hidden}
body.cw-system-shell .modal-header{padding:19px 22px;border-bottom:1px solid var(--cw-line);background:#fff}
body.cw-system-shell .modal-body{padding:22px;background:#fbfdff}
body.cw-system-shell .modal-footer{padding:16px 22px;border-top:1px solid var(--cw-line);background:#fff}
body.cw-system-shell .modal-title{color:var(--cw-navy);font-weight:900;letter-spacing:-.025em}
body.cw-system-shell .btn-close{border-radius:50%;background-color:#f3f7fc;opacity:.8}

/* Specific legacy areas brought into the current product language */
.cw-page-wanted-list .page-main>.container>.mb-3,
.cw-page-wanted-my .page-main>.container>.d-flex:first-child,
.cw-page-properties .container.py-4>.d-flex:first-child,
.cw-page-contracts-list .container.py-4>.d-flex:first-child,
.cw-page-clients .container.py-4>.d-flex:first-child{margin-bottom:22px!important}
.cw-page-wanted-list .col-lg-3>.card{position:sticky;top:96px;height:auto!important}
.cw-page-wanted-list .col-lg-9>.card{min-height:420px}
.cw-page-wanted-list .list-card{padding:18px!important}

.cw-page-reviews #reviews,
.cw-page-all-reviews #main-content>.container,
body.cw-page-booking-detail>.container{
  margin-top:32px!important;margin-bottom:38px!important;padding:26px!important;border:1px solid var(--cw-line);
  border-radius:var(--cw-radius-lg);background:rgba(255,255,255,.97);box-shadow:var(--cw-shadow);
}
.cw-page-reviews #reviews>h2,.cw-page-all-reviews #main-content h2,.cw-page-booking-detail h2{color:var(--cw-navy);font-weight:900;letter-spacing:-.035em}
.cw-page-reviews #reviews>hr{margin:26px 0;border-color:var(--cw-line);opacity:1}
.cw-page-reviews #reviews>.bg-white.border{padding:17px 18px!important;border-color:var(--cw-line)!important;border-radius:14px!important;box-shadow:0 5px 16px rgba(15,33,57,.04)}
.cw-page-reviews #rating-stars{display:inline-flex;gap:5px;padding:9px 12px;border-radius:14px;background:#fff9e9;border:1px solid #f7df9f}
.cw-page-all-reviews form.row{margin:0 0 22px!important;padding:18px;border:1px solid var(--cw-line);border-radius:16px;background:#f8fbff}
.cw-page-all-reviews .tab-content{padding-top:18px}

.cw-page-booking-detail .card{max-width:920px}
.cw-page-booking-detail .list-group-item{padding:15px 17px;border-color:var(--cw-line)}
.cw-page-properties .prop-card,.cw-page-properties .property-card{border-radius:18px!important}
.cw-page-properties .prop-title{font-weight:900;letter-spacing:-.02em;color:var(--cw-navy)}

.cw-page-login main,.cw-page-register main,.cw-page-forgot main{min-height:calc(100vh - 170px)}
.cw-page-login .card,.cw-page-register .card,.cw-page-forgot .card{box-shadow:var(--cw-shadow)!important;border-radius:24px!important}

body.cw-system-shell footer{
  border-top:1px solid rgba(220,231,244,.95)!important;background:rgba(255,255,255,.93)!important;
  backdrop-filter:blur(12px);padding-top:18px!important;padding-bottom:18px!important;
}
body.cw-system-shell footer .container{max-width:1380px}

/* Progressive, restrained motion */
.js-cw-pro-ready .cw-pro-reveal{animation:cwProEnter .48s var(--cw-ease) both;animation-delay:var(--cw-delay,0ms)}
.cw-is-submitting{position:relative;pointer-events:none;opacity:.78}
.cw-is-submitting::after{content:"";width:15px;height:15px;margin-left:7px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:cwSpin .65s linear infinite}
@keyframes cwProEnter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes cwSpin{to{transform:rotate(360deg)}}

@media(max-width:991.98px){
  body.cw-system-shell main>.container,body.cw-system-shell #main-content>.container,body.cw-system-shell>.container.py-4,body.cw-system-shell>.container.py-5{width:min(100% - 24px,1380px)}
  .cw-auto-hero{padding:22px 24px!important;border-radius:22px}
  .cw-page-wanted-list .col-lg-3>.card{position:static}
  .cw-page-wanted-list .col-lg-9>.card{min-height:330px}
}
@media(max-width:767.98px){
  .cw-auto-hero{display:block;padding:20px!important;margin-bottom:16px!important}
  .cw-auto-hero::after{top:18px;bottom:18px}
  body.cw-system-shell .card-body{padding:17px}
  body.cw-system-shell .modal-dialog{margin:10px}
  body.cw-system-shell .modal-content{border-radius:20px}
  body.cw-system-shell .table>thead>tr>th,body.cw-system-shell .table>tbody>tr>td{padding:11px 12px}
  .cw-pro-empty{min-height:220px!important;padding:32px 18px!important}
  .cw-page-reviews #reviews,.cw-page-all-reviews #main-content>.container{padding:18px!important;border-radius:20px}
}
@media(max-width:575.98px){
  body.cw-system-shell main>.container,body.cw-system-shell #main-content>.container,body.cw-system-shell>.container.py-4,body.cw-system-shell>.container.py-5{width:min(100% - 16px,1380px)}
  .cw-auto-hero{border-radius:18px}
  body.cw-system-shell .btn{width:100%}
  body.cw-system-shell .btn-group .btn,body.cw-system-shell .input-group .btn,body.cw-system-shell .d-flex .btn-sm{width:auto}
  body.cw-system-shell footer{text-align:center}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.js-cw-pro-ready .cw-pro-reveal{animation:none}.cw-is-submitting::after{animation-duration:1.4s}}
