:root{
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: rgba(229,231,235,.72);
  --border: rgba(148,163,184,.18);
  --primary: var(--tenant-secondary, #2563eb);
  --danger: #ef4444;
  --success: #22c55e;
  --info: #38bdf8;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, rgba(59,130,246,.15), transparent 60%),
              radial-gradient(900px 700px at 90% 10%, rgba(34,197,94,.10), transparent 55%),
              var(--bg);
  color: var(--text);
}

.container{max-width: 1100px; margin:0 auto; padding: 22px;}
.topbar{
  position: sticky; top:0;
  border-bottom: 1px solid var(--border);
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; padding: 14px 22px;}
.brand{display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--text);}
.brand__mark{color:var(--primary); font-size: 18px}
.brand__name{font-weight:700}

.nav{display:flex; gap:10px}
.nav__link{color:var(--muted); text-decoration:none; padding:8px 10px; border-radius:12px; border:1px solid transparent}
.nav__link:hover{color:var(--text); border-color: var(--border); background: rgba(255,255,255,.03)}

.hero{padding: 18px 0 8px}
.hero h1{margin:0 0 6px; font-size: 28px}
.hero p{margin:0; color: var(--muted)}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}

.grid{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
@media (max-width: 900px){ .grid{grid-template-columns: repeat(2, minmax(0,1fr));} }
@media (max-width: 580px){ .grid{grid-template-columns: 1fr;} .topbar__inner{flex-direction:column; gap:10px; align-items:flex-start} }

.tenant-tile{
  display:flex; gap:12px; align-items:center;
  padding: 12px; border-radius: 16px;
  border:1px solid var(--border);
  text-decoration:none; color: var(--text);
  background: rgba(15,23,42,.35);
}
.tenant-tile:hover{border-color: rgba(59,130,246,.55)}
.tenant-tile__logo img{width:44px; height:44px; border-radius: 14px; object-fit:cover}
.placeholder-logo{width:44px; height:44px; border-radius: 14px; display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,.06)}
.tenant-tile__name{font-weight:700}
.tenant-tile__slug{color: var(--muted); font-size: 12px}

.tenant-hero{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: radial-gradient(700px 360px at 20% 0%, rgba(37,99,235,.22), transparent 60%),
              rgba(15,23,42,.35);
}
.tenant-hero__brand{display:flex; gap:12px; align-items:center}
.tenant-hero__logo{width:64px; height:64px; border-radius: 18px; object-fit:cover; border:1px solid var(--border)}
.tenant-hero__logo--placeholder{display:flex; align-items:center; justify-content:center}
.tenant-hero__name{margin:0 0 4px; font-size: 26px}
.tenant-hero__sub{margin:0; color:var(--muted)}
@media (max-width: 700px){ .tenant-hero{flex-direction:column; align-items:flex-start} }

.kv{display:grid; gap:8px; color: var(--muted)}
.breadcrumbs a{color: var(--muted); text-decoration:none}
.breadcrumbs a:hover{color: var(--text)}

.field{display:flex; flex-direction:column; gap:6px; margin: 10px 0}
label{font-size: 13px; color: var(--muted)}
input, select{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(2,6,23,.55);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{border-color: rgba(59,130,246,.65)}
.grid-2{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px}
@media (max-width: 700px){ .grid-2{grid-template-columns: 1fr;} }

.actions{display:flex; gap:10px; align-items:center; margin-top: 12px; flex-wrap: wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
}
.btn--primary{background: rgba(37,99,235,.22); border-color: rgba(37,99,235,.45)}
.btn--primary:hover{background: rgba(37,99,235,.28)}
.btn--ghost:hover{background: rgba(255,255,255,.06)}
.btn--danger{background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.35)}
.btn--danger:hover{background: rgba(239,68,68,.24)}
.inline{display:flex; gap:8px; align-items:center}

.flash{
  border:1px solid var(--border);
  padding: 12px 14px;
  border-radius: 16px;
  margin: 14px 0;
}
.flash--error{border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.12)}
.flash--success{border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.12)}
.flash--info{border-color: rgba(56,189,248,.45); background: rgba(56,189,248,.10)}

.muted{color: var(--muted)}
.footer{border-top:1px solid var(--border); margin-top: 18px}
.footer__inner{padding: 16px 22px; color: var(--muted)}

.table-wrap{overflow:auto; border-radius: 16px; border:1px solid var(--border)}
.table{width:100%; border-collapse: collapse; min-width: 720px}
.table th,.table td{padding: 10px 12px; border-bottom:1px solid rgba(148,163,184,.14); text-align:left}
.table th{color: var(--muted); font-size: 12px; letter-spacing:.02em}
.table tr:hover td{background: rgba(255,255,255,.02)}

.pill{padding: 4px 10px; border-radius: 999px; border:1px solid var(--border); font-size: 12px}
.pill--pending{border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.10)}
.pill--confirmed{border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.10)}
.pill--cancelled{border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.10)}

.admin-head{display:flex; justify-content:space-between; gap: 14px; align-items:flex-start}
.admin-actions{display:flex; gap:10px; flex-wrap:wrap}

.wizard__steps{display:flex; gap:10px; margin-top: 10px; flex-wrap:wrap}
.wizard__step{color: var(--muted); text-decoration:none; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border)}
.wizard__step.is-active, .wizard__step:hover{color: var(--text); border-color: rgba(37,99,235,.55); background: rgba(37,99,235,.10)}
.wizard__panel{display:none; margin-top: 14px}

.repeater{display:flex; flex-direction:column; gap:10px; margin-top: 10px}
.repeater__row{display:grid; grid-template-columns: 1.5fr .5fr .5fr 44px; gap: 10px; align-items:center}
@media (max-width: 700px){ .repeater__row{grid-template-columns: 1fr; } .repeater__row .btn{justify-self:flex-end} }

.service-list{display:flex; flex-direction:column; gap: 10px}
.service-item{display:flex; justify-content:space-between; gap: 12px; align-items:center; border:1px solid var(--border); border-radius: 16px; padding: 12px; background: rgba(15,23,42,.35)}
.service-item__name{font-weight:700}
.service-item__meta{color: var(--muted); font-size: 12px}
