:root{
  --o:#f4511e;
  --o-dark:#d93f0f;
  --o-soft:#fff1eb;
  --ink:#16181d;
  --muted:#68707d;
  --cream:#f6f7f9;
  --surface:#fff;
  --line:#e5e7eb;
  --success:#16835d;
  --warning:#a66800;
  --danger:#c13535;
  --radius:16px;
  --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.05),0 5px 16px rgba(16,24,40,.05);
  --shadow:0 18px 50px rgba(16,24,40,.10);
  --focus:0 0 0 4px rgba(244,81,30,.14);
}
html{scroll-behavior:smooth}
body{background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
a,button,input,select,textarea{transition:border-color .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
button,input,select,textarea{font:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0;box-shadow:var(--focus)}
input,select,textarea{border-radius:10px!important;border-color:var(--line)!important}
input:hover,select:hover,textarea:hover{border-color:#c8cdd5!important}
input:focus,select:focus,textarea:focus{border-color:var(--o)!important;outline:0;box-shadow:var(--focus)}
button:disabled,input:disabled,select:disabled{cursor:not-allowed;opacity:.58}

/* Public navigation */
body>header{position:sticky;top:0;z-index:50;height:72px;border-bottom:1px solid rgba(229,231,235,.9);background:rgba(255,255,255,.94);box-shadow:0 1px 14px rgba(16,24,40,.04);backdrop-filter:blur(14px)}
body>header nav{display:flex;align-items:center;gap:6px}
body>header nav a{padding:9px 12px;border-radius:9px;color:#4f5662;font-size:13px;font-weight:600}
body>header nav a:hover{color:var(--o);background:var(--o-soft)}
body>header>button{min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:10px!important;background:#fff;font-weight:650}
body>header>button:hover{color:#fff;border-color:var(--o);background:var(--o)}
.brand-logo strong{letter-spacing:-.02em}

/* Public cards and actions */
.hero{min-height:590px}
.hero form{border:1px solid rgba(255,255,255,.25);border-top:0!important;border-radius:20px;box-shadow:0 28px 80px rgba(0,0,0,.34)}
.hero form:before{content:"";display:block;width:44px;height:4px;margin:-32px 0 28px;border-radius:99px;background:var(--o)}
.hero form>button,.sell button,.filter-panel button,.dealer-hero button,.all-results a,.primary-action,.primary{border-radius:10px!important;box-shadow:0 7px 18px rgba(244,81,30,.18)}
.hero form>button:hover,.sell button:hover,.filter-panel button:hover,.dealer-hero button:hover,.all-results a:hover,.primary-action:hover,.primary:hover{background:var(--o-dark);transform:translateY(-1px)}
.title h2,.browse-heading h2,.section-title h2,.related-heading h2,.dealer-heading h2{letter-spacing:-.035em}
.category,.directory-grid a,.card,.option-card,.dealer-card,.content-card,.spec-grid div,.filter-panel,.detail-summary,.detail-gallery,.seller-card,.rating-card{border-radius:var(--radius);border-color:var(--line)!important;box-shadow:var(--shadow-sm)}
.category,.directory-grid a,.option-card,.dealer-card,.card{overflow:hidden}
.category:hover,.directory-grid a:hover,.option-card:hover,.dealer-card:hover,.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.category:hover{border-color:var(--o)!important}
.card .pic{overflow:hidden}
.card .pic img,.dealer-cover img{transition:transform .35s ease}
.card:hover .pic img,.dealer-card:hover .dealer-cover img{transform:scale(1.025)}
.card section{padding:18px}
.card h3{font-size:16px;line-height:1.4}
.card strong{font-size:20px;color:#15171b}
.tag{padding:5px 9px;border-radius:999px;background:#f0f2f5;color:#5e6570;font-size:10px;font-weight:600}
.fav{width:38px;height:38px;border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(8px)}
.fav:hover{color:var(--o);background:#fff;transform:scale(1.06)}
.pin-badge{border-radius:999px}
.sell{border-radius:24px;background:linear-gradient(135deg,var(--o),#ff7a42);box-shadow:var(--shadow)}
.sell button{box-shadow:none}
footer{border-top:1px solid rgba(255,255,255,.08)}
.pagination button{border-radius:10px}

/* Browse and details */
.browse-hero,.dealer-hero{background:linear-gradient(135deg,#12151c,#202632)}
.group-tabs a{border-radius:999px}
.filter-panel{top:92px;border-top:0!important}
.filter-panel:before{content:"";display:block;width:38px;height:4px;margin-bottom:16px;border-radius:99px;background:var(--o)}
.option-card{min-height:82px}
.detail-gallery,.gallery-stage{border-radius:var(--radius)}
.detail-summary{border-top:0!important}
.detail-summary:before{content:"";display:block;width:44px;height:4px;margin-bottom:17px;border-radius:99px;background:var(--o)}
.gallery-nav{border-radius:10px}
.gallery-thumbnails{border-radius:0 0 var(--radius) var(--radius)}
.primary-action,.favorite-action{border-radius:10px}
.favorite-action:hover{color:var(--o);border-color:var(--o);background:var(--o-soft)}
.seller-card:hover{background:#fff7f3}
.safety-note{border-radius:0 var(--radius-sm) var(--radius-sm) 0}

/* Authentication */
.auth{background:#fff}
.visual{position:relative;overflow:hidden}
.visual:after{content:"";position:absolute;right:-120px;bottom:-120px;width:330px;height:330px;border:1px solid rgba(255,255,255,.2);border-radius:50%}
.visual h1{position:relative;z-index:1;letter-spacing:-.055em}
.authbox{background:linear-gradient(180deg,#fff,#fafafa)}
.box{padding:34px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow)}
.box>h1{margin-bottom:10px;font-size:30px;letter-spacing:-.035em}
.social-button{border-radius:11px;box-shadow:var(--shadow-sm)}
.social-button:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(16,24,40,.10)}
.demo{border-radius:10px}

/* Member and admin portals */
.shell{grid-template-columns:264px minmax(0,1fr);background:#f3f5f8}
.side{position:sticky;top:0;height:100vh;padding:24px 18px;background:linear-gradient(180deg,#171a21,#202631)}
.side .brand-logo{border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.16)}
.side nav{gap:7px;margin-top:34px}
.side nav button,.side nav a{width:100%;min-height:44px;padding:11px 13px;border-radius:10px!important;color:#b8bfca;font-size:13px;font-weight:600}
.side nav button:hover,.side nav a:hover{color:#fff;background:rgba(255,255,255,.07)}
.side nav .active{color:#fff;border-left:0;background:linear-gradient(135deg,var(--o),#ff7540);box-shadow:0 8px 22px rgba(244,81,30,.24)}
.side #who{margin:28px 10px 0;color:#aab1bc;font-size:12px;white-space:pre-line}
.logout{width:100%;min-height:42px;margin-top:22px;border:1px solid rgba(255,255,255,.15);border-radius:10px;color:#c4cad3}
.logout:hover{color:#fff;border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.07)}
.main{width:100%;max-width:1560px;margin:0 auto;padding:36px clamp(20px,3vw,46px) 60px}
.head{gap:18px}
.head h1,.main>section>h1{margin:0;font-size:clamp(27px,3vw,36px);letter-spacing:-.045em}
.head p{margin:5px 0 0;color:var(--muted)}
.shell .stats{gap:16px}
.shell .stat,.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm)}
.shell .stat{position:relative;overflow:hidden;padding:20px 22px}
.shell .stat:first-child{background:linear-gradient(135deg,var(--o),#ff7440)}
.shell .stat:not(:first-child):before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 6px 6px 0;background:#d9dde3}
.shell .stat small{color:inherit;opacity:.72;font-weight:600}
.shell .stat strong{margin-top:4px;letter-spacing:-.04em}
.panel{padding:22px;margin-bottom:20px}
.panel h2{margin-top:0;letter-spacing:-.025em}
.panel-head{gap:18px}
.table-wrap{position:relative;border:1px solid var(--line);border-radius:12px;scrollbar-color:#cbd0d8 transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
table{font-size:12px}
th{padding:12px 14px!important;color:#69717d;background:#f8f9fb!important;font-size:10px;text-transform:uppercase;letter-spacing:.04em}
td{padding:13px 14px!important;vertical-align:middle}
tbody tr{transition:background .15s ease}
tbody tr:hover{background:#fafbfc}
.car img{border-radius:8px;background:#eef0f3}
.status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:700}
.tiny{min-height:32px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:600}
.tiny:hover{color:var(--o);border-color:var(--o);background:var(--o-soft)}
.subtabs{padding:5px;border:1px solid var(--line);border-radius:12px;background:#fff}
.subtabs button{border:0;border-radius:8px}
.subtabs .active{background:#20242c}
.master-list{border-radius:12px}
.master-item{padding:11px 13px}
.cards article{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff}
.shell .cards{max-height:none;content-visibility:visible;contain:none}
.shell .cards:empty{display:none}
.cards article b,.cards article small{display:block;padding:0 12px}
.cards article b{padding-top:12px}
.cards article small{padding-bottom:12px}
.modal{z-index:100;padding:24px;background:rgba(10,13,18,.66);backdrop-filter:blur(5px)}
.modal>div{width:min(780px,100%);padding:28px;border:1px solid rgba(255,255,255,.55);border-radius:20px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.28)}
.close{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f0f2f5;color:#4f5662}
.close:hover{color:#fff;background:var(--o);transform:rotate(5deg)}
.field span{margin-bottom:6px;color:#545b66;font-size:12px;font-weight:650}
.field input,.field select,.field textarea{min-height:44px;padding:11px 12px}
.field textarea{resize:vertical}
.primary{min-height:42px;font-weight:700}
.identity-panel{border-top:0!important}
.identity-panel:before{content:"";display:block;width:44px;height:4px;margin-bottom:18px;border-radius:99px;background:var(--o)}
.verification-message{border-radius:10px}

@media(max-width:960px){
  body>header{height:auto;min-height:68px;padding-top:9px;padding-bottom:9px;flex-wrap:wrap;gap:8px 14px}
  body>header nav{order:3;width:100%;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  body>header nav::-webkit-scrollbar{display:none}
  body>header nav a{flex:0 0 auto}
  .hero{grid-template-columns:1fr;gap:36px;padding-top:54px;padding-bottom:58px}
  .shell{grid-template-columns:1fr}
  .side{position:sticky;z-index:60;height:auto;padding:12px 16px;display:flex;align-items:center;gap:12px;overflow-x:auto}
  .side .brand-logo{flex:0 0 auto}
  .side nav{display:flex;flex:1;gap:5px;margin:0;overflow-x:auto}
  .side nav button,.side nav a{width:auto;flex:0 0 auto}
  .side #who{display:none}
  .logout{width:auto;flex:0 0 auto;margin:0;padding:8px 12px}
}
@media(max-width:720px){
  body>header{padding-left:16px;padding-right:16px}
  body>header .brand-logo img{width:38px;height:38px}
  body>header>button{margin-left:auto}
  .categories,.browse-directory,.cars{padding-left:16px!important;padding-right:16px!important}
  .hero{padding-left:16px!important;padding-right:16px!important}
  .hero h1{font-size:clamp(43px,14vw,62px)}
  .hero form{padding:24px}
  .hero form:before{margin:-24px 0 22px}
  .sell{margin-left:16px!important;margin-right:16px!important;border-radius:18px}
  .main{padding:24px 14px 50px}
  .head,.panel-head{align-items:flex-start;flex-direction:column}
  .head>.primary,.panel-head>.primary{width:100%}
  .shell .stats{grid-template-columns:1fr 1fr}
  .panel{padding:16px}
  .table-wrap{margin:0 -2px}
  table{min-width:720px}
  .modal{padding:10px}
  .modal>div{max-height:96vh;padding:22px 16px;border-radius:16px}
  .form-grid{grid-template-columns:1fr}
  .full{grid-column:auto}
  .box{padding:25px 20px}
  .authbox{padding:18px}
}
@media(max-width:480px){
  .shell .stats{grid-template-columns:1fr}
  .side{align-items:flex-start;flex-wrap:wrap}
  .side nav{order:3;width:100%}
  .side .brand-logo strong{font-size:17px}
  .visual{min-height:230px}
  .visual h1{margin-top:40px;font-size:40px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
