:root {
  --sl-bg: #080b12;
  --sl-bg-soft: #0d111c;
  --sl-card: rgba(17, 24, 39, 0.82);
  --sl-card-solid: #111827;
  --sl-border: rgba(255, 255, 255, 0.08);
  --sl-border-gold: rgba(214, 168, 75, 0.32);
  --sl-text: #f8fafc;
  --sl-muted: #8b95a7;
  --sl-gold: #d6a84b;
  --sl-gold-light: #f2cf7a;
  --sl-purple: #7c5cfc;
  --sl-green: #37d39a;
  --sl-danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sl-bg);
}

body.account-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--sl-text);
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 92, 252, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(214, 168, 75, 0.1), transparent 30%),
    linear-gradient(180deg, #080b12 0%, #0a0e17 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.account-glow {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.15;
}

.account-glow-one {
  top: 15%;
  left: -160px;
  background: var(--sl-purple);
}

.account-glow-two {
  right: -180px;
  bottom: 5%;
  background: var(--sl-gold);
}

.account-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--sl-border);
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(18px);
}

.account-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--sl-text);
  text-decoration: none;
}

.account-logo-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.account-brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.account-nav a {
  color: var(--sl-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.account-nav a:hover {
  color: var(--sl-gold-light);
}

.account-container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 70px;
}

.account-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.account-eyebrow {
  margin-bottom: 8px;
  color: var(--sl-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.account-h1,
.account-h2 {
  color: var(--sl-text);
}

.account-h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.account-h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.account-muted {
  margin: 0;
  color: var(--sl-muted);
  font-size: 15px;
}

.account-btn {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.account-btn:hover {
  transform: translateY(-1px);
}

.account-btn-gold {
  color: #171109;
  background: linear-gradient(135deg, var(--sl-gold-light), var(--sl-gold));
  box-shadow: 0 14px 35px rgba(214, 168, 75, 0.16);
}

.account-btn-dark,
.account-btn-outline {
  color: var(--sl-text);
  border: 1px solid var(--sl-border);
  background: rgba(255, 255, 255, 0.04);
}

.account-btn-outline:hover,
.account-btn-dark:hover {
  border-color: var(--sl-border-gold);
  background: rgba(214, 168, 75, 0.08);
}

.account-refresh-icon {
  font-size: 18px;
}

.account-messages {
  margin-bottom: 16px;
}

.account-error,
.account-success {
  border: 1px solid;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.account-error {
  color: #ffb0b0;
  border-color: rgba(255, 107, 107, 0.25);
  background: rgba(255, 107, 107, 0.08);
}

.account-success {
  color: #94efcd;
  border-color: rgba(55, 211, 154, 0.25);
  background: rgba(55, 211, 154, 0.08);
}

.account-wallet-card,
.account-stat-card,
.account-panel {
  border: 1px solid var(--sl-border);
  background: var(--sl-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.account-wallet-card {
  min-height: 116px;
  border-radius: 22px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.account-wallet-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-wallet-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid var(--sl-border-gold);
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: var(--sl-gold-light);
  background: linear-gradient(135deg, rgba(214, 168, 75, 0.18), rgba(124, 92, 252, 0.12));
  font-size: 15px;
  font-weight: 900;
}

.account-wallet-data {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-label {
  color: var(--sl-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-address {
  max-width: 440px;
  overflow: hidden;
  color: var(--sl-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-meta {
  display: flex;
  align-items: center;
  gap: 34px;
}

.account-profile-meta > div:not(.account-network) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.account-profile-meta strong {
  color: var(--sl-text);
  font-size: 13px;
}

.account-network {
  border: 1px solid rgba(55, 211, 154, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a7f3d0;
  background: rgba(55, 211, 154, 0.07);
  font-size: 12px;
  font-weight: 700;
}

.account-network-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sl-green);
  box-shadow: 0 0 12px var(--sl-green);
}

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

.account-stat-card {
  min-height: 168px;
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.account-stat-card-accent {
  border-color: var(--sl-border-gold);
  background: linear-gradient(145deg, rgba(214, 168, 75, 0.13), rgba(17, 24, 39, 0.84) 58%);
}

.account-stat-card-accent::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(214, 168, 75, 0.12);
  filter: blur(20px);
}

.account-stat-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-stat-icon {
  color: var(--sl-gold);
  font-size: 15px;
}

.account-stat {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  overflow-wrap: anywhere;
  color: var(--sl-text);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.account-stat-caption {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--sl-muted);
  font-size: 12px;
}

.account-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 18px;
}

.account-panel {
  border-radius: 20px;
  padding: 23px;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-panel-link {
  color: var(--sl-gold-light);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.account-section-body {
  margin-top: 24px;
  display: grid;
  gap: 11px;
}

.account-section-body .account-small {
  border: 1px solid var(--sl-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--sl-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
}

.account-section-body .account-small strong {
  color: var(--sl-text);
}

.account-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sl-muted);
  font-size: 13px;
}

.account-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sl-gold);
  box-shadow: 0 0 12px var(--sl-gold);
}

.account-security-list {
  margin-top: 22px;
  display: grid;
}

.account-security-list > div {
  min-height: 48px;
  border-bottom: 1px solid var(--sl-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--sl-muted);
  font-size: 13px;
}

.account-security-list > div:last-child {
  border-bottom: 0;
}

.account-security-list strong {
  color: var(--sl-text);
  font-size: 12px;
}

.account-security-list .account-status-ok {
  color: var(--sl-green);
}

.account-events-panel {
  margin-top: 18px;
}

.account-events-head {
  align-items: center;
}

.account-events-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-events-controls label {
  color: var(--sl-muted);
  font-size: 12px;
}

.account-input-number {
  width: 70px;
  height: 42px;
  border: 1px solid var(--sl-border);
  border-radius: 11px;
  padding: 0 10px;
  outline: none;
  color: var(--sl-text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
}

.account-input-number:focus {
  border-color: var(--sl-border-gold);
}

.account-events {
  max-height: 380px;
  margin-top: 21px;
  overflow: auto;
}

.account-event {
  border-top: 1px solid var(--sl-border);
  padding: 15px 3px;
  display: grid;
  gap: 7px;
}

.account-event .account-small {
  color: var(--sl-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-event strong {
  color: var(--sl-gold-light);
}

.account-mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .account-nav {
    display: none;
  }

  .account-wallet-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-profile-meta {
    width: 100%;
    justify-content: space-between;
  }

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

@media (max-width: 680px) {
  .account-header-inner,
  .account-container {
    width: min(100% - 28px, 1180px);
  }

  .account-header-inner {
    min-height: 64px;
  }

  .account-header .account-btn-dark {
    display: none;
  }

  .account-container {
    padding: 34px 0 104px;
  }

  .account-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .account-hero .account-btn {
    width: 100%;
  }

  .account-wallet-card {
    padding: 18px;
  }

  .account-profile-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .account-network {
    grid-column: 1 / -1;
    width: max-content;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .account-stat-card {
    min-height: 145px;
  }

  .account-panel {
    padding: 18px;
  }

  .account-events-head {
    align-items: stretch;
    flex-direction: column;
  }

  .account-events-controls {
    display: grid;
    grid-template-columns: auto 70px 1fr;
  }

  .account-mobile-nav {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 30;
    min-height: 67px;
    border: 1px solid var(--sl-border);
    border-radius: 19px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(13, 17, 28, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(20px);
  }

  .account-mobile-nav a,
  .account-mobile-nav button {
    border: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: var(--sl-muted);
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
  }

  .account-mobile-nav span {
    font-size: 17px;
  }

  .account-mobile-nav .active {
    color: var(--sl-gold-light);
    background: rgba(214, 168, 75, 0.09);
  }
}
