/* Downloads page integrated with existing site sidebar/header.
   This CSS is namespaced, so your left sidebar design stays untouched. */

.main-wrapper .download-hub {
  --hub-bg: #070b18;
  --hub-panel: rgba(255, 255, 255, .08);
  --hub-panel-strong: rgba(255, 255, 255, .12);
  --hub-border: rgba(255, 255, 255, .14);
  --hub-text: #f8fafc;
  --hub-muted: #a7b0c2;
  --hub-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--hub-text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, .35), transparent 30%),
    radial-gradient(circle at top right, rgba(6, 182, 212, .22), transparent 30%),
    linear-gradient(135deg, #070b18 0%, #10142a 45%, #080a14 100%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

.main-wrapper .download-hub * { box-sizing: border-box; }

.main-wrapper .hub-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.main-wrapper .download-page,
.main-wrapper .download-hub .toast {
  position: relative;
  z-index: 1;
}

.main-wrapper .hub-orb { position: absolute; border-radius: 999px; filter: blur(8px); opacity: .72; }
.main-wrapper .hub-orb-a { width: 280px; height: 280px; left: 7%; top: 6%; background: rgba(124, 58, 237, .18); animation: hubFloaty 8s ease-in-out infinite; }
.main-wrapper .hub-orb-b { width: 230px; height: 230px; right: 6%; bottom: 9%; background: rgba(249, 115, 22, .14); animation: hubFloaty 10s ease-in-out infinite reverse; }
.main-wrapper .hub-sparkle { position: absolute; color: rgba(255,255,255,.5); font-size: 28px; animation: hubBlink 2.5s ease-in-out infinite; }
.main-wrapper .hub-s1 { left: 42%; top: 8%; }
.main-wrapper .hub-s2 { right: 18%; top: 32%; animation-delay: .8s; }
.main-wrapper .hub-s3 { left: 25%; bottom: 18%; animation-delay: 1.4s; }

@keyframes hubFloaty { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.05); } }
@keyframes hubBlink { 0%,100% { opacity: .2; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }

.main-wrapper .download-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 38px 28px 56px;
}

.main-wrapper .hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 24px;
  border: 1px solid var(--hub-border);
  border-radius: 32px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: var(--hub-shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.main-wrapper .hero-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, .25), transparent 28%),
    radial-gradient(circle at 80% 5%, rgba(6, 182, 212, .20), transparent 25%);
  z-index: -1;
}

.main-wrapper .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.main-wrapper .hero-copy h1 {
  
  font-family: 'Baloo Da 2', sans-serif;
  margin: 0;
  font-size: clamp(32px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -2.8px;
  font-weight: 900;
  color: #fff;
}

.main-wrapper .hero-copy p {
  margin: 18px 0 0;
  max-width: 640px;
  color: var(--hub-muted);
  line-height: 1.75;
  font-size: 16px;
}

.main-wrapper .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.main-wrapper .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: .22s ease;
}

.main-wrapper .hero-btn.primary {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow: 0 18px 40px rgba(124, 58, 237, .28);
}

.main-wrapper .hero-btn.ghost {
  background: rgba(255,255,255,.07);
}

.main-wrapper .hero-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.main-wrapper .hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: center;
}

.main-wrapper .stat-card,
.main-wrapper .mascot-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  padding: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.main-wrapper .stat-card strong {
  display: block;
  font-size: 42px;
  color: #fff;
  line-height: 1;
}

.main-wrapper .stat-card span,
.main-wrapper .mascot-card small {
  display: block;
  color: var(--hub-muted);
  margin-top: 7px;
}

.main-wrapper .tilt-one { transform: rotate(-2deg); }
.main-wrapper .tilt-two { transform: rotate(2deg); }
.main-wrapper .mascot { font-size: 48px; margin-bottom: 8px; }
.main-wrapper .mascot-card b { display: block; color: #fff; font-size: 17px; }

.main-wrapper .control-panel {
  margin: 24px 0;
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: center;
}

.main-wrapper .search-wrap {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--hub-border);
  backdrop-filter: blur(12px);
}

.main-wrapper .search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.main-wrapper .search-wrap input::placeholder { color: rgba(255,255,255,.48); }

.main-wrapper .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.main-wrapper .filter-tab {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.07);
  color: #dbeafe;
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  transition: .2s ease;
}

.main-wrapper .filter-tab.active,
.main-wrapper .filter-tab:hover {
  background: #fff;
  color: #111827;
  transform: translateY(-1px);
}

.main-wrapper .tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.main-wrapper .tool-card {
  position: relative;
  min-width: 0;
  border-radius: 26px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
  box-shadow: 0 18px 55px rgba(0,0,0,.20);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.main-wrapper .tool-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,.65));
}

.main-wrapper .tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.055));
}

.main-wrapper .tool-top,
.main-wrapper .tool-info-row,
.main-wrapper .tool-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.main-wrapper .tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  border: 1px solid rgba(255,255,255,.13);
  font-size: 27px;
}

