:root {
  --orange: #e8450a;
  --orange-2: #ff6a2f;
  --black: #080808;
  --panel: #151515;
  --panel-2: #1e1e1e;
  --line: #2c2c2c;
  --muted: #929292;
  --text: #f6f2ee;
  --green: #1f9d57;
  --blue: #8fb3e6;
  --red: #d23b3b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(232, 69, 10, .18), transparent 34rem),
    linear-gradient(180deg, #0b0b0b 0%, var(--black) 42%);
  color: var(--text);
  font-family: "Cairo", sans-serif;
  padding: 22px;
}

button,
input,
select {
  font: inherit;
}

.shell {
  max-width: 1480px;
  margin: 0 auto;
}

.app-shell {
  width: 100%;
  max-width: none;
}

.signin-screen {
  min-height: calc(100vh - 44px);
  display: grid;
  place-items: center;
}

.signin-panel {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(21, 21, 21, .96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  padding: 28px;
}

.signin-brand {
  margin-bottom: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.brand {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand span {
  color: var(--orange);
}

h1 {
  margin: 4px 0 0;
  color: #cacaca;
  font-size: 18px;
  font-weight: 700;
}

.top-actions,
.pager-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-title {
  margin: 6px 2px 12px;
  border-right: 3px solid var(--orange);
  padding-right: 10px;
  color: #d4d4d4;
  font-size: 15px;
  font-weight: 800;
}

.signin-form,
.toolbar,
.table-card,
.detail-card,
.notice {
  background: rgba(21, 21, 21, .94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.signin-form {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.signin-form p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input,
select {
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: #fff;
  padding: 10px 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 69, 10, .15);
}

.signin-form input,
.toolbar input[type="search"] {
  flex: 1;
  min-width: 210px;
}

.btn,
.pg {
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}

.btn:hover,
.pg:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-2);
}

.btn-green {
  background: var(--green);
}

.btn-ghost,
.pg {
  border: 1px solid var(--line);
  background: transparent;
  color: #d6d6d6;
}

.btn-ghost:hover,
.pg:hover {
  border-color: #595959;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(26, 26, 26, .98), rgba(18, 18, 18, .98));
  padding: 18px 20px;
}

.stat .number {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.stat .label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.toolbar {
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
}

.table-card {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1500px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  white-space: nowrap;
  text-align: right;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-2);
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 800;
}

td {
  color: #e8e8e8;
  font-size: 13.5px;
}

tbody tr:hover {
  background: #191919;
}

a {
  color: var(--orange-2);
  text-decoration: none;
  font-weight: 800;
}

a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.wa {
  color: #37d075;
}

.mail {
  color: var(--blue);
}

.badge {
  display: inline-block;
  min-width: 46px;
  border-radius: 8px;
  padding: 5px 10px;
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.score-text {
  text-align: center;
  font-weight: 800;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
}

.pager-info,
.legend {
  color: var(--muted);
  font-size: 13px;
}

.pg:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
}

.detail-view {
  max-width: 960px;
  margin: 0 auto;
}

.detail-card {
  margin-bottom: 18px;
  padding: 20px 24px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.detail-head h2 {
  margin: 0;
  font-size: 24px;
}

.detail-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.score-chip {
  text-align: center;
}

.score-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.item-key {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.item-value {
  font-size: 15px;
  font-weight: 700;
}

.bar-row {
  margin-bottom: 14px;
}

.bar-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 14px;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 6px;
  background: #262626;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
}

.qa {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.qa:last-child {
  border-bottom: 0;
}

.question {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.answer {
  font-size: 15.5px;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  color: #ffd6c7;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.legend b {
  color: #cfcfcf;
}

@media (max-width: 760px) {
  body {
    padding: 14px;
  }

  .signin-screen {
    min-height: calc(100vh - 28px);
    place-items: start stretch;
  }

  .signin-panel {
    padding: 20px;
  }

  .stat .number {
    font-size: 24px;
  }

  .topbar,
  .pager,
  .detail-head {
    align-items: stretch;
  }
}
