sudo tee public/css/style.css > /dev/null << 'CSSEOF'
:root {
  --bg: #0a0e17;
  --bg-panel: #10151f;
  --bg-card: #141a26;
  --border: #212838;
  --text: #e7ebf3;
  --text-dim: #8b93a7;
  --accent: #2fd4c9;
  --accent-2: #3b82f6;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #132033 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---------- Landing page ---------- */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 24px;
}

.landing .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  font-weight: 700;
  font-size: 20px;
}

.landing .brand .dot {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.landing h1 {
  font-size: 48px;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 0 20px;
}

.landing h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing p.sub {
  color: var(--text-dim);
  max-width: 620px;
  font-size: 16px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #0a0e17;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04141a;
}

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.error-banner {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.4);
  color: #fca5a5;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}

/* ---------- Dashboard shell ---------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 84px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar .server-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, border-radius .15s ease;
}
.sidebar .server-icon img { width: 100%; height: 100%; object-fit: cover; }
.sidebar .server-icon:hover { border-radius: 14px; }
.sidebar .server-icon.active { border-color: var(--accent); border-radius: 14px; }
.sidebar .server-icon.no-bot::after {
  content: "";
  position: absolute;
  bottom: -2px; right: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg-panel);
}

.sidebar .spacer { flex: 1; }

.main {
  flex: 1;
  padding: 32px 40px;
  max-width: 1100px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.topbar .who {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}
.topbar .who img { width: 30px; height: 30px; border-radius: 50%; }

.empty-state {
  color: var(--text-dim);
  padding: 60px 0;
  text-align: center;
}

.server-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.server-title img, .server-title .fallback {
  width: 56px; height: 56px; border-radius: 16px; object-fit: cover;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.server-title h2 { margin: 0; font-size: 22px; }
.server-title .status { font-size: 13px; color: var(--text-dim); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

.card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.card .big {
  font-size: 30px;
  font-weight: 700;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.panel h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

select, input[type=number] {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.interval-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.interval-row input { width: 100px; }
.interval-row .unit { color: var(--text-dim); font-size: 14px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.switch {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: .15s;
}
.switch .slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .15s;
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.save-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.save-msg { font-size: 13px; color: var(--green); opacity: 0; transition: opacity .2s; }
.save-msg.show { opacity: 1; }

.lang-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lang-table th, .lang-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.lang-table td:first-child, .lang-table th:first-child { color: var(--text); }
.lang-table tr:last-child td { border-bottom: none; }

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 380px;
  text-align: center;
}
.modal h3 { margin-top: 0; }
.modal p { color: var(--text-dim); font-size: 14px; }
.modal .actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

@media (max-width: 720px) {
  .main { padding: 20px; }
  .sidebar { width: 64px; }
  .sidebar .server-icon { width: 42px; height: 42px; }
}
CSSEOF
