/* ============================================
   SoftHub - Enterprise Software Distribution
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #f0f4f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --surface: #e2e8f0;
  --surface-light: #cbd5e1;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --secondary: #8b5cf6;
  --secondary-light: #a78bfa;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-dark: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --surface: #1e293b;
  --surface-light: #334155;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; }
::selection { background:var(--accent); color:#fff; }
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:var(--bg-dark); }
::-webkit-scrollbar-thumb { background:var(--surface-light); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:var(--accent); }

/* ========= PARTICLES ========= */
#particles-js {
  position:fixed; top:0; left:0; width:100%; height:100%;
  pointer-events:none; z-index:0; overflow:hidden;
}
.particle {
  position:absolute; border-radius:50%;
  background:rgba(59,130,246,0.3);
  animation: particleFloat linear infinite;
  pointer-events:none;
}
@keyframes particleFloat {
  0% { transform:translateY(0) scale(1); opacity:0; }
  10% { opacity:0.6; }
  90% { opacity:0.3; }
  100% { transform:translateY(-100vh) scale(0); opacity:0; }
}

/* ========= NAVBAR ========= */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:var(--glass-bg); backdrop-filter:blur(20px) saturate(1.8);
  border-bottom:1px solid var(--glass-border);
  transition:var(--transition);
}
.navbar:hover { border-color:rgba(59,130,246,0.15); }
.nav-inner {
  max-width:1280px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
  height:68px;
}
.nav-brand { display:flex; align-items:center; gap:10px; cursor:pointer; }
.brand-icon {
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--accent),var(--secondary));
  border-radius:10px; font-size:18px;
  box-shadow:0 4px 16px rgba(59,130,246,0.3);
  transition:var(--transition);
}
.nav-brand:hover .brand-icon { transform:rotate(-10deg) scale(1.1); }
.brand-text { font-size:20px; font-weight:800; letter-spacing:-0.5px; background:linear-gradient(135deg,var(--text),var(--text-secondary)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.nav-links { display:flex; align-items:center; gap:8px; }
.nav-link {
  padding:8px 18px; border-radius:10px; font-size:14px; font-weight:500;
  color:var(--text-muted); transition:var(--transition); position:relative;
}
.nav-link::after {
  content:''; position:absolute; bottom:2px; left:50%; transform:translateX(-50%) scaleX(0);
  width:60%; height:2px; background:linear-gradient(90deg,var(--accent),var(--secondary));
  border-radius:1px; transition:var(--transition);
}
.nav-link:hover { color:var(--text); background:rgba(255,255,255,0.05); }
.nav-link:hover::after { transform:translateX(-50%) scaleX(1); }
.nav-admin { background:rgba(59,130,246,0.1); color:var(--accent-light) !important; border:1px solid rgba(59,130,246,0.2); }
.nav-admin:hover { background:rgba(59,130,246,0.2) !important; }
.theme-toggle, .menu-toggle {
  background:var(--surface); border:none; color:var(--text); width:40px; height:40px;
  border-radius:10px; cursor:pointer; font-size:18px; transition:var(--transition);
  display:flex; align-items:center; justify-content:center;
}
.theme-toggle:hover, .menu-toggle:hover { background:var(--surface-light); transform:scale(1.05); }
.menu-toggle { display:none; }

/* ========= HERO ========= */
.hero {
  position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:120px 24px 60px; overflow:hidden;
}
.hero-bg { position:absolute; inset:0; overflow:hidden; }
.hero-orbs { position:absolute; width:100%; height:100%; }
.orb {
  position:absolute; border-radius:50%; filter:blur(80px); opacity:0.3;
  transition:transform 0.3s ease-out;
}
.orb-1 { width:600px; height:600px; background:var(--accent); top:-10%; right:-10%; animation:orbFloat1 20s ease-in-out infinite; }
.orb-2 { width:400px; height:400px; background:var(--secondary); bottom:-5%; left:-5%; animation:orbFloat2 25s ease-in-out infinite; }
.orb-3 { width:300px; height:300px; background:var(--success); top:50%; left:50%; transform:translate(-50%,-50%); animation:orbFloat3 15s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0);} 33%{transform:translate(-60px,40px);} 66%{transform:translate(40px,-60px);} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0);} 33%{transform:translate(50px,-30px);} 66%{transform:translate(-40px,50px);} }
@keyframes orbFloat3 { 0%,100%{transform:translate(-50%,-50%) scale(1);} 50%{transform:translate(-50%,-50%) scale(1.3);} }

