@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #121d30;
  --panel-border: #26354d;
  --text: #f4f7fb;
  --muted: #a6b3c6;
  --blue: #3978f6;
  --blue-hover: #2865df;
  --green: #20b981;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(57,120,246,.18), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(32,185,129,.10), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.app { width: min(100%, 470px); }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 34px;
}
.brand-icon { width: 58px; height: 58px; }
.eyebrow { margin: 0; color: #83aaff; font-size: 13px; }
h1 { margin: -3px 0 0; font-size: 27px; letter-spacing: .3px; }

.intro { margin-bottom: 24px; }
.intro h2 { margin: 0 0 7px; font-size: 23px; }
.intro p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 14px; }

.panel {
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(18,29,48,.94);
  box-shadow: 0 22px 65px rgba(0,0,0,.28);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 27px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #e5a93b;
  box-shadow: 0 0 0 4px rgba(229,169,59,.12);
}
.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(32,185,129,.12);
}
.status-dot.error {
  background: #f06464;
  box-shadow: 0 0 0 4px rgba(240,100,100,.12);
}

.button {
  width: 100%;
  min-height: 55px;
  padding: 13px 17px;
  border: 0;
  border-radius: 14px;
  color: white;
  font: 700 15px "Cairo", Tahoma, sans-serif;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:focus-visible { outline: 3px solid #9bbcff; outline-offset: 3px; }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button-primary { background: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); }
.button-send { background: #168d69; }
.button-send:hover:not(:disabled) { background: #117958; }
.button-icon { margin-left: 7px; font-size: 17px; }

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #77869c;
  font-size: 12px;
}
.separator::before, .separator::after {
  content: ""; height: 1px; flex: 1; background: #2a3850;
}
.hint { margin: 17px 2px 0; color: #8f9eb3; font-size: 12px; line-height: 1.8; }
footer { margin-top: 25px; text-align: center; color: #65748a; font-size: 12px; }

@media (max-width: 380px) {
  .panel { padding: 17px; }
  .intro h2 { font-size: 21px; }
}
