:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #edf1f7;
  --text: #122033;
  --muted: #748096;
  --line: #e3e8ef;
  --primary: #174a8b;
  --primary-2: #2367d1;
  --primary-soft: #eaf1fb;
  --up: #e5484d;
  --up-soft: #fff0f1;
  --down: #15946a;
  --down-soft: #eaf8f2;
  --warning: #d78b24;
  --shadow: 0 16px 44px rgba(24, 45, 76, 0.08);
  --shadow-soft: 0 8px 22px rgba(24, 45, 76, 0.065);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --number-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(35, 103, 209, 0.10), transparent 32rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

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

.positive {
  color: var(--up) !important;
}

.negative {
  color: var(--down) !important;
}

.neutral {
  color: var(--muted) !important;
}

.mono,
.amount {
  font-family: var(--number-font);
  font-variant-numeric: tabular-nums;
}

/* Login */
.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px 18px;
  overflow: hidden;
}

.login-orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  right: -12rem;
  top: -10rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(23, 74, 139, 0.22), rgba(35, 103, 209, 0.02));
  filter: blur(2px);
  pointer-events: none;
}

.login-orb.second {
  left: -14rem;
  right: auto;
  top: auto;
  bottom: -16rem;
  width: 32rem;
  height: 32rem;
  background: linear-gradient(145deg, rgba(21, 148, 106, 0.12), rgba(21, 148, 106, 0));
}

.login-card {
  position: relative;
  width: min(100%, 420px);
  padding: 34px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 80px rgba(18, 39, 70, 0.14);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #143b70, #2c75df);
  box-shadow: 0 10px 24px rgba(35, 103, 209, 0.25);
  font-weight: 800;
  letter-spacing: -1px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.brand-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.8px;
}

.login-copy {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.field label {
  color: #46536a;
  font-size: 12px;
  font-weight: 650;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--surface);
  transition: 0.18s ease;
}

.input:focus {
  border-color: rgba(35, 103, 209, 0.55);
  box-shadow: 0 0 0 4px rgba(35, 103, 209, 0.09);
}

textarea.input {
  padding-top: 12px;
  min-height: 84px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 680;
  font-size: 14px;
  transition: 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, #174a8b, #2367d1);
  box-shadow: 0 10px 22px rgba(35, 103, 209, 0.21);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-ghost {
  color: var(--primary);
  border-color: #dce6f4;
  background: #f5f8fd;
}

.btn-danger {
  color: #bd3439;
  border-color: #f5d6d8;
  background: var(--up-soft);
}

.btn-block {
  width: 100%;
  min-height: 50px;
  margin-top: 3px;
}

.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  margin: 18px 0 0;
  color: #8c97a9;
  text-align: center;
  font-size: 11px;
}

/* App frame */
.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px max(18px, env(safe-area-inset-left));
  color: #fff;
  background: rgba(13, 42, 78, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 36, 64, 0.12);
}

.topbar .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-title {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}

.topbar-subtitle {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  height: fit-content;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: #5f6c80;
  cursor: pointer;
  font-size: 13px;
  font-weight: 630;
  transition: 0.17s ease;
}

.nav-item:hover {
  background: var(--surface-soft);
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-item svg {
  width: 17px;
  height: 17px;
}

.main {
  min-width: 0;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-head h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.7px;
}

.page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card-pad {
  padding: 18px;
}

.section {
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -38px;
  top: -42px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.stat-label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.7px;
}

.stat-meta {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: 16px;
}

.chart-box {
  min-height: 245px;
  padding: 8px 6px 0;
}

.chart-box.tall {
  min-height: 355px;
}

.chart {
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 13px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #fafbfd;
  font-size: 11px;
  font-weight: 690;
  letter-spacing: 0.03em;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #fbfcfe;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mini-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #58667a;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
}

.mini-button:hover {
  color: var(--primary);
  border-color: #cfdeef;
  background: #f5f8fd;
}

.status-pill,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.status-pill.active {
  color: #14704f;
  background: #e9f8f1;
}

.status-pill.disabled {
  color: #8b6a48;
  background: #f6f1ea;
}

.pill {
  color: var(--primary);
  background: var(--primary-soft);
}

.pill.positive-pill {
  color: #b82e34;
  background: var(--up-soft);
}

.pill.negative-pill {
  color: #137452;
  background: var(--down-soft);
}

.empty {
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, #edf0f4 25%, #f7f9fb 50%, #edf0f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* User app */
.user-shell {
  min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.user-layout {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 18px 14px 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.22s ease both;
}

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

.hero-balance {
  position: relative;
  overflow: hidden;
  padding: 25px 23px 22px;
  color: #fff;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 255, 255, 0.17), transparent 13rem),
    linear-gradient(150deg, #143a6d, #1b579e 67%, #2367d1);
  box-shadow: 0 18px 42px rgba(25, 75, 139, 0.24);
}

.hero-balance::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -125px;
  bottom: -155px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hero-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.hero-amount {
  margin-top: 8px;
  font-size: clamp(31px, 9vw, 45px);
  font-weight: 760;
  letter-spacing: -1.6px;
}

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.57);
  font-size: 11px;
}

.hero-stat-value {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 690;
}

.hero-balance .positive {
  color: #ffc4c6 !important;
}

.hero-balance .negative {
  color: #9ef0ce !important;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mini-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.mini-label {
  color: var(--muted);
  font-size: 11px;
}

.mini-value {
  margin-top: 7px;
  font-size: 16px;
  font-weight: 720;
}

.mobile-section {
  margin-top: 16px;
}

.mobile-section .card {
  border-radius: var(--radius-lg);
}

.mobile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 4px;
}

.mobile-card-head h2,
.mobile-card-head h3 {
  margin: 0;
  font-size: 14px;
}

.mobile-card-head .tiny {
  color: var(--muted);
  font-size: 11px;
}

.countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #f8fafc;
}