.main-wrapper .tool-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-wrapper .tool-badge,
.main-wrapper .tool-category {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
}

.main-wrapper .tool-badge {
  background: color-mix(in srgb, var(--accent) 45%, rgba(255,255,255,.08));
}

.main-wrapper .tool-card h2 {
  margin: 18px 0 6px;
  font-size: 22px;
  color: #fff;
  letter-spacing: -.5px;
}

.main-wrapper .tool-subtitle {
  color: #e0e7ff;
  font-weight: 800;
  margin: 0 0 8px;
}

.main-wrapper .tool-desc {
  color: var(--hub-muted);
  line-height: 1.65;
  min-height: 78px;
  margin: 0 0 18px;
}

.main-wrapper .tool-info-row {
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #cbd5e1;
  font-size: 13px;
}

.main-wrapper .download-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #111827);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  border: 0;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: .22s ease;
}

.main-wrapper .download-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.main-wrapper .download-btn.disabled {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
  box-shadow: none;
  cursor: not-allowed;
}

.main-wrapper .empty-state {
  margin: 28px auto 0;
  max-width: 460px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  border-radius: 28px;
  padding: 32px;
}

.main-wrapper .empty-state div { font-size: 48px; }
.main-wrapper .empty-state h3 { color: #fff; margin: 10px 0 6px; }
.main-wrapper .empty-state p { color: var(--hub-muted); margin: 0; }

.main-wrapper .toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 900;
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
  transition: .22s ease;
}

.main-wrapper .toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .main-wrapper .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-wrapper .hero-card { grid-template-columns: 1fr; }
  .main-wrapper .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .main-wrapper .tilt-one,
  .main-wrapper .tilt-two { transform: none; }
}

@media (max-width: 767px) {
  .main-wrapper .download-page { padding: 22px 14px 36px; }
  .main-wrapper .hero-card { padding: 22px; border-radius: 24px; }
  .main-wrapper .hero-copy h1 { letter-spacing: -1.6px; }
  .main-wrapper .hero-stats,
  .main-wrapper .control-panel,
  .main-wrapper .tools-grid { grid-template-columns: 1fr; }
  .main-wrapper .filter-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .main-wrapper .filter-tab { flex: 0 0 auto; }
  .main-wrapper .tool-desc { min-height: 0; }
}
/* Downloads page only: sidebar premium theme */
body.downloads-theme-page .header {
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.28), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.22), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #111827 50%, #020617 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 18px 0 50px rgba(2, 6, 23, 0.28);
}

body.downloads-theme-page .header .blog-name a {
  color: #ffffff !important;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.downloads-theme-page .header .profile-image {
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12), 0 18px 45px rgba(0, 0, 0, 0.28);
}

body.downloads-theme-page .header .bio {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.downloads-theme-page .header hr {
  border-color: rgba(255, 255, 255, 0.10) !important;
}

body.downloads-theme-page .header .social-list a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  transition: 0.2s ease;
}

body.downloads-theme-page .header .social-list a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.32);
}

body.downloads-theme-page .header .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 14px;
  margin: 3px 12px;
  padding: 10px 14px;
  transition: 0.2s ease;
}

body.downloads-theme-page .header .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

body.downloads-theme-page .header .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(14, 165, 233, 0.85)) !important;
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.22);
}

body.downloads-theme-page .header .btn-primary {
  background: linear-gradient(135deg, #7c3aed, #06b6d4) !important;
  border: 0 !important;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 16px 35px rgba(124, 58, 237, 0.28);
}

body.downloads-theme-page .header .dark-mode-toggle,
body.downloads-theme-page .header .toggle-name {
  color: rgba(255, 255, 255, 0.78) !important;
}

body.downloads-theme-page .main-wrapper {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.10), transparent 34%),
    #f7f8ff;
}

/* Downloads page footer theme */
body.downloads-theme-page .main-wrapper {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 34%),
    #020617 !important;
}

body.downloads-theme-page .footer {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 -18px 45px rgba(2, 6, 23, 0.22);
}

body.downloads-theme-page .footer .copyright {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.downloads-theme-page .footer a {
  color: #93c5fd !important;
  font-weight: 700;
  text-decoration: none;
}

body.downloads-theme-page .footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.tool-plan {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.12);
}

.plan-free {
  background: rgba(34, 197, 94, .14);
  color: #86efac;
  border-color: rgba(34, 197, 94, .35);
}

.plan-freemium {
  background: rgba(14, 165, 233, .14);
  color: #7dd3fc;
  border-color: rgba(14, 165, 233, .35);
}

.plan-premium {
  background: rgba(245, 158, 11, .16);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, .40);
}

.tool-price-row {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.tool-price-row.plan-free {
  color: #86efac;
}

.tool-price-row.plan-freemium {
  color: #7dd3fc;
}

.tool-price-row.plan-premium {
  color: #fcd34d;
}