body.user-shell {
  padding-top: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #f4f7fa;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.user-shell a {
  color: var(--blue);
}

.user-shell a:hover,
.user-shell a:focus {
  color: var(--blue-dark);
}

.user-shell .account-main {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 28px 0 56px;
  overflow: visible;
}

.user-shell .account-layout {
  display: flex;
  flex-wrap: wrap;
}

.user-shell .panel {
  background: transparent;
  box-shadow: none;
}

.user-shell .panel-default {
  border: 0;
  background: transparent;
}

.user-shell .account-panel {
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.user-shell .account-panel > .panel-body {
  padding: 28px;
}

.user-shell h2.page-header {
  margin: 0 0 12px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.user-shell .account-lead,
.user-shell .account-bio {
  margin: 0 0 18px;
  color: var(--muted);
}

.user-shell .account-subtitle {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.user-shell .account-sidenav {
  padding: 10px 8px 12px;
  margin-bottom: 20px;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.user-shell .sidenav .list-group {
  margin-bottom: 0;
}

.user-shell .sidenav .list-group .list-group-heading {
  margin: 6px 12px 10px;
  color: #3b7399;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-shell .sidenav .list-group .list-group-item,
.user-shell .sidenav .list-group .list-group-item:hover,
.user-shell .sidenav .list-group .list-group-item.active {
  margin-bottom: 4px;
  border: 0;
  border-left: 0;
  border-radius: 8px;
  background: transparent;
}

.user-shell .sidenav .list-group .list-group-item > a {
  padding: 10px 14px;
  border-radius: 8px;
  color: #315a76;
  font-weight: 600;
}

.user-shell .sidenav .list-group .list-group-item:hover > a {
  background: #f3f7fa;
  color: var(--ink);
}

.user-shell .sidenav .list-group .list-group-item.active > a {
  background: var(--soft-blue);
  color: var(--blue);
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.account-avatar {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid #dce5eb;
  border-radius: 50%;
  background: #edf2f6;
}

.account-avatar img {
  width: 88px;
  height: 88px;
  object-fit: cover;
}

.account-hero-meta {
  min-width: 0;
  flex: 1;
}

.account-hero-meta h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
}

.account-hero-meta .account-bio {
  margin: 6px 0 0;
}

.account-hero .primary-button {
  flex-shrink: 0;
}

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

.account-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: #f8fafb;
}

.account-stat span,
.account-stat em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.account-stat strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  word-break: break-all;
}

.account-stat a {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
}

.account-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f3f7fa;
  color: var(--ink);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 8px;
}

.watch-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.watch-form .form-control {
  flex: 1;
  min-width: 220px;
}

.user-shell .watch-list {
  margin-top: 8px;
}

.user-shell .watch-list .is-empty {
  color: var(--muted);
  font-family: inherit;
}

.pay-box {
  margin-top: 24px;
  padding-top: 8px;
}

.user-shell .pay-card .primary-button,
.user-shell .pay-card .secondary-button {
  width: 100%;
  margin-top: 14px;
}

.user-shell .pay-amount small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.user-shell .form-control {
  height: 40px;
  border-color: #c9d5df;
  border-radius: 6px;
  box-shadow: none;
}

.user-shell .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.user-shell .btn-primary,
.user-shell .btn-info {
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  font-weight: 700;
}

.user-shell .btn-primary:hover,
.user-shell .btn-primary:focus,
.user-shell .btn-info:hover,
.user-shell .btn-info:focus {
  background: var(--blue-dark);
}

.user-shell .btn-default {
  border-color: #cbd7df;
  border-radius: 6px;
  color: #315a76;
  background: var(--white);
  font-weight: 700;
}

.user-shell .btn-success {
  border: 0;
  border-radius: 6px;
  background: var(--green);
  font-weight: 700;
}

.user-shell .alert {
  border: 0;
  border-radius: 8px;
}

.user-shell .login-section {
  width: min(420px, 100%);
  margin: 36px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.user-shell .login-section .logon-tab {
  margin: 0;
}

.user-shell .login-section .logon-tab > a {
  padding: 16px 12px;
  color: var(--muted);
  background: #f3f7fa;
  font-weight: 700;
}

.user-shell .login-section .logon-tab > a:hover {
  color: var(--ink);
  background: #eaf1f6;
}

.user-shell .login-section .logon-tab > a.active {
  color: var(--blue);
  background: var(--white);
}

.user-shell .login-section .login-main {
  padding: 28px 28px 24px;
}

.user-shell .login-section .btn-lg {
  height: 42px;
  padding: 0 16px;
  line-height: 42px;
}

.user-shell .login-section .btn-default.no-border {
  border: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.sidebar-toggle {
  display: none;
}

@media (max-width: 991px) {
  .account-hero {
    flex-wrap: wrap;
  }

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

  .user-shell .sidenav {
    position: fixed;
    top: 64px;
    left: -260px;
    z-index: 1029;
    width: 250px;
    height: calc(100vh - 64px);
    margin: 0;
    padding: 12px 8px;
    overflow-y: auto;
    border-radius: 0;
    transition: left 0.25s ease;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 1030;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow);
  }

  body.sidebar-open .sidenav {
    left: 0;
    width: 250px;
    box-shadow: 0 12px 32px rgba(20, 44, 63, 0.16);
  }

  body.sidebar-open .sidebar-toggle i:before {
    content: "\f00d";
  }
}

@media (max-width: 720px) {
  .user-shell .account-panel > .panel-body {
    padding: 20px 16px;
  }

  .account-stats,
  .user-shell .pay-grid {
    grid-template-columns: 1fr;
  }

  .user-shell .login-section {
    margin: 20px auto;
  }

  .user-shell .login-section .login-main {
    padding: 22px 18px 18px;
  }
}
