:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --panel-2: #16233d;
  --border: rgba(255,255,255,0.08);
  --text: #edf2ff;
  --muted: #99a8c7;
  --accent: #6ea8fe;
  --accent-2: #8b5cf6;
  --success: #22c55e;
  --shadow: 0 20px 45px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #08101d 0%, #0f172a 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
input, select, button { font: inherit; }
input[type="file"] { display: none; }

.app-shell,
.login-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar,
.toolbar,
.stat-card,
.kiosk-card,
.login-card {
  background: rgba(17, 26, 46, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.topbar {
  border-radius: 24px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 4px; }
h2 { font-size: 1.2rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  color: var(--accent);
  font-weight: 700;
}
.muted { color: var(--muted); }
.small { font-size: .92rem; }

.topbar-actions { display: flex; gap: 12px; }
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0.95;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}
.stats-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.stat-card {
  border-radius: 22px;
  padding: 22px;
}
.stat-label { color: var(--muted); display:block; margin-bottom:8px; }
.stat-value { font-size: 2rem; }

.toolbar {
  margin-top: 22px;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.search-wrap {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
}
.search-wrap input,
.sort-wrap select,
.login-form input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 14px 0;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.sort-wrap select {
  width: auto;
  min-width: 180px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.kiosk-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.kiosk-card {
  border-radius: 24px;
  padding: 22px;
}
.kiosk-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.status-pill {
  white-space: nowrap;
  font-size: .88rem;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #a7f3d0;
}
.status-pill i { font-size: .7rem; }
.kiosk-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.meta-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}
.meta-label {
  color: var(--muted);
  font-size: .82rem;
  display: block;
  margin-bottom: 6px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.service-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.service-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}
.service-title { font-weight: 700; }
.service-meta { color: var(--muted); font-size: .9rem; margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}
.btn-block { width: 100%; }
.upload-label { cursor: pointer; }

.empty-state {
  margin-top: 22px;
  text-align: center;
  padding: 42px 20px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  color: var(--muted);
}
.empty-state i { font-size: 2rem; margin-bottom: 12px; }

.login-body {
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.login-shell {
  width: min(520px, calc(100% - 32px));
}
.login-card {
  border-radius: 28px;
  padding: 30px;
}
.login-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.brand-badge {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(110,168,254,0.18), rgba(139,92,246,0.18));
  border: 1px solid var(--border);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-badge-image img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
}
.login-form {
  display: grid;
  gap: 16px;
}
.login-form label span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.login-form input {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
}
.login-error {
  color: #fca5a5;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .topbar,
  .toolbar,
  .kiosk-card-header,
  .service-item,
  .topbar-brand {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-logo {
    width: 44px;
    height: 44px;
  }
  .kiosk-meta-grid {
    grid-template-columns: 1fr;
  }
}