.countdown-row strong {
  color: var(--primary);
  font-family: var(--number-font);
  font-size: 15px;
}

.weather-card {
  position: relative;
  overflow: hidden;
  padding: 19px;
  color: #fff;
  background: linear-gradient(135deg, #1f6d9d, #2958a8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.weather-card.sunny {
  background: linear-gradient(135deg, #d68a24, #e1ae35);
}

.weather-card.cloudy {
  background: linear-gradient(135deg, #577b9f, #6d8eb0);
}

.weather-card.rainy {
  background: linear-gradient(135deg, #3b6b91, #38597d);
}

.weather-card.storm {
  background: linear-gradient(135deg, #3c465c, #243148);
}

.weather-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weather-icon {
  font-size: 36px;
}

.weather-label {
  font-size: 25px;
  font-weight: 760;
}

.weather-summary {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.6;
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.weather-stat {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.weather-stat small {
  display: block;
  color: rgba(255, 255, 255, 0.57);
  font-size: 10px;
}

.weather-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.trade-list {
  display: grid;
  gap: 0;
  padding: 5px 14px 7px;
}

.trade-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid #edf0f4;
}

.trade-item:last-child {
  border-bottom: 0;
}

.trade-main {
  min-width: 0;
}

.trade-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.trade-symbol {
  font-size: 13px;
  font-weight: 720;
}

.side-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 720;
}

.side-tag.long {
  color: #b73035;
  background: var(--up-soft);
}

.side-tag.short {
  color: #11724f;
  background: var(--down-soft);
}

.trade-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.trade-result {
  flex: none;
  text-align: right;
}

.trade-pnl {
  font-family: var(--number-font);
  font-size: 14px;
  font-weight: 740;
}

.trade-time {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.symbol-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 9px;
  scrollbar-width: none;
}

.symbol-scroll::-webkit-scrollbar {
  display: none;
}

.symbol-chip {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  color: #5f6c80;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 690;
}

.symbol-chip.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.price-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 15px;
}

.current-price {
  font-family: var(--number-font);
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -1px;
}

.price-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.interval-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0 9px;
}

.interval-button {
  flex: none;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.interval-button.active {
  color: var(--primary);
  border-color: #cadcf1;
  background: var(--primary-soft);
}

.news-list {
  display: grid;
  padding: 4px 15px;
}

.news-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f4;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-bullet {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.news-title {
  font-size: 13px;
  font-weight: 680;
  line-height: 1.55;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 820px);
  min-height: 68px;
  padding: 8px 8px calc(7px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(219, 226, 236, 0.95);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 30px rgba(24, 45, 76, 0.07);
}

.bottom-item {
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 4px;
  color: #8a95a7;
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.bottom-item svg {
  width: 21px;
  height: 21px;
}

.bottom-item.active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Modal */
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 24, 44, 0.44);
  backdrop-filter: blur(5px);
}

.modal-panel {
  width: min(100%, 560px);
  max-height: min(90vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(11, 30, 57, 0.24);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 21px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
}

.modal-body {
  padding: 18px 21px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 21px 20px;
  border-top: 1px solid var(--line);
}

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

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

.range-note {
  margin: 2px 0 14px;
  padding: 11px 12px;
  color: #5e6d82;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 11px;
  line-height: 1.55;
}

/* Toast */
.toast-stack {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: calc(18px + env(safe-area-inset-top));
  display: grid;
  gap: 8px;
  width: min(calc(100% - 32px), 430px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 11px 14px;
  color: #fff;
  border-radius: 12px;
  background: #26374e;
  box-shadow: 0 12px 30px rgba(11, 30, 57, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.2s ease;
  font-size: 12px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #a93238;
}

.toast.success {
  background: #147452;
}

.loading-block {
  height: 120px;
}

/* Responsive */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sidebar {
    position: static;
    overflow-x: auto;
  }

  .side-nav {
    display: flex;
  }

  .nav-item {
    flex: none;
    min-height: 40px;
  }

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

  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-head {
    display: block;
  }

  .page-head .btn {
    margin-top: 13px;
  }

  .topbar {
    min-height: 58px;
  }

  .topbar-title {
    font-size: 14px;
  }

  .topbar-subtitle {
    display: none;
  }

  .user-layout {
    padding: 13px 11px 0;
  }

  .hero-balance {
    padding: 22px 18px 18px;
    border-radius: 23px;
  }

  .hero-bottom {
    gap: 7px;
  }

  .hero-stat-value {
    font-size: 12px;
  }

  .mini-grid {
    gap: 8px;
  }

  .mini-card {
    padding: 12px 10px;
  }

  .mini-value {
    font-size: 14px;
  }

  .chart-box {
    min-height: 220px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .field.full {
    grid-column: auto;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 91vh;
    border-radius: 23px 23px 0 0;
  }

  .stat-card {
    min-height: 104px;
    padding: 14px;
  }

  .stat-value {
    font-size: 19px;
  }
}

@media (min-width: 821px) {
  .bottom-nav {
    border-right: 1px solid rgba(219, 226, 236, 0.95);
    border-left: 1px solid rgba(219, 226, 236, 0.95);
  }
}
