* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

input,
textarea,
select,
[contenteditable] {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  /* background: #F8FAFC; */
  color: #0F172A;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-box {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #1e293b;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo b {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #2563EB;
}

.nav-links a.nav-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.admin-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateY(-1px);
  
}

.hero-wrapper {
  display: flex;
  justify-content: center;
}

.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 48px;
  color: #1a1a2e;
  line-height: 1.2;
}

.hero-content .bold {
  font-weight: 700;
}

.hero-content .highlight {
  color: #7b5cff;
  font-weight: 700;
}

.hero-content p {
  margin-top: 20px;
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
}

@media (max-width: 1000px) {
  .hero {
    width: 90%;
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }
}

/* ── Shared section header ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.grad-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Stats Bar ── */
.stats-bar {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .stat-num {
    font-size: 1.6rem;
  }
}

/* ── How It Works ── */
.how-section {
  padding: 72px 0;
  background: #f8fafc;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: white;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid #e8edf5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.13);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.4rem;
  margin: 6px 0 14px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .how-section {
    padding: 48px 0;
  }
}

/* ── Categories ── */
.categories-section {
  padding: 72px 0;
  background: white;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid #e8edf5;
  text-decoration: none;
  display: block;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.13);
  border-color: #c7d2fe;
  background: white;
}

.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.cat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.cat-card p {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .categories-grid {
    gap: 12px;
  }

  .categories-section {
    padding: 48px 0;
  }

  .cat-icon {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}

/* ── Seller CTA ── */
.seller-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.cta-box {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 24px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.35);
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  line-height: 1.25;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 520px;
}

.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 28px;
}

.cta-points span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.cta-btn-main {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: #667eea;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.cta-earn-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cta-earn-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  text-align: center;
}

.cta-earn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.cta-earn-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.cta-earn-gross {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.cta-earn-fee {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fca5a5;
}

.cta-earn-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 2px 0;
}

.cta-earn-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.25);
}

.cta-earn-total>span:first-child {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.cta-earn-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: #86efac;
  line-height: 1;
}

.cta-earn-badge {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 12px;
}

@media (max-width: 768px) {
  .cta-box {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 28px;
  }

  .cta-earn-card {
    min-width: unset;
  }

  .seller-cta {
    padding: 48px 0;
  }
}

/* ── Resources ── */
.resources-section {
  background: white;
  padding: 30px;
  min-height: 60vh;
  overflow-x: hidden;
}



.resources-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  background: white;
  color: #2563EB;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 1rem 0;
}

.resource-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #c7d2fe;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.resource-icon {
  width: 52px;
  height: 52px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.card-header h3 {
  margin-bottom: 0 !important;
}

.resource-type {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.resource-card h3 {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.resource-card p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
  flex-grow: 1;
}

.resource-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.btn-buy,
.buy-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-buy:hover,
.buy-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: none;
}

.btn-purchased {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: not-allowed;
  opacity: 0.8;
}

.about-section {
  background: #f8f9fa;
  padding: 4rem 0;
  text-align: center;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2563EB;
  font-weight: 700;
}

.about-section p {
  font-size: 1.2rem;
  color: #666;
}

/* ── Trust Strip ── */
.trust-section {
  padding: 56px 0;
  background: white;
  border-top: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border: 1px solid #e8edf5;
}

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 500px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust-section {
    padding: 40px 0;
  }
}

/* ── FAQ ── */
.faq-section {
  padding: 72px 0;
  background: #f8fafc;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item-home {
  background: white;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 22px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item-home:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.10);
  border-color: #c7d2fe;
  background: white;
}

