:root {
  --ink: #172033;
  --muted: #7d89a5;
  --line: #d8e1ef;
  --soft-line: #edf2f8;
  --rail: #10192c;
  --blue: #2268e8;
  --purple: #7242c7;
  --green: #24c75a;
  --page: #f6f8fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: 112px;
  background: var(--rail);
  color: #fff;
}

.brand {
  display: grid;
  place-items: center;
  height: 86px;
}

.brand svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linejoin: round;
}

.rail-nav {
  display: grid;
  gap: 5px;
}

.rail-link {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 63px;
  padding: 8px 8px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

.rail-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #58a7ff;
}

.grid-icon,
.people-icon,
.support-icon,
.card-icon {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
}

.grid-icon {
  background:
    radial-gradient(circle at 6px 6px, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 21px 6px, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 6px 21px, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 21px 21px, #fff 0 5px, transparent 6px);
}

.people-icon::before,
.people-icon::after {
  content: "";
  position: absolute;
  background: #fff;
}

.people-icon::before {
  width: 22px;
  height: 12px;
  border-radius: 10px 10px 2px 2px;
  left: 3px;
  bottom: 1px;
}

.people-icon::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: 5px;
  top: 2px;
  box-shadow: 10px 3px 0 #fff;
}

.support-icon::before {
  content: "";
  position: absolute;
  inset: 6px 3px 4px;
  border: 6px solid #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.support-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 13px;
  right: 0;
  top: 10px;
  background: #fff;
  border-radius: 3px;
  box-shadow: -21px 0 0 #fff;
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  border: 3px solid #fff;
  border-radius: 2px;
}

.card-icon::before {
  inset: 7px 1px 1px 5px;
}

.card-icon::after {
  inset: 2px 5px 6px 1px;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 112px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 69px;
  padding: 0 24px;
  background: #fff;
  border-top: 5px solid #303949;
  border-bottom: 1px solid var(--line);
}

.news {
  margin: 0;
  color: #1b2a45;
  font-size: 12px;
}

.news strong {
  margin-right: 10px;
  color: #074fff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #79849a;
  text-decoration: none;
}

.store-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #9aa4b8;
  border-bottom-width: 4px;
}

.chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid #7e8799;
  border-bottom: 2px solid #7e8799;
  transform: rotate(45deg);
}

.primary,
.deploy {
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
}

.primary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 17px;
  background: #2466e9;
  font-size: 16px;
  text-decoration: none;
}

