:root {
  --bg: #070e20;
  --bg-2: #111b35;
  --panel: rgba(23, 39, 78, 0.75);
  --line: rgba(138, 186, 255, 0.28);
  --text: #eef5ff;
  --muted: #9fb5d8;
  --primary: #42ceff;
  --primary-2: #4f67ff;
  --warn: #ffcc67;
  --danger: #ff7f87;
  --ok: #67e6a5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 700px at 100% -10%, rgba(76, 127, 255, 0.24), transparent 56%),
    radial-gradient(850px 600px at -20% 100%, rgba(0, 194, 255, 0.24), transparent 56%),
    linear-gradient(180deg, var(--bg), #0b1329 40%, #090f22);
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 10px;
}

.container {
  width: min(1280px, calc(100% - 30px));
  margin: 0 auto;
}

.card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(6, 12, 30, 0.45);
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #eef6ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: rgba(188, 224, 255, 0.6);
  color: #08162d;
}

.btn-outline {
  border-color: rgba(173, 207, 255, 0.5);
  background: rgba(18, 33, 67, 0.4);
}

.btn-mini {
  padding: 7px 9px;
  font-size: 12px;
}

.flash-wrap {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 100;
  display: grid;
  gap: 8px;
}

.flash {
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  color: #051123;
}

.flash-success {
  background: var(--ok);
}

.flash-error {
  background: var(--danger);
}