.faq-q {
  font-size: 0.97rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-a {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-section {
    padding: 48px 0;
  }

  .faq-item-home {
    padding: 18px 20px;
  }
}

/* ── Footer ── */
footer {
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
  color: white;
  padding: 3rem 0 1rem;

}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col h3.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-logo-link {
  text-decoration: none;
  display: inline-block;
}

.footer-logo-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo-link:hover h3.footer-logo {
  opacity: 0.85;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #60a5fa;
  padding-left: 5px;
}

.footer-contact {
  color: #cbd5e1;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s;
  text-decoration: none;
  color: white;
  pointer-events: none;
  cursor: default;
}

.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icons a:hover .fa-facebook {
  color: #1877f2;
  background: white;
  border-radius: 50%;
  padding: 10px;
}

.social-icons a:hover .fa-instagram {
  color: #e4405f;
  background: white;
  border-radius: 50%;
  padding: 10px;
}

.social-icons a:hover .fa-whatsapp {
  color: #25d366;
  background: white;
  border-radius: 50%;
  padding: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-top: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .resource-card {
    padding: 2rem;
  }

  .resource-price {
    font-size: 2rem;
  }


}

@media (max-width: 480px) {
  .resource-card {
    padding: 1.5rem;
    /* min-height: 360px; */
  }

  .resource-icon {
    font-size: 3rem;
    height: 60px;
  }

  .resource-card h3 {
    font-size: 1.2rem;
  }

  .resource-price {
    font-size: 1.8rem;
  }

  .btn-buy,
  .buy-btn {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Loading animation for resources */
.resources-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  flex-direction: column;
  gap: 1rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #2563EB;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Shimmer Loading Effect */
.shimmer-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shimmer-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 10px;
}

.shimmer-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

.shimmer-title {
  flex: 1;
  height: 20px;
  border-radius: 4px;
}

.shimmer-desc {
  width: 100%;
  height: 14px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.shimmer-desc-short {
  width: 65%;
  margin-bottom: 10px;
}

.shimmer-price {
  width: 90px;
  height: 26px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.shimmer-type {
  width: 75px;
  height: 22px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.shimmer-button {
  width: 100%;
  height: 46px;
  border-radius: 12px;
}

.shimmer {
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmerMove 1.5s infinite;
}

@keyframes shimmerMove {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Empty state styling */
.no-resources {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.no-resources h3 {
  font-size: 2rem;
  color: #2563EB;
  margin-bottom: 1rem;
  font-weight: 700;
}

.no-resources p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Card entrance animation */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.resource-card {
  animation: cardFadeIn 0.6s ease forwards;
}

.resource-card:nth-child(1) {
  animation-delay: 0.1s;
}

.resource-card:nth-child(2) {
  animation-delay: 0.2s;
}

.resource-card:nth-child(3) {
  animation-delay: 0.3s;
}

.resource-card:nth-child(4) {
  animation-delay: 0.4s;
}

.resource-card:nth-child(5) {
  animation-delay: 0.5s;
}

.resource-card:nth-child(6) {
  animation-delay: 0.6s;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
}

.close:hover {
  color: #333;
}

.modal-content h2 {
  text-align: center;
  color: #2563EB;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.modal-content input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.modal-content input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-content button {
  width: 100%;
  padding: 0.8rem;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-content button:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.login-prompt {
  text-align: center;
  padding: 4rem 2rem;
}

.login-prompt h3 {
  font-size: 2rem;
  color: #2563EB;
  margin-bottom: 1rem;
  font-weight: 700;
}

.login-prompt p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  z-index: 1000;
  animation: dropdownFade 0.2s ease;
  min-width: 230px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  border: 1px solid #e8edf5;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.udh-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0;
}

.udh-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.udh-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.udh-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}

.udh-email {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-size: 0.875rem;
  font-weight: 500;
  background: white;
  border: none;
}

.user-dropdown a i {
  width: 16px;
  text-align: center;
  color: #667eea;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.user-dropdown a:hover {
  background: #f8faff;
  color: #667eea;
}

.udh-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 2px 0;
}

.udh-logout {
  color: #ef4444 !important;
}

.udh-logout i {
  color: #ef4444 !important;
}

.udh-logout:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.udh-logout:hover i {
  color: #dc2626 !important;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-info {
  color: #64748b;
  font-weight: 500;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-buttons button {
  padding: 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.pagination-buttons button:not(.active):not(:hover) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pagination-buttons button:hover:not(:disabled) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.pagination-buttons button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  /* border-color: #2563EB; */
}

.pagination-buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-buttons span {
  color: #94a3b8;
  padding: 0 0.5rem;
}

@media (max-width: 768px) {
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* Enhanced Mobile Responsive Styles */

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .navbar .container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .search-box {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .nav-links a {
    padding: 0.4rem 0.8rem;
  }

  .admin-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .user-menu-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
    /* margin: 0 1rem; */
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .cta-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn-secondary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cta-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Mobile Resources Section */
@media (max-width: 768px) {
  .resources-section {
    padding: 24px 16px;
  }

  .resources-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    padding: 0;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
  }

  .resource-card {
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .resources-section h2 {
    font-size: 1.8rem;
  }


}

/* Mobile Resource Cards */
@media (max-width: 768px) {
  .resource-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .resource-icon {
    font-size: 2.5rem;
    /* margin-bottom: 0.8rem; */
  }

  .resource-type {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
  }

  .resource-card h3 {
    font-size: 1.2rem;
    /* margin-bottom: 0.6rem; */
  }

  .resource-card p {
    font-size: 0.9rem;
    /* margin-bottom: 0.8rem; */
    line-height: 1.5;
  }

  .resource-price {
    font-size: 1.6rem;
    /* margin-bottom: 0.8rem; */
  }

  .btn-buy,
  .buy-btn {
    padding: 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .resource-card {
    padding: 1.2rem;
    margin: 0 0.3rem;
  }

  .resource-icon {
    font-size: 2.2rem;
  }

  .resource-card h3 {
    font-size: 1.1rem;
  }

  .resource-card p {
    font-size: 0.85rem;
  }

  .resource-price {
    font-size: 1.5rem;
  }

  .btn-buy,
  .buy-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* Mobile About Section */
@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0;
  }

  .about-section h2 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .about-section p {
    font-size: 1rem;
    padding: 0 1.5rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .about-section h2 {
    font-size: 1.8rem;
  }

  .about-section p {
    font-size: 0.95rem;
  }
}

/* Mobile Footer */
@media (max-width: 768px) {
  footer {
    padding: 2rem 0 1rem;
    margin-top: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col h3.footer-logo {
    font-size: 1.5rem;
  }

  .footer-logo-text {
    font-size: 1.5rem;
  }

  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .footer-desc,
  .footer-links a,
  .footer-contact {
    font-size: 0.9rem;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
  }

  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .footer-col h3.footer-logo {
    font-size: 1.3rem;
  }

  .footer-logo-text {
    font-size: 1.3rem;
  }

  .footer-col h4 {
    font-size: 1rem;
  }

  .footer-desc,
  .footer-links a,
  .footer-contact {
    font-size: 0.85rem;
  }
}

/* Mobile Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .modal-content input {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .modal-content button {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .close {
    font-size: 1.8rem;
    right: 1rem;
    top: 0.8rem;
  }
}

/* Mobile Loading States */
@media (max-width: 768px) {
  .resources-loading {
    min-height: 200px;
    padding: 2rem 1rem;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }

  .loading-text {
    font-size: 1rem;
  }

  .no-resources {
    padding: 3rem 1.5rem;
  }

  .no-resources h3 {
    font-size: 1.6rem;
  }

  .no-resources p {
    font-size: 1rem;
  }

  .login-prompt {
    padding: 3rem 1.5rem;
  }

  .login-prompt h3 {
    font-size: 1.6rem;
  }

  .login-prompt p {
    font-size: 1rem;
  }
}

/* Mobile Pagination */
@media (max-width: 768px) {
  .pagination {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin-top: 2rem;
  }

  .pagination-info {
    font-size: 0.9rem;
    text-align: center;
  }

  .pagination-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .pagination-buttons button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .pagination-buttons button {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
}

/* Mobile User Dropdown */
@media (max-width: 768px) {
  .user-dropdown {
    right: -10px;
  }
}

/* Mobile Shimmer Cards */
@media (max-width: 768px) {
  .shimmer-card {
    padding: 1.2rem;
    margin: 0 0.5rem;
  }

  .shimmer-icon {
    width: 38px;
    height: 38px;
  }

  .shimmer-title {
    height: 18px;
  }

  .shimmer-desc {
    height: 12px;
  }

  .shimmer-price {
    width: 70px;
    height: 22px;
  }

  .shimmer-type {
    width: 65px;
    height: 18px;
  }

  .shimmer-button {
    height: 42px;
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .resources-section {
    padding: 2rem 0;
  }

  .resources-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }


}

/* Touch-friendly improvements */
@media (max-width: 768px) {

  .filter-btn,
  .btn-buy,
  .buy-btn,
  .admin-btn,
  .user-menu-btn,
  .cta-btn-main,
  .mob-nav-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .resource-card {
    touch-action: manipulation;
  }

  /* Fix images overflowing on mobile */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Prevent any element from causing horizontal scroll — exclude fixed/absolute positioned elements */
  *:not(.mobile-sidebar):not(.mobile-sidebar-overlay):not(.mobile-sidebar *) {
    max-width: 100%;
  }
}

/* Prevent text selection on mobile */
@media (max-width: 768px) {

  .filter-btn,
  .btn-buy,
  .buy-btn,
  .resource-type {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Container padding for mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  body {
    -webkit-overflow-scrolling: touch;
  }
}


/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -105vw;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  height: 100dvh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: left 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.mobile-sidebar.active {
  left: 0;
}

.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white;
  flex-shrink: 0;
}

.mobile-sidebar-header h2 {
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.close-sidebar {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.close-sidebar:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-sidebar-content {
  /* padding: 20px 0; */
}

.mobile-sidebar-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 4vw, 1rem);
  transition: all 0.3s;
  border-left: 4px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-sidebar-content a:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border-left-color: #2563EB;
  color: #2563EB;
}

.mobile-sidebar-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 15px 20px;
}

.mobile-sidebar-btn {
  width: calc(100% - 40px);
  margin: 8px 20px;
  padding: 11px 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(0.9rem, 4vw, 1rem);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  box-sizing: border-box;
}

.mobile-sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.mobile-sidebar-btn:last-of-type {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mobile-sidebar-btn:last-of-type:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.mobile-user-section {
  padding: 15px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  margin: 10px 20px;
  border-radius: 12px;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #bae6fd;
}

.mobile-user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-user-name {
  font-weight: 700;
  color: #0c4a6e;
  font-size: 1rem;
}

.mobile-user-email {
  font-size: 0.85rem;
  color: #0369a1;
  margin-top: 2px;
}

.mobile-user-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #0c4a6e;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.mobile-user-section a:hover {
  color: #2563EB;
  padding-left: 5px;
}

/* Show mobile menu button on mobile */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none !important;
  }

  .navbar .container {
    flex-direction: column;
  }

  .nav-header {
    width: 100%;
  }

  .search-box {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 10px 0 0 0;
  }
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
  overflow: hidden;
}

/* Animation for hamburger menu */
.mobile-menu-btn.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}


/* Hide search box on mobile */
@media (max-width: 768px) {
  .search-box {
    display: none !important;
  }
}


/* Improved Mobile User Menu */
.mobile-user-section {
  padding: 0 !important;
  background: transparent !important;
  margin: 10px 0 !important;
  border-radius: 0 !important;
}

.mobile-user-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 15px 20px !important;
  margin: 0 20px 10px 20px !important;
  padding-bottom: 15px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border-radius: 12px !important;
}

.mobile-user-avatar {
  flex-shrink: 0 !important;
}

.mobile-user-name {
  margin-bottom: 2px !important;
}

.mobile-user-section a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 15px 20px !important;
  color: #334155 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: all 0.3s !important;
  border-left: 4px solid transparent !important;
}

.mobile-user-section a:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%) !important;
  border-left-color: #2563EB !important;
  color: #2563EB !important;
  padding-left: 20px !important;
}


/* Wrap long email in mobile user menu */
.mobile-user-email {
  white-space: normal !important;
  overflow: visible !important;
  word-break: break-all !important;
  line-height: 1.3 !important;
  max-width: 100% !important;
}


/* Hide hamburger menu on desktop */
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }

  .mobile-sidebar {
    display: none !important;
  }

  .mobile-sidebar-overlay {
    display: none !important;
  }
}


/* Ensure search box is visible on desktop */
@media (min-width: 769px) {
  .search-box {
    display: block !important;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
  }
}


/* Fix search box visibility on all screens */
.search-box {
  display: block;
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

/* Prevent horizontal overflow globally */
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  max-width: 100%;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Override mobile hide on desktop */
@media (min-width: 769px) {
  .search-box {
    display: block !important;
  }

  .nav-header {
    width: auto;
  }

  .navbar .container {
    flex-wrap: nowrap;
  }
}

/* ── Resources Lottie Loader ── */
.resources-loader {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 14px;
}

#lottieContainer {
  width: 160px;
  height: 160px;
}

.resources-loader-text {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Resource Skeleton Cards ── */
.skeleton-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk {
  background: #e8edf5;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  animation: skMove 1.6s ease-in-out infinite;
}

@keyframes skMove {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.sk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sk-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.sk-badge {
  width: 68px;
  height: 22px;
  border-radius: 999px;
}

.sk-title {
  height: 20px;
  width: 80%;
  border-radius: 6px;
}

.sk-desc1 {
  height: 13px;
  width: 100%;
  border-radius: 4px;
}

.sk-desc2 {
  height: 13px;
  width: 60%;
  border-radius: 4px;
}

.sk-price {
  height: 30px;
  width: 90px;
  border-radius: 8px;
}

.sk-btn {
  height: 40px;
  width: 100%;
  border-radius: 12px;
  margin-top: 4px;
}

/* ── Filter Tabs Redesign ── */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  flex-wrap: wrap;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 5px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.10);
  border: 1px solid #e2e8f0;
}

.filter-btn {
  padding: 9px 20px;
  border: none;
  box-shadow: none;
  background: transparent;
  color: #64748b;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
}

.filter-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.filter-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.08);
  transform: none;
  box-shadow: none;
}