.hero-content { position:relative; z-index:2; text-align:center; max-width:800px; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 20px; border-radius:50px; font-size:13px; font-weight:500;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  color:var(--text-secondary); margin-bottom:24px;
  backdrop-filter:blur(10px);
}
.pulse-dot { width:8px; height:8px; border-radius:50%; background:var(--success); display:inline-block; animation:pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(1.5);} }

.hero-title { font-size:clamp(36px,6vw,68px); font-weight:900; line-height:1.1; margin-bottom:20px; letter-spacing:-1.5px; }
.gradient-text { background:linear-gradient(135deg,var(--accent),var(--secondary),var(--accent)); background-size:200% 200%; -webkit-background-clip:text; -webkit-text-fill-color:transparent; animation:gradientShift 4s ease-in-out infinite; }
@keyframes gradientShift { 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }

.hero-sub { font-size:clamp(16px,2vw,20px); color:var(--text-muted); margin-bottom:40px; max-width:600px; margin-left:auto; margin-right:auto; }

.hero-search { max-width:560px; margin:0 auto 36px; }
.search-box {
  display:flex; align-items:center; gap:12px;
  background:var(--glass-bg); backdrop-filter:blur(20px);
  border:1px solid var(--glass-border); border-radius:16px;
  padding:4px 4px 4px 18px; transition:var(--transition);
}
.search-box:focus-within { border-color:var(--accent); box-shadow:0 0 0 4px rgba(59,130,246,0.15); transform:translateY(-1px); }
.search-icon { font-size:18px; color:var(--text-muted); }
.search-box input { flex:1; background:none; border:none; outline:none; color:var(--text); font-size:15px; padding:14px 0; font-family:inherit; }
.search-box input::placeholder { color:var(--text-muted); }
.search-clear { display:none; width:34px; height:34px; border:none; background:var(--surface); color:var(--text-muted); border-radius:8px; cursor:pointer; font-size:14px; transition:var(--transition); }
.search-clear:hover { background:var(--surface-light); color:var(--text); }
.search-box input:not(:placeholder-shown) ~ .search-clear { display:block; }

