@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap");

body,
.nav.side-menu > li > a,
.nav.child_menu > li > a,
.form-control,
.btn,
h1, h2, h3, label, p {
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

body.nav-md {
  background: #163044;
}

.left_col,
.nav_title,
.sidebar-footer {
  background: #163044 !important;
}

.site_title {
  font-weight: 700 !important;
  letter-spacing: -0.03em;
}

.site_title span {
  font-size: 15px !important;
  font-weight: 700;
}

.menu_section h3 {
  letter-spacing: 0.12em;
  font-size: 11px !important;
  color: #8ea4b8 !important;
}

.nav.side-menu > li > a,
.nav.child_menu > li > a {
  font-size: 13.5px !important;
  line-height: 1.35;
}

body.nav-md .nav.side-menu > li > a {
  border-radius: 8px;
  margin-left: 8px;
  margin-right: 8px;
}

body.nav-md .container.body .col-md-3.left_col,
body.nav-md .left_col.scroll-view {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  flex: 0 0 230px !important;
}

body.nav-sm .container.body .col-md-3.left_col,
body.nav-sm .left_col.scroll-view {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  flex: 0 0 70px !important;
}

.left_col.scroll-view {
  height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.nav-sm .nav.side-menu > li > a {
  margin-left: 0 !important;
  margin-right: 0 !important;
  font-size: 10px !important;
  text-align: center !important;
  padding: 10px 2px !important;
}

body.nav-sm .site_title span {
  display: none !important;
}

@media (max-width: 991px) {
  body.nav-sm .container.body .col-md-3.left_col,
  body.nav-sm .left_col.scroll-view {
    display: block !important;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    z-index: 4000;
  }

  body.nav-sm .container.body .right_col,
  body.nav-sm .main_container .top_nav {
    margin-left: 0 !important;
  }

  body.nav-sm .navbar.nav_title {
    width: 230px !important;
  }

  body.nav-sm .site_title span {
    display: inline !important;
    font-size: 15px !important;
  }

  body.nav-sm .nav.side-menu > li > a {
    text-align: left !important;
    font-size: 13.5px !important;
    padding: 10px 12px !important;
  }

  body.nav-sm .menu_section h3,
  body.nav-sm span.fa {
    display: block !important;
  }
}

.nav.side-menu > li.active,
.nav.side-menu > li.current-page {
  border-right: 0;
}

.nav.child_menu li.current-page {
  background: rgba(26, 187, 156, 0.18);
  border-radius: 8px;
}

.nav.child_menu li.current-page > a {
  color: #fff !important;
}

body .container.body .right_col {
  background: #eef2f6;
}

.main_container .top_nav {
  background: #fff;
  box-shadow: 0 1px 0 rgba(22, 48, 68, 0.06);
}

.top_nav .nav_menu {
  background: #fff !important;
}

#remaining_money {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

#avatar-username {
  font-weight: 600 !important;
  border-radius: 999px !important;
}

.nav-tabs {
  border-bottom: 1px solid #d7e0e8;
}

.nav-tabs > li > a {
  font-weight: 600;
  color: #5d7286;
  border-radius: 8px 8px 0 0;
}

.nav-tabs > li.active > a {
  color: #163044 !important;
}

.card {
  background: #fff;
  border: 1px solid #e3ebf2;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22, 48, 68, 0.06);
}

.card .header {
  padding: 16px 18px 0;
}

.card .header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #163044;
}

.card .body {
  padding: 12px 18px 20px;
}

.card .form-control,
.main-login .form-control {
  height: 42px;
  border-radius: 8px;
  border-color: #d5dee7;
  box-shadow: none;
  font-size: 14px !important;
}

.card textarea.form-control {
  height: auto;
  min-height: 42px;
  padding-top: 10px;
}

.card .form-control:focus,
.main-login .form-control:focus {
  border-color: #1abb9c;
  box-shadow: 0 0 0 3px rgba(26, 187, 156, 0.16);
}

.card img[src*="reaction/"] {
  width: 36px !important;
  height: 36px;
  margin: 0 6px 8px 0;
  vertical-align: middle;
  border-radius: 50%;
}

.card input[type="radio"]:checked + img[src*="reaction/"] {
  width: 48px !important;
  height: 48px;
  border: 3px solid #1abb9c;
  box-shadow: 0 0 0 4px rgba(26, 187, 156, 0.18);
}

.card .form-group > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  background: #f8fbfc;
  border: 1px solid #e5eef3;
  border-radius: 10px;
}

.card .form-group > p > input[type="radio"] {
  margin: 0;
  flex: none;
}

.card .form-group > p > label:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-weight: 500;
  color: #1d3346;
  line-height: 1.4;
}

.card .label {
  border-radius: 999px;
  font-weight: 600;
  padding: 4px 8px;
}

#price {
  display: inline-block;
  font-size: 20px !important;
  border-radius: 8px;
  padding: 6px 12px;
}

#buy {
  border: 0;
  border-radius: 10px;
  min-width: 180px;
  padding: 10px 22px;
  font-weight: 700;
}

#view7info {
  padding-top: 8px !important;
}

#view7info > .alert {
  border-radius: 14px;
  border: 0;
  box-shadow: 0 10px 28px rgba(180, 140, 20, 0.12);
  line-height: 1.55;
  padding: 16px 18px 6px;
}

#view7info > .alert p {
  margin: 0 0 10px;
  font-size: 13.5px;
}

