.p-dynamic-item {
  height: 32px;
  font-size: 13px;
  color: #555;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 0;
  margin: 0;
  justify-content: flex-start !important;
}
.p-dynamic-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
  flex-shrink: 0;
}
.p-dynamic-user {
  color: #333;
  font-weight: 500;
  flex-shrink: 0;
}
.p-dynamic-action {
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}
.p-dynamic-time {
  color: #aaa;
  font-size: 11px;
  flex-shrink: 0;
  margin-left: 8px;
}

.p-dynamic-nav i:hover {
  color: #333 !important;
}

/* Premium Grid & Card Styles (Match Image 1) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.main-content {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}
.content-left {
  flex: 1;
  min-width: 0;
}
.content-right {
  width: 320px;
  flex-shrink: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}
.section-title-main {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 14px;
  color: #999;
}

.cat-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.cat-filter-item {
  padding: 6px 18px;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.cat-filter-item:hover,
.cat-filter-item.active {
  background: #fff;
  color: #ff9800;
  border-color: #ff9800;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resource-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f8f9fa;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.resource-card:hover .card-thumb img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}
.badge-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.badge-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tag-count {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.tag-vip {
  background: #ffc107;
  color: #333;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}
.tag-top {
  background: #333;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}

.card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
}
.dot-cat {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00bcd4;
  display: inline-block;
}
.cat-name-link {
  color: #666;
  text-decoration: none;
}
.cat-name-link:hover {
  color: #00bcd4;
}

.res-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-decoration: none;
  transition: color 0.2s;
}
.res-title:hover {
  color: #ff9800;
}

.res-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 12px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #bbb;
  border-top: 1px solid #f5f5f5;
  padding-top: 10px;
  margin-top: auto;
}
.meta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.meta-item i {
  font-size: 13px;
}

.load-more-btn {
  display: block;
  width: 140px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #222;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 40px auto;
  text-decoration: none;
  transition: all 0.3s;
}
.load-more-btn:hover {
  background: #444;
  transform: scale(1.05);
}

.section-load-more-btn {
  display: inline-block;
  padding: 6px 20px;
  background: #222;
  color: #fff !important;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.section-load-more-btn:hover {
  background: #444;
  transform: translateY(-2px);
}

/* Category Scroll Styles - Premium Rectangular Cards */
.category-scroll-wrapper {
  position: relative;
  padding: 0 40px;
}
.category-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 10px 0;
}
.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.cat-scroll-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 80px;
  margin-right: 15px;
  vertical-align: top;
  background: #333;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-size: cover;
  background-position: center;
}
.cat-scroll-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
  transition: background 0.3s;
}
.cat-scroll-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.cat-scroll-item:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

.cat-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  z-index: 2;
  color: #fff;
  background: #ff5722;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Variant colors for badges */
.cat-scroll-item:nth-child(2n) .cat-badge {
  background: #1e9fff;
}
.cat-scroll-item:nth-child(3n) .cat-badge {
  background: #5fb878;
}
.cat-scroll-item:nth-child(4n) .cat-badge {
  background: #ffb800;
}

.cat-name {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 600;
  margin-top: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cat-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  color: #666;
}
.cat-nav-btn.show {
  opacity: 1;
  visibility: visible;
}
.cat-nav-btn:hover {
  background: #0761e9;
  color: #fff;
}
.cat-prev {
  left: 0;
}
.cat-next {
  right: 0;
}

@media screen and (max-width: 1200px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 992px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .main-content {
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  .content-right {
    width: 100%;
  }
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
  }
  .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #009688;
    border-radius: 2px;
  }
}

