@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600&display=swap");
a {
  color: #fff;
  outline: 0 !important;
  text-decoration: none;
}

a:hover, a:active, a:focus {
  outline: 0 !important;
  color: #fff;
  text-decoration: none;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;

  min-height: 100vh;

  font-family: 'Poppins', sans-serif;
 background: radial-gradient(circle at top, #8b0000, #2a0000);
  color: #fff;

  overflow-x: hidden;
  overflow-y: auto;

  position: relative;

  animation: fadeIn 0.3s ease;
}

/* ================= BODY ================= */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* background glow */
body::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,0,0,0.3), transparent);
  top: -100px;
  right: -100px;
}

/* ================= LAYOUT ================= */
.app {
  width: 460px;
  padding: 20px;
  z-index: 2;
}

/* ================= CARD ================= */
.card {
  background: rgba(105, 6, 6, 0.08);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: 35px 28px;

  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
 color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}




.card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,0,0,0.25), transparent);
  top: -60px;
  right: -60px;
}

/* ================= ICON ================= */
.icon {
  width: 75px;
  height: 75px;
  margin: auto;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #ff1a1a, #7a0000);
  font-size: 28px;
  margin-bottom: 18px;

  box-shadow: 0 0 20px rgba(255,0,0,0.7);
}

/* ================= TEXT ================= */
.title {
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 25px;
}

/* ================= INPUT ================= */
.input-group {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;

  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 15px;
}

.input-group i {
  color: #ff4d4d;
  margin-right: 10px;
}

.input-group input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 14px;
}

.input-group input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* ================= BUTTON ================= */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;

  background: linear-gradient(135deg, #ff1a1a, #7a0000);
  color: #fff;

  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: .3s;
  margin-top: 10px;
}

.btn:hover {
  box-shadow: 0 0 15px rgba(255,0,0,0.7);
  background: linear-gradient(135deg, #ff4d4d, #a30000);
}

/* ================= LINKS ================= */
.signup {
  margin-top: 20px;
  font-size: 13px;
}

.signup a {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: 600;
}

/* ================= ALERT ================= */
.alert {
  color: #ff4d4d;
  margin-bottom: 10px;
}

/* ================= FEATURES ================= */
.features {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feature {
  font-size: 11px;
  text-align: center;
  opacity: .85;
}

.feature i {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  color: #ff4d4d;
}

/* ================= LINKS ================= */
.login-link {
  margin-top: 18px;
  font-size: 13px;
}

.login-link a {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: 600;
}

/* ================= BUTTON LOADING ================= */
.plan-btn.btn-loading {
  position: relative;
  pointer-events: none;
}

.plan-btn.btn-loading::after {
  content: "";
  width: 16px;
  height: 16px;

  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.6s linear infinite;
}

.plan-btn.btn-loading span {
  visibility: hidden;
}

/* HIDE TEXT */
.btn-loading span {
  visibility: hidden;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.input-error {
  border: 1px solid #ff4d4d;
}

/* ================= BUTTON LOADING ================= */
.btn {
  position: relative; /* important */
}

/* LOADING STATE */
.btn.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* HIDE TEXT */
.btn.btn-loading span {
  visibility: hidden;
}

/* SPINNER */
.btn.btn-loading::after {
  content: "";
  width: 18px;
  height: 18px;

  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  animation: spin 0.6s linear infinite;
}

/* ANIMATION */
@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ================= OVERLAY ================= */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 9998;
}

/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;

  width: 260px;
  height: 100%;

  background: rgba(20,0,0,0.95);
  backdrop-filter: blur(16px);

  transition: 0.3s;
  z-index: 9999;

  display: flex;
  flex-direction: column;
}

/* ACTIVE */
.sidebar.active {
  left: 0;
}

/* ================= HEADER ================= */
.sidebar-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
  font-size: 16px;
}

.sidebar-header button {
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
}

/* ================= MENU ================= */
.sidebar-menu {
  padding: 10px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px;
  border-radius: 10px;

  color: #fff;
  text-decoration: none;
  font-size: 13px;

  transition: 0.3s;
}