.search-tags { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:14px; }
.search-tag {
  padding:5px 14px; border-radius:20px; font-size:12px; border:1px solid rgba(255,255,255,0.1);
  color:var(--text-muted); cursor:pointer; transition:var(--transition); background:transparent;
}
.search-tag:hover { border-color:var(--accent); color:var(--accent-light); background:rgba(59,130,246,0.1); }
.search-tag.active { border-color:var(--accent); color:#fff; background:var(--accent); }

.hero-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.btn-hero {
  display:inline-flex; align-items:center; gap:8px; padding:14px 32px;
  border-radius:14px; font-size:15px; font-weight:600; cursor:pointer;
  transition:var(--transition); border:none; font-family:inherit;
}
.btn-hero-primary { background:linear-gradient(135deg,var(--accent),var(--secondary)); color:#fff; box-shadow:0 8px 32px rgba(59,130,246,0.3); }
.btn-hero-primary:hover { transform:translateY(-3px); box-shadow:0 12px 40px rgba(59,130,246,0.5); }
.btn-hero-primary:active { transform:translateY(-1px); }
.btn-hero-primary span { transition:var(--transition); display:inline-block; }
.btn-hero-primary:hover span { transform:translateX(4px); }
.btn-hero-secondary { background:var(--glass-bg); backdrop-filter:blur(10px); border:1px solid var(--glass-border); color:var(--text); }
.btn-hero-secondary:hover { background:var(--surface); transform:translateY(-3px); box-shadow:var(--shadow); }

.scroll-indicator {
  position:absolute; bottom:30px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:var(--text-muted); font-size:12px; transition:opacity 0.5s;
  cursor:pointer;
}
.scroll-arrow { font-size:20px; animation:bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown { 0%,100%{transform:translateY(0);} 50%{transform:translateY(8px);} }

/* ========= SECTIONS ========= */
.section { padding:80px 24px; position:relative; z-index:1; max-width:1280px; margin:0 auto; }
.section-dark { background:var(--glass-bg); backdrop-filter:blur(10px); max-width:100%; padding:80px 24px; }
.section-dark .section-header { max-width:1280px; margin:0 auto 48px; }
.section-header { text-align:center; margin-bottom:48px; }
.section-header h2 { font-size:clamp(26px,3.5vw,40px); font-weight:800; margin-bottom:8px; letter-spacing:-0.5px; }
.section-header p { color:var(--text-muted); font-size:16px; }

/* ========= FEATURED CARDS ========= */
.featured-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:24px; }
.featured-card {
  position:relative; background:var(--glass-bg); backdrop-filter:blur(20px);
  border:1px solid var(--glass-border); border-radius:var(--radius-lg);
  padding:28px; cursor:pointer; overflow:hidden;
  transition:var(--transition); display:flex; gap:20px; align-items:flex-start;
  animation:fadeInUp 0.6s ease-out both;
}
.featured-card:hover { transform:translateY(-6px); border-color:rgba(59,130,246,0.2); box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.fc-glow {
  position:absolute; top:-50%; left:-50%; width:200%; height:200%;
  background:radial-gradient(circle at center, rgba(59,130,246,0.06), transparent 60%);
  opacity:0; transition:var(--transition); pointer-events:none;
}
.featured-card:hover .fc-glow { opacity:1; }
.fc-corner { position:absolute; top:16px; right:16px; font-size:14px; opacity:0.6; }
.fc-icon { width:64px; height:64px; flex-shrink:0; border-radius:16px; overflow:hidden; background:var(--surface); display:flex; align-items:center; justify-content:center; }
.fc-icon img { width:100%; height:100%; object-fit:cover; }
.fc-emoji { font-size:28px; }
.fc-body { flex:1; min-width:0; }
.fc-body h3 { font-size:17px; font-weight:700; margin-bottom:6px; }
.fc-body p { font-size:13px; color:var(--text-muted); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.fc-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.fc-tag { padding:3px 10px; border-radius:6px; font-size:11px; font-weight:500; background:var(--surface); color:var(--text-secondary); }
.fc-cat { background:rgba(59,130,246,0.1); color:var(--accent-light); }
.fc-dl { font-size:12px; color:var(--text-muted); }
.fc-action { position:absolute; bottom:20px; right:24px; font-size:13px; color:var(--accent-light); opacity:0; transform:translateX(-10px); transition:var(--transition); }
.featured-card:hover .fc-action { opacity:1; transform:translateX(0); }

/* ========= FILTER BAR ========= */
.filter-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
.filter-left { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.filter-btn {
  padding:8px 18px; border-radius:10px; font-size:13px; font-weight:500;
  background:var(--surface); border:none; color:var(--text-muted); cursor:pointer;
  transition:var(--transition); font-family:inherit;
}
.filter-btn:hover { background:var(--surface-light); color:var(--text); }
.filter-btn.active { background:var(--accent); color:#fff; box-shadow:0 4px 16px rgba(59,130,246,0.3); }
.filter-more { position:relative; }
.filter-dropdown {
  position:absolute; top:100%; left:0; margin-top:4px;
  background:var(--bg-card); border:1px solid var(--glass-border); border-radius:12px;
  padding:8px; display:none; flex-direction:column; gap:4px;
  box-shadow:var(--shadow-lg); z-index:100; min-width:140px;
}
.filter-dropdown.show { display:flex; }
.filter-dropdown .filter-btn { background:transparent; padding:8px 16px; text-align:left; }
.filter-dropdown .filter-btn:hover { background:var(--surface); }
.filter-sort select {
  padding:8px 16px; border-radius:10px; font-size:13px; background:var(--surface);
  border:1px solid var(--glass-border); color:var(--text); cursor:pointer;
  font-family:inherit; outline:none; transition:var(--transition);
}
.filter-sort select:focus { border-color:var(--accent); }

/* ========= PROJECT CARDS ========= */
.projects-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.project-card {
  position:relative; background:var(--glass-bg); backdrop-filter:blur(10px);
  border:1px solid var(--glass-border); border-radius:var(--radius);
  padding:24px; cursor:pointer; transition:var(--transition);
  display:flex; flex-direction:column; gap:16px; overflow:hidden;
}
.project-card:hover { transform:translateY(-8px); border-color:rgba(59,130,246,0.2); box-shadow:var(--shadow-lg); }
.card-glow {
  position:absolute; top:-100%; left:-100%; width:300%; height:300%;
  background:radial-gradient(circle at 50% 0, rgba(59,130,246,0.04), transparent 50%);
  pointer-events:none; transition:var(--transition);
}
.project-card:hover .card-glow { top:-50%; left:-50%; }
.card-ribbon {
  position:absolute; top:16px; right:-36px; background:linear-gradient(135deg,var(--warning),#d97706);
  color:#fff; font-size:11px; font-weight:700; padding:4px 40px; transform:rotate(45deg);
  opacity:0; transition:var(--transition); z-index:2;
}
.card-ribbon.ribbon-show { opacity:1; }
.card-icon { width:56px; height:56px; border-radius:14px; overflow:hidden; background:var(--surface); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.card-icon img { width:100%; height:100%; object-fit:cover; }
.card-icon-placeholder { font-size:24px; }
.card-body { flex:1; }
.card-body h3 { font-size:16px; font-weight:700; margin-bottom:6px; }
.card-body p { font-size:13px; color:var(--text-muted); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.card-version { padding:3px 10px; border-radius:6px; font-size:11px; background:rgba(16,185,129,0.1); color:var(--success); font-weight:600; }
.card-cat { padding:3px 10px; border-radius:6px; font-size:11px; background:rgba(59,130,246,0.1); color:var(--accent-light); }
.card-size { padding:3px 10px; border-radius:6px; font-size:11px; background:var(--surface); color:var(--text-muted); }
.card-footer { display:flex; align-items:center; justify-content:space-between; padding-top:12px; border-top:1px solid var(--glass-border); }
.card-stats { display:flex; gap:12px; font-size:12px; color:var(--text-muted); }
.card-dl { font-weight:600; }
.card-time { color:var(--text-muted); }
.card-btn {
  padding:8px 18px; border-radius:8px; font-size:13px; font-weight:600;
  background:linear-gradient(135deg,var(--accent),var(--secondary)); color:#fff;
  transition:var(--transition); opacity:0; transform:translateX(-10px);
}
.project-card:hover .card-btn { opacity:1; transform:translateX(0); }
.card-btn:hover { box-shadow:0 4px 16px rgba(59,130,246,0.4); }

/* ========= STATS ========= */
.stats-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:32px; margin-bottom:48px; max-width:1280px; margin-left:auto; margin-right:auto; }
.stat-item { display:flex; justify-content:center; }
.stat-circle {
  position:relative; width:140px; height:140px; display:flex;
  align-items:center; justify-content:center;
}
.stat-circle svg { position:absolute; width:100%; height:100%; transform:rotate(-90deg); }
.stat-circle .bg { fill:none; stroke:var(--surface); stroke-width:6; }
.stat-circle .fg { fill:none; stroke:var(--accent); stroke-width:6; stroke-linecap:round; stroke-dasharray:283; transition:stroke-dashoffset 1.5s ease-out; }
.stat-circle .fg-dl { stroke:var(--success); }
.stat-circle .fg-star { stroke:var(--warning); }
.stat-circle .fg-cat { stroke:var(--secondary); }
.stat-circle-inner { text-align:center; z-index:1; }
.stat-circle-num { display:block; font-size:28px; font-weight:800; line-height:1; }
.stat-circle-label { font-size:12px; color:var(--text-muted); margin-top:4px; display:block; }
.progress-bar-wrap { max-width:640px; margin:0 auto; }
.progress-label { display:flex; justify-content:space-between; font-size:14px; color:var(--text-secondary); margin-bottom:12px; }
.progress-track { height:10px; background:var(--surface); border-radius:5px; overflow:hidden; position:relative; }
.progress-fill {
  height:100%; background:linear-gradient(90deg,var(--accent),var(--secondary));
  border-radius:5px; position:relative; transition:width 1.5s ease-out;
}
.progress-shine {
  position:absolute; top:0; left:-100%; width:100%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);
  animation:shine 3s ease-in-out infinite;
}
@keyframes shine { 0%{left:-100%;} 100%{left:200%;} }
.progress-milestones { display:flex; justify-content:space-between; margin-top:10px; font-size:12px; color:var(--text-muted); }

/* ========= CTA ========= */
.cta-card {
  background:linear-gradient(135deg,var(--accent-dark),#1e40af,var(--secondary));
  border-radius:var(--radius-lg); padding:60px; position:relative; overflow:hidden;
  text-align:center;
}
.cta-pattern {
  position:absolute; inset:0; opacity:0.1;
  background-image:radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px);
  background-size:30px 30px;
}
.cta-content { position:relative; z-index:1; }
.cta-content h2 { font-size:clamp(24px,3vw,36px); font-weight:800; margin-bottom:12px; color:#fff; }
.cta-content p { color:rgba(255,255,255,0.7); margin-bottom:28px; font-size:16px; }
.cta-content .btn-hero-primary { background:#fff; color:var(--accent-dark); }
.cta-content .btn-hero-primary:hover { box-shadow:0 12px 40px rgba(0,0,0,0.2); }

/* ========= FOOTER ========= */
.footer { background:var(--bg-card); border-top:1px solid var(--glass-border); padding:60px 24px 30px; position:relative; z-index:1; }
.footer-inner { max-width:1280px; margin:0 auto; }
.footer-brand { display:flex; align-items:center; gap:10px; margin-bottom:40px; }
.footer-brand .brand-icon { width:40px; height:40px; font-size:20px; }
.footer-brand .brand-text { font-size:22px; }
.footer-brand p { font-size:13px; color:var(--text-muted); margin-left:50px; margin-top:-4px; }
.footer-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:32px; margin-bottom:40px; }
.footer-col h4 { font-size:14px; font-weight:600; margin-bottom:16px; color:var(--text); }
.footer-col a { display:block; font-size:13px; color:var(--text-muted); margin-bottom:10px; transition:var(--transition); }
.footer-col a:hover { color:var(--accent-light); transform:translateX(4px); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--glass-border); font-size:13px; color:var(--text-muted); }

/* ========= PROJECT DETAIL PAGE ========= */
.project-detail { position:relative; z-index:1; max-width:900px; margin:0 auto; padding:100px 24px 60px; }
.pd-breadcrumb { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); margin-bottom:32px; flex-wrap:wrap; }
.pd-breadcrumb a { color:var(--text-muted); transition:var(--transition); }
.pd-breadcrumb a:hover { color:var(--accent-light); }
.pd-breadcrumb .current { color:var(--text); font-weight:500; }
.pd-hero { display:flex; gap:32px; align-items:flex-start; margin-bottom:36px; flex-wrap:wrap; }
.pd-icon-wrap { width:100px; height:100px; border-radius:20px; overflow:hidden; background:var(--surface); display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 8px 32px rgba(0,0,0,0.3); }
.pd-icon { width:100%; height:100%; object-fit:cover; }
.pd-icon-placeholder { font-size:40px; }
.pd-info { flex:1; min-width:280px; }
.pd-info h1 { font-size:clamp(24px,3vw,36px); font-weight:800; margin-bottom:12px; }
.pd-desc { font-size:15px; color:var(--text-secondary); line-height:1.7; margin-bottom:16px; }
.pd-meta { display:flex; flex-wrap:wrap; gap:8px; }
.pd-badge { padding:5px 14px; border-radius:8px; font-size:12px; font-weight:500; }
.pd-version { background:rgba(16,185,129,0.1); color:var(--success); }
.pd-cat { background:rgba(59,130,246,0.1); color:var(--accent-light); }
.pd-size { background:var(--surface); color:var(--text-secondary); }
.pd-dl { background:rgba(245,158,11,0.1); color:var(--warning); }
.pd-time { background:var(--surface); color:var(--text-muted); }

.pd-actions-bar { display:flex; gap:16px; margin-bottom:40px; flex-wrap:wrap; }
.pd-download-btn {
  flex:1; display:flex; align-items:center; gap:16px; padding:20px 28px;
  background:linear-gradient(135deg,var(--accent),var(--secondary));
  border-radius:16px; color:#fff; transition:var(--transition); cursor:pointer;
  position:relative; overflow:hidden; min-width:260px; text-decoration:none;
}
.pd-download-btn:hover { transform:translateY(-3px); box-shadow:0 16px 48px rgba(59,130,246,0.4); }
.pd-download-disabled { background:var(--surface); cursor:not-allowed; }
.pd-download-disabled:hover { transform:none; box-shadow:none; }
.btn-icon { font-size:32px; }
.btn-text { display:flex; flex-direction:column; }
.btn-main { font-size:18px; font-weight:700; }
.btn-sub { font-size:13px; opacity:0.8; }
.btn-ripple {
  position:absolute; top:50%; left:50%; width:0; height:0; border-radius:50%;
  background:rgba(255,255,255,0.2); transform:translate(-50%,-50%);
  transition:width 0.6s, height 0.6s;
}
.pd-download-btn:active .btn-ripple { width:600px; height:600px; }
.pd-share-btn {
  padding:20px 28px; border-radius:16px; background:var(--glass-bg);
  backdrop-filter:blur(10px); border:1px solid var(--glass-border);
  color:var(--text); cursor:pointer; font-size:14px; font-weight:500;
  transition:var(--transition); font-family:inherit; white-space:nowrap;
}
.pd-share-btn:hover { background:var(--surface); transform:translateY(-2px); }

.pd-details-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:40px; }
.pd-detail-card { display:flex; align-items:center; gap:14px; padding:18px 20px; background:var(--glass-bg); backdrop-filter:blur(10px); border-radius:14px; border:1px solid var(--glass-border); transition:var(--transition); }
.pd-detail-card:hover { background:var(--surface); transform:translateY(-2px); border-color:rgba(59,130,246,0.15); }
.pdd-icon { font-size:24px; }
.pdd-info { display:flex; flex-direction:column; }
.pdd-value { font-size:16px; font-weight:700; }
.pdd-label { font-size:12px; color:var(--text-muted); }
.pd-section { margin-bottom:40px; }
.pd-section h2 { font-size:22px; font-weight:700; margin-bottom:16px; }
.pd-description-full { font-size:15px; color:var(--text-secondary); line-height:1.8; padding:24px; background:var(--glass-bg); backdrop-filter:blur(10px); border-radius:var(--radius); border:1px solid var(--glass-border); }

.related-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
.related-card {
  display:flex; align-items:center; gap:12px; padding:14px; border-radius:12px;
  background:var(--glass-bg); backdrop-filter:blur(10px); border:1px solid var(--glass-border);
  transition:var(--transition);
}
.related-card:hover { background:var(--surface); transform:translateY(-3px); border-color:rgba(59,130,246,0.15); }
.rc-icon { width:40px; height:40px; border-radius:10px; overflow:hidden; background:var(--surface); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rc-icon img { width:100%; height:100%; object-fit:cover; }
.rc-icon span { font-size:18px; }
.rc-info { flex:1; min-width:0; }
.rc-info h4 { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rc-dl { font-size:11px; color:var(--text-muted); }

/* ========= ADMIN LAYOUT ========= */
.admin-layout { display:flex; min-height:100vh; }
.admin-sidebar {
  width:240px; background:var(--bg-card); border-right:1px solid var(--glass-border);
  display:flex; flex-direction:column; position:sticky; top:0; height:100vh;
}
.sidebar-header { padding:24px 20px; border-bottom:1px solid var(--glass-border); }
.sidebar-header h2 { font-size:18px; font-weight:800; }
.sidebar-nav { flex:1; padding:12px; display:flex; flex-direction:column; gap:2px; }
.sidebar-nav a {
  display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:10px;
  font-size:14px; font-weight:500; color:var(--text-muted); transition:var(--transition);
}
.sidebar-nav a:hover { background:var(--surface); color:var(--text); }
.sidebar-nav a.active { background:rgba(59,130,246,0.1); color:var(--accent-light); }
.sidebar-footer { padding:16px 20px; border-top:1px solid var(--glass-border); }
.sidebar-footer a { font-size:13px; color:var(--accent-light); }
.admin-main { flex:1; padding:32px; overflow-y:auto; }
.admin-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:32px; flex-wrap:wrap; gap:12px; }
.admin-header h1 { font-size:24px; font-weight:700; }
.admin-user { font-size:14px; color:var(--text-muted); }

.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-bottom:32px; }
.stat-card { display:flex; align-items:center; gap:16px; padding:24px; background:var(--glass-bg); backdrop-filter:blur(10px); border-radius:var(--radius); border:1px solid var(--glass-border); transition:var(--transition); }
.stat-card:hover { background:var(--surface); transform:translateY(-2px); }
.stat-icon { width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.stat-info { display:flex; flex-direction:column; }
.stat-number { font-size:28px; font-weight:800; line-height:1; }
.stat-label { font-size:13px; color:var(--text-muted); margin-top:4px; }

.admin-table-wrap { background:var(--glass-bg); backdrop-filter:blur(10px); border-radius:var(--radius); border:1px solid var(--glass-border); overflow:hidden; }
.table-header { display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:1px solid var(--glass-border); }
.table-header h2 { font-size:18px; font-weight:700; }
.table-scroll { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { text-align:left; padding:12px 16px; font-size:12px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.5px; border-bottom:1px solid var(--glass-border); }
.admin-table td { padding:14px 16px; font-size:14px; border-bottom:1px solid var(--glass-border); }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table tr:hover td { background:rgba(255,255,255,0.02); }
.admin-table .empty-state { text-align:center; padding:40px; color:var(--text-muted); }
.table-icon { width:36px; height:36px; border-radius:8px; object-fit:cover; }
.table-icon-placeholder { font-size:22px; }
.table-desc { font-size:12px; color:var(--text-muted); margin-top:2px; }
.text-muted { color:var(--text-muted); }

.badge { padding:3px 10px; border-radius:6px; font-size:11px; font-weight:600; }
.badge-version { background:rgba(16,185,129,0.1); color:var(--success); }
.badge-cat { background:rgba(59,130,246,0.1); color:var(--accent-light); }
.badge-active { background:rgba(16,185,129,0.1); color:var(--success); }
.badge-inactive { background:rgba(239,68,68,0.1); color:var(--danger); }

.actions { display:flex; gap:6px; }
.btn-sm { padding:6px 10px; border-radius:6px; font-size:13px; transition:var(--transition); text-decoration:none; display:inline-flex; align-items:center; }
.btn-edit { background:rgba(59,130,246,0.1); color:var(--accent-light); }
.btn-edit:hover { background:rgba(59,130,246,0.2); }
.btn-delete { background:rgba(239,68,68,0.1); color:var(--danger); }
.btn-delete:hover { background:rgba(239,68,68,0.2); }
.btn-view { background:rgba(16,185,129,0.1); color:var(--success); }
.btn-view:hover { background:rgba(16,185,129,0.2); }

.btn-primary {
  display:inline-flex; align-items:center; gap:8px; padding:10px 24px;
  background:linear-gradient(135deg,var(--accent),var(--secondary)); color:#fff;
  border:none; border-radius:10px; font-size:14px; font-weight:600; cursor:pointer;
  transition:var(--transition); text-decoration:none; font-family:inherit;
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(59,130,246,0.4); }
.btn-secondary { padding:10px 20px; background:var(--surface); color:var(--text); border-radius:10px; font-size:14px; font-weight:500; border:none; cursor:pointer; transition:var(--transition); text-decoration:none; display:inline-flex; align-items:center; gap:4px; }
.btn-secondary:hover { background:var(--surface-light); transform:translateY(-1px); }

/* Form card */
.form-card { padding:28px; background:var(--glass-bg); backdrop-filter:blur(10px); border-radius:var(--radius); border:1px solid var(--glass-border); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
.form-group { margin-bottom:20px; }
.form-group label { display:block; margin-bottom:6px; font-size:13px; font-weight:600; color:var(--text-secondary); }
.form-group input[type="text"], .form-group input[type="password"], .form-group textarea, .form-group select {
  width:100%; padding:12px 16px; background:rgba(255,255,255,0.03); border:1px solid var(--glass-border);
  border-radius:10px; color:var(--text); font-size:14px; font-family:inherit;
  outline:none; transition:var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color:var(--accent); box-shadow:0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { resize:vertical; min-height:100px; }
.file-upload-wrap { display:flex; align-items:center; gap:10px; }
.file-upload-wrap input[type="file"] { display:none; }
.file-label {
  padding:10px 18px; border-radius:8px; font-size:13px; font-weight:500;
  background:var(--surface); color:var(--text); cursor:pointer; transition:var(--transition);
  display:inline-block;
}
.file-label:hover { background:var(--surface-light); }
.file-name { font-size:13px; color:var(--text-muted); }
.preview-wrap { margin-top:8px; }
.checkbox-group { margin:16px 0; }
.checkbox-label { display:flex; align-items:center; gap:10px; cursor:pointer; font-size:14px; }
.checkbox-label input[type="checkbox"] { width:18px; height:18px; accent-color:var(--accent); }

.alert { padding:14px 20px; border-radius:10px; margin-bottom:20px; font-size:14px; }
.alert-success { background:rgba(16,185,129,0.1); color:var(--success); border:1px solid rgba(16,185,129,0.2); }
.alert-error { background:rgba(239,68,68,0.1); color:var(--danger); border:1px solid rgba(239,68,68,0.2); }

/* ========= TOAST ========= */
.toast-container { position:fixed; top:84px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:8px; }
.toast {
  padding:14px 24px; border-radius:12px; font-size:14px; font-weight:500;
  animation:toastIn 0.3s ease-out; backdrop-filter:blur(20px);
  box-shadow:0 8px 32px rgba(0,0,0,0.3); max-width:360px;
}
.toast-info { background:rgba(59,130,246,0.9); color:#fff; }
.toast-success { background:rgba(16,185,129,0.9); color:#fff; }
.toast-error { background:rgba(239,68,68,0.9); color:#fff; }
.toast-out { animation:toastOut 0.3s ease-in forwards; }
@keyframes toastIn { 0%{transform:translateX(100%);opacity:0;} 100%{transform:translateX(0);opacity:1;} }
@keyframes toastOut { 0%{transform:translateX(0);opacity:1;} 100%{transform:translateX(100%);opacity:0;} }

/* ========= MODAL ========= */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(8px);
  z-index:5000; display:none; align-items:center; justify-content:center;
}
.modal-overlay.show { display:flex; }
.modal-content {
  background:var(--bg-card); border-radius:var(--radius-lg); max-width:600px;
  width:90%; position:relative; max-height:80vh; overflow-y:auto;
  animation:modalIn 0.3s ease-out; border:1px solid var(--glass-border);
}
.modal-close { position:absolute; top:16px; right:16px; width:36px; height:36px; border-radius:50%; border:none; background:var(--surface); color:var(--text); font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:var(--transition); }
.modal-close:hover { background:var(--surface-light); }
.modal-body { padding:32px; }
@keyframes modalIn { 0%{transform:scale(0.9) translateY(20px);opacity:0;} 100%{transform:scale(1) translateY(0);opacity:1;} }

/* ========= DOWNLOAD OVERLAY ========= */
.download-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.7); backdrop-filter:blur(12px);
  z-index:8000; display:none; align-items:center; justify-content:center;
}
.download-overlay.show { display:flex; }
.download-modal { text-align:center; padding:48px; background:var(--bg-card); border-radius:var(--radius-lg); max-width:400px; width:90%; border:1px solid var(--glass-border); animation:modalIn 0.3s ease-out; }
.dm-icon { font-size:64px; margin-bottom:16px; animation:bounce 1s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.download-modal h3 { font-size:20px; font-weight:700; margin-bottom:8px; }
.download-modal p { color:var(--text-muted); margin-bottom:24px; }
.dm-progress { height:6px; background:var(--surface); border-radius:3px; overflow:hidden; margin-bottom:12px; }
.dm-progress-bar { height:100%; background:linear-gradient(90deg,var(--accent),var(--secondary)); border-radius:3px; width:0%; transition:width 0.3s; }
.dm-status { font-size:13px; color:var(--text-muted); }

/* ========= SCROLL TOP ========= */
.scroll-top-btn {
  position:fixed; bottom:30px; right:30px; width:48px; height:48px; border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--secondary)); color:#fff;
  border:none; font-size:20px; cursor:pointer; display:flex; align-items:center;
  justify-content:center; opacity:0; transform:translateY(20px); pointer-events:none;
  transition:var(--transition); z-index:500; box-shadow:0 4px 20px rgba(59,130,246,0.3);
}
.scroll-top-btn.visible { opacity:1; transform:translateY(0); pointer-events:auto; }
.scroll-top-btn:hover { transform:translateY(-4px) scale(1.1); box-shadow:0 8px 30px rgba(59,130,246,0.5); }

/* ========= EMPTY STATE ========= */
.empty-state-large { text-align:center; padding:80px 24px; }
.empty-icon { font-size:64px; margin-bottom:16px; }
.empty-state-large h3 { font-size:20px; margin-bottom:8px; }
.empty-state-large p { color:var(--text-muted); }
.search-empty-state { grid-column:1 / -1; }

/* ========= ANIMATIONS ========= */
.animate-fadeIn { animation:fadeIn 0.5s ease-out; }
@keyframes fadeIn { 0%{opacity:0;} 100%{opacity:1;} }
.animate-badge { animation:fadeInDown 0.6s ease-out 0.1s both; }
.animate-title { animation:fadeInDown 0.6s ease-out 0.2s both; }
.animate-sub { animation:fadeInDown 0.6s ease-out 0.3s both; }
.animate-search { animation:fadeInDown 0.6s ease-out 0.4s both; }
.animate-actions { animation:fadeInDown 0.6s ease-out 0.5s both; }
@keyframes fadeInDown { 0%{opacity:0;transform:translateY(-20px);} 100%{opacity:1;transform:translateY(0);} }
@keyframes fadeInUp { 0%{opacity:0;transform:translateY(20px);} 100%{opacity:1;transform:translateY(0);} }

.reveal-on-scroll { opacity:0; transform:translateY(30px); transition:all 0.6s ease-out; }
.reveal-on-scroll.revealed { opacity:1; transform:translateY(0); }

/* ========= RESPONSIVE ========= */
@media (max-width:768px) {
  .nav-links { display:none; position:absolute; top:68px; left:0; right:0; background:var(--glass-bg); backdrop-filter:blur(20px); flex-direction:column; padding:16px; gap:4px; border-bottom:1px solid var(--glass-border); }
  .nav-links.open { display:flex; }
  .menu-toggle { display:flex; }
  .hero { padding-top:100px; }
  .featured-grid { grid-template-columns:1fr; }
  .projects-grid { grid-template-columns:1fr; }
  .pd-hero { flex-direction:column; align-items:center; text-align:center; }
  .pd-meta { justify-content:center; }
  .pd-details-grid { grid-template-columns:1fr 1fr; }
  .admin-layout { flex-direction:column; }
  .admin-sidebar { width:100%; height:auto; position:static; flex-direction:row; flex-wrap:wrap; }
  .sidebar-nav { flex-direction:row; flex-wrap:wrap; }
  .admin-main { padding:16px; }
  .form-row { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .filter-bar { flex-direction:column; align-items:stretch; }
  .footer-links { grid-template-columns:1fr 1fr; }
}

@media (max-width:480px) {
  .stats-grid { grid-template-columns:1fr; }
  .pd-details-grid { grid-template-columns:1fr; }
  .pd-actions-bar { flex-direction:column; }
  .footer-links { grid-template-columns:1fr; }
  .login-wrap { margin:16px; padding:24px; }
  .cta-card { padding:32px 20px; }
}
