.dashboard-page {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.dashboard-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  margin-bottom: 22px;
  padding: 0 16px;
  border: 1px solid rgba(111, 88, 239, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 25px rgba(91, 76, 150, 0.06);
}

.dashboard-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #6957ef;
  font-size: 14px;
}

.dashboard-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3c3c50;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.dashboard-search input::placeholder {
  color: #a0a2b5;
}

.dashboard-search-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #e7e1ff;
  border-radius: 7px;
  background: #f7f5ff;
  color: #77728e;
  font-size: 12px;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(106, 91, 230, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(87, 76, 137, 0.06);
}

.dashboard-stat-card::before {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.dashboard-stat-card.coins {
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(106, 199, 255, 0.14),
      transparent 30%
    ),
    #ffffff;
}

.dashboard-stat-card.gifts {
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(255, 128, 148, 0.12),
      transparent 30%
    ),
    #ffffff;
}

.dashboard-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin-right: 14px;
  border-radius: 14px;
  font-size: 18px;
}

.dashboard-stat-card.coins .dashboard-stat-icon {
  color: #f3c51f;
  background: #fff8d9;
}

.dashboard-stat-card.gifts .dashboard-stat-icon {
  color: #ff637e;
  background: #fff0f3;
}

.dashboard-stat-content {
  min-width: 0;
}

.dashboard-stat-value {
  color: #292936;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

.dashboard-stat-value span {
  margin-left: 4px;
  color: #8a8da0;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-stat-label {
  margin-top: 3px;
  color: #7b7e91;
  font-size: 12px;
}

.dashboard-stat-growth {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 9px;
  background: #effbdd;
  color: #6ba93e;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-news-ticker {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 7px 22px rgba(90, 80, 145, 0.04);
}

.dashboard-news-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b5bf1, #ae6df5);
  color: #ffffff;
  font-size: 14px;
}

.dashboard-news-track {
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: max-content;
  white-space: nowrap;
}

.dashboard-news-item {
  color: #77798c;
  font-size: 12px;
}

.dashboard-news-item strong {
  color: #6556e8;
  font-weight: 700;
}

.dashboard-news-item b {
  color: #6657e8;
  font-weight: 700;
}

.dashboard-news-time {
  margin-right: 7px;
  color: #a1a2b1;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
}

.dashboard-feed {
  min-width: 0;
}

.dashboard-post {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(109, 94, 230, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(84, 72, 135, 0.07);
}

.dashboard-post-bar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-bottom: 1px solid #eeeef8;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(116, 103, 244, 0.12),
      transparent 25%
    ),
    #f3f6ff;
  color: #5e55e5;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-post-bar i {
  margin-right: 7px;
}

.dashboard-post-body {
  padding: 22px 22px 0;
}

.dashboard-post-author {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.dashboard-author-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: 11px;
  overflow: hidden;
  border: 2px solid #eeeaff;
  border-radius: 50%;
  background: #f1efff;
}

.dashboard-author-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-author-info {
  min-width: 0;
}

.dashboard-author-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #30303a;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-level {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #e8ae16;
  font-size: 11px;
}

.dashboard-admin-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: #ff667d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-post-time {
  display: block;
  margin-top: 4px;
  color: #9a9cad;
  font-size: 11px;
}

.dashboard-post-content {
  color: #454959;
  font-size: 14px;
  line-height: 1.75;
}

.dashboard-post-content p {
  margin: 0 0 17px;
}

.dashboard-post-content h3 {
  margin: 0 0 20px;
  color: #3b3b4a;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-post-title {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 22px;
  color: #464651;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.dashboard-post-title i {
  flex: 0 0 auto;
  margin-top: 4px;
  color: #ffad24;
}

.dashboard-post-highlight {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.dashboard-post-highlight i {
  flex: 0 0 auto;
  margin-top: 5px;
  color: #41bd7a;
}

.dashboard-post-highlight.warning i {
  color: #ffad24;
}

.dashboard-domain-list,
.dashboard-warning-list,
.dashboard-check-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.dashboard-domain-list li,
.dashboard-warning-list li,
.dashboard-check-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.dashboard-domain-list i {
  margin-top: 7px;
  color: #5e85e9;
  font-size: 9px;
}

.dashboard-warning-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  margin-top: 10px;
  border-radius: 50%;
  background: #5d6477;
}

.dashboard-check-list i {
  margin-top: 5px;
  color: #3bc17a;
  font-size: 14px;
}

.dashboard-post-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 18px;
  color: #6958ef;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.dashboard-post-link:hover {
  color: #5141dc;
}

.dashboard-post-footer {
  margin-top: 24px;
}

.dashboard-post-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #f0eff6;
  color: #9b9caf;
  font-size: 12px;
}