.side-menu {
  position: fixed;
  top: 69px;
  bottom: 0;
  left: 112px;
  width: 215px;
  padding: 14px 11px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.side-menu section + section {
  margin-top: 22px;
}

.side-menu h2 {
  margin: 0 12px 8px;
  color: #9aa5be;
  font-size: 12px;
  font-weight: 500;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 43px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #001533;
  text-decoration: none;
  font-size: 16px;
}

.side-link.selected {
  border-color: #70adff;
  background: #eef6ff;
  color: #0a55e8;
}

.server-mini,
.cart-mini {
  width: 21px;
  height: 21px;
  border: 1px solid #5ba8ff;
  border-radius: 4px;
  background:
    radial-gradient(circle at 6px 7px, #b78cff 0 3px, transparent 4px),
    radial-gradient(circle at 14px 7px, #b78cff 0 3px, transparent 4px),
    radial-gradient(circle at 6px 15px, #b78cff 0 3px, transparent 4px),
    radial-gradient(circle at 14px 15px, #b78cff 0 3px, transparent 4px);
}

.cart-mini {
  background: none;
  position: relative;
}

.cart-mini::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 13px;
  left: 5px;
  top: 4px;
  border: 1px solid #189cff;
  border-top: 0;
}

.workspace {
  min-height: 100vh;
  padding: 85px 16px 16px 343px;
}

.panel {
  position: relative;
  min-height: calc(100vh - 101px);
  overflow: hidden;
  border: 1px solid #c9d6e6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 9px rgb(32 50 79 / 13%);
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 69px;
  padding: 0 16px;
  border-bottom: 1px solid var(--soft-line);
}

.title-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.server-stack {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(#7b43cf 0 0) 0 2px / 18px 5px no-repeat,
    linear-gradient(#7b43cf 0 0) 0 11px / 18px 5px no-repeat;
  border-radius: 2px;
}

.title-group h1 {
  margin: 0 4px 0 0;
  font-size: 18px;
  line-height: 1;
}

.title-group small {
  color: #69758a;
  font-weight: 400;
}

.deploy {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  background: var(--purple);
  text-decoration: none;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 256px;
  height: 39px;
  padding: 0 12px;
  border: 1px solid #c7d1df;
  border-radius: 7px;
}

.search span {
  width: 14px;
  height: 14px;
  border: 2px solid #8b9ab3;
  border-radius: 50%;
}

.search span::after {
  content: "";
  display: block;
  width: 8px;
  height: 2px;
  margin: 10px 0 0 10px;
  background: #8b9ab3;
  transform: rotate(45deg);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #394760;
}

.search input::placeholder {
  color: #91a0b7;
}

.table {
  min-width: 1130px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 2.2fr 1.7fr 1.1fr 1fr .8fr 1.2fr 1.25fr .75fr;
  align-items: center;
  text-align: center;
}

.table-head {
  height: 44px;
  background: #f7f7f8;
  color: #2c3b54;
  font-weight: 500;
}

.table-row {
  min-height: 92px;
  color: #0e1c31;
}

.server-cell,
.time-cell {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.server-cell strong {
  font-weight: 700;
}

.server-cell span,
.time-cell > span {
  color: #263c5c;
}

.time-cell > div {
  display: flex;
  align-items: center;
  gap: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 67px;
  height: 28px;
  padding: 0 14px;
  border-radius: 18px;
  background: #b7f4ce;
  color: #087f39;
  font-weight: 700;
}

.time-cell button,
.time-cell a {
  border: 0;
  background: transparent;
  color: #2878ff;
  font-weight: 700;
  text-decoration: none;
}

.time-cell button::before,
.time-cell a::before {
  content: "↻";
  margin-right: 1px;
}

.price {
  color: #000;
}

.ubuntu {
  position: relative;
  display: inline-block;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #f47c22;
}

.ubuntu::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.ubuntu::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  top: 7px;
  left: 16px;
  box-shadow: -9px 15px 0 #fff, 9px 15px 0 #fff;
}

.flag-vn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 39px;
  border-radius: 4px;
  background: #f51f2b;
  color: #fff200;
  font-size: 24px;
  line-height: 1;
}

.switch {
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #dfe4ea;
}

.switch::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
}

.switch.is-on {
  background: #96e7b5;
}

.switch.is-on::before {
  margin-left: 23px;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--green);
  font-weight: 700;
}

.status span {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--green);
}

.more {
  border: 0;
  background: transparent;
  color: #1d2a3d;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.quick-contact {
  position: fixed;
  right: 23px;
  bottom: 22px;
  z-index: 4;
  display: grid;
  gap: 25px;
}

.quick-contact a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #7040d1;
  color: #fff;
  box-shadow: 0 5px 14px rgb(42 36 74 / 20%);
  font-weight: 800;
  text-decoration: none;
}

.quick-contact a:first-child {
  font-size: 10px;
}

.content-pad {
  padding: 24px;
}

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

.service-card,
.checkout-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.service-card h2,
.checkout-card h2,
.summary-card h2 {
  margin: 0;
  font-size: 18px;
}

.service-meta {
  display: grid;
  gap: 8px;
  color: #41516a;
}

.service-price {
  color: #0e1c31;
  font-size: 24px;
  font-weight: 800;
}

.button-blue,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button-blue {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.button-outline {
  border: 1px solid #cbd6e6;
  background: #fff;
  color: #263c5c;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 360px;
  gap: 18px;
  padding: 24px;
}

.checkout-card,
.summary-card {
  padding: 20px;
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  cursor: pointer;
}

.payment-method input {
  width: 17px;
  height: 17px;
}

.payment-box {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  background: #f8fbff;
}

.qr {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 8px solid #fff;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px) 0 0 / 40px 40px,
    linear-gradient(#111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px) 0 0 / 40px 40px,
    #eef4ff;
  box-shadow: inset 0 0 0 1px #d4deeb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.bank-lines {
  display: grid;
  gap: 8px;
}

.bank-lines p,
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: #43536d;
}

.bank-lines strong,
.summary-line strong {
  color: #111d30;
}

.checkout-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: #526178;
  font-weight: 700;
}

.checkout-form input {
  height: 40px;
  padding: 0 11px;
  border: 1px solid #cbd6e6;
  border-radius: 6px;
  outline: 0;
}

.summary-card {
  align-self: start;
  display: grid;
  gap: 14px;
}

.summary-total {
  padding-top: 12px;
  border-top: 1px solid #e4eaf3;
  color: #0b1c34;
  font-size: 22px;
  font-weight: 800;
}

.success-note {
  display: none;
  padding: 12px;
  border: 1px solid #b7f0cb;
  border-radius: 7px;
  background: #effdf4;
  color: #087f39;
  font-weight: 700;
}

.success-note.show {
  display: block;
}

@media (max-width: 1100px) {
  .rail {
    width: 82px;
  }

  .topbar {
    left: 82px;
  }

  .side-menu {
    left: 82px;
    width: 200px;
  }

  .workspace {
    padding-left: 298px;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .rail {
    position: static;
    width: 100%;
    height: auto;
  }

  .brand {
    height: 62px;
  }

  .rail-nav {
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 8px;
  }

  .topbar,
  .side-menu {
    position: static;
    width: auto;
  }

  .topbar {
    height: auto;
    min-height: 68px;
    gap: 12px;
    padding: 12px 14px;
  }

  .side-menu {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px;
  }

  .side-menu section {
    min-width: 190px;
  }

  .side-menu section + section {
    margin-top: 0;
  }

  .workspace {
    padding: 12px;
    overflow-x: auto;
  }

  .panel {
    min-height: 560px;
  }

  .panel-toolbar {
    height: auto;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
  }

  .title-group {
    flex-wrap: wrap;
  }

  .search {
    width: 230px;
  }

  .page-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .payment-box {
    grid-template-columns: 1fr;
  }

}