#view7info > .alert strong {
  font-weight: 600;
}

.pay-notes {
  margin-top: 8px;
  padding: 14px 16px 6px;
  background: #fff8e8;
  border: 1px solid #f0e0a8;
  border-radius: 12px;
}

.pay-notes h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #8a5a12;
}

.pay-notes ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.pay-notes li {
  margin: 0 0 8px;
  line-height: 1.5;
  color: #3d3424;
}

.pay-notes li:last-child {
  margin-bottom: 0;
}

.panel {
  border-radius: 12px;
  border-color: #e3ebf2;
  box-shadow: 0 8px 24px rgba(22, 48, 68, 0.05);
}

.panel-heading {
  border-radius: 12px 12px 0 0;
  font-weight: 700;
}

body:not(.nav-md) {
  background: #e8eef3 !important;
}

h1.title {
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em;
  color: #163044;
}

.main-login {
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(22, 48, 68, 0.12) !important;
  max-width: 400px !important;
}

.login-register {
  font-size: 14px !important;
}

.login-button,
.main-login .btn-primary {
  border: 0;
  border-radius: 10px;
  background: #1abb9c;
  font-weight: 700;
}

@media (max-width: 991px) {
  .card .form-group > p {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #view7info {
    padding: 0 !important;
    margin-top: 16px;
  }
}

body.login-page {
  min-height: 100vh;
  background-color: #07131d !important;
  background-image:
    linear-gradient(180deg, rgba(7, 19, 29, 0.18), rgba(7, 19, 29, 0.42)),
    url("/webroot/images/login-bg.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.login-page .login-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  justify-content: safe center;
  padding: 28px 16px;
  box-sizing: border-box;
}

body.login-page .login-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 16px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255, 248, 230, 0.28), rgba(22, 48, 68, 0.18));
  border: 1px solid rgba(246, 215, 138, 0.85);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.06),
    0 30px 70px rgba(4, 12, 22, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.login-page .login-gem {
  position: absolute;
  top: -7px;
  left: 50%;
  z-index: 2;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 3px;
  background: linear-gradient(135deg, #fff6d4, #f6d78a 45%, #1abb9c);
  box-shadow: 0 0 0 4px rgba(7, 19, 29, 0.35);
  transform: rotate(45deg);
}

body.login-page .login-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid #f6d78a;
  pointer-events: none;
}

body.login-page .login-corner-a {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 10px 0 0 0;
}

body.login-page .login-corner-b {
  top: 8px;
  right: 8px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 10px 0 0;
}

body.login-page .login-corner-c {
  bottom: 8px;
  left: 8px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 10px;
}

body.login-page .login-corner-d {
  right: 8px;
  bottom: 8px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 10px 0;
}

body.login-page .main-login {
  position: relative;
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 22px 26px 20px;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 42%) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 0 0 1px rgba(246, 215, 138, 0.35) !important;
  overflow: hidden;
}

body.login-page .main-login::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, #163044, #1abb9c 58%, #f6d78a);
}

body.login-page .login-rule {
  height: 1px;
  margin: 0 18px 16px;
  background: linear-gradient(90deg, transparent, #1abb9c, #f6d78a, transparent);
}

body.login-page .login-crest {
  text-align: center;
}

body.login-page .login-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(145deg, #3ad4b4, #0f8f78);
  box-shadow:
    0 12px 24px rgba(15, 143, 120, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

body.login-page h1.title {
  margin: 0;
  color: #163044;
  font-size: 32px !important;
}

body.login-page .login-tag {
  margin: 6px 0 18px;
  color: #6a7f90;
  font-size: 13px;
  letter-spacing: 0.04em;
}

body.login-page .main-login label {
  color: #244056;
  font-size: 13px;
  font-weight: 600;
}

body.login-page .input-group {
  width: 100%;
  overflow: hidden;
  border: 1px solid #d5eee8;
  border-radius: 12px;
  background: #fff;
}

body.login-page .input-group:focus-within {
  border-color: #1abb9c;
  box-shadow: 0 0 0 3px rgba(26, 187, 156, 0.16);
}

body.login-page .input-group-addon {
  color: #0f8f78;
  background: #f3fbf8;
  border: 0;
}

body.login-page .main-login .form-control {
  border: 0 !important;
  box-shadow: none !important;
}

body.login-page .login-button,
body.login-page .main-login .btn-primary {
  margin-top: 8px;
  background: linear-gradient(180deg, #2ec9aa, #0f8f78) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 20px rgba(15, 143, 120, 0.28);
  letter-spacing: 0.02em;
}

body.login-page .login-register {
  margin-top: 6px;
  color: #5d7386;
}

body.login-page .login-register a {
  color: #0f8f78;
  font-weight: 700;
}

@media (max-width: 480px) {
  body.login-page .login-frame {
    padding: 12px;
  }

  body.login-page .main-login {
    padding: 18px 16px 14px;
  }
}

#price-root .form-control {
  height: 52px;
  font-size: 28px !important;
  font-weight: 700;
  text-align: center;
}

.price-lock {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: #fff6d8;
  border: 1px solid #f0e0a0;
  border-radius: 8px;
  color: #6b5420;
}

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

.price-actions .btn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  color: #fff;
}

#raise {
  background: #1abb9c;
}

#cut {
  background: #163044;
}

#price-msg {
  margin: 12px 0 0;
  font-weight: 600;
}

#price-table .table {
  margin-bottom: 0;
}