.dashboard-post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dashboard-post-stats i {
  color: #9295a7;
}

.dashboard-post-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #f0eff6;
}

.dashboard-post-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 43px;
  border: 0;
  background: transparent;
  color: #777b91;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.dashboard-post-actions button + button {
  border-left: 1px solid #f0eff6;
}

.dashboard-post-actions button:hover {
  color: #6957ef;
  background: #faf9ff;
}

.dashboard-comment-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0 16px;
}

.dashboard-comment-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: #f1efff;
}

.dashboard-comment-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-comment-box input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  border-radius: 20px;
  background: #f5f2ff;
  color: #444657;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.dashboard-comment-box input::placeholder {
  color: #b1afc0;
}

.dashboard-comment-box button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aaa4c6;
  cursor: pointer;
}

.dashboard-comment-box button:hover {
  color: #6957ef;
}

.dashboard-ranking {
  min-width: 0;
}

.dashboard-ranking-card {
  overflow: hidden;
  border: 1px solid rgba(109, 94, 230, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(84, 72, 135, 0.07);
}

.dashboard-ranking-header {
  padding: 17px 18px 14px;
}

.dashboard-ranking-title {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.dashboard-ranking-title > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #6c5df1;
  font-size: 16px;
}

.dashboard-ranking-title h2 {
  margin: 0;
  color: #5550d7;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-ranking-title p {
  margin: 7px 0 0;
  color: #888a9c;
  font-size: 11px;
  line-height: 1.55;
}

.dashboard-ranking-search {
  display: flex;
  align-items: center;
  height: 36px;
  margin: 0 18px 12px;
  padding: 0 12px;
  border: 1px solid #e4ddff;
  border-radius: 19px;
  background: #ffffff;
}

.dashboard-ranking-search i {
  margin-right: 8px;
  color: #8d84e9;
  font-size: 12px;
}

.dashboard-ranking-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #454657;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.dashboard-ranking-search input::placeholder {
  color: #aaa8ba;
}

.dashboard-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px;
}

.dashboard-ranking-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #f0eff8;
  border-radius: 14px;
  background: #ffffff;
}

.dashboard-ranking-item.rank-1 {
  border-color: #f4dd8d;
  background: #fffaf0;
}

.dashboard-ranking-item.rank-2 {
  border-color: #d9ddfa;
  background: #f7f8ff;
}

.dashboard-ranking-item.rank-3 {
  border-color: #ffd6d9;
  background: #fff8f8;
}

.dashboard-rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  margin-right: 8px;
  border: 1px solid #e0dcfb;
  border-radius: 50%;
  background: #f7f5ff;
  color: #6659e9;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-ranking-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-right: 9px;
  overflow: hidden;
  border: 2px solid #eeeaff;
  border-radius: 50%;
  background: #f1efff;
}

.dashboard-ranking-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-ranking-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-ranking-info strong {
  overflow: hidden;
  color: #3d3d48;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-ranking-info span {
  margin-top: 2px;
  color: #6857ef;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-ranking-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 7px;
  background: #fff2c9;
  color: #d39a16;
  font-size: 9px;
  font-weight: 700;
}

.dashboard-ranking-more {
  width: calc(100% - 36px);
  height: 34px;
  margin: 12px 18px 16px;
  border: 1px solid #ddd5ff;
  border-radius: 10px;
  background: #f8f5ff;
  color: #6b59ee;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-ranking-more:hover {
  background: #eeeaff;
}

.dashboard-feed-end {
  display: flex;
  justify-content: center;
  padding: 12px 0 30px;
  color: #a6a6b5;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .dashboard-page {
    max-width: 100%;
  }

  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 1000px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-ranking {
    order: 2;
  }

  .dashboard-ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-card {
    min-height: 84px;
  }

  .dashboard-news-ticker {
    border-radius: 18px;
  }

  .dashboard-news-track {
    gap: 24px;
  }

  .dashboard-main-grid {
    gap: 14px;
  }

  .dashboard-post {
    border-radius: 16px;
  }

  .dashboard-post-body {
    padding: 18px 16px 0;
  }

  .dashboard-post-content {
    font-size: 14px;
  }

  .dashboard-ranking-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .dashboard-search {
    height: 42px;
    margin-bottom: 14px;
  }

  .dashboard-search-shortcut {
    display: none;
  }

  .dashboard-stat-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  .dashboard-stat-card {
    padding: 15px;
    border-radius: 16px;
  }

  .dashboard-stat-value {
    font-size: 20px;
  }

  .dashboard-stat-growth {
    font-size: 10px;
  }

  .dashboard-post-title {
    font-size: 13px;
  }

  .dashboard-post-content {
    font-size: 14px;
    line-height: 1.7;
  }

  .dashboard-ranking-card {
    border-radius: 16px;
  }
}
