/* Mobile-first, dark theme */
* { box-sizing: border-box; }
html, body { height: 100%; }

:root{
  --bg: #0b0b0f;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: #f2f2f2;
  --muted: rgba(242,242,242,0.75);
  --blue: #1b79ff;
  --red: rgba(255,59,59,0.95);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: #9ad1ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.brand-mini{
  font-weight: 800;
  letter-spacing: 0.08em;
}

.top-nav{
  display:flex;
  gap:12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.container{
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.title{
  margin: 0 0 12px 0;
  font-size: 20px;
}

.center{ text-align:center; }

.logo-wrap{
  display:flex;
  justify-content:center;
  margin: 18px 0 12px;
}
.logo{
  width: min(360px, 92vw);
  height: auto;
  display:block;
}
.small-logo{
  width: min(260px, 78vw);
  margin: 0 auto 10px;
}

.form-grid{
  display:grid;
  gap: 12px;
}

label{
  display:block;
  font-weight: 700;
  margin-bottom: 6px;
}

input{
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  outline: none;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration:none;
  width: 100%;
}

.btn-primary{ background: var(--blue); color: #fff; }
.btn-secondary{ background: rgba(255,255,255,0.10); border: 1px solid var(--border); color:#fff; }
.btn-danger{ background: var(--red); border: 1px solid rgba(255,59,59,0.35); color:#fff; }

.btn:hover{ filter: brightness(1.07); }

.notice{
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(27,121,255,0.16);
  border: 1px solid rgba(27,121,255,0.35);
}
.notice-error{
  background: rgba(255,59,59,0.16);
  border-color: rgba(255,59,59,0.35);
}

.small{ font-size: 12px; }
.muted{ color: var(--muted); }

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  font-size: 12px;
  white-space: nowrap;
}

.admin-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.table-wrap{
  overflow-x:auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
table{
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
}
thead th{
  text-align:left;
  padding: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
tbody td{
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
tbody tr:hover{ background: rgba(255,255,255,0.05); }
.actions{ text-align:right; white-space:nowrap; }
.primary{ font-weight: 800; }
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12px;
  opacity: 0.85;
}
.inline{ display:inline; }

/* Mobile admin cards */
.request-card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}
.request-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

/* Responsive helpers */
.desktop-only{ display:none; }
.mobile-only{ display:block; }

@media (min-width: 860px){
  .card{ padding: 20px; }
  .title{ font-size: 22px; }
  .btn{ width: auto; }
  .form-grid{ grid-template-columns: 1fr 1fr; }
  .form-grid .btn{ grid-column: 1 / -1; justify-self: start; }
  .desktop-only{ display:block; }
  .mobile-only{ display:none; }
}