@media screen and (max-width: 480px) {
  /* Mobile List View */
  .resource-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
  .resource-card {
    display: flex;
    flex-direction: row;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 10px;
    align-items: center;
  }
  .card-thumb {
    width: 100px;
    padding-top: 70px;
    border-radius: 8px;
    margin-right: 12px;
  }
  .card-body {
    padding: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .card-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .card-price {
    margin-top: 5px;
    color: #ff5722;
    font-weight: bold;
  }

  .resource-card:hover {
    transform: none;
  } /* Disable lift on tiny screens */
}

/* Premium Login Widget Styles */
.login-widget-premium {
  background: #fff;
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}
.login-widget-premium:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.user-avatar-premium {
  width: 72px;
  height: 72px;
  background: #f0f4f8;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.user-avatar-premium i {
  font-size: 36px;
  color: #ccd6e0;
}

.welcome-text-premium {
  text-align: center;
  margin-bottom: 25px;
}
.welcome-text-premium h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}
.welcome-text-premium p {
  font-size: 13px;
  color: #718096;
}

.premium-login-btn {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  background: #2196f3;
  color: #fff !important;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  box-shadow: 0 6px 15px rgba(33, 150, 243, 0.35);
  transition: all 0.3s ease;
}
.premium-login-btn:hover {
  background: #1976d2;
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.45);
  transform: translateY(-1px);
}

.guest-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  color: #a0aec0;
}
.guest-footer a {
  color: #009688;
  font-weight: 600;
  text-decoration: none;
  margin-left: 5px;
}

/* Logged in state classes */
.user-name-premium {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}
.user-role-badge {
  text-align: center;
  margin-bottom: 20px;
}
.badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff5f0;
  color: #ff5722;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #ffe8dd;
}
.badge-normal {
  display: inline-block;
  background: #f7fafc;
  color: #718096;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.user-stats-premium {
  display: flex;
  justify-content: space-around;
  background: #f8fafc;
  border-radius: 12px;
  padding: 15px 10px;
  margin-bottom: 25px;
}
.stat-box {
  text-align: center;
}
.stat-val {
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-action-btn {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  background: #fff;
  color: #2d3748 !important;
  text-align: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.premium-action-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

/* Hot List Premium Styles */
.premium-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.premium-widget-title i {
  color: #ff5252;
  font-size: 18px;
}

.hot-list-premium {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hot-item-premium {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}
.hot-item-premium:last-child {
  border-bottom: none;
}
.hot-item-premium:hover {
  padding-left: 5px;
}

.rank-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #edf2f7;
  color: #718096;
}
.rank-1 {
  background: linear-gradient(135deg, #ff9800, #f44336);
  color: #fff;
  box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}
.rank-2 {
  background: linear-gradient(135deg, #607d8b, #455a64);
  color: #fff;
  box-shadow: 0 4px 10px rgba(69, 90, 100, 0.3);
}
.rank-3 {
  background: linear-gradient(135deg, #795548, #5d4037);
  color: #fff;
  box-shadow: 0 4px 10px rgba(93, 64, 55, 0.3);
}

.hot-content-premium {
  flex: 1;
  min-width: 0;
}
.hot-title-premium {
  display: -webkit-box;
  display: block;
  font-size: 14px;
  color: #4a5568;
  text-decoration: none !important;
  line-height: 1.5;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s;
}
.hot-title-premium:hover {
  color: #2196f3;
}
.hot-meta-premium {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* VIP Promo Premium Styles */
.vip-promo-premium {
  position: relative;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  border-radius: 20px;
  padding: 40px 30px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.vip-glow-effect {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(66, 153, 225, 0.3) 0%,
    transparent 70%
  );
  top: -50px;
  right: -50px;
  pointer-events: none;
}
.vip-card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.vip-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.vip-icon-box i {
  font-size: 24px;
  color: #fbd38d;
}
.vip-card-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.vip-card-content p {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 25px;
}
.vip-action-btn {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  background: #fbd38d;
  color: #1a202c !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vip-action-btn:hover {
  background: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(251, 211, 141, 0.3);
}

.friend-link-item:hover {
  background: #fff !important;
  border-color: #2196f3 !important;
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.1);
  transform: translateY(-2px);
}
.friend-link-item:hover div[style*="color: #4a5568"] {
  color: #2196f3 !important;
}
