:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --accent: #60a5fa;
  --accent-2: #34d399;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #0b1220; border-bottom: 1px solid #1f2937;
  position: sticky; top: 0; z-index: 10;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo { width: 28px; height: 28px; }

.nav select {
  background: #0f172a; color: var(--text); border: 1px solid #334155;
  border-radius: 8px; padding: 8px 10px;
}

.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; width: 100%; flex: 1; }

.panel {
  background: var(--panel); border: 1px solid #1f2937; border-radius: 16px; padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.panel.narrow { max-width: 560px; margin: 0 auto; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.hero {
  background-image: radial-gradient(1000px 300px at 0% 0%, rgba(96, 165, 250, 0.3), transparent),
                    radial-gradient(1000px 300px at 100% 0%, rgba(52, 211, 153, 0.3), transparent);
  border-radius: 16px; padding: 60px 30px; text-align: center;
}
.hero .hero-text h1 { font-size: 36px; margin: 0 0 10px; }
.hero .hero-text p { color: var(--muted); margin: 0 0 20px; }

.btn {
  padding: 10px 16px; border-radius: 12px; border: 1px solid #2563eb;
  background: linear-gradient(180deg, #3b82f6, #2563eb); color: white; font-weight: 600; text-decoration: none;
  display: inline-block;
}
.btn.secondary { border-color: #059669; background: linear-gradient(180deg, #10b981, #059669); }
.btn.ghost { background: transparent; border-color: #334155; }
.btn.small { padding: 6px 10px; font-size: 12px; }

label { display: block; margin: 12px 0 6px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #334155; background: #0f172a; color: var(--text);
}

.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #1f2937; text-align: left; }
.table th { color: var(--muted); font-weight: 500; }

.stats { display: flex; gap: 18px; margin: 10px 0 14px; }
.stat { background: #0b1220; padding: 14px 18px; border-radius: 12px; border: 1px solid #1f2937; }
.stat span { font-size: 22px; font-weight: 800; display: block; }
.stat label { color: var(--muted); font-size: 12px; }

.flash-area { margin-bottom: 12px; }
.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; }
.flash.success { background: rgba(16,185,129,0.15); border: 1px solid #10b981; }
.flash.danger { background: rgba(248,113,113,0.15); border: 1px solid #f87171; }
.flash.info { background: rgba(96,165,250,0.15); border: 1px solid #60a5fa; }

.ticket-body img { max-width: 100%; height: auto; border-radius: 8px; }
.inline-form { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.hint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.footer { margin: 20px 0; text-align: center; color: var(--muted); }
.empty { color: var(--muted); text-align: center; }

/* --- ticket list message previews --- */
.body-preview {
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.body-preview img { max-height: 60px; border-radius: 6px; margin: 4px 0; }

/* --- clickable brand link --- */
.brand-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }

/* --- Form styling --- */
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

label {
  color: var(--text);
}

.btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid #475569;
}

.btn.secondary:hover {
  background: #374151;
  color: var(--text);
}
CSS