.sidebar-menu a i {
  width: 18px;
}

/* HOVER */
.sidebar-menu a:hover {
  background: rgba(255,0,0,0.2);
}

/* LOGOUT */
.sidebar-menu .logout {
  margin-top: 10px;
  background: linear-gradient(135deg, #ff1a1a, #7a0000);
}

.summary-grid {
    display: flex;
    gap: 10px;
    text-align: center;
}

.summary-box {
    flex: 1;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}

.summary-box span {
    font-size: 11px;
    opacity: .7;
}

.summary-box strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.saved-user {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px;
    margin-bottom: 8px;

    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}

.saved-user span {
    cursor: pointer;
    flex: 1;
}

.saved-user button {
    border: none;
    background: #ff1a1a;
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

/* ================= DRAGONX LOGIN ================= */
.login-page {
  min-height: 100vh;
  align-items: flex-start;
  background:
    radial-gradient(circle at 50% 18%, rgba(226, 21, 21, 0.42), transparent 22%),
    radial-gradient(circle at 20% 72%, rgba(178, 12, 12, 0.42), transparent 24%),
    radial-gradient(circle at 80% 72%, rgba(178, 12, 12, 0.38), transparent 22%),
    linear-gradient(180deg, #030303 0%, #100101 48%, #030303 100%);
  overflow-y: auto;
}

.login-page::before,
.login-page::after {
  content: "";
  position: fixed;
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.login-page::before {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 16%, rgba(237, 37, 37, 0.22) 16.4%, transparent 17.1% 36%, rgba(237, 37, 37, 0.16) 36.4%, transparent 37.1%),
    linear-gradient(65deg, transparent 0 21%, rgba(237, 37, 37, 0.14) 21.4%, transparent 22.1% 62%, rgba(237, 37, 37, 0.18) 62.4%, transparent 63.2%);
  opacity: .72;
}

.login-page::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, transparent 0 42%, rgba(0, 0, 0, .72) 72%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 16px);
  mix-blend-mode: screen;
  opacity: .46;
}

.login-shell {
  width: min(100%, 510px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 18px 30px;
  position: relative;
  z-index: 1;
}

.dragon-mark {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  position: relative;
  text-align: center;
  text-shadow: 0 0 20px rgba(230, 18, 18, .78);
}

.dragon-ring {
  position: absolute;
  top: 8px;
  width: min(78vw, 355px);
  aspect-ratio: 1;
  border: 13px solid rgba(198, 198, 198, .18);
  border-right-color: rgba(227, 26, 26, .92);
  border-bottom-color: rgba(139, 8, 8, .76);
  border-radius: 50%;
  box-shadow:
    inset 0 0 34px rgba(255, 0, 0, .34),
    0 0 54px rgba(201, 9, 9, .62);
  transform: rotate(-31deg);
}

.dragon-ring::before,
.dragon-ring::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(230, 230, 230, .64), rgba(224, 19, 19, .9), transparent);
  filter: drop-shadow(0 0 12px rgba(244, 24, 24, .88));
}

.dragon-ring::before {
  width: 46%;
  height: 14px;
  right: -19px;
  top: 45px;
  transform: rotate(-19deg);
}

.dragon-ring::after {
  width: 36%;
  height: 10px;
  left: 9px;
  bottom: 38px;
  transform: rotate(24deg);
}

.dragon-x {
  position: relative;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(150px, 39vw, 242px);
  font-weight: 800;
  line-height: .76;
  letter-spacing: 0;
  color: #cfcfcf;
  background: linear-gradient(115deg, #f0f0f0 0%, #515151 38%, #ececec 50%, #191919 66%, #cf1717 100%);
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 20px rgba(232, 15, 15, .8));
}

.brand-name {
  position: relative;
  z-index: 1;
  margin-top: -4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 11vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  color: #d9d9d9;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f2f2f2 0%, #5c5c5c 56%, #f3f3f3 63%, #1b1b1b 100%);
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #070707) drop-shadow(0 0 16px rgba(211, 12, 12, .72));
}

