/**
 * PDF Studio Download Portal: Consolidated Stylesheet
 * File: public_html/assets/css/downloads.css
 * Features: Static Multi-Color Card Glow, 1320px Canvas, Responsive Ads & 3-Button Grid
 */

/* =========================================================================
   1. DESIGN TOKENS & OVERFLOW SHIELDS
   ========================================================================= */
:root {
  --dl-neon-green: #00ff87;
  --dl-neon-cyan: #00d2ff;
  --dl-neon-pink: #ff007a;
  --dl-neon-purple: #8b5cf6;
  --dl-neon-amber: #f59e0b;
  --dl-dark-bg: #0f172a;
  --dl-border: #e2e8f0;
  --dl-border-dark: #cbd5e1;
  --dl-text-primary: #0f172a;
  --dl-text-muted: #64748b;
  --dl-card-bg: #ffffff;
}

/* Allow native position: sticky to work properly */
.dl-single-wrapper,
.dl-catalog-wrapper,
.dl-single-page-wrapper,
.dl-catalog-page-wrapper {
  width: 100%;
  overflow: visible !important;
  box-sizing: border-box;
}

/* 1320px Main Canvas */
.st-main-container {
  width: 100%;
  max-width: 1320px !important;
  margin: 0 auto;
  padding: 14px 18px 40px;
  box-sizing: border-box;
}

/* =========================================================================
   2. STATIC MULTI-COLOR CARD GLOW (NO ANIMATION LOOPS)
   ========================================================================= */
.st-card-glow-wrap {
  position: relative;
  border-radius: 16px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.45), rgba(0, 210, 255, 0.35), rgba(139, 92, 246, 0.3), rgba(255, 0, 122, 0.3));
  box-shadow: 0 4px 20px rgba(0, 255, 135, 0.08);
  box-sizing: border-box;
}

.st-card {
  background: var(--dl-card-bg);
  border-radius: 15px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* =========================================================================
   3. DEVICE-LEVEL AD DISPLAY / HIDE RULES
   ========================================================================= */
.dl-clean-ad-strip {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 10px auto 20px;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .ad-desktop-only {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
@media (min-width: 769px) {
  .ad-mobile-only {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

/* =========================================================================
   4. STICKY CATEGORY DROPDOWN & BUTTONS STRIP
   ========================================================================= */
.dl-cat-nav-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--dl-border);
  padding: 6px 0;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  width: 100%;
  box-sizing: border-box;
  transition: padding 0.15s ease, box-shadow 0.15s ease;
}

.dl-sticky-cat-strip .container {
  max-width: 1320px !important;
}

.dl-cat-buttons-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 8px;
  width: 100%;
  padding: 2px 0;
}

.dl-cat-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--dl-border-dark);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.dl-cat-nav-btn .btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent, var(--dl-neon-green));
  flex-shrink: 0;
}

.dl-cat-nav-btn .btn-qty {
  font-size: 10px;
  font-weight: 800;
  background: #f1f5f9;
  color: var(--dl-text-muted);
  padding: 1px 5px;
  border-radius: 9999px;
  margin-left: 2px;
}

.dl-cat-nav-btn:hover {
  border-color: var(--c-accent, var(--dl-neon-green));
  color: var(--dl-text-primary);
  transform: translateY(-1px);
}

.dl-cat-nav-btn.active {
  background: var(--dl-dark-bg) !important;
  border-color: var(--c-accent, var(--dl-neon-green)) !important;
  color: #ffffff !important;
}

.dl-cat-nav-btn.active .btn-qty {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Sticky Mode (When Scrolled Down) */
.dl-sticky-dropdown-box {
  display: none;
  position: relative;
  width: 100%;
}

.dl-sticky-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--dl-border-dark);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  font-family: inherit;
  box-sizing: border-box;
}

.dl-sticky-dropdown-btn:hover {
  border-color: var(--dl-neon-green);
}

.dl-sticky-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dl-sticky-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dl-neon-green);
  box-shadow: 0 0 6px var(--dl-neon-green);
  flex-shrink: 0;
}

