:root{
  --bg:#0b0f14;
  --card:#111824;
  --muted:#8ea0b8;
  --text:#e9f0fb;
  --line:rgba(255,255,255,.08);
  --accent:#ff7a18; /* MyCQL orange */
  --accent2:#ff4f29;
  --danger:#ff4d4d;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(255,122,24,.22), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,79,41,.18), transparent 60%),
    var(--bg);
}

a{color:var(--text); text-decoration:none}
a:hover{opacity:.9; text-decoration:underline}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 14px 48px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border:1px solid var(--line);
  background: rgba(17,24,36,.75);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.4px;
}
.brand .dot{
  width:12px;height:12px;border-radius:50%;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 0 6px rgba(255,122,24,.12);
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.nav a{
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.03);
}

.card{
  margin-top: 16px;
  border:1px solid var(--line);
  background: rgba(17,24,36,.78);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
  overflow:hidden;
}

.card .hd{
  padding:18px 18px 12px;
  border-bottom:1px solid var(--line);
}
.h1{margin:0; font-size:20px}
.p{margin:8px 0 0; color:var(--muted); line-height:1.5}

.card .bd{padding:18px}

.grid{
  display:grid;
  gap:14px;
}
@media(min-width:860px){
  .grid-2{grid-template-columns: 1fr 1fr}
}

.item{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 14px;
}

.row{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.badge{
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}
.badge.ok{color:#9df5c0; border-color: rgba(157,245,192,.25)}
.badge.warn{color:#ffd28a; border-color: rgba(255,210,138,.25)}
.badge.bad{color:#ffb0b0; border-color: rgba(255,176,176,.25)}

label{display:block; margin:0 0 6px; color:var(--muted); font-size:13px}
input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
input:focus{border-color: rgba(255,122,24,.6); box-shadow:0 0 0 4px rgba(255,122,24,.12)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,122,24,.35);
  background: linear-gradient(135deg, rgba(255,122,24,.95), rgba(255,79,41,.9));
  color:#111;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.02)}
.btn:active{transform: translateY(1px)}
.btn.ghost{
  background: rgba(255,255,255,.03);
  color: var(--text);
  border:1px solid var(--line);
  font-weight:700;
}

.alert{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,77,77,.28);
  background: rgba(255,77,77,.10);
  color:#ffd0d0;
  margin-bottom:12px;
}

small{color:var(--muted)}

textarea {
  min-height: 180px;
  padding: 12px;
  border-radius: 10px;
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #1f2c47;
  resize: vertical;
  font-family: inherit;
}

/* FORCE support textarea size */
.card textarea,
.support textarea,
textarea[name="body"] {
  height: 180px !important;
  min-height: 180px !important;
  resize: vertical;
}
/* make textarea full width */
textarea { width: 100%; display: block; }

/* allow resizing without being clipped */
.card.support { overflow: visible; }

/* Always make textareas full width */
textarea { width: 100%; display: block; }

/* Make support/admin reply boxes big by default */
textarea[name="body"],
.support textarea {
  min-height: 220px !important;
  height: 220px !important;
  resize: vertical !important;
}

/* Prevent cards from clipping textarea resize */
.support.card,
.card.support,
.support .card {
  overflow: visible !important;
}
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.alert.error {
  color: #fff;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