.brand-name span {
  background: linear-gradient(180deg, #ff3131, #6d0505);
  -webkit-background-clip: text;
  color: transparent;
}

.login-card {
  position: relative;
  margin-top: 14px;
  padding: 34px 22px 28px;
  color: #e8e1df;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), transparent 32%),
    radial-gradient(circle at 50% 0%, rgba(179, 13, 13, .18), transparent 34%),
    rgba(8, 8, 8, .86);
  border: 1px solid rgba(214, 35, 35, .6);
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 0 32px rgba(0, 0, 0, .88),
    0 0 0 1px rgba(0, 0, 0, .75),
    0 26px 70px rgba(0, 0, 0, .88),
    0 0 44px rgba(220, 19, 19, .36);
  overflow: hidden;
}

.card-edge {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(180, 180, 180, .26);
  border-radius: 14px;
  pointer-events: none;
}

.card-edge::before,
.card-edge::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 2px;
  background: #e72828;
  box-shadow: 0 0 16px rgba(255, 0, 0, .86);
}

.card-edge::before {
  top: -1px;
  left: 28px;
}

.card-edge::after {
  right: 28px;
  bottom: -1px;
}

.login-page .title {
  position: relative;
  z-index: 1;
  color: #e53030;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-page .subtitle {
  position: relative;
  z-index: 1;
  margin: 8px 0 24px;
  color: rgba(232, 225, 223, .78);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
}

.login-page .alert {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  padding: 11px 14px;
  color: #ffd7d7;
  background: rgba(171, 10, 10, .22);
  border: 1px solid rgba(255, 44, 44, .4);
  border-radius: 10px;
}

.quick-login-panel {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  text-align: left;
}

.quick-login-panel label {
  display: block;
  margin-bottom: 8px;
  color: #e63434;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-login-panel select,
.login-page .input-group {
  width: 100%;
  min-height: 58px;
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(205, 205, 205, .24);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .8);
}

.quick-login-panel select {
  color: #ddd;
  padding: 0 16px;
  outline: none;
}

.login-page form {
  position: relative;
  z-index: 1;
}

.login-page .input-group {
  margin-bottom: 14px;
  padding: 0 18px;
  gap: 16px;
}

.login-page .input-group:focus-within {
  border-color: rgba(255, 43, 43, .78);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .8), 0 0 22px rgba(206, 15, 15, .32);
}

.login-page .input-group i {
  width: 18px;
  margin: 0;
  color: rgba(232, 225, 223, .72);
  font-size: 20px;
}

.login-page .input-group input {
  height: 56px;
  color: #f5f0ee;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
}

.login-page .input-group input::placeholder {
  color: rgba(232, 225, 223, .52);
}

.login-page .btn {
  min-height: 62px;
  margin-top: 12px;
  border: 1px solid rgba(255, 92, 92, .74);
  border-radius: 8px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(255, 255, 255, .18) 6.5% 7.5%, transparent 8% 92%, rgba(255, 255, 255, .18) 92.5% 93.5%, transparent 94%),
    linear-gradient(180deg, #5c0909 0%, #bd1717 48%, #4d0505 100%);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, .15),
    inset 0 0 32px rgba(0, 0, 0, .56),
    0 0 24px rgba(230, 20, 20, .62);
}

.login-page .btn:hover {
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(255, 255, 255, .2) 6.5% 7.5%, transparent 8% 92%, rgba(255, 255, 255, .2) 92.5% 93.5%, transparent 94%),
    linear-gradient(180deg, #7d0c0c 0%, #e02020 48%, #5d0606 100%);
}

.login-page .signup {
  position: relative;
  margin-top: 26px;
  color: rgba(232, 225, 223, .76);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
}

.login-page .signup::before {
  content: "";
  display: block;
  height: 1px;
  margin: 2px 0 24px;
  background: linear-gradient(90deg, transparent, rgba(220, 220, 220, .18), transparent);
}

.login-page .signup a {
  color: #ff3636;
  font-weight: 700;
}

.signup-page .signup-shell {
  padding-top: 26px;
  padding-bottom: 34px;
}

.signup-page .signup-mark {
  min-height: 245px;
}

