:root {
  --orange:#ff7800;
  --orange2:#ff9a32;
  --bg:#101112;
  --panel:#1a1c1e;
  --panel2:#222528;
  --line:#34383b;
  --text:#f5f5f5;
  --muted:#9da3a8;
  --green:#35c978;
  --red:#ff5c5c;
  --blue:#48a9ff;
  --shadow:0 12px 35px rgba(0,0,0,.24);
}
:root[data-theme="light"] {
  --bg:#f2f4f6;
  --panel:#ffffff;
  --panel2:#f7f8fa;
  --line:#e2e5e8;
  --text:#202326;
  --muted:#747c84;
  --shadow:0 8px 25px rgba(20,30,40,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--text);background:var(--bg);
  transition:background .2s,color .2s;
}
a{color:var(--orange);text-decoration:none;transition:.2s}
a:hover{color:var(--orange2)}
.garage-header,.topbar{
  min-height:100px;padding:17px 4%;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  background:#111315;border-bottom:3px solid var(--orange);
  box-shadow:0 5px 25px #0003;
}
.garage-brand{flex:1;min-width:240px}
.brand{display:flex;align-items:center;gap:13px;color:#fff;font-size:22px;font-weight:900;letter-spacing:.8px}
.brand:hover{color:#fff}
.brand small{color:var(--orange)}
.brand-mark{
  display:grid;place-items:center;width:48px;height:48px;
  background:var(--orange);color:#111;font-size:21px;font-weight:950;
  border-radius:10px;transform:skew(-5deg);
}
.brand-description{margin-top:8px;color:#9da3a8;font-size:10px;letter-spacing:1.5px}
.garage-header-right{display:flex;align-items:center;gap:16px}
.garage-search{width:230px;display:flex;align-items:center;gap:8px}
.garage-search input{margin:0}
.header-icon{display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff}
.header-icon span{font-size:23px;color:var(--orange)}
.header-icon small{font-size:11px;color:#ddd}
.theme-toggle{
  padding:10px 13px;border:1px solid #555;border-radius:8px;
  background:#202326;color:#fff;cursor:pointer;font-weight:700;white-space:nowrap
}
.theme-toggle:hover{background:var(--orange);color:#111}
.workspace{
  display:grid;grid-template-columns:245px minmax(0,1fr);
  gap:24px;width:min(1480px,95%);margin:28px auto;align-items:start
}
.sidebar{
  position:relative;overflow:hidden;min-height:620px;padding:22px 14px;
  display:flex;flex-direction:column;
  background:var(--panel);border:1px solid var(--line);
  border-radius:15px;box-shadow:var(--shadow)
}
.sidebar-heading{
  padding:7px 12px 20px;color:var(--orange);
  font-size:11px;font-weight:900;letter-spacing:2px
}
.side-link,.logout-link{
  display:flex;align-items:center;gap:13px;width:100%;
  padding:14px 13px;margin:4px 0;
  color:var(--muted);background:transparent;border:1px solid transparent;
  border-radius:9px;font-size:14px;font-weight:700;text-align:left
}
.side-link span,.logout-link span{width:24px;color:var(--orange);font-size:20px;text-align:center}
.side-link:hover,.side-link.active{
  color:var(--text);background:rgba(255,120,0,.10);
  border-color:rgba(255,120,0,.25)
}
.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:15px}
.sidebar form{margin:0}
.logout-link{cursor:pointer}
.logout-link:hover{background:rgba(255,70,70,.1);color:var(--red)}
.sidebar-gear{position:absolute;bottom:55px;left:5px;font-size:125px;color:var(--orange);opacity:.055;pointer-events:none}
.sidebar-signature{position:relative;margin-top:100px;color:var(--muted);font-size:9px;letter-spacing:2px;text-align:center}
.main-content{
  min-width:0;padding:30px;
  background:var(--panel);border:1px solid var(--line);
  border-radius:15px;box-shadow:var(--shadow)
}
.auth-content{
  width:min(480px,94%);margin:50px auto;padding:32px;
  background:var(--panel);border:1px solid var(--line);
  border-top:3px solid var(--orange);border-radius:15px;box-shadow:var(--shadow)
}
h1{font-size:clamp(26px,3vw,36px);font-weight:850;letter-spacing:-.7px;margin:0 0 18px;color:var(--text)}
h2{font-size:22px;margin:28px 0 17px;color:var(--text)}
h3{color:var(--text)}
p{color:var(--muted);line-height:1.65}
.menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.menu a{
  display:flex;justify-content:center;align-items:center;min-height:76px;
  padding:17px;text-align:center;color:var(--text);
  background:var(--panel2);border:1px solid var(--line);
  border-bottom:3px solid var(--orange);border-radius:11px;font-weight:750
}
.menu a:hover{transform:translateY(-2px);border-color:var(--orange)}
.item{
  margin:16px 0;padding:22px;background:var(--panel2);
  border:1px solid var(--line);border-left:3px solid var(--orange);
  border-radius:12px;box-shadow:0 5px 18px #00000012
}
.item b{color:var(--text);font-size:16px}
.btn,button:not(.theme-toggle){
  display:inline-flex;justify-content:center;align-items:center;
  padding:12px 19px;margin-top:12px;
  background:linear-gradient(135deg,var(--orange2),var(--orange));
  color:#171717;border:0;border-radius:8px;font-weight:800;
  cursor:pointer;text-decoration:none;transition:.2s
}
.btn:hover,button:not(.theme-toggle):hover{
  background:#ffad62;color:#111;transform:translateY(-1px)
}
label{display:block;margin:16px 0 7px;color:var(--text);font-size:13px;font-weight:650}
input,select,textarea{
  width:100%;padding:13px 14px;background:var(--bg);
  color:var(--text);border:1px solid var(--line);border-radius:8px;
  font:inherit;transition:border-color .2s
}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,120,0,.12)}
input::placeholder,textarea::placeholder{color:var(--muted)}
.flash{padding:14px;color:var(--text);background:rgba(255,120,0,.1);border-left:3px solid var(--orange);border-radius:8px}
table{width:100%;border-collapse:collapse}
th,td{padding:13px 12px;border-bottom:1px solid var(--line);text-align:left}
th{color:var(--orange);font-size:12px;text-transform:uppercase;letter-spacing:.5px}
.order-status{display:inline-block;padding:8px 15px;border:1px solid var(--orange);border-radius:20px;color:var(--orange);font-weight:750}
.order-total{margin:24px 0;padding:24px;background:var(--panel2);border:1px solid var(--orange);border-radius:12px}
.order-total strong{display:block;margin-top:8px;color:var(--orange);font-size:30px}
.order-section{margin:22px 0;padding:20px;background:var(--panel2);border:1px solid var(--line);border-radius:12px}
.order-section h2{margin-top:0;color:var(--orange)}
.order-product{margin:12px 0;padding:18px;background:var(--bg);border-left:3px solid var(--orange);border-radius:8px}
.order-product b{color:var(--text);font-size:16px}
.order-meta{color:var(--muted);font-size:14px}
.dashboard-head{margin-bottom:24px}
.dashboard-head>p:first-child{color:var(--orange)!important;font-size:11px;letter-spacing:2px}
.dashboard-head h1{margin-bottom:10px}
.dashboard-head p{margin:6px 0}
details{color:var(--text)}
summary{cursor:pointer}
@media(max-width:1000px){
  .garage-header{flex-wrap:wrap}
  .garage-header-right{width:100%;flex-wrap:wrap}
  .garage-search{flex:1;min-width:180px}
  .workspace{grid-template-columns:1fr}
  .sidebar{min-height:auto}
  .sidebar-bottom{margin-top:12px}
  .sidebar-signature{margin-top:20px}
  .sidebar-gear{display:none}
}
@media(max-width:650px){
  .garage-header,.topbar{padding:14px;gap:13px}
  .garage-brand{min-width:0}
  .brand{font-size:16px;gap:9px}
  .brand-mark{width:40px;height:40px;font-size:18px}
  .brand-description{font-size:8px;letter-spacing:.7px}
  .garage-header-right{gap:9px}
  .garage-search{order:5;flex-basis:100%;width:100%}
  .header-icon small{font-size:9px}
  .theme-toggle{font-size:11px;padding:9px}
  .workspace{width:100%;margin:12px 0;gap:12px}
  .sidebar{margin:0 12px;padding:12px;border-radius:12px}
  .sidebar-heading{padding-bottom:8px}
  .side-link{display:inline-flex;width:auto;padding:10px;margin:3px;font-size:12px}
  .sidebar{flex-direction:row;flex-wrap:wrap;align-items:center}
  .sidebar-heading{flex-basis:100%}
  .sidebar-bottom{flex-basis:100%;margin-top:8px}
  .main-content{padding:20px 14px;border-radius:0}
  .auth-content{padding:23px;margin:25px auto}
  .menu{grid-template-columns:1fr}
  h1{font-size:26px}
  h2{font-size:19px}
  .item{padding:16px}
  table{display:block;overflow-x:auto;white-space:nowrap}
  .order-total strong{font-size:25px}
}

/* GARAGE PREMIUM — главная страница личного кабинета */
.premium-welcome{
  position:relative;display:flex;align-items:center;justify-content:space-between;
  min-height:230px;padding:38px 42px;margin-bottom:34px;overflow:hidden;
  border:1px solid #343434;border-radius:18px;
  background:linear-gradient(115deg,#17191b 0%,#242629 58%,#111213 100%);
  color:#fff;box-shadow:0 18px 45px rgba(0,0,0,.22)
}
.premium-welcome:after{
  content:"";position:absolute;width:280px;height:280px;right:8%;top:-125px;
  border:1px solid rgba(255,120,0,.22);border-radius:50%;
  box-shadow:0 0 0 28px rgba(255,120,0,.035),0 0 0 58px rgba(255,120,0,.025)
}
.welcome-copy{position:relative;z-index:2;max-width:600px}
.eyebrow{display:block;color:#ff7800;font-size:10px;font-weight:800;letter-spacing:2px}
.welcome-copy h1{margin:13px 0 10px;color:#fff;font-size:32px;line-height:1.2}
.welcome-copy p{max-width:480px;color:#b7b9bb;font-size:14px;line-height:1.7}
.premium-shop-link{display:inline-flex;gap:18px;align-items:center;margin-top:17px;padding:12px 17px;
  border-radius:7px;background:#ff7800;color:#151515;font-size:12px;font-weight:800;text-decoration:none}
.welcome-mark{position:absolute;right:12%;top:36px;color:#fff;font-size:100px;font-weight:900;letter-spacing:-9px;opacity:.09}
.welcome-mark span{color:#ff7800}
.welcome-caption{position:absolute;right:42px;bottom:28px;color:#777;font-size:10px;line-height:1.5;letter-spacing:3px;text-align:right}
.premium-section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:30px 0 18px}
.premium-section-heading h2{margin:7px 0 0;font-size:25px;font-weight:800}
.premium-live,.orders-count{color:#858585;font-size:10px;font-weight:700;letter-spacing:1px}

.premium-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 34px
}
.stat-card{
  position:relative;display:flex;flex-direction:column;gap:9px;min-height:145px;
  padding:21px;border:1px solid var(--line);border-radius:13px;
  background:var(--panel);transition:transform .2s,border-color .2s
}
.stat-card:hover{transform:translateY(-3px);border-color:#ff7800}
.stat-icon{
  display:grid;place-items:center;width:34px;height:34px;border-radius:9px;
  background:rgba(255,120,0,.13);color:#ff7800;font-size:19px
}
.stat-label{color:var(--muted,#999);font-size:12px;font-weight:600}
.stat-card strong{color:var(--text);font-size:29px;line-height:1.1}
.stat-card small{color:var(--muted,#888);font-size:11px}
.stat-main{border-color:rgba(255,120,0,.4)}

@media(max-width:900px){
  .premium-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .premium-welcome{padding:30px;min-height:210px}
  .welcome-mark{right:8%;font-size:76px}
}
@media(max-width:600px){
  .premium-welcome{padding:25px 20px;min-height:220px;border-radius:12px}
  .welcome-copy h1{font-size:25px}
  .welcome-copy p{font-size:12px;max-width:260px}
  .welcome-mark{right:12px;top:25px;font-size:55px}
  .welcome-caption{right:18px;bottom:15px;font-size:8px}
  .premium-stats{gap:9px}
  .stat-card{min-height:125px;padding:14px}
  .stat-card strong{font-size:25px}
  .premium-section-heading h2{font-size:21px}
}

/* PREMIUM FILTER */
.premium-filter{
  margin:0 0 25px;padding:22px;border:1px solid var(--line);
  border-radius:13px;background:var(--panel)
}
.filter-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.filter-title>span{display:grid;place-items:center;width:38px;height:38px;
  border-radius:9px;background:rgba(255,120,0,.13);color:var(--orange);font-size:23px}
.filter-title b{display:block;color:var(--text);font-size:14px}
.filter-title small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.filter-search{margin-bottom:14px}
.filter-search label,.filter-fields label{display:block;margin-bottom:7px;color:var(--muted);font-size:11px}
.filter-search input,.filter-fields input,.filter-fields select{
  width:100%;min-height:43px;padding:10px 12px;border:1px solid var(--line);
  border-radius:8px;background:var(--bg);color:var(--text);font:inherit
}
.filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.filter-actions{display:flex;align-items:center;gap:16px;margin-top:17px}
.premium-primary-btn{padding:12px 17px;border:0;border-radius:7px;
  background:var(--orange);color:#171717;font-weight:800;cursor:pointer}
.premium-reset-btn{color:var(--muted);font-size:12px}

/* PREMIUM ORDER CARDS */
.premium-order-card{
  margin:0 0 15px;padding:22px;border:1px solid var(--line);
  border-radius:13px;background:var(--panel);transition:border-color .2s
}
.premium-order-card:hover{border-color:rgba(255,120,0,.55)}
.order-topline,.order-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px}
.order-overline,.order-facts span{
  display:block;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:1.2px
}
.order-topline h3{margin:7px 0 0;color:var(--text);font-size:21px}
.premium-status{padding:7px 11px;border-radius:20px;font-size:10px;font-weight:800}
.status-orange{background:rgba(255,120,0,.14);color:#ff922e}
.status-green{background:rgba(53,201,120,.13);color:#35c978}
.status-blue{background:rgba(72,169,255,.13);color:#48a9ff}
.status-red{background:rgba(255,92,92,.13);color:#ff5c5c}
.order-facts{display:flex;gap:38px;margin:20px 0;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.order-facts b{display:block;margin-top:7px;color:var(--text);font-size:13px}
.premium-order-details summary{display:flex;justify-content:space-between;cursor:pointer;color:var(--text);font-size:12px;font-weight:700}
.premium-order-items{margin-top:15px}
.premium-order-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.mini-product-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:9px;background:var(--panel2);color:var(--orange)}
.mini-product-info{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.mini-product-info b{color:var(--text);font-size:12px}
.mini-product-info small{color:var(--muted);font-size:10px}
.premium-order-item>strong{color:var(--text);font-size:12px;white-space:nowrap}
.order-bottom{margin-top:19px}
.order-amount{display:block;margin-top:6px;color:var(--text);font-size:22px}
.premium-details-btn{display:inline-flex;align-items:center;gap:12px;padding:11px 15px;border-radius:7px;background:var(--orange);color:#171717;font-size:11px;font-weight:800}
.premium-details-btn:hover{background:var(--orange2);color:#171717}

.premium-empty{
  padding:45px 20px;text-align:center;border:1px dashed var(--line);
  border-radius:13px;background:var(--panel)
}
.empty-icon{color:var(--orange);font-size:35px}
.premium-empty h3{color:var(--text);font-size:19px}
.premium-empty p{color:var(--muted);font-size:13px}
.premium-pagination{
  display:flex;align-items:center;justify-content:center;gap:22px;
  margin:25px 0;color:var(--muted);font-size:12px
}
.premium-pagination a{color:var(--orange);font-weight:700}
@media(max-width:650px){
  .premium-filter{padding:15px}
  .filter-fields{grid-template-columns:1fr}
  .filter-actions{flex-wrap:wrap}
  .premium-order-card{padding:15px}
  .order-facts{gap:20px}
  .order-bottom{align-items:flex-start;flex-direction:column}
  .premium-details-btn{width:100%;justify-content:center}
  .premium-order-item{flex-wrap:wrap}
  .premium-order-item>strong{margin-left:50px}
}

/* GARAGE PREMIUM — HEADER AND NAVIGATION */
.garage-header{
  min-height:92px;padding:16px 3.5%;
  background:linear-gradient(110deg,#111315,#1b1e21 65%,#111315);
  border-bottom:2px solid var(--orange);
  box-shadow:0 8px 30px rgba(0,0,0,.32)
}
.brand{font-size:21px;letter-spacing:1px}
.brand-mark{border-radius:8px;box-shadow:0 5px 18px rgba(255,120,0,.25)}
.brand-description{letter-spacing:1.7px}
.garage-header-right{gap:19px}
.header-icon{min-width:48px;padding:7px 5px;border-radius:8px}
.header-icon:hover{background:rgba(255,120,0,.10)}
.header-icon span{font-size:22px}
.header-icon small{font-size:10px;letter-spacing:.3px}
.theme-toggle{border-radius:7px;border-color:#41464a}
.sidebar{
  background:linear-gradient(155deg,#202326,#17191b);
  border:1px solid #363a3e;border-radius:12px;padding:24px 15px;
  box-shadow:0 15px 35px rgba(0,0,0,.22)
}
.sidebar-heading{padding:8px 13px 22px;letter-spacing:2.2px}
.side-link{
  position:relative;min-height:48px;margin:5px 0;padding:13px 14px;
  border-radius:7px;font-size:13px;transition:.2s
}
.side-link.active{
  color:#fff;background:linear-gradient(90deg,rgba(255,120,0,.19),rgba(255,120,0,.04));
  border-color:rgba(255,120,0,.22)
}
.side-link.active:before{
  content:"";position:absolute;left:-1px;top:9px;bottom:9px;
  width:3px;border-radius:3px;background:var(--orange)
}
.logout-link{border-radius:7px}
.main-content{border-radius:12px}

/* ===== GARAGE PREMIUM 2.0 ===== */

:root {
  --orange:#ff7900;
  --orange2:#ff9d35;
  --bg:#101214;
  --panel:#191d20;
  --panel2:#22272b;
  --line:#343b40;
  --shadow:0 18px 45px rgba(0,0,0,.28);
}

body {
  background:
    radial-gradient(ellipse at 85% 5%,rgba(255,120,0,.075),transparent 32%),
    #101214;
}

.garage-header {
  min-height:112px;
  padding:20px 4%;
  background:linear-gradient(115deg,#101214 0%,#202529 55%,#111416 100%);
  border-bottom:3px solid var(--orange);
  box-shadow:0 12px 35px rgba(0,0,0,.4);
}

.brand {font-size:24px;letter-spacing:1.2px;gap:16px}
.brand-mark {
  width:58px;height:58px;border-radius:12px;
  font-size:25px;
  box-shadow:0 0 25px rgba(255,120,0,.28);
}
.brand-description {font-size:10px;letter-spacing:2px}

.garage-header-right {gap:20px}
.theme-toggle {
  padding:12px 16px;
  border:1px solid #51595e;
  background:#252b2f;
  border-radius:9px;
}
.garage-search {width:250px}
.garage-search input {
  background:#252b2f;
  border:1px solid #41494e;
  border-radius:9px;
  padding:13px;
}
.header-icon {
  min-width:55px;
  padding:8px;
  border-radius:9px;
}
.header-icon:hover {background:rgba(255,120,0,.12)}
.header-icon span {font-size:25px}
.header-icon small {font-size:10px;letter-spacing:.4px}

.workspace {
  width:min(1540px,94%);
  grid-template-columns:265px minmax(0,1fr);
  gap:27px;
  margin:34px auto;
}

.sidebar {
  min-height:690px;
  padding:25px 17px;
  background:linear-gradient(155deg,#22282c,#171b1e 75%);
  border:1px solid #394147;
  border-radius:15px;
  box-shadow:0 18px 45px rgba(0,0,0,.3);
}

.sidebar-heading {
  padding:10px 13px 25px;
  font-size:11px;
  letter-spacing:2.5px;
}

.side-link {
  min-height:53px;
  margin:5px 0;
  padding:14px 15px;
  border-radius:9px;
  font-size:14px;
  transition:all .22s ease;
}

.side-link span {font-size:21px}

.side-link:hover {
  transform:translateX(3px);
  background:rgba(255,120,0,.09);
}

.side-link.active {
  color:#fff;
  background:linear-gradient(100deg,rgba(255,120,0,.24),rgba(255,120,0,.055));
  border:1px solid rgba(255,120,0,.32);
  box-shadow:inset 3px 0 0 var(--orange),0 5px 18px rgba(0,0,0,.13);
}

.sidebar-bottom {
  margin-top:auto;
  padding-top:20px;
}

.logout-link {
  min-height:48px;
  justify-content:center;
  border:1px solid rgba(255,90,90,.2);
  background:rgba(255,70,70,.07);
}

.main-content {
  padding:36px;
  background:linear-gradient(145deg,#1c2124,#171b1e);
  border:1px solid #353d42;
  border-radius:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.25);
}

.premium-welcome {
  border:1px solid #42494e;
  box-shadow:0 15px 35px rgba(0,0,0,.2);
}

.stat-card,.premium-order-card {
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.stat-card:hover,.premium-order-card:hover {
  transform:translateY(-3px);
  border-color:rgba(255,120,0,.55);
  box-shadow:0 12px 28px rgba(0,0,0,.2);
}

.premium-primary-btn,.premium-details-btn {
  box-shadow:0 5px 18px rgba(255,120,0,.18);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 85% 5%,rgba(255,120,0,.07),transparent 32%),
    #f1f3f5;
}

:root[data-theme="light"] .garage-header {
  background:linear-gradient(110deg,#202326,#343a3e);
}

:root[data-theme="light"] .sidebar {
  background:linear-gradient(155deg,#fff,#f2f4f6);
  border-color:#e0e4e7;
}

:root[data-theme="light"] .main-content {
  background:linear-gradient(145deg,#fff,#f8f9fa);
  border-color:#e0e4e7;
}

@media(max-width:1000px) {
  .workspace {width:94%;gap:16px}
  .sidebar {min-height:auto}
  .main-content {padding:24px}
}

@media(max-width:650px) {
  .garage-header {padding:16px 4%}
  .brand {font-size:18px}
  .brand-mark {width:48px;height:48px}
  .brand-description {font-size:8px}
  .garage-header-right {gap:9px}
  .workspace {margin:16px auto}
  .sidebar {padding:15px}
  .main-content {padding:17px}
}



/* GARAGE PREMIUM — WORKSHOP CENTER BANNER */
.premium-welcome {
  position:relative;
  overflow:hidden;
  min-height:270px;
  background:
    linear-gradient(90deg,rgba(12,14,16,.96) 0%,rgba(12,14,16,.78) 42%,rgba(12,14,16,.08) 100%),
    url('/static/account/images/account-coffee-banner.png') center center / cover no-repeat !important;
  border:1px solid #a45b25;
  box-shadow:0 12px 35px rgba(0,0,0,.4),0 0 18px rgba(255,120,0,.12);
}
.premium-welcome:after {
  pointer-events:none;
}
.welcome-mark,.welcome-caption {
  display:none !important;
}
.welcome-copy {
  max-width:600px;
  position:relative;
  z-index:2;
}

/* BRIGHTER CENTER WORKSHOP BANNER */
.premium-welcome {
  background:
    linear-gradient(90deg,rgba(12,14,16,.78) 0%,rgba(12,14,16,.38) 42%,rgba(12,14,16,.02) 100%),
    url('/static/account/images/account-coffee-banner.png') center center / cover no-repeat !important;
}

/* GARAGE PREMIUM — LEFT WORKSHOP */
.sidebar {
  background:
    linear-gradient(180deg,rgba(10,12,14,.48),rgba(10,12,14,.72)),
    url('/static/account/images/account-sidebar.jpg') center center / cover no-repeat !important;
  border:1px solid #80502e;
  box-shadow:inset 0 0 25px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.3);
}

.sidebar-profile{padding:18px 12px;margin-bottom:22px;text-align:center;background:rgba(10,12,14,.72);border:1px solid #a45b25;border-radius:10px;box-shadow:0 5px 18px #0006}.profile-avatar{width:58px;height:58px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:#ff7900;color:#17191b;font-size:26px;font-weight:800;border:3px solid #ffad55}.profile-name{color:#fff;font-size:16px;font-weight:700;margin-bottom:8px}.profile-contact{color:#ddd;font-size:11px;margin-top:5px;overflow-wrap:anywhere}

.brand-emblem{position:relative;width:64px;height:64px;min-width:64px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#41474b 0%,#171a1c 68%);border:2px solid #ff7900;box-shadow:0 0 12px #ff790077,inset 0 0 12px #000;font-size:43px;color:#ff7900;transform:none}.brand-emblem b{position:absolute;font-size:23px;line-height:1;color:#fff;text-shadow:0 0 8px #ff7900}

/* Верхнее меню личного кабинета */
.garage-nav{display:flex;align-items:center;justify-content:center;gap:22px;flex:1;flex-wrap:wrap}
.garage-nav a{color:#f1f1f1;font-size:13px;font-weight:800;white-space:nowrap;transition:.2s}
.garage-nav a:hover{color:#ff7900;text-shadow:0 0 10px #ff790077}
@media(max-width:1200px){.garage-nav{order:3;flex-basis:100%;padding:10px 0 2px;gap:18px}}
@media(max-width:650px){.garage-nav{justify-content:flex-start;gap:10px 16px}.garage-nav a{font-size:12px}}

/* ===== ЕДИНЫЙ ДИЗАЙН КОФЕЙНЫЙ ГАРАЖ Н.М. ===== */
.garage-header{
  min-height:112px;padding:14px 2.5%;
  display:flex;align-items:center;gap:24px;
  flex-wrap:nowrap;background:linear-gradient(110deg,#101214,#292e32 50%,#111416);
  border-bottom:3px solid #ff7900;
}
.garage-brand{flex:0 0 auto;min-width:260px}
.brand{font-size:21px;white-space:nowrap}
.brand-description{font-size:9px;letter-spacing:1px}
.brand-emblem{width:58px;height:58px;min-width:58px}
.garage-nav{display:flex;flex:1;align-items:center;justify-content:center;gap:clamp(12px,2vw,28px);flex-wrap:nowrap}
.garage-nav a{font-size:13px;font-weight:900;letter-spacing:.5px;white-space:nowrap;color:#fff}
.garage-header-right{flex:0 0 auto;gap:12px}
.theme-toggle{display:none}
.garage-search{width:190px}
.header-icon{min-width:42px}

.workspace{
  display:grid;grid-template-columns:260px minmax(0,1fr);
  width:min(1600px,96%);gap:24px;margin:26px auto;
}
.sidebar{
  min-height:760px;padding:22px 16px 180px;
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(145deg,#292f33,#171b1e 70%) !important;
  border:1px solid #596168;border-radius:13px;
}
.sidebar:after{
  content:"";position:absolute;z-index:-1;bottom:0;left:0;right:0;height:155px;
  background:linear-gradient(0deg,rgba(12,14,16,.15),#171b1e 100%),url('/static/account/images/account-sidebar.jpg') center 48%/cover no-repeat;
  opacity:.9;border-top:2px solid #ff7900;
}
.sidebar-profile{
  background:linear-gradient(145deg,#30373b,#171b1e);
  border:1px solid #626a70;border-bottom:2px solid #ff7900;
}
.sidebar-heading{padding-top:22px}
.side-link{min-height:50px}
.sidebar-bottom{position:relative;z-index:2}
.sidebar-signature{position:absolute;z-index:2;bottom:160px;left:0;right:0;margin:0;color:#ff9a32}

.main-content{
  min-width:0;padding:28px;
  background:linear-gradient(145deg,#202529,#15191c);
  border:1px solid #41494e;border-radius:14px;
}
.premium-welcome{
  min-height:285px;padding:38px 42px;margin-bottom:30px;
  background:linear-gradient(90deg,rgba(10,12,14,.96),rgba(10,12,14,.68) 48%,rgba(10,12,14,.08)),url('/static/account/images/account-coffee-banner.png') center/cover no-repeat !important;
  border:1px solid #a45b25;border-bottom:3px solid #ff7900;
  border-radius:13px;
}
.welcome-copy h1{font-size:clamp(27px,3vw,38px)}
.premium-section-heading{margin:28px 0 18px}
.premium-section-heading h2{font-size:26px}
.premium-stats{gap:16px;margin-bottom:36px}
.stat-card{
  min-height:158px;padding:22px;
  background:linear-gradient(145deg,#30373b,#191e21);
  border:1px solid #596168;border-bottom:3px solid #ff7900;
  border-radius:11px;box-shadow:inset 0 1px #ffffff12,0 12px 25px #0005;
}
.stat-icon{width:42px;height:42px;font-size:22px;border:1px solid #9a5724}
.stat-card strong{font-size:34px;color:#fff}
.stat-label{color:#ffad62}
.premium-filter{
  padding:24px;background:linear-gradient(145deg,#292f33,#191d20);
  border:1px solid #50585e;border-radius:12px;
}
.premium-order-card{
  padding:24px;background:linear-gradient(145deg,#292f33,#191d20);
  border:1px solid #50585e;border-left:3px solid #ff7900;border-radius:12px;
}
.premium-details-btn,.premium-primary-btn{background:linear-gradient(135deg,#ffa13b,#ff7900)}
.premium-order-details{padding:12px 0}
.premium-empty{background:#202529;border-color:#626a70}

@media(max-width:1250px){
  .garage-header{flex-wrap:wrap}
  .garage-nav{order:3;flex-basis:100%;padding:8px 0;justify-content:center}
  .garage-header-right{margin-left:auto}
}
@media(max-width:900px){
  .workspace{grid-template-columns:1fr}
  .sidebar{min-height:0;padding-bottom:175px}
  .premium-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .garage-header{padding:14px;gap:12px}
  .garage-brand{min-width:0}
  .garage-nav{justify-content:flex-start;gap:12px;overflow-x:auto}
  .garage-nav a{font-size:11px}
  .garage-header-right{width:100%;justify-content:space-between}
  .garage-search{width:auto;flex:1}
  .workspace{width:100%;margin:12px 0}
  .main-content{padding:15px}
  .premium-welcome{min-height:245px;padding:24px 18px}
  .premium-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-fields{grid-template-columns:1fr}
}

/* ===== ФИНАЛЬНОЕ ОФОРМЛЕНИЕ ШАПКИ ===== */
.garage-brand {
  min-width: 285px;
}
.brand {
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 1px;
  gap: 15px;
}
.brand-name {
  color: #fff;
  text-shadow: 0 2px 8px #000;
}
.brand-name small {
  color: #ff7900;
  font-size: 24px;
  font-weight: 950;
}
.brand-emblem {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border: 2px solid #ff7900;
  box-shadow: 0 0 18px #ff790077, inset 0 0 12px #000;
}
.brand-description {
  margin-left: 79px;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 1.25px;
  color: #c4c8cb;
}
@media(max-width:1250px) {
  .garage-brand { min-width: 260px; }
}
@media(max-width:600px) {
  .brand { font-size: 16px; }
  .brand-emblem { width: 48px; height: 48px; min-width: 48px; }
  .brand-name small { font-size: 17px; }
  .brand-description { margin-left: 57px; font-size: 7px; }
}

/* ===== ЗАКАЗЫ — ДИЗАЙН ПО УТВЕРЖДЁННОМУ ОБРАЗЦУ ===== */

.orders-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  padding-bottom:15px;
  border-bottom:1px solid #535b60;
}

.orders-heading h2 {
  color:#fff;
  font-size:29px;
  font-weight:900;
}

.orders-count {
  color:#ff9a32;
  font-weight:800;
}

.premium-filter {
  padding:25px;
  margin-bottom:26px;
  background:linear-gradient(145deg,#30373b,#191e21 75%);
  border:1px solid #596168;
  border-top:2px solid #ff7900;
  border-radius:12px;
  box-shadow:0 12px 28px #0006,inset 0 1px #ffffff12;
}

.filter-title {
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:22px;
}

.filter-title > span {
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  color:#ff7900;
  background:#171b1e;
  border:1px solid #a45b25;
  border-radius:9px;
  font-size:25px;
}

.filter-title b {
  display:block;
  color:#fff;
  font-size:17px;
}

.filter-title small {
  display:block;
  margin-top:4px;
  color:#aeb5ba;
}

.premium-filter label {
  display:block;
  margin-bottom:8px;
  color:#ffad62;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.7px;
}

.premium-filter input,
.premium-filter select {
  width:100%;
  min-height:44px;
  padding:11px 13px;
  color:#fff;
  background:#171b1e;
  border:1px solid #555e64;
  border-radius:7px;
}

.filter-fields {
  gap:15px;
  margin-top:17px;
}

.filter-actions {
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:20px;
}

.premium-primary-btn,
.premium-details-btn {
  min-height:43px;
  padding:12px 19px;
  color:#17191b;
  font-weight:900;
  border:1px solid #ffad62;
  border-radius:7px;
  background:linear-gradient(135deg,#ffad50,#ff7900);
  box-shadow:0 5px 16px #ff790033;
}

.premium-reset-btn {
  color:#ffad62;
  font-weight:700;
}

.premium-order-card {
  position:relative;
  overflow:hidden;
  margin:0 0 20px;
  padding:25px;
  background:linear-gradient(125deg,#30373b 0%,#202529 48%,#171b1e 100%);
  border:1px solid #626b71;
  border-left:4px solid #ff7900;
  border-radius:12px;
  box-shadow:0 12px 28px #0006,inset 0 1px #ffffff12;
}

.premium-order-card:hover {
  border-color:#ff7900;
  box-shadow:0 12px 30px #0008,0 0 16px #ff790022;
  transform:translateY(-2px);
}

.order-topline {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding-bottom:17px;
  border-bottom:1px solid #50585e;
}

.order-overline {
  display:block;
  margin-bottom:6px;
  color:#ffad62;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.2px;
}

.order-topline h3 {
  margin:0;
  color:#fff;
  font-size:23px;
  font-weight:900;
}

.premium-status {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border:1px solid currentColor;
  border-radius:6px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
  background:#171b1e;
}

.status-orange {color:#ff9a32}
.status-green {color:#67d69a}
.status-blue {color:#6ebaff}
.status-red {color:#ff7777}

.order-facts {
  display:flex;
  gap:35px;
  padding:18px 0;
  border-bottom:1px solid #50585e;
}

.order-facts > div {
  min-width:145px;
}

.order-facts span {
  display:block;
  margin-bottom:7px;
  color:#aeb5ba;
  font-size:10px;
  font-weight:800;
  letter-spacing:.7px;
}

.order-facts b {
  color:#fff;
  font-size:15px;
}

.premium-order-details {
  padding:15px 0;
  border-bottom:1px solid #50585e;
}

.premium-order-details summary {
  color:#ffad62;
  font-weight:800;
  cursor:pointer;
}

.premium-order-details summary:hover {
  color:#fff;
}

.premium-order-item {
  display:flex;
  align-items:center;
  gap:14px;
  padding:13px 0;
  border-bottom:1px solid #41494e;
}

.mini-product-icon {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:0 0 48px;
  color:#ff7900;
  background:#171b1e;
  border:1px solid #9a5724;
  border-radius:8px;
  font-size:22px;
}

.mini-product-info {
  display:flex;
  flex:1;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.mini-product-info b {
  color:#fff;
  font-size:13px;
}

.mini-product-info small {
  color:#aeb5ba;
  font-size:11px;
}

.premium-order-item > strong {
  color:#ffad62;
  white-space:nowrap;
}

.order-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding-top:19px;
}

.order-amount {
  display:block;
  color:#ff9a32;
  font-size:25px;
  font-weight:950;
}

.premium-details-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  white-space:nowrap;
}

.premium-empty {
  padding:40px 20px;
  background:linear-gradient(145deg,#30373b,#191e21);
  border:1px solid #626b71;
  border-top:2px solid #ff7900;
  border-radius:12px;
}

@media(max-width:650px) {
  .premium-order-card {padding:17px}
  .order-topline h3 {font-size:19px}
  .order-facts {gap:15px;flex-wrap:wrap}
  .order-facts > div {min-width:115px}
  .order-bottom {align-items:flex-start;flex-direction:column}
  .order-amount {font-size:22px}
  .filter-actions {align-items:flex-start;flex-direction:column}
  .premium-details-btn {width:100%;box-sizing:border-box}
}