.dl-sticky-label { font-size: 12px; font-weight: 600; color: var(--dl-text-muted); }
.dl-sticky-name { font-size: 12.5px; font-weight: 800; color: var(--dl-text-primary); }
.dl-sticky-count-pill { font-size: 10px; font-weight: 700; background: var(--dl-dark-bg); color: #ffffff; padding: 1px 6px; border-radius: 9999px; }

.dl-sticky-chevron {
  color: var(--dl-text-muted);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.dl-sticky-dropdown-btn[aria-expanded="true"] .dl-sticky-chevron {
  transform: rotate(180deg);
}

.dl-sticky-drawer-panel {
  display: none !important;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--dl-border-dark);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  box-sizing: border-box;
}

.dl-sticky-drawer-panel.is-open {
  display: block !important;
}

.dl-sticky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px;
}

.dl-cat-nav-wrapper.is-sticky {
  padding: 4px 0 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.dl-cat-nav-wrapper.is-sticky .dl-cat-buttons-strip { display: none !important; }
.dl-cat-nav-wrapper.is-sticky .dl-sticky-dropdown-box { display: block !important; }

/* =========================================================================
   5. CATALOG GRID & CARD PRESENTATION (INDEX PAGE)
   ========================================================================= */
.dl-grid-featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.dl-featured-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--dl-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dl-featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--dl-neon-green);
  box-shadow: 0 8px 24px rgba(0, 255, 135, 0.14);
}

.dl-card-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dl-card-visual {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: var(--dl-dark-bg);
}

.dl-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.dl-featured-card:hover .dl-card-img {
  transform: scale(1.06) rotate(-0.5deg);
  opacity: 0.96;
}