.signup-page .signup-mark .dragon-ring {
  width: min(70vw, 270px);
  border-width: 11px;
}

.signup-page .signup-mark .dragon-x {
  font-size: clamp(118px, 31vw, 178px);
}

.signup-page .signup-mark .brand-name {
  font-size: clamp(34px, 9vw, 52px);
}

.signup-page .signup-card {
  margin-top: 8px;
}

.signup-page .auth-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 0 0 20px;
}

.signup-page .feature {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 6px;
  border: 1px solid rgba(205, 205, 205, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .42);
  color: rgba(232, 225, 223, .82);
  font-size: 11px;
  line-height: 1.25;
}

.signup-page .feature i {
  margin: 0;
  color: #ff3b3b;
  font-size: 18px;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, .7));
}

.signup-page .feature span {
  display: block;
}

.signup-page #signupError:empty {
  display: none;
}

.signup-page .trust,
.signup-page .login-link {
  position: relative;
  z-index: 1;
  font-family: Georgia, 'Times New Roman', serif;
}

.signup-page .trust {
  margin-top: 18px;
  color: rgba(232, 225, 223, .72);
  font-size: 14px;
}

.signup-page .trust i {
  margin-right: 8px;
  color: #ff3b3b;
  font-size: 13px;
}

.signup-page .login-link {
  margin-top: 20px;
  color: rgba(232, 225, 223, .76);
  font-size: 16px;
}

.signup-page .login-link::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 20px;
  background: linear-gradient(90deg, transparent, rgba(220, 220, 220, .18), transparent);
}

.signup-page .login-link a {
  color: #ff3636;
  font-weight: 700;
}

/* ================= DRAGONX HOME ================= */
.home-page {
  align-items: flex-start;
}

.home-shell {
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 16px 36px;
  position: relative;
  z-index: 1;
}

.home-hero {
  min-height: calc(100vh - 230px);
  display: grid;
  place-items: center;
  text-align: center;
}

.home-mark {
  min-height: 350px;
  width: 100%;
}

.home-mark .dragon-ring {
  animation: homeRingPulse 3.4s ease-in-out infinite;
}

.home-mark .dragon-x {
  animation: homeLogoFloat 4s ease-in-out infinite;
}

.home-copy {
  max-width: 670px;
  margin: 10px auto 0;
}

.home-copy h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #fff 0%, #787878 48%, #ff3434 100%);
  -webkit-background-clip: text;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 9vw, 86px);
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.58)) drop-shadow(0 0 20px rgba(211,12,12,.72));
}

.home-copy p {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(238,238,238,.76);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.55;
}

.home-actions {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px auto 0;
}

.home-page .home-actions .btn {
  min-height: 58px;
  margin: 0;
}

.home-page .home-actions .btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.home-page .home-secondary-btn {
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(255,255,255,.14) 6.5% 7.5%, transparent 8% 92%, rgba(255,255,255,.14) 92.5% 93.5%, transparent 94%),
    linear-gradient(180deg, #161616 0%, #2a0808 48%, #090909 100%);
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.home-market-panel {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(220,36,36,.52);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 35%),
    radial-gradient(circle at 78% 12%, rgba(201,9,9,.32), transparent 36%),
    rgba(8,8,8,.9);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(255,46,46,.45),
    0 18px 46px rgba(0,0,0,.62),
    0 0 28px rgba(194,12,12,.22);
}

.market-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: 14px 6px;
}

.market-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ff3838;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.market-copy h2 {
  margin: 14px 0 12px;
  color: #f4f0ef;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,0,0,.42);
}

.market-copy p {
  margin: 0;
  color: rgba(238,238,238,.72);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.62;
}

.market-terminal {
  min-height: 320px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(255,70,70,.52);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 30%),
    radial-gradient(circle at 74% 18%, rgba(255,0,0,.18), transparent 40%),
    rgba(0,0,0,.55);
  overflow: hidden;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.11);
  color: #f4f0ef;
  font-family: Georgia, 'Times New Roman', serif;
}

.terminal-top span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.terminal-top i {
  color: #36ff63;
  font-size: 9px;
  filter: drop-shadow(0 0 8px rgba(54,255,99,.85));
  animation: liveBlink 1.2s ease-in-out infinite;
}

