:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --text: #142033;
  --muted: #5c6b82;
  --brand: #0f5cc0;
  --brand-dark: #0a3f86;
  --success: #15803d;
  --danger: #b42318;
  --border: #d9e2f0;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 90% -10%, rgba(15, 92, 192, 0.12), transparent 55%),
    radial-gradient(900px 420px at 0% 0%, rgba(21, 128, 61, 0.08), transparent 50%),
    var(--bg);
}

.app-main {
  padding: 1.25rem 0 1.75rem;
}

.container,
.container-fluid {
  padding-left: max(0.9rem, var(--bs-gutter-x, 0.75rem));
  padding-right: max(0.9rem, var(--bs-gutter-x, 0.75rem));
}

.page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-subtitle {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.app-section {
  padding: 1rem;
}

.app-kpi-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-kpi {
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #fff, #f6faff);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.app-kpi-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-kpi-value {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.app-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
}

.app-table-wrap .table {
  margin-bottom: 0;
}

.app-table-wrap.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.table thead.table-dark th {
  background-color: #1d2939 !important;
  border-color: #344054 !important;
  font-weight: 600;
  font-size: 0.86rem;
}

.table tbody td {
  vertical-align: middle;
}

.badge-soft {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-alt);
  color: var(--brand-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.badge-soft-label {
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-soft-value {
  font-size: 0.78rem;
  color: var(--brand-dark);
}

.navbar.app-nav {
  background: linear-gradient(90deg, #0b223f, #0f2f57);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.app-nav .nav-link {
  color: #d8e7ff !important;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus {
  color: #ffffff !important;
}

.app-nav .dropdown-menu {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.app-nav .navbar-brand {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.app-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.app-nav .navbar-collapse {
  margin-top: 0.5rem;
}

.app-nav .nav-item {
  display: flex;
  align-items: center;
}

.app-nav-right .nav-link {
  font-weight: 600;
}

.app-nav-right {
  gap: 0.35rem;
  align-items: stretch;
}

.app-nav-right .nav-link {
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.chart-panel {
  width: 100%;
  min-height: 520px;
  padding: 1rem;
}

.chart-panel canvas {
  background: #fff;
  border-radius: 10px;
}

.crypto-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(20, 241, 149, 0.14), transparent 58%),
    radial-gradient(460px 240px at 0% 100%, rgba(108, 43, 217, 0.16), transparent 58%),
    linear-gradient(135deg, #0d1f3a, #122a4c 52%, #17355f);
  color: #eff6ff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(9, 18, 33, 0.2);
}

.crypto-hero-copy {
  max-width: 56rem;
}

.crypto-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: rgba(214, 231, 255, 0.86);
}

.crypto-hero-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.crypto-hero-text {
  margin: 0.45rem 0 0.55rem;
  color: rgba(226, 236, 252, 0.9);
  max-width: 60ch;
}

.crypto-sync-status {
  color: rgba(214, 231, 255, 0.84);
}

.crypto-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.65rem;
}

.crypto-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.crypto-kpi-card {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
  border: 1px solid rgba(206, 219, 240, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.06);
}

.crypto-kpi-card--total {
  background:
    linear-gradient(135deg, rgba(247, 147, 26, 0.12), rgba(255, 255, 255, 0.98) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}

.crypto-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.crypto-kpi-value {
  font-size: 1.28rem;
  font-weight: 800;
  color: #12294c;
}

.crypto-kpi-meta {
  color: #617089;
  font-size: 0.86rem;
  line-height: 1.4;
}

.crypto-card-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.crypto-card-strip--odd .crypto-position-card:last-child {
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.crypto-position-card {
  border-radius: 18px;
  border: 1px solid rgba(205, 220, 247, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.crypto-position-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(217, 226, 240, 0.9);
}

.crypto-position-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px rgba(16, 24, 40, 0.16);
}

.crypto-position-copy {
  min-width: 0;
}

.crypto-position-name {
  font-size: 1rem;
  font-weight: 800;
  color: #12294c;
}

.crypto-position-local {
  margin-top: 0.12rem;
  color: #60708b;
  font-size: 0.85rem;
}

.crypto-position-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.95rem 1rem 1rem;
}

.crypto-position-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0 1rem 1rem;
}

.crypto-position-actions .btn {
  flex: 1;
  border-radius: 12px;
  font-weight: 700;
}

.crypto-position-metric {
  display: grid;
  gap: 0.2rem;
}

.crypto-position-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.crypto-position-metric strong {
  font-size: 1rem;
  color: #12294c;
}

.crypto-position-card--btc .crypto-position-head {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.12), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--btc .crypto-position-badge {
  background: linear-gradient(135deg, #f7931a, #8a4b08);
}

.crypto-position-card--eth .crypto-position-head {
  background: linear-gradient(135deg, rgba(98, 126, 234, 0.1), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--eth .crypto-position-badge {
  background: linear-gradient(135deg, #627eea, #2d3a8c);
}

.crypto-position-card--atom .crypto-position-head {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.11), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--atom .crypto-position-badge {
  background: linear-gradient(135deg, #4f6ef7, #253ea8);
}

.crypto-position-card--trx .crypto-position-head {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--trx .crypto-position-badge {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.crypto-position-card--sol .crypto-position-head {
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.12), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--sol .crypto-position-badge {
  background: linear-gradient(135deg, #14f195, #6c2bd9);
}

.crypto-position-card--near .crypto-position-head {
  background: linear-gradient(135deg, rgba(0, 192, 139, 0.1), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--near .crypto-position-badge {
  background: linear-gradient(135deg, #00c08b, #0f172a);
}

.crypto-position-card--dot .crypto-position-head {
  background: linear-gradient(135deg, rgba(230, 0, 122, 0.1), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--dot .crypto-position-badge {
  background: linear-gradient(135deg, #e6007a, #8a1652);
}

.crypto-position-card--matic .crypto-position-head {
  background: linear-gradient(135deg, rgba(130, 71, 229, 0.11), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--matic .crypto-position-badge {
  background: linear-gradient(135deg, #8247e5, #4a2491);
}

.crypto-position-card--generic .crypto-position-head {
  background: linear-gradient(135deg, rgba(15, 92, 192, 0.09), rgba(255, 255, 255, 0.95));
}

.crypto-position-card--generic .crypto-position-badge {
  background: linear-gradient(135deg, #0f5cc0, #17355f);
}

.staking-hero {
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background:
    radial-gradient(480px 220px at 100% 0%, rgba(230, 0, 122, 0.14), transparent 55%),
    radial-gradient(420px 200px at 0% 100%, rgba(79, 110, 247, 0.14), transparent 55%),
    linear-gradient(135deg, #14233e, #182d50 55%, #213c67);
  color: #eff6ff;
  box-shadow: 0 20px 42px rgba(10, 18, 33, 0.18);
}

.staking-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: rgba(227, 235, 252, 0.84);
}

.staking-hero-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.staking-hero-text {
  margin: 0.45rem 0 0.55rem;
  max-width: 62ch;
  color: rgba(226, 236, 252, 0.92);
}

.staking-hero-meta {
  color: rgba(214, 231, 255, 0.84);
}

.staking-import-panel,
.staking-filter-panel,
.staking-events-panel {
  border-radius: 16px;
}

.staking-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.staking-summary-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(205, 220, 247, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
}

.staking-summary-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(217, 226, 240, 0.9);
}

.staking-summary-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px rgba(16, 24, 40, 0.16);
}

.staking-summary-title {
  font-size: 1rem;
  font-weight: 800;
  color: #12294c;
}

.staking-summary-subtitle {
  margin-top: 0.12rem;
  color: #60708b;
  font-size: 0.85rem;
}

.staking-summary-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.staking-summary-metric {
  display: grid;
  gap: 0.2rem;
}

.staking-summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.staking-summary-metric strong {
  font-size: 1.08rem;
  color: #12294c;
}

.staking-summary-meta {
  display: grid;
  gap: 0.28rem;
  color: #64748b;
  font-size: 0.86rem;
}

.staking-summary-card--atom .staking-summary-head {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.11), rgba(255, 255, 255, 0.95));
}

.staking-summary-card--atom .staking-summary-badge {
  background: linear-gradient(135deg, #4f6ef7, #253ea8);
}

.staking-summary-card--trx .staking-summary-head {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(255, 255, 255, 0.95));
}

.staking-summary-card--trx .staking-summary-badge {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.staking-summary-card--dot .staking-summary-head {
  background: linear-gradient(135deg, rgba(230, 0, 122, 0.1), rgba(255, 255, 255, 0.95));
}

.staking-summary-card--dot .staking-summary-badge {
  background: linear-gradient(135deg, #e6007a, #8a1652);
}

.staking-summary-card--generic .staking-summary-head {
  background: linear-gradient(135deg, rgba(15, 92, 192, 0.09), rgba(255, 255, 255, 0.95));
}

.staking-summary-card--generic .staking-summary-badge {
  background: linear-gradient(135deg, #0f5cc0, #17355f);
}

.staking-chart-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.dashboard-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(20, 241, 149, 0.12), transparent 58%),
    radial-gradient(420px 220px at 0% 100%, rgba(79, 110, 247, 0.14), transparent 58%),
    linear-gradient(135deg, #0d1f3a, #132846 52%, #18355c);
  color: #eff6ff;
  box-shadow: 0 20px 40px rgba(10, 18, 33, 0.18);
}

.dashboard-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: rgba(227, 235, 252, 0.84);
}

.dashboard-hero-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.dashboard-hero-text {
  margin: 0.45rem 0 0.55rem;
  max-width: 62ch;
  color: rgba(226, 236, 252, 0.92);
}

.dashboard-hero-meta {
  color: rgba(214, 231, 255, 0.84);
}

.dashboard-hero-side {
  display: flex;
  align-items: flex-start;
}

.dashboard-period-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(239, 246, 255, 0.94);
  font-size: 0.82rem;
  line-height: 1.35;
}

.dashboard-period-chip strong {
  font-size: 0.92rem;
  color: #fff;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-kpi-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgba(206, 219, 240, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.06);
}

.dashboard-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-kpi-value {
  font-size: 1.28rem;
  font-weight: 800;
  color: #12294c;
}

.dashboard-filter-panel {
  padding: 1rem;
  border-radius: 16px;
}

.dashboard-chart-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.dashboard-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.ativos-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(245, 158, 11, 0.12), transparent 58%),
    radial-gradient(420px 220px at 0% 100%, rgba(21, 128, 61, 0.12), transparent 58%),
    linear-gradient(135deg, #10233d, #15304f 52%, #1a4067);
  color: #eff6ff;
  box-shadow: 0 20px 40px rgba(10, 18, 33, 0.18);
}

.ativos-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: rgba(227, 235, 252, 0.84);
}

.ativos-hero-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.ativos-hero-text {
  margin: 0.45rem 0 0.55rem;
  max-width: 62ch;
  color: rgba(226, 236, 252, 0.92);
}

.ativos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.65rem;
}

.ativos-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ativos-kpi-card {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
  border: 1px solid rgba(206, 219, 240, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.06);
}

.ativos-kpi-card--total {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.98) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}

.ativos-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.ativos-kpi-value {
  font-size: 1.28rem;
  font-weight: 800;
  color: #12294c;
}

.ativos-kpi-meta {
  color: #617089;
  font-size: 0.86rem;
  line-height: 1.4;
}

.ativos-card-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.ativos-card-strip--odd .ativos-position-card:last-child {
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.ativos-position-card {
  border-radius: 18px;
  border: 1px solid rgba(205, 220, 247, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.ativos-position-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(217, 226, 240, 0.9);
}

.ativos-position-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px rgba(16, 24, 40, 0.16);
}

.ativos-position-name {
  font-size: 1rem;
  font-weight: 800;
  color: #12294c;
}

.ativos-position-local {
  margin-top: 0.12rem;
  color: #60708b;
  font-size: 0.85rem;
}

.ativos-position-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.95rem 1rem 1rem;
}

.ativos-position-metric {
  display: grid;
  gap: 0.2rem;
}

.ativos-position-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.ativos-position-metric strong {
  font-size: 1rem;
  color: #12294c;
}

.ativos-position-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0 1rem 1rem;
}

.ativos-position-actions .btn {
  flex: 1;
  border-radius: 12px;
  font-weight: 700;
}

.ativos-position-card--acao .ativos-position-head {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.11), rgba(255, 255, 255, 0.95));
}

.ativos-position-card--acao .ativos-position-badge {
  background: linear-gradient(135deg, #15803d, #14532d);
}

.ativos-position-card--fii .ativos-position-head {
  background: linear-gradient(135deg, rgba(15, 92, 192, 0.11), rgba(255, 255, 255, 0.95));
}

.ativos-position-card--fii .ativos-position-badge {
  background: linear-gradient(135deg, #0f5cc0, #17355f);
}

.ativos-chart-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
}

.settings-layout {
  display: grid;
  gap: 1rem;
}

.settings-form-shell {
  display: grid;
  gap: 1.1rem;
}

.settings-tabs {
  gap: 0.55rem;
}

.settings-tabs .nav-link {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 92, 192, 0.08);
  color: var(--brand-dark);
  font-weight: 700;
  padding: 0.55rem 0.95rem;
}

.settings-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 92, 192, 0.22);
}

.settings-tab-content {
  display: grid;
}

.settings-pane {
  display: grid;
  gap: 1rem;
}

.settings-pane-head {
  display: grid;
  gap: 0.22rem;
}

.settings-highlight-card {
  padding: 1.05rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 92, 192, 0.12), rgba(255, 255, 255, 0.98) 38%),
    #fff;
  box-shadow: 0 16px 34px rgba(15, 92, 192, 0.08);
}

.settings-network-grid,
.settings-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.settings-network-card,
.settings-support-card {
  border: 1px solid rgba(205, 220, 247, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
}

.settings-network-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1rem 0.95rem;
  border-bottom: 1px solid rgba(217, 226, 240, 0.9);
  background: linear-gradient(135deg, rgba(15, 92, 192, 0.1), rgba(255, 255, 255, 0.92));
}

.settings-network-body,
.settings-support-card {
  display: grid;
  gap: 0.9rem;
}

.settings-network-body {
  padding: 1rem;
}

.settings-network-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.settings-network-subtitle {
  margin-top: 0.15rem;
  color: #4c5e78;
  font-size: 0.85rem;
}

.settings-network-head-copy {
  min-width: 0;
}

.settings-network-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px rgba(16, 24, 40, 0.18);
}

.settings-support-card {
  padding: 1rem;
}

.settings-support-copy {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.settings-inline-field {
  display: grid;
  gap: 0.35rem;
}

.settings-inline-field .form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #52627b;
}

.settings-inline-field .form-control {
  border-radius: 12px;
  min-height: 46px;
  border-color: #cfdaea;
  background: rgba(255, 255, 255, 0.92);
}

.settings-inline-field .form-control:focus {
  border-color: rgba(15, 92, 192, 0.45);
  box-shadow: 0 0 0 0.18rem rgba(15, 92, 192, 0.12);
}

.settings-inline-field .form-text {
  color: #66768f;
}

.settings-network-card--atom .settings-network-head,
.settings-support-card.settings-network-card--atom {
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.11), rgba(255, 255, 255, 0.95));
}

.settings-network-card--atom .settings-network-badge {
  background: linear-gradient(135deg, #4f6ef7, #253ea8);
}

.settings-network-card--trx .settings-network-head,
.settings-support-card.settings-network-card--trx {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.09), rgba(255, 255, 255, 0.95));
}

.settings-network-card--trx .settings-network-badge {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.settings-network-card--eth .settings-network-head,
.settings-support-card.settings-network-card--eth {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(255, 255, 255, 0.95));
}

.settings-network-card--eth .settings-network-badge {
  background: linear-gradient(135deg, #627eea, #2d3a8c);
}

.settings-network-card--sol .settings-network-head,
.settings-support-card.settings-network-card--sol {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(255, 255, 255, 0.95));
}

.settings-network-card--sol .settings-network-badge {
  background: linear-gradient(135deg, #14f195, #6c2bd9);
}

.settings-network-card--near .settings-network-head,
.settings-support-card.settings-network-card--near {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.95));
}

.settings-network-card--near .settings-network-badge {
  background: linear-gradient(135deg, #00c08b, #0f172a);
}

.settings-network-card--dot .settings-network-head,
.settings-support-card.settings-network-card--dot {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(255, 255, 255, 0.95));
}

.settings-network-card--dot .settings-network-badge {
  background: linear-gradient(135deg, #e6007a, #8a1652);
}

.settings-network-card--btc .settings-network-head,
.settings-support-card.settings-network-card--btc {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.11), rgba(255, 255, 255, 0.95));
}

.settings-network-card--btc .settings-network-badge {
  background: linear-gradient(135deg, #f7931a, #8a4b08);
}

.settings-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.settings-page-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.settings-page-copy {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.settings-card {
  padding: 1.1rem;
}

.settings-card--accent {
  background:
    linear-gradient(135deg, rgba(15, 92, 192, 0.08), rgba(255, 255, 255, 0.96) 38%),
    var(--surface);
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.35rem;
}

.settings-eyebrow {
  font-size: 0.72rem;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.settings-title {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.settings-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.5;
}

.settings-section-block {
  display: grid;
  gap: 0.85rem;
}

.settings-subsection {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(238, 243, 251, 0.55), rgba(255, 255, 255, 0.92));
}

.settings-subsection-head {
  display: grid;
  gap: 0.3rem;
}

.settings-subsection-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.settings-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #eaf2ff;
  border: 1px solid #cddcf7;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-section-head {
  display: grid;
  gap: 0.18rem;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.settings-field-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.settings-field {
  padding: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.settings-field--compact {
  padding: 0.8rem 0.9rem;
}

.settings-field .form-label {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.settings-field .form-control {
  border-radius: 10px;
}

.settings-field .form-text {
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.4;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 1.2rem;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.note-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.totals-table td:first-child {
  color: var(--muted);
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  background: #fff;
}

.dt-container .dt-layout-row {
  margin: 0.4rem 0;
}

.dt-container .dt-layout-cell {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

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

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

@media (max-width: 991px) {
  .app-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-nav .navbar-collapse {
    background: rgba(8, 24, 44, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.85rem;
  }

  .app-nav .nav-link {
    width: 100%;
    padding: 0.7rem 0.25rem !important;
  }

  .app-nav-right {
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .settings-field-grid {
    grid-template-columns: 1fr;
  }

  .settings-network-grid,
  .settings-support-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 575px) {
  .app-kpi-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.15rem;
  }

  .chart-panel {
    min-height: 380px;
    padding: 0.75rem;
  }

  .app-main {
    padding-top: 0.85rem;
  }

  .app-section,
  .app-table-wrap {
    padding: 0.75rem;
  }

  .app-toolbar {
    align-items: stretch;
  }

  .app-toolbar > div:last-child {
    width: 100%;
  }

  .app-toolbar .btn,
  .app-toolbar .btn-group,
  .app-toolbar .d-flex {
    width: 100%;
  }

  .app-toolbar .d-flex.gap-2 {
    flex-direction: column;
  }

  .app-toolbar .d-flex.gap-2 > .btn {
    width: 100%;
  }

  .crypto-hero {
    padding: 1rem;
  }

  .crypto-hero-title {
    font-size: 1.55rem;
  }

  .crypto-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .crypto-hero-actions .btn {
    width: 100%;
  }

  .crypto-kpi-grid,
  .crypto-card-strip {
    grid-template-columns: 1fr;
  }

  .crypto-card-strip--odd .crypto-position-card:last-child {
    max-width: none;
  }

  .crypto-position-body {
    grid-template-columns: 1fr;
  }

  .crypto-position-actions {
    flex-direction: column;
  }

  .staking-hero {
    padding: 1rem;
  }

  .staking-hero-title {
    font-size: 1.55rem;
  }

  .staking-card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    padding: 1rem;
  }

  .dashboard-hero-title {
    font-size: 1.55rem;
  }

  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-head {
    align-items: flex-start;
  }

  .ativos-hero {
    padding: 1rem;
  }

  .ativos-hero-title {
    font-size: 1.55rem;
  }

  .ativos-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .ativos-hero-actions .btn {
    width: 100%;
  }

  .ativos-kpi-grid,
  .ativos-card-strip {
    grid-template-columns: 1fr;
  }

  .ativos-card-strip--odd .ativos-position-card:last-child {
    max-width: none;
  }

  .ativos-position-body {
    grid-template-columns: 1fr;
  }

  .ativos-position-actions {
    flex-direction: column;
  }

  .settings-card {
    padding: 0.85rem;
  }

  .settings-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-topbar .btn {
    width: 100%;
  }

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

  .settings-tabs .nav-item,
  .settings-tabs .nav-link {
    width: 100%;
  }

  .settings-network-head {
    padding: 0.9rem;
  }

  .settings-network-body,
  .settings-support-card {
    padding: 0.9rem;
  }

  .settings-subsection {
    padding: 0.75rem;
  }

  .settings-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-card-head .btn {
    width: 100%;
  }

  .settings-field {
    padding: 0.8rem;
  }

  .alert {
    padding: 0.8rem 0.9rem;
    font-size: 0.94rem;
  }

  .badge-soft {
    flex-direction: column;
    gap: 0.08rem;
    padding: 0.42rem 0.7rem;
    line-height: 1.1;
    min-width: 0;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .app-nav-right .nav-item {
    width: 100%;
  }

  .table thead.table-dark th,
  .table tbody td {
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .table .btn-sm {
    padding: 0.4rem 0.55rem;
  }

  .dt-container .dt-layout-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch !important;
  }

  .dt-container .dt-layout-cell {
    width: 100%;
  }

  .dt-container .dt-search input,
  .dt-container .dt-length select {
    width: 100%;
    min-height: 40px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}
