:root {
  --teal: #0f9b8e;
  --teal-dark: #0b7a70;
  --bg: #f4f7f7;
  --card: #fff;
  --text: #12202a;
  --muted: #5b6b75;
  --line: #e4eceb;
  --ok: #128a4b;
  --danger: #c0392b;
  --shadow: 0 8px 28px rgba(18,40,40,.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Noto Sans Bengali", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--teal-dark); text-decoration: none; }
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
}
.brand { font-weight: 800; font-size: 22px; color: var(--text); display: flex; gap: 8px; align-items: center; margin-bottom: 28px; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar nav a {
  padding: 10px 12px; border-radius: 10px; color: var(--text);
}
.sidebar nav a.active, .sidebar nav a:hover { background: #e7f6f4; color: var(--teal-dark); }
.side-foot { margin-top: auto; font-size: 13px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.main { flex: 1; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px 8px;
}
.topbar h1 { margin: 0; font-size: 26px; }
.lang-pill, .btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer;
  font-weight: 650; font-size: 14px;
}
.lang-pill { background: #e7f6f4; color: var(--teal-dark); }
.content { padding: 8px 28px 40px; max-width: 980px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px;
}
label { display: block; font-weight: 650; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfdcda; border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
.help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.btn-primary { background: var(--teal); color: #fff; width: 100%; margin-top: 16px; padding: 13px; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: #fdecea; color: var(--danger); }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 240px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 28px; margin-top: 6px; }
.stat span { color: var(--muted); font-size: 13px; }
.flash { background: #e8f8ef; color: var(--ok); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.error { background: #fdecea; color: var(--danger); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 14px; word-break: break-all; }
.slug-box { display: flex; align-items: center; gap: 8px; }
.slug-prefix { background: #eef3f3; padding: 12px 10px; border-radius: 10px; white-space: nowrap; color: var(--muted); }
.preview { font-size: 20px; color: var(--teal-dark); font-weight: 700; }
.ok { color: var(--ok); font-weight: 650; }
.bad { color: var(--danger); font-weight: 650; }
.thumb { width: 100%; max-width: 320px; border-radius: 12px; border: 1px dashed #bcd; padding: 8px; }
.shortbox {
  display: flex; gap: 8px; align-items: center; background: #f3faf9;
  border: 1px solid #cfe; border-radius: 12px; padding: 10px 12px;
}
.shortbox input { border: 0; background: transparent; font-weight: 700; }
.actions a, .actions button { margin-right: 6px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); }
.muted { color: var(--muted); }
.bar { background: #e8eaea; height: 8px; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--teal); }
.country-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.country-row .name { width: 160px; }
.country-row .bar { flex: 1; }
.home-hero { max-width: 720px; margin: 10vh auto; text-align: center; }
.install pre { background: #0e1a1c; color: #d6fffb; padding: 12px; border-radius: 8px; overflow: auto; }
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .stats { grid-template-columns: 1fr 1fr; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}
