* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #1a1a1a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

/* === Admin nav (top bar) === */
.adm-nav {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 18px;
  position: sticky; top: 0; z-index: 100;
}
.adm-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 22px;
  height: 56px;
}
.adm-nav-brand {
  font-weight: 700; color: #fff; font-size: 1em;
  display: flex; align-items: center; gap: 8px;
}
.adm-nav-brand i { color: var(--site-color); }
.adm-nav-links {
  display: flex; gap: 6px; flex: 1;
}
.adm-nav-links a {
  padding: 7px 12px; border-radius: 7px;
  color: rgba(255,255,255,0.6); font-size: .9em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
.adm-nav-links a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.adm-nav-links a.active { background: rgba(255,255,255,0.08); color: #fff; }
.adm-nav-user {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.6); font-size: .88em;
}
.adm-nav-user a { padding: 5px 8px; border-radius: 6px; }
.adm-nav-user a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* === Card pattern === */
.adm-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px;
}
.adm-page {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 18px;
}
.adm-page-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.adm-page-head h1 {
  margin: 0; font-size: 1.4em; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.adm-page-head h1 i { color: var(--site-color); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--site-color); color: #fff;
  border: none; cursor: pointer;
  font: inherit; font-size: .9em; font-weight: 600;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
}
.btn-danger { background: #ff6b6b; }

/* === Form === */
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=date], input[type=number], select, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 9px 12px; border-radius: 8px;
  font: inherit; font-size: .92em; outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--site-color); }

/* === Modal generico === */
.dsw-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78); backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.dsw-modal.show { display: flex; }
.dsw-modal-box {
  width: 560px; max-width: 100%; max-height: 90vh;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.dsw-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
}
.dsw-modal-head h3 { margin: 0; font-size: 1em; font-weight: 600; }
.dsw-modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.dsw-modal-foot {
  padding: 12px 18px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: flex-end; gap: 8px;
}