.filter-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.30);
  transform: none;
}

@media (max-width: 640px) {
  .filter-tabs {
    width: 100%;
    border-radius: 50px;
    padding: 5px;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
    min-height: 40px;
  }

  .filter-btn img {
    width: 16px;
    height: 16px;
  }

  /* Pagination on very small screens */
  .pagination {
    padding: 10px 12px;
  }

  .pag-arrow,
  .pag-num {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}

/* ── Pagination Redesign ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding: 14px 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e8edf5;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
  flex-wrap: wrap;
}

.pag-info {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.pag-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pag-arrow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: white;
  color: #667eea;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.18s;
  font-family: inherit;
}

.pag-arrow:hover:not(:disabled) {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.25);
}

.pag-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pag-num {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: white;
  color: #475569;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s;
  font-family: inherit;
  padding: 0 6px;
}

.pag-num:hover {
  border-color: #667eea;
  color: #667eea;
}

.pag-num.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.25);
}

.pag-ellipsis {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 0 4px;
  line-height: 36px;
}

@media (max-width: 640px) {
  .pagination {
    justify-content: center;
    padding: 12px 14px;
    gap: 10px;
  }

  .pag-info {
    width: 100%;
    text-align: center;
  }

  .pag-arrow,
  .pag-num {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
    border-radius: 8px;
  }
}


/* ══════════════════════════════════════════
   DARK MODE — instant via html.dark-mode
   (fires before body.dark-mode on refresh)
   ══════════════════════════════════════════ */

/* Body & base */
html.dark-mode body,
body.dark-mode {
  background: #0d1117 !important;
  color: #e6edf3 !important;
  transition: none !important;
}

/* Navbar — instant, no flash */
html.dark-mode .navbar,
body.dark-mode .navbar {
  background: rgba(13, 17, 23, 0.98) !important;
  border-bottom: 1px solid #30363d !important;
  box-shadow: 0 1px 0 #30363d !important;
}

html.dark-mode .logo b,
body.dark-mode .logo b {
  color: #a78bfa !important;
}

html.dark-mode .nav-links a,
body.dark-mode .nav-links a {
  color: #c9d1d9 !important;
}

html.dark-mode .nav-links a.nav-active,
body.dark-mode .nav-links a.nav-active {
  background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

html.dark-mode .search-box input,
body.dark-mode .search-box input {
  background: #161b22 !important;
  border-color: #30363d !important;
  color: #e6edf3 !important;
  transition: none !important;
}

/* Mobile sidebar — dark mode */
html.dark-mode .mobile-sidebar,
body.dark-mode .mobile-sidebar {
  background: linear-gradient(180deg, #0d1117, #161b22) !important;
}

html.dark-mode .mobile-sidebar-header,
body.dark-mode .mobile-sidebar-header {
  background: linear-gradient(135deg, #1c2333, #161b22) !important;
  border-bottom: 1px solid #30363d !important;
}

html.dark-mode .mobile-sidebar-header h2,
body.dark-mode .mobile-sidebar-header h2 {
  color: #e6edf3 !important;
}

html.dark-mode .close-sidebar,
body.dark-mode .close-sidebar {
  color: #8b949e !important;
}

html.dark-mode .mobile-sidebar-content a,
body.dark-mode .mobile-sidebar-content a {
  color: #c9d1d9 !important;
  border-left-color: transparent !important;
}

html.dark-mode .mobile-sidebar-content a:hover,
body.dark-mode .mobile-sidebar-content a:hover {
  color: #a78bfa !important;
  background: rgba(124, 106, 247, 0.08) !important;
  border-left-color: #7c6af7 !important;
}

html.dark-mode .mobile-sidebar-divider,
body.dark-mode .mobile-sidebar-divider {
  background: #30363d !important;
}

html.dark-mode .mobile-user-info,
body.dark-mode .mobile-user-info {
  background: linear-gradient(135deg, #161b22, #1c2333) !important;
  border-color: #30363d !important;
}

html.dark-mode .mobile-user-name,
body.dark-mode .mobile-user-name {
  color: #e6edf3 !important;
}

html.dark-mode .mobile-user-email,
body.dark-mode .mobile-user-email {
  color: #8b949e !important;
}

html.dark-mode .mobile-user-section a,
body.dark-mode .mobile-user-section a {
  color: #c9d1d9 !important;
}

/* Sections */
html.dark-mode .how-section,
body.dark-mode .how-section {
  background: #0d1117 !important;
  transition: none !important;
}

html.dark-mode .categories-section,
body.dark-mode .categories-section {
  background: #0d1117 !important;
  transition: none !important;
}

html.dark-mode .seller-cta,
body.dark-mode .seller-cta {
  background: #0d1117 !important;
  transition: none !important;
}

html.dark-mode .resources-section,
body.dark-mode .resources-section {
  background: #0d1117 !important;
  transition: none !important;
}

html.dark-mode .trust-section,
body.dark-mode .trust-section {
  background: #0d1117 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .faq-section,
body.dark-mode .faq-section {
  background:#161b22 !important;
  transition: none !important;
}

html.dark-mode .blog-home-section,
body.dark-mode .blog-home-section {
  background: #0d1117 !important;
  transition: none !important;
}

/* Section headers */
html.dark-mode .section-header h2,
body.dark-mode .section-header h2 {
  color: #e6edf3 !important;
}

html.dark-mode .section-header p,
body.dark-mode .section-header p {
  color: #8b949e !important;
}

/* Step cards */
html.dark-mode .step-card,
body.dark-mode .step-card {
  background: #161b22 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .step-card h3,
body.dark-mode .step-card h3 {
  color: #e6edf3 !important;
}

html.dark-mode .step-card p,
body.dark-mode .step-card p {
  color: #8b949e !important;
}

/* Category cards */
html.dark-mode .cat-card,
body.dark-mode .cat-card {
  background: #161b22 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .cat-card h3,
body.dark-mode .cat-card h3 {
  color: #e6edf3 !important;
}

html.dark-mode .cat-card p,
body.dark-mode .cat-card p {
  color: #8b949e !important;
}

/* Filter tabs */
html.dark-mode .filter-tabs,
body.dark-mode .filter-tabs {
  background: #161b22 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .filter-btn,
body.dark-mode .filter-btn {
  color: #c9d1d9 !important;
}

html.dark-mode .filter-btn.active,
body.dark-mode .filter-btn.active {
  background: linear-gradient(135deg, #7c6af7, #5b4fcf) !important;
  color: #fff !important;
}

/* Resource cards — instant bg + border */
html.dark-mode .skeleton-card,
body.dark-mode .skeleton-card {
  background: #161b22 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .resource-card,
body.dark-mode .resource-card {
  background: #161b22 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .resource-card h3,
body.dark-mode .resource-card h3 {
  color: #e6edf3 !important;
}

html.dark-mode .resource-card p,
body.dark-mode .resource-card p {
  color: #8b949e !important;
}

html.dark-mode .resource-price,
body.dark-mode .resource-price {
  color: #3fb950 !important;
}

html.dark-mode .resource-icon,
body.dark-mode .resource-icon {
  background: #1c2333 !important;
  border-color: #30363d !important;
}

/* Skeleton shimmer — dark-correct, no transition */
html.dark-mode .sk,
body.dark-mode .sk {
  background: #1c2333 !important;
  transition: none !important;
}

html.dark-mode .sk::after,
body.dark-mode .sk::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent) !important;
  transition: none !important;
}

/* Pagination */
html.dark-mode .pagination,
body.dark-mode .pagination {
  background: #161b22 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .pag-arrow,
html.dark-mode .pag-num,
body.dark-mode .pag-arrow,
body.dark-mode .pag-num {
  background: #1c2333 !important;
  border-color: #30363d !important;
  color: #a78bfa !important;
  transition: none !important;
}

html.dark-mode .pag-num.active,
body.dark-mode .pag-num.active {
  background: linear-gradient(135deg, #7c6af7, #5b4fcf) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* Trust section */
html.dark-mode .trust-icon,
body.dark-mode .trust-icon {
  background: #161b22 !important;
  border-color: #30363d !important;
}

html.dark-mode .trust-item h4,
body.dark-mode .trust-item h4 {
  color: #e6edf3 !important;
}

html.dark-mode .trust-item p,
body.dark-mode .trust-item p {
  color: #8b949e !important;
}

/* FAQ */
html.dark-mode .faq-item-home,
body.dark-mode .faq-item-home {
  background: #161b22 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .faq-q,
body.dark-mode .faq-q {
  color: #c9d1d9 !important;
}

html.dark-mode .faq-a,
body.dark-mode .faq-a {
  color: #8b949e !important;
}

/* Blog cards */
html.dark-mode .blog-card,
body.dark-mode .blog-card {
  background: #161b22 !important;
  border-color: #30363d !important;
  transition: none !important;
}

html.dark-mode .blog-card-title,
body.dark-mode .blog-card-title {
  color: #e6edf3 !important;
}

html.dark-mode .blog-card-excerpt,
body.dark-mode .blog-card-excerpt {
  color: #8b949e !important;
}

html.dark-mode .blog-shimmer-img,
html.dark-mode .blog-shimmer-line,
body.dark-mode .blog-shimmer-img,
body.dark-mode .blog-shimmer-line {
  background: linear-gradient(90deg, #161b22 25%, #1c2333 50%, #161b22 75%) !important;
  background-size: 400% 100% !important;
  transition: none !important;
}

/* User dropdown */
html.dark-mode .user-dropdown,
body.dark-mode .user-dropdown {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
  transition: none !important;
}

html.dark-mode .user-dropdown a,
body.dark-mode .user-dropdown a {
  background: #161b22 !important;
  color: #c9d1d9 !important;
}

html.dark-mode .user-dropdown a:hover,
body.dark-mode .user-dropdown a:hover {
  background: #1c2333 !important;
  color: #a78bfa !important;
}

/* Footer */
html.dark-mode footer,
body.dark-mode footer {
  background: linear-gradient(135deg, #010409, #0d1117) !important;
  border-top: 1px solid #30363d !important;
  transition: none !important;
}

/* ── mob-nav dark mode — instant via html.dark-mode ── */
html.dark-mode .mob-nav,
body.dark-mode .mob-nav {
  background: #0d1117 !important;
  border-top: 1px solid #30363d !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
  transition: background 0s, border-color 0s, box-shadow 0s !important;
  transform: translate3d(0, 0, 0) !important;
  will-change: transform !important;
}

html.dark-mode .mob-nav-item,
body.dark-mode .mob-nav-item {
  color: #8b949e !important;
  transition: none !important;
}

html.dark-mode .mob-nav-item svg,
body.dark-mode .mob-nav-item svg {
  stroke: #8b949e !important;
  transition: none !important;
}

html.dark-mode .mob-nav-item.active,
html.dark-mode .mob-nav-item:hover,
body.dark-mode .mob-nav-item.active,
body.dark-mode .mob-nav-item:hover {
  color: #a78bfa !important;
}

html.dark-mode .mob-nav-item.active svg,
html.dark-mode .mob-nav-item:hover svg,
body.dark-mode .mob-nav-item.active svg,
body.dark-mode .mob-nav-item:hover svg {
  stroke: #a78bfa !important;
}

html.dark-mode .mob-nav-item.active::after,
body.dark-mode .mob-nav-item.active::after {
  background: #a78bfa !important;
}


/* ── Search input dark mode overrides (highest specificity) ── */
html.dark-mode .search-box input,
body.dark-mode .search-box input {
  background: #1c2333 !important;
  border-color: #30363d !important;
  color: #e6edf3 !important;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
}

html.dark-mode .search-box input::placeholder,
body.dark-mode .search-box input::placeholder {
  color: #484f58 !important;
}

html.dark-mode .search-box input:focus,
body.dark-mode .search-box input:focus {
  border-color: #7c6af7 !important;
  box-shadow: 0 0 0 3px rgba(124, 106, 247, 0.15) !important;
  background: #21293d !important;
}

/* ── No-results empty state ── */
.no-results-state {
  text-align: center;
  padding: 56px 20px;
}

.no-results-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102,126,234,0.13), rgba(118,75,162,0.13));
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-results-icon img {
  filter: invert(0%) brightness(0.4);
}

.no-results-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.no-results-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* dark mode */
html.dark-mode .no-results-icon,
body.dark-mode .no-results-icon {
  background: linear-gradient(135deg, rgba(124,106,247,0.18), rgba(118,75,162,0.18)) !important;
}

html.dark-mode .no-results-icon img,
body.dark-mode .no-results-icon img {
  filter: invert(1) brightness(1.8) !important;
}

html.dark-mode .no-results-title,
body.dark-mode .no-results-title {
  color: #e6edf3 !important;
}

/* ── Empty Resources State Redesign ── */
.empty-resources-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 32px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.05);
  max-width: 580px;
  margin: 30px auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: emptyFadeIn 0.6s ease-out;
}

@keyframes emptyFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-resources-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
}

.empty-resources-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 32px;
  border: 1px dashed rgba(102, 126, 234, 0.2);
  animation: emptyRotate 20s linear infinite;
}

@keyframes emptyRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.empty-resources-icon-wrapper svg {
  width: 44px;
  height: 44px;
  stroke: currentColor;
  filter: drop-shadow(0 4px 6px rgba(102, 126, 234, 0.15));
  transition: transform 0.3s ease;
}

.empty-resources-state:hover .empty-resources-icon-wrapper svg {
  transform: scale(1.1) rotate(5deg);
}

.empty-resources-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.empty-resources-sub {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 420px;
  margin: 0;
  line-height: 1.6;
}

.empty-resources-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  margin-top: 8px;
}

.empty-resources-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.empty-resources-btn:active {
  transform: translateY(1px);
}

.empty-resources-btn svg {
  transition: transform 0.3s ease;
}

.empty-resources-btn:hover svg {
  transform: rotate(180deg);
}

/* ── Empty Blog State Redesign ── */
.empty-blog-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 28px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.04);
  max-width: 540px;
  margin: 20px auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: emptyFadeIn 0.6s ease-out;
}

.empty-blog-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(236, 72, 153, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  margin-bottom: 6px;
  position: relative;
}

.empty-blog-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 28px;
  border: 1px dashed rgba(236, 72, 153, 0.2);
  animation: emptyRotate 20s linear infinite;
}

.empty-blog-icon-wrapper svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  filter: drop-shadow(0 4px 6px rgba(236, 72, 153, 0.15));
  transition: transform 0.3s ease;
}

.empty-blog-state:hover .empty-blog-icon-wrapper svg {
  transform: scale(1.1) rotate(5deg);
}

.empty-blog-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.empty-blog-sub {
  font-size: 0.92rem;
  color: #64748b;
  max-width: 380px;
  margin: 0;
  line-height: 1.5;
}