.terminal-top small {
  color: rgba(238,238,238,.58);
  font-size: 12px;
}

.chart-stage {
  position: relative;
  min-height: 205px;
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
  opacity: .62;
}

.chart-candles {
  position: absolute;
  inset: 24px 24px 22px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  gap: 10px;
}

.chart-candles span {
  position: relative;
  height: var(--h);
  min-height: 44px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), #ff3030 36%, #690707);
  box-shadow: 0 0 18px rgba(255,0,0,.48);
  animation: candlePulse 2.4s ease-in-out infinite;
  animation-delay: var(--d);
}

.chart-candles span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  bottom: -14px;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.35);
}

.market-line {
  position: absolute;
  inset: 22px 18px 18px;
  width: calc(100% - 36px);
  height: calc(100% - 40px);
  overflow: visible;
}

.market-line polyline {
  fill: none;
  stroke: url(#dragonLine);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  filter: drop-shadow(0 0 12px rgba(255,0,0,.8));
  animation: drawMarketLine 3s ease-in-out infinite;
}

.market-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.08);
}

.market-status-grid div {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  background: rgba(0,0,0,.58);
  text-align: center;
}

.market-status-grid span {
  color: rgba(238,238,238,.58);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.market-status-grid b {
  margin-top: 7px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
}

.home-info-card {
  min-height: 172px;
  padding: 22px 18px;
  border: 1px solid rgba(220,36,36,.48);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 35%),
    radial-gradient(circle at 50% 0%, rgba(180,12,12,.2), transparent 36%),
    rgba(8,8,8,.88);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 0 28px rgba(0,0,0,.78),
    0 16px 42px rgba(0,0,0,.62),
    0 0 22px rgba(194,12,12,.22);
  animation: homeInfoRise .7s ease both;
}

.home-info-card:nth-child(2) {
  animation-delay: .12s;
}

.home-info-card:nth-child(3) {
  animation-delay: .24s;
}

.home-info-card i {
  color: #ff3838;
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(255,0,0,.68));
}

.home-info-card h2 {
  margin: 14px 0 9px;
  color: #f4f0ef;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  text-transform: uppercase;
}

.home-info-card p {
  margin: 0;
  color: rgba(238,238,238,.68);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.45;
}

@keyframes homeLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes homeRingPulse {
  0%, 100% { box-shadow: inset 0 0 34px rgba(255,0,0,.34), 0 0 54px rgba(201,9,9,.62); }
  50% { box-shadow: inset 0 0 44px rgba(255,0,0,.48), 0 0 78px rgba(241,24,24,.8); }
}

@keyframes homeInfoRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawMarketLine {
  0% { stroke-dashoffset: 720; opacity: .55; }
  42%, 72% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -720; opacity: .72; }
}

@keyframes candlePulse {
  0%, 100% { transform: scaleY(.82); opacity: .74; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes liveBlink {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@media (min-width: 560px) {
  .login-shell {
    padding-top: 46px;
  }

  .login-card {
    padding: 38px 34px 34px;
  }

  .signup-page .signup-card {
    padding-top: 34px;
  }
}

@media (max-width: 380px) {
  .login-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dragon-mark {
    min-height: 282px;
  }

  .login-card {
    padding: 30px 16px 24px;
  }

  .login-page .input-group input {
    font-size: 16px;
  }

  .signup-page .auth-features {
    gap: 7px;
  }

  .signup-page .feature {
    min-height: 68px;
    font-size: 10px;
  }

  .home-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-mark {
    min-height: 292px;
  }

  .home-actions,
  .home-info-grid,
  .home-market-panel,
  .market-status-grid {
    grid-template-columns: 1fr;
  }

  .home-info-card {
    min-height: 142px;
  }

  .home-market-panel {
    padding: 16px;
  }

  .market-copy {
    min-height: auto;
    padding: 8px 2px 4px;
    text-align: center;
  }

  .market-kicker {
    justify-content: center;
  }

  .market-terminal {
    min-height: 300px;
  }
}