.install-btn {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 100;
  background: linear-gradient(135deg, #7de5ff, #79a2ff);
  color: #04122b;
  border: 1px solid rgba(223, 241, 255, 0.8);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.hero {
  padding: 40px 15px 20px;
}

.hero-inner {
  width: min(850px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 24px;
}

.hero-inner h1 {
  font-size: clamp(36px, 8vw, 64px);
  margin-bottom: 6px;
}

.hero-inner p {
  margin-top: 0;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.track-card,
.info-card,
.order-head,
.timeline-card,
.panel {
  padding: 18px;
  margin: 14px auto;
}

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

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.quick-nav a {
  text-decoration: none;
  color: #eaf5ff;
  background: rgba(17, 40, 87, 0.7);
  border: 1px solid rgba(156, 201, 255, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.quick-nav a:hover {
  background: rgba(25, 58, 121, 0.9);
}

.subpanel {
  border: 1px solid rgba(157, 199, 255, 0.2);
  border-radius: 14px;
  padding: 14px;
  background: rgba(10, 22, 48, 0.45);
}

.quick-add-row {
  margin-top: 12px;
  margin-bottom: 12px;
}

.report-grid .mini strong {
  font-size: 22px;
}

.list-lite {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.suggest-box {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.suggest-item {
  border: 1px solid rgba(148, 196, 255, 0.4);
  background: rgba(11, 29, 62, 0.76);
  color: #e9f3ff;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.suggest-item:hover {
  background: rgba(24, 53, 103, 0.92);
}

.grid-form {
  display: grid;
  gap: 10px;
}

.grid-form.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-form.inline {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.grid-form label {
  display: grid;
  gap: 7px;
}

.grid-form label span {
  font-size: 13px;
  color: var(--muted);
}

.grid-form .full {
  grid-column: 1 / -1;
}

input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(171, 206, 255, 0.4);
  background: rgba(11, 22, 49, 0.7);
  color: var(--text);
  padding: 10px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(94, 176, 255, 0.45);
}

ol {
  margin: 0;
  padding-left: 20px;
}

.status-line strong {
  color: var(--ok);
}

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

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.timeline li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  background: linear-gradient(135deg, #8dedff, #7388ff);
}

.timeline-title {
  margin: 0 0 4px;
  font-weight: 800;
}

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

.admin-login-root {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 22px;
}

.auth-card p {
  color: var(--muted);
}

.link-light {
  color: #c9e3ff;
  text-decoration: none;
  font-size: 13px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  background: rgba(10, 16, 33, 0.72);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-header h1 {
  margin-bottom: 2px;
}

.admin-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-root {
  padding: 14px 0 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat {
  padding: 14px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.table-wrap {
  overflow: auto;
}

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

th, td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
}

.inline-form {
  display: flex;
  gap: 6px;
}

.inline-form input {
  min-width: 110px;
}

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

.small-error {
  color: var(--danger);
  font-size: 11px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: auto;
}

@media (max-width: 1024px) {
  .stats-grid, .grid-2, .grid-form.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .stats-grid, .grid-2, .grid-form.two, .grid-form.inline {
    grid-template-columns: 1fr;
  }
  .admin-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Admin v2 */
.admin-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
  background:
    radial-gradient(900px 600px at -20% -10%, rgba(0, 173, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 120% 100%, rgba(46, 97, 255, 0.18), transparent 60%),
    #0a1019;
}

.admin-v2-sidebar {
  border-right: 1px solid rgba(150, 180, 230, 0.16);
  background: rgba(9, 15, 27, 0.94);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-v2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-v2-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #09172d;
  background: linear-gradient(135deg, #4dd7ff, #2f67ff);
}

.admin-v2-brand h2 {
  margin: 0;
  font-size: 19px;
}

.admin-v2-brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9eb2d2;
}

.admin-v2-nav {
  display: grid;
  gap: 6px;
}

.admin-v2-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #d8e8ff;
  font-weight: 700;
}

.admin-v2-nav a:hover {
  background: rgba(33, 58, 104, 0.45);
  border-color: rgba(151, 198, 255, 0.2);
}

.admin-v2-nav a.active {
  background: linear-gradient(120deg, rgba(70, 202, 255, 0.24), rgba(62, 102, 255, 0.22));
  border-color: rgba(133, 193, 255, 0.45);
}

.admin-v2-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.admin-v2-main {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.admin-v2-top h1 {
  margin: 0;
  font-size: 34px;
}

.admin-v2-top p {
  margin: 6px 0 0;
  color: #98afcf;
}

.admin-v2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-v2-content {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.v2-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.v2-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v2-kpi > div {
  border: 1px solid rgba(142, 182, 239, 0.18);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 16, 32, 0.65);
}

.v2-kpi span {
  display: block;
  font-size: 12px;
  color: #9cb1d0;
}

.v2-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

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

@media (max-width: 1200px) {
  .admin-v2 {
    grid-template-columns: 84px 1fr;
  }
  .admin-v2-brand h2,
  .admin-v2-brand p,
  .admin-v2-nav a span:last-child,
  .admin-v2-sidebar-foot .btn {
    display: none;
  }
  .admin-v2-sidebar {
    padding: 14px 10px;
  }
  .admin-v2-logo {
    margin: 0 auto;
  }
  .admin-v2-nav a {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .admin-v2 {
    grid-template-columns: 1fr;
  }
  .admin-v2-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(150, 180, 230, 0.16);
  }
  .admin-v2-brand h2,
  .admin-v2-brand p,
  .admin-v2-nav a span:last-child,
  .admin-v2-sidebar-foot .btn {
    display: block;
  }
  .admin-v2-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-v2-stats,
  .v2-grid-2,
  .v2-kpi {
    grid-template-columns: 1fr;
  }
}

/* HelloClient-like admin theme */
body[data-app-kind="admin"] {
  font-family: "Rubik", "Manrope", sans-serif;
  background: #14161c;
  color: #f4f6fb;
}

body[data-app-kind="admin"] .card {
  border-radius: 14px;
  border: 1px solid #2a3040;
  background: #1a1f2a;
  backdrop-filter: none;
  box-shadow: none;
}

body[data-app-kind="admin"] .admin-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #171a21;
}

body[data-app-kind="admin"] .admin-v2-sidebar {
  border-right: 1px solid #282d3a;
  background: #14171d;
  gap: 16px;
  padding: 16px 12px;
}

body[data-app-kind="admin"] .hc-brand {
  border-bottom: 1px solid #252a35;
  padding: 0 6px 12px;
}

body[data-app-kind="admin"] .admin-v2-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 14px;
  color: #f9fbff;
  background: #345eff;
}

body[data-app-kind="admin"] .admin-v2-brand h2 {
  font-size: 24px;
  letter-spacing: 0.3px;
}

body[data-app-kind="admin"] .admin-v2-brand p {
  color: #9ca4b8;
}

body[data-app-kind="admin"] .admin-v2-nav a {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 11px 10px;
  color: #e7ebf8;
  font-size: 15px;
  font-weight: 500;
}

body[data-app-kind="admin"] .admin-v2-nav a:hover {
  background: #1d2230;
  border-color: #2d3547;
}

body[data-app-kind="admin"] .admin-v2-nav a.active {
  background: #252c3f;
  border-color: #364159;
}

body[data-app-kind="admin"] .admin-v2-sidebar-foot {
  gap: 6px;
}

body[data-app-kind="admin"] .admin-v2-sidebar-foot .btn.soft {
  border-color: #333c53;
  background: #1c2230;
  color: #d6def0;
}

body[data-app-kind="admin"] .admin-v2-main {
  padding: 0;
  gap: 0;
}

body[data-app-kind="admin"] .admin-banners {
  position: sticky;
  top: 0;
  z-index: 25;
}

body[data-app-kind="admin"] .admin-banner {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
}

body[data-app-kind="admin"] .admin-banner.warning {
  background: #ff8a00;
  color: #241500;
}

body[data-app-kind="admin"] .admin-banner.info {
  background: #0893d6;
  color: #ebf9ff;
}

body[data-app-kind="admin"] .hc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #272d39;
  background: #171b24;
}

body[data-app-kind="admin"] .hc-title-wrap h1 {
  font-size: 30px;
  margin-bottom: 2px;
}

body[data-app-kind="admin"] .hc-title-wrap p {
  margin: 0;
  color: #9ca5b9;
}

body[data-app-kind="admin"] .hc-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-app-kind="admin"] .hc-search {
  min-width: 300px;
}

body[data-app-kind="admin"] .hc-search input {
  border-radius: 10px;
  border: 1px solid #394156;
  background: #1f2532;
  color: #eff3ff;
  padding: 10px 12px;
}

body[data-app-kind="admin"] .admin-v2-stats.hc-stats {
  padding: 16px 24px 0;
  gap: 10px;
}

body[data-app-kind="admin"] .admin-v2-stats .stat {
  background: #1a1f2a;
  border-color: #2b3140;
  padding: 14px;
}

body[data-app-kind="admin"] .admin-v2-stats .stat span {
  color: #9ca5b9;
}

body[data-app-kind="admin"] .admin-v2-stats .stat strong {
  font-size: 36px;
  line-height: 1;
  color: #f4f7ff;
}

body[data-app-kind="admin"] .admin-v2-content.hc-content {
  margin: 14px 24px 24px;
  padding: 12px;
  border-radius: 14px;
  background: #171b24;
  border-color: #2a303d;
}

body[data-app-kind="admin"] .v2-grid-2.tight {
  gap: 10px;
}

body[data-app-kind="admin"] .subpanel.hc-panel {
  border: 1px solid #2c3241;
  border-radius: 12px;
  background: #1a1f2a;
  padding: 14px;
}

body[data-app-kind="admin"] .subpanel.hc-panel h2,
body[data-app-kind="admin"] .subpanel.hc-panel h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-family: "Rubik", sans-serif;
}

body[data-app-kind="admin"] .subpanel.hc-panel h3 {
  font-size: 22px;
}

body[data-app-kind="admin"] .status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-app-kind="admin"] .status-tabs a {
  text-decoration: none;
  color: #cfd7ea;
  border: 1px solid #31384a;
  background: #1f2532;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 11px;
}

body[data-app-kind="admin"] .status-tabs a span {
  opacity: 0.8;
  margin-left: 4px;
}

body[data-app-kind="admin"] .status-tabs a.active {
  color: #ffffff;
  background: #3152d6;
  border-color: #4b6ef8;
}

body[data-app-kind="admin"] input,
body[data-app-kind="admin"] select,
body[data-app-kind="admin"] textarea {
  border-radius: 10px;
  border: 1px solid #394056;
  background: #1d2432;
  color: #eef3ff;
}

body[data-app-kind="admin"] input:focus,
body[data-app-kind="admin"] select:focus,
body[data-app-kind="admin"] textarea:focus {
  outline: 2px solid #4c74ff55;
}

body[data-app-kind="admin"] .grid-form label span {
  color: #9ca5b9;
}

body[data-app-kind="admin"] .btn {
  border-radius: 10px;
  font-weight: 600;
}

body[data-app-kind="admin"] .btn-primary {
  background: #4b6df2;
  color: #f7f9ff;
  border-color: #6482f4;
}

body[data-app-kind="admin"] .btn-outline.soft {
  border-color: #384157;
  background: #1f2634;
  color: #d9e2f6;
}

body[data-app-kind="admin"] .hc-table {
  min-width: 980px;
}

body[data-app-kind="admin"] .hc-table th,
body[data-app-kind="admin"] .hc-table td {
  border-bottom: 1px solid #2a303d;
  padding: 10px 8px;
  font-size: 14px;
}

body[data-app-kind="admin"] .hc-table th {
  color: #b9c2d8;
  font-weight: 600;
}

body[data-app-kind="admin"] .table-link {
  color: #75a0ff;
  text-decoration: none;
}

body[data-app-kind="admin"] .table-link:hover {
  text-decoration: underline;
}

body[data-app-kind="admin"] .status-pill {
  display: inline-block;
  background: #275e97;
  border: 1px solid #2f73b8;
  color: #e9f5ff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}

body[data-app-kind="admin"] .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-app-kind="admin"] .detail-grid > div {
  display: grid;
  gap: 6px;
  border: 1px solid #2f3544;
  border-radius: 10px;
  padding: 10px;
  background: #1f2431;
}

body[data-app-kind="admin"] .detail-grid > div.full {
  grid-column: 1 / -1;
}

body[data-app-kind="admin"] .detail-grid span {
  color: #9ea8bf;
  font-size: 12px;
}

body[data-app-kind="admin"] .detail-grid strong {
  font-size: 15px;
  font-weight: 500;
}

body[data-app-kind="admin"] .detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body[data-app-kind="admin"] .timeline-title {
  font-size: 15px;
}

body[data-app-kind="admin"] .timeline-dot {
  background: #4b6df2;
}

@media (max-width: 1200px) {
  body[data-app-kind="admin"] .admin-v2 {
    grid-template-columns: 86px 1fr;
  }
  body[data-app-kind="admin"] .admin-v2-brand h2,
  body[data-app-kind="admin"] .admin-v2-brand p,
  body[data-app-kind="admin"] .admin-v2-nav a span:last-child,
  body[data-app-kind="admin"] .admin-v2-sidebar-foot .btn {
    display: none;
  }
  body[data-app-kind="admin"] .admin-v2-nav a {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  body[data-app-kind="admin"] .admin-v2 {
    grid-template-columns: 1fr;
  }
  body[data-app-kind="admin"] .admin-v2-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #282d3a;
  }
  body[data-app-kind="admin"] .admin-v2-brand h2,
  body[data-app-kind="admin"] .admin-v2-brand p,
  body[data-app-kind="admin"] .admin-v2-nav a span:last-child,
  body[data-app-kind="admin"] .admin-v2-sidebar-foot .btn {
    display: block;
  }
  body[data-app-kind="admin"] .admin-v2-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-app-kind="admin"] .hc-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  body[data-app-kind="admin"] .hc-search {
    min-width: 0;
    width: 100%;
  }
  body[data-app-kind="admin"] .admin-v2-stats.hc-stats,
  body[data-app-kind="admin"] .admin-v2-content.hc-content {
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
  body[data-app-kind="admin"] .admin-v2-stats.hc-stats {
    padding-top: 12px;
  }
  body[data-app-kind="admin"] .detail-grid {
    grid-template-columns: 1fr;
  }
}
