:root{
  --bg:#050505;
  --panel:rgba(10,10,10,.88);
  --panel-soft:rgba(20,20,20,.82);
  --panel-strong:rgba(5,5,5,.94);
  --red:#d20d0d;
  --red-bright:#ff2a2a;
  --red-dark:#7b0808;
  --text:#f7f7f7;
  --muted:#b9b9b9;
  --line:rgba(255,45,45,.24);
  --shadow:0 18px 50px rgba(0,0,0,.42);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#050505}
body{
  margin:0;min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(rgba(0,0,0,.48),rgba(0,0,0,.78)),
  url('/static/black-tigers-bg.png') center center/cover fixed no-repeat;
}
a{color:#ff7070;text-decoration:none}
img{max-width:100%}
button,input,textarea,select{font:inherit}
.overlay{
  position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:radial-gradient(circle at top right,rgba(210,13,13,.14),transparent 30%),
  linear-gradient(180deg,rgba(0,0,0,.14),rgba(0,0,0,.35));
}
.topbar{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:14px 4vw;background:rgba(0,0,0,.88);
  border-bottom:1px solid rgba(255,30,30,.26);
  backdrop-filter:blur(14px);box-shadow:0 8px 30px rgba(0,0,0,.3);
}
.brand{
  display:flex;align-items:center;gap:7px;font-weight:950;
  letter-spacing:.7px;color:#fff;white-space:nowrap;
}
.brand small{color:var(--red-bright);font-weight:900}
.tiger{font-size:1.25rem}
nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
nav a,.linkbtn{
  color:#ededed;font-weight:800;border-radius:10px;padding:9px 11px;transition:.2s ease
}
nav a:hover,.linkbtn:hover{background:rgba(255,35,35,.12);color:#fff}
.linkbtn{border:0;background:transparent;cursor:pointer}
.inline{display:inline}
.shell{width:min(1180px,92vw);margin:30px auto 64px}
.card,.stat,.profilecard{
  background:linear-gradient(180deg,var(--panel),rgba(8,8,8,.92));
  border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);backdrop-filter:blur(12px)
}
.card{padding:24px;margin-bottom:20px}
h1,h2,h3{margin-top:0;line-height:1.15}
h1{font-size:clamp(1.75rem,4vw,2.6rem)}
h2{font-size:clamp(1.25rem,3vw,1.7rem)}
p{line-height:1.6}
.lead,.muted{color:var(--muted)}
.hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}
.hero p{margin-bottom:0;color:var(--muted)}
.stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;margin-bottom:22px
}
.stat{position:relative;overflow:hidden;padding:20px;min-height:122px}
.stat::after{
  content:"";position:absolute;right:-25px;bottom:-35px;width:100px;height:100px;
  border-radius:50%;background:rgba(255,28,28,.08)
}
.stat span{display:block;color:var(--muted);font-size:.88rem;font-weight:700}
.stat strong{
  position:relative;z-index:1;display:block;margin-top:9px;
  font-size:clamp(1.45rem,3vw,2rem);color:#fff
}
.primary,.btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;
  padding:12px 17px;border:0;border-radius:12px;
  background:linear-gradient(135deg,var(--red-dark),var(--red-bright));
  color:#fff;font-weight:950;box-shadow:0 10px 22px rgba(210,13,13,.25);cursor:pointer
}
.primary:hover,.btn:hover{filter:brightness(1.08)}
.danger{
  border:1px solid #731414;background:#290909;color:#ffd6d6;
  border-radius:10px;padding:10px 13px;cursor:pointer
}
form{display:grid;gap:14px}
label{display:grid;gap:7px;color:#e4e4e4;font-weight:800}
input,textarea,select{
  width:100%;min-height:46px;border:1px solid #3a3a3a;border-radius:11px;
  padding:12px 13px;background:#0d0d0d;color:#fff;outline:none
}
textarea{resize:vertical}
input:focus,textarea:focus,select:focus{
  border-color:var(--red-bright);box-shadow:0 0 0 3px rgba(255,42,42,.12)
}
.grid2{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.tablewrap{overflow-x:auto;border-radius:12px}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{padding:13px 12px;text-align:left;border-bottom:1px solid #2f2f2f}
th{color:#ff7777;font-size:.9rem}
td{color:#eee}
tfoot th{border-top:2px solid var(--red);font-size:1rem}
.flash{
  padding:12px 15px;border:1px solid #244b2a;border-radius:11px;
  margin-bottom:15px;background:#122015
}
.flash.error{background:#2c0e0e;border-color:#6b1717}
.flash.success{background:#132018}
.auth{max-width:470px;margin:7vh auto}
.auth h1{margin-bottom:6px}
.vatbox{display:flex;flex-direction:column;justify-content:center}
.vatbox b{color:#ff5b5b;font-size:1.35rem}
.vatbox div{margin:11px 0}
.filters{display:flex;align-items:end;gap:12px;margin-bottom:18px}
.filters label{max-width:150px}
.reporthead{display:flex;justify-content:space-between;align-items:center;gap:14px}
.profiletop{display:flex;align-items:center;gap:20px}
.avatar{
  width:74px;height:74px;border-radius:50%;object-fit:cover;
  border:2px solid var(--red-bright);box-shadow:0 0 0 4px rgba(255,42,42,.08)
}
.avatar.big{width:118px;height:118px}
.fallback{display:grid;place-items:center;background:#151515;font-size:2rem}
.profilecard{
  display:flex;align-items:center;gap:15px;padding:18px;color:#fff;transition:.2s ease
}
.profilecard:hover{transform:translateY(-2px);border-color:rgba(255,42,42,.48)}
.profilecard p{margin:6px 0;color:var(--muted)}
.stars{color:#ffcc45;font-weight:950;letter-spacing:1px}
.stars span{color:#ddd;font-weight:700;letter-spacing:0}
.review{padding:16px 0;border-bottom:1px solid #2e2e2e}
.review:last-child{border-bottom:0}
.review p{margin:8px 0}
.review small{color:var(--muted)}
.mobile-sales{display:none}
.sale-mobile-card{
  background:rgba(10,10,10,.92);border:1px solid var(--line);
  border-radius:14px;padding:14px;margin-bottom:12px
}
.sale-mobile-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:5px 0}
.sale-mobile-row span:first-child{color:var(--muted);font-size:.88rem}
.sale-mobile-row strong{text-align:right}
footer{
  text-align:center;padding:24px;color:#949494;background:rgba(0,0,0,.82);
  border-top:1px solid rgba(255,42,42,.12)
}
@media (max-width:900px){
  .topbar{align-items:flex-start;flex-direction:column}
  nav{width:100%;justify-content:flex-start}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid2{grid-template-columns:1fr}
}
@media (max-width:640px){
  body{
    background:linear-gradient(rgba(0,0,0,.68),rgba(0,0,0,.88)),
    url('/static/black-tigers-bg.png') 64% center/cover fixed no-repeat
  }
  .topbar{
    position:sticky;top:0;padding:11px 14px;gap:10px;background:rgba(0,0,0,.94)
  }
  .brand{width:100%;font-size:.96rem}
  .brand small{display:none}
  nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px}
  nav a,.linkbtn{
    display:flex;align-items:center;justify-content:center;min-height:42px;
    padding:8px 7px;border:1px solid rgba(255,42,42,.15);
    background:rgba(255,255,255,.025);font-size:.78rem;text-align:center
  }
  nav .inline{display:block}
  .shell{width:calc(100% - 20px);margin:16px auto 45px}
  .card{padding:16px;border-radius:15px;margin-bottom:14px}
  .hero{display:grid;grid-template-columns:1fr;margin-bottom:14px}
  .hero h1{margin-bottom:6px}
  .hero .primary,.hero .btn{width:100%}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px}
  .stat{min-height:104px;padding:14px;border-radius:14px}
  .stat span{font-size:.76rem}
  .stat strong{font-size:1.3rem}
  .grid2,.cards{grid-template-columns:1fr;gap:12px}
  .primary,.btn,button{min-height:48px}
  input,textarea,select{min-height:48px;font-size:16px}
  .profiletop{align-items:flex-start}
  .avatar.big{width:88px;height:88px;flex:0 0 auto}
  .filters,.reporthead{flex-direction:column;align-items:stretch}
  .filters{display:grid;grid-template-columns:1fr 1fr}
  .filters label{max-width:none}
  .filters button{grid-column:1/-1}
  .tablewrap{margin-left:-6px;margin-right:-6px}
  table{min-width:650px;font-size:.84rem}
  th,td{padding:10px 9px}
  .desktop-table.has-mobile-version{display:none}
  .mobile-sales{display:block}
  footer{padding:20px 12px;font-size:.82rem}
}
@media (max-width:390px){
  nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats{grid-template-columns:1fr 1fr}
  .stat{min-height:98px}
  .stat strong{font-size:1.14rem}
}
@media print{
  body{background:#fff;color:#000}
  .overlay,.topbar,footer,.no-print{display:none!important}
  .shell{width:100%;margin:0}
  .card{background:#fff;color:#000;border:0;box-shadow:none;padding:0}
  .report table{min-width:0}
  th,td,h1,h2,h3,p{color:#000!important;border-color:#aaa}
}
