:root{
  --sangu-red:#DE243A;
  --sangu-red-2:#DF2D43;

  --bg:#101317;
  --bg-2:#141A20;
  --panel:#151B22;
  --panel-2:#0F141A;
  --text:#E9EDF2;
  --muted:rgba(233,237,242,.68);
  --line:rgba(233,237,242,.10);

  --shadow:0 18px 45px rgba(0,0,0,.45);
  --shadow-soft:0 10px 28px rgba(0,0,0,.30);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
img{max-width:100%;height:auto} /* safety */

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(222,36,58,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(223,45,67,.12), transparent 60%),
    radial-gradient(900px 600px at 60% 120%, rgba(120,160,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), #0C0F13);
  color:var(--text);
}

.container{max-width:1120px;margin:0 auto;padding:18px}

/* Topbar */
.topbar{
  background:rgba(15,20,26,.72);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
  position:sticky; top:0; z-index:20;
}
.topbar__inner{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}

.brand{display:flex;align-items:center;gap:12px;min-width:220px}

/* ✅ FIX: logo sizing */
.brand__logo{
  height:44px;          /* adjust here: 36-52 ok */
  width:auto;
  display:block;
  object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.brand__title{font-weight:900;letter-spacing:.6px}
.brand__sub{font-size:12px;color:var(--muted)}

/* Nav */
.nav{display:flex;align-items:center;gap:10px}
.nav__link{
  text-decoration:none;
  color:rgba(233,237,242,.78);
  padding:9px 11px;
  border-radius:12px;
  border:1px solid transparent;
}
.nav__link:hover{
  background:rgba(223,45,67,.10);
  border-color:rgba(223,45,67,.25);
  color:var(--text);
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(222,36,58,.65);
  background:linear-gradient(135deg,var(--sangu-red),var(--sangu-red-2));
  color:#fff;
  padding:10px 13px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(222,36,58,.22);
  transition:transform .08s ease, filter .12s ease;
}
.btn:hover{filter:brightness(1.03)}
.btn:active{transform:translateY(1px)}
.btn--ghost{
  background:rgba(15,20,26,.35);
  color:rgba(233,237,242,.92);
  border-color:rgba(233,237,242,.16);
  box-shadow:none;
}
.btn--ghost:hover{
  background:rgba(233,237,242,.06);
  border-color:rgba(233,237,242,.22);
}
.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}

/* Hero */
.hero{padding:18px 0 30px}
.hero__card{
  border-radius:22px;
  padding:24px;
  border:1px solid var(--line);
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(222,36,58,.18), transparent 55%),
    radial-gradient(900px 260px at 80% 0%, rgba(120,160,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(21,27,34,.96), rgba(15,20,26,.92));
  box-shadow:var(--shadow);
}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;
  background:rgba(222,36,58,.12);
  color:rgba(255,255,255,.92);
  border:1px solid rgba(222,36,58,.28);
  padding:7px 11px;
  border-radius:999px;
  font-weight:800;
}
.badge:before{
  content:"";
  width:8px;height:8px;border-radius:99px;
  background:var(--sangu-red);
  box-shadow:0 0 0 4px rgba(222,36,58,.18);
}

h1{
  margin:14px 0 10px;
  font-size:36px;
  line-height:1.12;
  letter-spacing:-.3px;
}
.muted{color:var(--muted)}
.hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 6px}

/* Grid & Cards */
.grid{display:grid;gap:14px;margin-top:16px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--2{grid-template-columns:repeat(2,1fr)}
@media(max-width:900px){
  .grid--3,.grid--2{grid-template-columns:1fr}
  h1{font-size:30px}
}

.card{
  background:linear-gradient(180deg, rgba(21,27,34,.92), rgba(15,20,26,.86));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow-soft);
}
.card__title{font-weight:900;margin-bottom:8px}
.spacer{height:12px}
.page-title{margin:8px 0 14px;font-size:22px;font-weight:900}

/* Messages */
.messages{margin:10px 0}
.msg{
  background:rgba(21,27,34,.92);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:16px;
}
.msg--error{
  border-color:rgba(222,36,58,.35);
  background:rgba(222,36,58,.10);
}

/* Auth */
.auth{display:flex;justify-content:center;padding:28px 0}
.auth__card{
  width:100%;
  max-width:440px;
  background:linear-gradient(180deg, rgba(21,27,34,.96), rgba(15,20,26,.90));
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow);
}
.form{display:grid;gap:10px;margin-top:10px}
.label{font-size:13px;font-weight:800;color:rgba(233,237,242,.90)}

/* Inputs */
input{
  width:100%;
  padding:11px 12px;
  border:1px solid rgba(233,237,242,.16);
  background:rgba(15,20,26,.55);
  color:var(--text);
  border-radius:14px;
  outline:none;
}
input::placeholder{color:rgba(233,237,242,.45)}
input:focus{
  border-color:rgba(222,36,58,.45);
  box-shadow:0 0 0 4px rgba(222,36,58,.14);
}

/* Footer */
.footer{
  margin-top:26px;
  padding:18px 0;
  background:rgba(15,20,26,.72);
  border-top:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.footer__inner{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