.dl-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.dl-qty-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.dl-qty-tag.prem-pill-tag { background: var(--dl-neon-purple); color: #ffffff; }
.dl-qty-tag.download-cyan-tag { background: var(--dl-dark-bg); color: var(--dl-neon-cyan); border: 1px solid var(--dl-neon-cyan); }

.dl-card-details {
  padding: 14px 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dl-card-title {
  font-size: 14px;
  font-weight: 750;
  margin: 0 0 4px;
  line-height: 1.35;
  color: var(--dl-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dl-card-author {
  font-size: 11.5px;
  color: var(--dl-text-muted);
  margin-bottom: 12px;
  display: block;
}

.dl-card-actions-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--dl-border);
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.dl-card-license { font-size: 11px; font-weight: 800; color: #047857; }
.dl-card-license.color-premium { color: var(--dl-neon-purple); }

.dl-card-btn-cluster { display: flex; align-items: center; gap: 6px; }

.dl-btn-preview {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  background: #ffffff;
  color: var(--dl-text-primary);
  border: 1px solid var(--dl-border-dark);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dl-btn-preview:hover { background: var(--dl-dark-bg); color: #ffffff; border-color: var(--dl-dark-bg); }

.dl-btn-dl-icon {
  width: 28px;
  height: 28px;
  background: var(--dl-dark-bg);
  color: var(--dl-neon-green);
  border: 1px solid var(--dl-neon-green);
  border-radius: 4px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dl-btn-dl-icon:hover { background: var(--dl-neon-green); color: var(--dl-dark-bg); box-shadow: 0 0 8px var(--dl-neon-green); }

/* FileHippo Compact Rows */
.dl-compact-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}

.dl-app-row-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid var(--dl-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  overflow: hidden;
}

.dl-app-row-box:hover {
  border-color: var(--dl-neon-green);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dl-app-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dl-row-icon-img { width: 100%; height: 100%; object-fit: cover; }
.dl-app-text-meta { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.dl-app-name { font-size: 13px; font-weight: 750; color: var(--dl-text-primary); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-app-desc { font-size: 11px; color: var(--dl-text-muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* =========================================================================
   6. SINGLE RESOURCE DETAIL PAGE (LAYOUT & 3 BUTTONS)
   ========================================================================= */
.dl-breadcrumbs-bar {
  margin: 0 0 14px 0;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dl-breadcrumbs-bar a { color: #475569; text-decoration: none; }
.dl-breadcrumbs-bar a:hover { color: #007953; }
.dl-sep { color: #cbd5e1; }
.dl-crumb-current { color: var(--dl-text-primary); font-weight: 600; }

.st-grid-layout.dl-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.dl-main-col-reset { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
.dl-sidebar-col-reset { width: 320px !important; margin: 0 !important; padding: 0 !important; }

.dl-single-main-card { padding: 22px; }

.dl-resource-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dl-border);
  margin-bottom: 16px;
}

.dl-header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--dl-dark-bg);
  color: var(--dl-neon-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dl-header-icon-img { width: 100%; height: 100%; object-fit: cover; }
.dl-header-info { flex: 1; min-width: 0; }
.dl-header-h1 { font-size: 20px; font-weight: 850; color: var(--dl-text-primary); margin: 0 0 4px; line-height: 1.3; }
.dl-header-badges-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.dl-pill-cat { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.dl-pill-pricing { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.dl-pill-pricing.prem { color: #6d28d9; background: #faf5ff; border: 1.5px solid #c4b5fd; }
.dl-pill-pricing.free { color: #15803d; background: #f0fdf4; border: 1.5px solid #86efac; }
.dl-meta-stat { font-size: 11px; color: var(--dl-text-muted); display: inline-flex; align-items: center; gap: 3px; }

/* Media Canvas */
.dl-media-canvas-wrap {
  background: var(--dl-dark-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1.5px solid #1e293b;
  position: relative;
}

.dl-media-nav {
  display: flex;
  align-items: center;
  background: #090d16;
  border-bottom: 1px solid #1e293b;
  padding: 4px 8px;
}

.dl-media-tab-group { display: flex; align-items: center; gap: 6px; }

.dl-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.dl-tab-btn:hover { color: #ffffff; }
.dl-tab-btn.active { background: #1e293b; color: var(--dl-neon-green); }

.dl-media-pane { display: none; position: relative; width: 100%; }
.dl-media-pane.active { display: block; }

.dl-video-aspect { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
.dl-video-aspect iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.dl-carousel-container { position: relative; width: 100%; height: 340px; background: var(--dl-dark-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dl-carousel-track { width: 100%; height: 100%; position: relative; }
.dl-carousel-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; display: flex; align-items: center; justify-content: center; }
.dl-carousel-slide.active { opacity: 1; visibility: visible; }
.dl-carousel-slide img { width: 100%; height: 100%; object-fit: contain; }

.dl-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
}
.dl-prev { left: 8px; }
.dl-next { right: 8px; }

.dl-carousel-bottom-bar { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; align-items: center; padding: 0 14px; z-index: 10; pointer-events: none; }
.dl-count-badge { background: rgba(15,23,42,0.9); color: var(--dl-neon-green); border: 1px solid rgba(0,255,135,0.3); padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }

.dl-media-corner-action { position: absolute; bottom: 10px; right: 10px; z-index: 20; }
.dl-corner-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--dl-neon-green); color: #0f172a; font-size: 12px; font-weight: 800; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 255, 135, 0.4); transition: all 0.15s ease; }
.dl-corner-btn:hover { background: #00e577; transform: translateY(-2px); }

.dl-overview-callout { background: #f8fafc; border-left: 3.5px solid var(--dl-neon-green); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13.5px; color: #334155; }
.dl-article-content-body { font-size: 14.5px; line-height: 1.68; color: #334155; }

/* Premium Panel */
.dl-premium-panel { background: #faf5ff; border: 2px solid var(--dl-neon-purple); border-radius: 12px; padding: 24px 18px; margin: 22px 0 16px; text-align: center; width: 100% !important; box-sizing: border-box !important; }
.dl-prem-diamond { width: 48px; height: 48px; border-radius: 50%; background: #ede9fe; color: #7c3aed; display: grid; place-items: center; margin: 0 auto 10px; font-size: 22px; }
.dl-prem-title { font-size: 17px; font-weight: 850; color: #0f172a; margin: 0 0 6px; }
.dl-prem-desc { font-size: 13px; color: var(--dl-text-muted); max-width: 540px; margin: 0 auto 16px; line-height: 1.5; }
.dl-prem-btns-wrap { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dl-btn-contact-buy { background: #ea580c !important; border-color: #ea580c !important; padding: 12px 26px !important; font-size: 13.5px !important; font-weight: 800 !important; border-radius: 999px !important; text-decoration: none !important; color: #ffffff !important; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35) !important; }
.dl-btn-demo { padding: 11px 18px !important; font-size: 13px !important; font-weight: 700 !important; border-radius: 999px !important; text-decoration: none !important; }
.dl-prem-footer-note { margin-top: 12px; font-size: 11px; color: var(--dl-neon-purple); font-weight: 700; }

/* Free Download Panel (3 Buttons) */
.dl-download-panel { background: #f8fafc; border: 1.5px solid var(--dl-border); border-radius: 12px; padding: 14px; margin: 18px 0 14px; width: 100% !important; box-sizing: border-box !important; }
.dl-dl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.dl-dl-title { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; color: #0f172a; margin: 0; }
.dl-shuffle-note { font-size: 10.5px; color: #059669; background: #ecfdf5; padding: 2px 7px; border-radius: 999px; border: 1px solid #a7f3d0; font-weight: 600; }

.dl-three-buttons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.dl-btn-item { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 700; color: #ffffff !important; text-align: center; transition: all 0.15s ease; min-width: 0 !important; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
.dl-btn-item:hover { transform: translateY(-2px); filter: brightness(1.08); }
.dl-btn-color-1 { background: #007953; }
.dl-btn-color-2 { background: #0284c7; }
.dl-btn-color-3 { background: #7c3aed; }

.dl-trust-badges { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; font-size: 10.5px; color: var(--dl-text-muted); flex-wrap: wrap; }

/* Sidebar */
.dl-widget-head { font-size: 13px; font-weight: 800; color: #0f172a; padding-bottom: 6px; margin: 0 0 8px; border-bottom: 1.5px solid var(--dl-border); display: flex; align-items: center; gap: 6px; }
.dl-widget-list { display: flex; flex-direction: column; gap: 6px; }
.dl-side-row { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 6px; text-decoration: none; transition: background 0.15s; }
.dl-side-row:hover { background: #f1f5f9; }
.dl-side-icon { width: 34px; height: 34px; border-radius: 6px; background: #e0f2fe; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.dl-side-icon img { width: 100%; height: 100%; object-fit: cover; }
.dl-side-text { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.dl-side-title { font-size: 12px; font-weight: 750; color: #0f172a; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-side-stat { font-size: 10.5px; color: #0284c7; font-weight: 700; margin-top: 1px; }
.dl-side-date { font-size: 10.5px; color: var(--dl-text-muted); margin-top: 1px; }

.dl-safety-card { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px; display: flex; gap: 8px; align-items: flex-start; width: 100%; box-sizing: border-box; }
.dl-safety-card p { font-size: 11px; color: #166534; line-height: 1.35; margin: 0; }

/* =========================================================================
   7. CATEGORY DIRECTORY GRID (SOFTONIC-STYLE HUB AT BOTTOM)
   ========================================================================= */
.dl-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.dl-hub-box {
  background: #ffffff;
  border: 1.5px solid var(--dl-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.dl-hub-box:hover {
  border-color: var(--box-accent, var(--dl-neon-green));
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.dl-hub-box-header { padding: 11px 14px; }
.dl-hub-header-icon { font-size: 14px; flex-shrink: 0; }
.dl-hub-header-title { font-size: 13.5px; font-weight: 850; line-height: 1.25; }
.dl-hub-items-list { display: flex; flex-direction: column; flex: 1; }

.dl-hub-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #0f172a;
  transition: background 0.15s ease;
}

.dl-hub-row-item:last-child { border-bottom: none; }
.dl-hub-row-item:hover { background: #f8fafc; }

.dl-hub-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dl-hub-item-icon img { width: 100%; height: 100%; object-fit: cover; }

.dl-hub-item-name {
  font-size: 12.5px;
  font-weight: 750;
  color: #1e293b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-hub-row-item:hover .dl-hub-item-name { color: var(--box-accent, #007953); }

.dl-hub-box-footer {
  padding: 8px 14px;
  text-align: right;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.dl-hub-see-all {
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s ease;
}

.dl-hub-see-all:hover { opacity: 0.8; text-decoration: underline; }

/* =========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 992px) {
  .st-grid-layout.dl-single-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
  }
  .dl-main-col-reset,
  .dl-sidebar-col-reset {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .dl-single-sidebar { order: 2; }
  .dl-compact-apps-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dl-cat-buttons-strip { display: none !important; }
  .dl-sticky-dropdown-box { display: block !important; }
  .dl-sticky-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .st-main-container { padding: 10px 14px 30px !important; }
  .dl-single-main-card { padding: 14px !important; }
  .dl-carousel-container { height: 220px !important; }
  .dl-three-buttons-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .dl-three-buttons-grid > a:last-child { grid-column: span 2 !important; }
  .dl-grid-featured { grid-template-columns: 1fr; }
  .dl-compact-apps-grid { grid-template-columns: 1fr; }
  .dl-hub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .dl-three-buttons-grid { grid-template-columns: 1fr !important; }
  .dl-three-buttons-grid > a:last-child { grid-column: span 1 !important; }
}
</style>