@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#090d15;--panel:#111826;--line:#253044;--muted:#93a3ba;--ink:#f1f5ff;--lime:#c5fa6a;--blue:#8ca5ff;--violet:#9681f9;font-family:'DM Sans',system-ui,sans-serif;font-size:16px;background:var(--bg);color:var(--ink)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}a:hover{color:var(--lime)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:5px}button{cursor:pointer}a:focus-visible,button:focus-visible{outline:2px solid var(--lime)}.skip{position:absolute;top:-60px;left:20px;background:var(--lime);color:#111;padding:12px;z-index:50}.skip:focus{top:10px}.wrap{width:min(1280px,100% - 64px);margin:auto}main#main,main.wrap{padding-top:24px;padding-bottom:40px}header.site-header,header{border-bottom:1px solid var(--line);background:#0b101bd9;backdrop-filter:blur(16px);position:sticky;top:0;z-index:40;margin-bottom:0}header .wrap.topbar{width:min(1600px,calc(100% - 32px));max-width:1600px}.topbar{min-height:64px;display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:12px;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.32rem;letter-spacing:-.055em;white-space:nowrap;justify-self:start}.brand-text{display:inline-flex;align-items:baseline;letter-spacing:-.055em}.brand-text span,.brand span:last-child{color:var(--lime)}.mark{width:31px;height:31px;border:2px solid var(--lime);border-radius:9px;display:grid;place-items:center;transform:rotate(-8deg);box-shadow:4px 4px 0 #394f21;color:var(--lime);font-size:22px}.brand span:last-child{color:var(--lime)}.topnav{display:flex;gap:4px;align-items:center;justify-self:center;margin:0;font-size:.85rem;color:#94a3b8;overflow:visible}.topnav::-webkit-scrollbar{display:none}.topnav .nav-item{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:8px;color:#94a3b8;text-decoration:none;font-weight:500;white-space:nowrap;transition:all .18s ease;border:1.5px solid transparent}.topnav .nav-item svg{width:14px;height:14px;stroke:currentColor;flex-shrink:0}.topnav .nav-item:hover{color:#fff;background:rgba(255,255,255,0.06)}.topnav .nav-item.active{background:rgba(197,250,106,0.12);color:var(--lime);border-color:rgba(197,250,106,0.38);font-weight:600;box-shadow:0 0 10px rgba(197,250,106,0.12)}.topnav .nav-item.active svg{stroke:var(--lime)}.nav-end{justify-self:end;display:flex;align-items:center;gap:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #35415a;border-radius:9px;padding:11px 16px;color:var(--ink);background:#161f30;font-weight:600;font-size:.88rem}.button:hover{background:#25314a;color:#fff}.button.primary{background:var(--lime);color:#14200b;border-color:var(--lime)}.button.ghost{background:transparent}.mobile-toggle{display:none}.eyebrow{font-family:'Space Grotesk',sans-serif;font-size:.76rem;letter-spacing:.15em;text-transform:uppercase;color:var(--lime);font-weight:600}.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 78% 10%,#25224e88 0,transparent 48%),linear-gradient(110deg,#111b2c 0%,#0b1019 65%)}.hero-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:50px;align-items:center;padding:46px 0 40px;min-height:340px}.hero h1{font-family:'Space Grotesk';font-size:clamp(2.1rem,4.4vw,3.6rem);letter-spacing:-.06em;line-height:1.07;margin:14px 0 18px;font-weight:600}.hero h1 em{font-style:normal;color:var(--lime)}.hero p{font-size:1rem;color:#a5b5cb;max-width:560px;line-height:1.65;margin:0}.hero small{color:var(--muted);font-size:.76rem}.search{display:flex;align-items:center;padding:6px 6px 6px 16px;border:1px solid #42506a;border-radius:11px;background:#111a28;margin:24px 0 10px;max-width:560px;box-shadow:0 8px 28px #0003}.search input{border:0;background:none;color:white;min-width:0;width:100%;padding:8px 0;font-size:.95rem}.search input::placeholder{color:#8494ab}.search button{white-space:nowrap}.scene{perspective:1200px;position:relative;height:380px;min-height:380px;margin-left:18px;display:flex;align-items:center}.scene::before{content:'';position:absolute;inset:20px 10px 10px;background:radial-gradient(circle at 65% 45%,rgba(63,185,80,0.18),rgba(102,82,200,0.2) 60%,transparent 80%);filter:blur(54px);pointer-events:none}.float-card{position:absolute;background:#0d1117;border:1px solid #30363d;border-radius:16px;width:100%;max-width:540px;padding:16px 20px 14px;box-shadow:0 24px 48px -8px rgba(0,0,0,0.7),0 0 0 1px rgba(255,255,255,0.06) inset,0 10px 30px rgba(63,185,80,0.12);transform:rotateY(-16deg) rotateX(9deg) rotateZ(-4deg);transition:transform .45s cubic-bezier(0.16,1,0.3,1),box-shadow .45s ease}.float-card.hero-spotlight-card{z-index:3;cursor:pointer;color:inherit;text-decoration:none}.float-card.hero-spotlight-card:hover{color:inherit}.float-card.card-backdrop-1{top:44px;left:18px;background:#0a0e14;border-color:#21262d;opacity:.65;height:340px;pointer-events:none;z-index:2}.float-card.card-backdrop-2{top:88px;left:34px;background:#070a0f;border-color:#161b22;opacity:.28;height:340px;pointer-events:none;z-index:1}.float-card:first-child{z-index:3}.scene:hover .float-card.hero-spotlight-card,.scene:hover .float-card:first-child{transform:rotateY(-4deg) rotateX(2deg) rotateZ(-1deg) translateY(-6px);box-shadow:0 30px 60px -10px rgba(0,0,0,0.85),0 0 0 1px rgba(255,255,255,0.1) inset,0 16px 40px rgba(63,185,80,0.24)}.float-card .minihead{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.74rem;color:#8b949e;letter-spacing:.05em;font-weight:600;margin-bottom:4px}.pulse-dot{width:7px;height:7px;border-radius:50%;background:#3fb950;box-shadow:0 0 8px #3fb950;display:inline-block;animation:shPulse 2s infinite ease-in-out}@keyframes shPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:0.65}}.star-history-chart{display:block;width:100%;height:auto;overflow:visible;margin:4px 0 2px}.float-bottom{display:flex;justify-content:space-between;align-items:center;font-size:.78rem;margin-top:8px;padding-top:10px;border-top:1px solid #21262d;color:#8b949e}.spotlight-lang{color:var(--lime);font-weight:600}.green{color:var(--lime)}.stats-strip{border-top:1px solid #253046;padding:16px 0;display:flex;gap:38px;flex-wrap:wrap;font-size:.83rem;color:#96a8c3}.stats-strip strong{color:#eef4ff;font-family:'Space Grotesk';font-size:1rem;margin-right:6px}.section{padding:35px 0}.sponsor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:13px}.sponsor{border:1px solid #29374b;background:linear-gradient(135deg,#162132,#101824);border-radius:10px;padding:16px;display:flex;gap:12px;align-items:center;transition:transform .2s,box-shadow .2s}.sponsor:hover{transform:translateY(-3px);box-shadow:0 10px 20px #0004}.sponsor .initial{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#303149;color:#d9ccff;font-family:'Space Grotesk';font-weight:700;flex-shrink:0}.sponsor:nth-child(2) .initial{background:#193b40;color:#94eed2}.sponsor:nth-child(3) .initial{background:#402c24;color:#ffc896}.sponsor:nth-child(4){border-style:dashed;background:transparent}.sponsor strong{display:block;font-size:.88rem}.sponsor small{display:block;color:var(--muted);font-size:.75rem;margin-top:4px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.section-head h2{font:600 1.6rem 'Space Grotesk';letter-spacing:-.04em;margin:0}.section-head p{font-size:.83rem;color:var(--muted);margin:7px 0 0}.subtle{color:var(--muted);font-size:.8rem}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start;padding-bottom:50px}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:18px}.tab{padding:9px 13px;font-size:.86rem;color:#9eafc4;border:1px solid transparent;border-radius:8px}.tab.active{color:var(--lime);border-color:#485f31;background:#1c2a1b}.tab:hover{background:#1c2739}.repo-list{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#0f1724}.repo-row{display:grid;grid-template-columns:32px minmax(0,1fr) 135px;gap:16px;padding:23px 22px;border-bottom:1px solid var(--line);transition:background .2s}.repo-row:last-child{border:0}.repo-row:hover{background:#182135}.repo-rank{font:500 .9rem 'Space Grotesk';color:#5e718d;padding-top:5px}.repo-row h3{font:600 1.05rem 'Space Grotesk';margin:0 0 8px;letter-spacing:-.015em;overflow-wrap:anywhere}.repo-row h3 span{color:#8ca0bc;font-weight:400}.repo-row p{font-size:.88rem;color:#a9b8ca;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.tag{font-size:.73rem;background:#1a2537;color:#a6b7d2;padding:4px 7px;border-radius:5px}.repo-stats{text-align:right;font-family:'Space Grotesk'}.repo-stats strong{font-size:1.05rem}.repo-stats small{display:block;color:var(--lime);font-size:.74rem;margin:7px 0}.spark{width:110px;height:28px}.side-panel{background:#111b2a;border:1px solid #2a3b50;border-radius:12px;padding:20px;margin-bottom:16px}.side-panel h3{font:600 1rem 'Space Grotesk';margin:0 0 18px}.side-panel a.topic{display:flex;justify-content:space-between;gap:8px;padding:11px 0;color:#bdc9db;font-size:.84rem;border-bottom:1px solid #253348}.side-panel a.topic:last-child{border:0}.side-panel small{color:var(--muted)}.side-panel p{color:#a1b1c8;line-height:1.6;font-size:.85rem}.side-panel.cta{background:linear-gradient(140deg,#24223b,#141c2c);border-color:#4b4368}.pagination{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.empty{padding:40px 24px;border:1px dashed #394761;border-radius:12px;color:#a2b2ca;line-height:1.7}.empty h3{color:#eef4ff;margin-top:0}.empty a{color:var(--lime)}.page-head{padding:0 0 24px;max-width:none;text-align:left;width:100%}.page-head h1{font:600 clamp(2rem,4vw,3.4rem)/1.1 'Space Grotesk';letter-spacing:-.06em;margin:16px 0;overflow-wrap:anywhere}.page-head p{font-size:1.1rem;color:#9dafc7;line-height:1.65}.crumb{font-size:.8rem;color:#8c9db6;margin-bottom:20px}.crumb a{color:#c2d0e3}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.feature-card{padding:25px;border:1px solid #2f3e55;border-radius:14px;background:linear-gradient(145deg,#1c273a,#101723);box-shadow:0 5px 0 #050910,0 6px 0 #293247;transition:transform .2s}.feature-card:hover{transform:translateY(-4px)}.feature-card h2,.feature-card h3{font-family:'Space Grotesk';letter-spacing:-.035em}.feature-card p,.prose p,.prose li{color:#a9b9ce;line-height:1.8}.feature-card .number{font:500 2rem 'Space Grotesk';color:#687e9f}.feature-card ul{padding-left:18px;color:#9caec8;font-size:.9rem;line-height:1.9}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:35px}.prose{max-width:830px}.prose h2{font:500 1.6rem 'Space Grotesk';margin-top:30px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.metric{padding:22px;background:#142032;border:1px solid #2d3c53;border-radius:12px}.metric strong{display:block;font:600 1.65rem 'Space Grotesk';margin-bottom:6px}.metric span{font-size:.82rem;color:var(--muted)}.panel{padding:26px;background:#111b2a;border:1px solid #2b3b50;border-radius:14px;margin-bottom:20px}.panel h2{font:500 1.3rem 'Space Grotesk';margin-top:0}.panel p{color:#a6b6ca;line-height:1.75}.form label{display:block;font-size:.85rem;color:#c2cfe0;margin:16px 0 7px}.form input,.form select,.form textarea{width:100%;padding:13px;border-radius:8px;border:1px solid #3a4b65;background:#0c1421;color:white}.form textarea{min-height:130px;resize:vertical}.form button{margin-top:18px}.form .trap{position:absolute;left:-10000px}.form-status{font-size:.85rem;line-height:1.6;color:var(--lime);min-height:26px;margin-top:14px}details{padding:19px 0;border-bottom:1px solid #2b384d}summary{font-weight:500;cursor:pointer}details p{color:#a6b6ca;line-height:1.7}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line)}th{color:#96a9c5;font-weight:500}td{overflow-wrap:anywhere}.readme{white-space:pre-wrap;max-height:420px;overflow:auto;line-height:1.6;font-size:.82rem;color:#aabdd4;background:#0b1420;padding:20px;border-radius:10px}.video{width:100%;max-width:300px;border-radius:12px;background:#111}.badge{border:1px solid #445977;color:#b0c6e5;border-radius:100px;padding:5px 9px;font-size:.74rem}.footer{background:#0c121d;border-top:1px solid var(--line);margin-top:35px;padding:40px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:40px}.footer h4{font-size:.83rem;font-weight:600;margin:0 0 17px}.footer a.link{display:block;font-size:.82rem;color:#8fa2bd;margin:12px 0}.footer p{font-size:.83rem;color:#8094af;line-height:1.7;max-width:320px}.footer-bottom{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:32px;border-top:1px solid #202d40;padding-top:18px;color:#738aa7;font-size:.74rem}.ad-banner{border:1px dashed #3c4e67;padding:20px;border-radius:12px;margin-top:25px;color:#859ab6;font-size:.8rem}.consent{position:fixed;bottom:18px;left:18px;right:18px;z-index:30;background:#172235;border:1px solid #536788;padding:18px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 10px 40px #0008}.consent p{margin:0;font-size:.87rem;line-height:1.5}.consent .actions{display:flex;gap:8px;flex-shrink:0}.notice{border-left:3px solid var(--lime);padding:14px 20px;background:#152319;color:#bfd4bc;font-size:.85rem;line-height:1.6}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px}.full-chart{width:100%;height:180px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.filters select{border:1px solid #3a4d68;border-radius:8px;background:#131e2d;color:#c3d3e9;padding:9px 13px;font-size:.85rem}.filters button{padding:9px 13px}.tag-cloud{display:flex;gap:10px;flex-wrap:wrap}.tag-cloud a{border:1px solid #3b4a63;border-radius:10px;padding:13px 17px;color:#bdcce0}.tag-cloud small{color:#7e95b2;margin-left:10px}@media(min-width:1600px){.wrap{width:min(1380px,100% - 90px)}}@media(max-width:1050px){.topbar{display:flex;justify-content:space-between;gap:12px}.topnav{gap:2px;margin-left:0}.workspace{grid-template-columns:minmax(0,1fr) 235px}.hero-grid{gap:15px}.scene{height:360px;min-height:360px;margin-left:0}.sponsor-grid{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:2.8rem}.footer-grid{gap:25px}.detail-layout{grid-template-columns:minmax(0,1fr) 260px}}@media(max-width:800px){.wrap{width:calc(100% - 36px)}.topbar{display:flex;justify-content:space-between}.topnav{display:none}.topnav.open{display:flex;position:absolute;top:64px;left:0;right:0;background:#121b2a;padding:22px;flex-wrap:wrap;border-bottom:1px solid #465879;z-index:50}.mobile-toggle{display:inline-flex}.nav-end{display:flex;gap:7px}.hero-grid{grid-template-columns:1fr;padding:32px 0}.hero h1{font-size:2.8rem}.scene{display:block;perspective:none;height:auto;min-height:0;margin:28px 0 0}.float-card{position:relative;top:0!important;left:0!important;transform:none!important;max-width:100%}.float-card.card-backdrop-1,.float-card.card-backdrop-2{display:none}.workspace,.two-col,.detail-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:15px}.stats-strip{gap:18px}.cards{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.metrics{grid-template-columns:repeat(2,1fr)}.consent{flex-direction:column;align-items:start}.page-head{padding-top:30px}}@media(max-width:480px){.brand{font-size:1.15rem}.mark{width:27px;height:27px}.topbar{gap:10px;min-height:67px}.nav-end>.primary{display:none}.hero h1{font-size:2.5rem}.repo-row{grid-template-columns:22px minmax(0,1fr);gap:10px;padding:20px 14px}.repo-stats{grid-column:2;text-align:left;display:flex;align-items:center;gap:16px}.repo-stats small{margin:0}.spark{margin-left:auto;width:80px}.sidebar{grid-template-columns:1fr}.sponsor-grid{gap:8px}.sponsor{padding:12px;gap:8px}.sponsor .initial{display:none}.sponsor small{font-size:.71rem}.section-head h2{font-size:1.35rem}.section-head{align-items:start}.footer-grid{gap:20px}.metrics{gap:8px}.metric{padding:16px}.search button{padding:11px}.topnav.open{top:67px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.share-preview{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;border:1px solid #33465f;border-radius:12px;background:#0c1320;margin:14px 0}.share-actions{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}.embed-code{width:100%;height:94px;resize:vertical;border:1px solid #3c4e68;border-radius:8px;background:#09131f;color:#bed0e7;font:13px/1.6 ui-monospace,monospace;padding:12px;margin:8px 0}.share-panel .filters label{font-size:.85rem;color:#a4b6cf;display:flex;gap:8px;align-items:center}.share-panel details img{max-width:100%;height:auto}.share-status{min-height:24px}
/* Allow long repository names and email addresses to wrap on narrow screens. */
.panel,.metric,.footer-grid>div,.two-col>div{min-width:0}.panel p,.form-status,.footer p,.prose p{overflow-wrap:anywhere}.tag{max-width:100%;overflow-wrap:anywhere}.form input:focus-visible,.form select:focus-visible,.form textarea:focus-visible,.embed-code:focus-visible{outline:2px solid var(--lime)}

/* Best Category Grids */
.best-domain-list{display:flex;flex-direction:column;gap:20px}
.best-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.best-card{display:flex;flex-direction:column;justify-content:space-between;padding:16px 18px;background:linear-gradient(135deg,#131c2b,#0d1421);border:1px solid #2a3a52;border-radius:11px;transition:all .2s ease;text-decoration:none}
.best-card:hover{transform:translateY(-2px);border-color:var(--lime);background:#182337;box-shadow:0 6px 20px rgba(0,0,0,0.3)}
.best-title{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:1.02rem;color:var(--ink);margin-bottom:6px}
.best-meta{font-size:0.8rem;color:var(--muted)}
.best-meta strong{color:var(--lime);font-weight:600}

/* Developer Leaderboard & Profiles */
.dev-list{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#0f1724}
.dev-row{display:grid;grid-template-columns:36px 44px minmax(0,1fr) 140px;gap:16px;align-items:start;padding:20px 22px;border-bottom:1px solid var(--line);transition:background .2s}
.dev-row:last-child{border:0}
.dev-row:hover{background:#182135}
.dev-rank{font:600 0.95rem 'Space Grotesk';color:#5e718d;padding-top:8px}
.dev-avatar{width:44px;height:44px;border-radius:10px;border:1px solid #364964;background:#152030;object-fit:cover}
.dev-info{min-width:0}
.dev-name{font:600 1.12rem 'Space Grotesk';margin:0 0 4px}
.dev-name a{color:var(--ink)}
.dev-name a:hover{color:var(--lime)}
.dev-meta{font-size:0.82rem;color:var(--muted);margin:0}
.dev-spotlight{margin-top:10px;padding:10px 14px;background:#0c1422;border:1px solid #24344c;border-radius:8px}
.dev-repo-name{font:600 0.9rem 'Space Grotesk';margin:0}
.dev-repo-name a{color:#8ca5ff}
.dev-repo-desc{font-size:0.8rem;color:#9eb0c7;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.dev-stats{text-align:right;font-family:'Space Grotesk'}
.dev-stats strong{display:block;font-size:1.15rem;color:var(--lime)}
.dev-stats small{display:block;font-size:0.75rem;color:var(--muted)}

/* Popular Comparisons Matrix */
.popular-compare-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-top:14px}
.popular-compare-item{display:flex;flex-direction:column;gap:5px;padding:14px 16px;background:#0e1726;border:1px solid #28394e;border-radius:10px;transition:all .18s ease}
.popular-compare-item:hover{border-color:var(--lime);background:#162236;transform:translateY(-2px)}
.popular-compare-item span{font-size:0.95rem}

/* Nearby in Rankings Table */
.nearby-table tr.current-repo{background:rgba(197,250,106,0.06);border-left:3px solid var(--lime)}
.nearby-table th{background:#0e1726}

/* Progress & Insights Visuals */
.progress-row{margin-bottom:14px}
.progress-bar{height:7px;background:#182337;border-radius:100px;overflow:hidden;margin-top:5px}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--lime),#6e9d5c);border-radius:100px}

@media(max-width:800px){
  .dev-row{grid-template-columns:28px 38px minmax(0,1fr);padding:16px 14px}
  .dev-stats{grid-column:3;text-align:left;display:flex;align-items:center;gap:14px;margin-top:10px}
  .dev-stats strong{display:inline}
  .dev-stats a{margin-top:0!important;margin-left:auto}
  .best-grid{grid-template-columns:1fr}
}

/* GitTrend-style Repository Listing Card */
.repo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent!important;
  border: none!important;
}

.repo-card {
  display: grid!important;
  grid-template-columns: 48px minmax(0, 1fr) 92px!important;
  gap: 18px!important;
  align-items: center!important;
  background: #0d1522!important;
  border: 1px solid #233247!important;
  border-radius: 12px!important;
  padding: 18px 0 18px 20px!important;
  transition: all 0.2s ease!important;
  position: relative!important;
}

.repo-card:hover {
  background: #121c2e!important;
  border-color: #3b506f!important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35)!important;
}

.repo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #33445c;
  background: #1a2538;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.repo-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.repo-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-rank {
  background: #ff6b00;
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.repo-title {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  color: #e2e8f0;
}

.repo-owner {
  font-weight: 500;
  color: #cbd5e1;
}

.repo-slash {
  color: #64748b;
  margin: 0 1px;
}

.repo-name {
  font-weight: 700;
  color: #ffffff;
}

.repo-title:hover .repo-name {
  color: var(--lime);
}

.repo-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-left: 2px;
}

.lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.badge-new {
  background: #00d26a;
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-year {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.repo-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 3px 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.repo-topics {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.topic-tag {
  color: #8fa2bd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.topic-tag:hover {
  color: var(--lime);
}

.tag-diamond {
  color: #64748b;
  font-size: 0.72rem;
}

.repo-card-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  margin-top: 2px;
}

.repo-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8fa2bd;
}

.repo-velocity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-weight: 600;
  font-size: 0.86rem;
}

.velocity-arrow {
  font-weight: 800;
}

/* Right column with vertical divider and star circle */
.repo-card-side {
  border-left: 1px solid #233247;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.star-btn-circle {
  min-width: 68px;
  height: 52px;
  padding: 6px 8px;
  border-radius: 12px;
  background: #141f32;
  border: 1.5px solid #2c3e56;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.star-btn-circle:hover {
  transform: translateY(-2px);
  background: #1a2942;
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  color: #ffffff;
}

.star-icon {
  width: 15px;
  height: 15px;
  stroke: #f59e0b;
  fill: #f59e0b;
  margin-bottom: 1px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.star-btn-circle:hover .star-icon {
  transform: scale(1.15);
}

.star-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media(max-width: 800px) {
  .repo-card {
    grid-template-columns: 42px minmax(0, 1fr) 76px!important;
    gap: 12px!important;
    padding: 14px 0 14px 14px!important;
  }
  .repo-avatar {
    width: 40px;
    height: 40px;
  }
  .star-btn-circle {
    width: 48px;
    height: 48px;
  }
}
@media(max-width: 520px) {
  .repo-card {
    grid-template-columns: minmax(0, 1fr) 68px!important;
    padding: 14px 0 14px 14px!important;
  }
  .repo-card > a:first-child {
    display: none;
  }
}

/* Sidebar: Trending Topics, Browse by language, Digests */
.workspace {
  grid-template-columns: minmax(0, 1fr) 320px!important;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.side-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.side-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff7905;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.side-link:hover {
  color: #ffa447;
}

.side-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #141f30;
  border: 1px solid #2a3a52;
  border-radius: 8px;
  color: #dbe4f0;
  text-decoration: none;
  transition: all 0.15s ease;
}

.side-pill:hover {
  background: #1c2b42;
  border-color: var(--lime);
  color: #ffffff;
  transform: translateY(-1px);
}

.side-pill-count {
  font-size: 0.72rem;
  color: #7f95b2;
  font-weight: 500;
}

.side-pill .lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.side-pill.month-pill {
  background: #19202f;
  border-color: #353b52;
  color: #f3e8c8;
}

.side-pill.month-pill:hover {
  background: #232a3d;
  border-color: #f59e0b;
}

@media(max-width: 1050px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px!important;
  }
}

@media(max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr!important;
  }
}

/* ========================================================
   GitTrend-Style Repository Detail Page Components
   ======================================================== */
.repo-hero-card {
  background: #111a29;
  border: 1px solid #22344c;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
}

.repo-hero-inner {
  padding: 24px 28px;
}

.repo-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.repo-hero-info {
  flex: 1;
  min-width: 280px;
}

.repo-hero-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.repo-hero-avatar {
  border-radius: 50%;
  border: 2px solid #2b3e58;
  background: #192435;
  flex-shrink: 0;
}

.repo-hero-title {
  margin: 4px 0 0 0;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-owner-link {
  color: #8da4c4;
  text-decoration: none;
  font-weight: 500;
}

.hero-owner-link:hover {
  color: #c5fa6a;
  text-decoration: underline;
}

.hero-slash {
  color: #485c78;
  margin: 0 6px;
  font-weight: 400;
}

.hero-repo-name {
  color: #ffffff;
}

.repo-hero-desc {
  font-size: 1.02rem;
  line-height: 1.55;
  color: #adbcd0;
  margin: 12px 0 16px 0;
  max-width: 860px;
}

.repo-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #172437;
  border: 1px solid #2c4260;
  color: #d8e5f7;
}

.topic-tag-hero {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 121, 5, 0.12);
  border: 1px solid rgba(255, 121, 5, 0.35);
  color: #ff9b44;
  text-decoration: none;
  transition: all 0.15s ease;
}

.topic-tag-hero:hover {
  background: rgba(255, 121, 5, 0.22);
  color: #ffffff;
}

.badge-license-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #152030;
  border: 1px solid #263850;
  color: #8fa5c2;
}

.repo-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 8px;
}

.repo-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #1c2b42;
}

.hero-metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-metric-icon {
  font-size: 1.1rem;
}

.hero-metric-icon.star-amber {
  color: #f59e0b;
}

.hero-metric strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-metric small {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #798fa9;
}

/* Detail Navigation Tabs */
.detail-tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid #293d56;
  background: #141f30;
  color: #a3b8d2;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-pill-btn:hover {
  background: #1a2a40;
  color: #ffffff;
}

.tab-pill-btn.active {
  background: #FF7905;
  color: #0b101b;
  border-color: #FF7905;
  box-shadow: 0 2px 8px rgba(255, 121, 5, 0.35);
}

/* Detail Workspace Grid */
.detail-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-section-card {
  padding: 22px 24px;
  margin-bottom: 20px;
}

.section-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-card-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Momentum Card Styles */
.momentum-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.momentum-box {
  background: #111a29;
  border: 1px solid #23344c;
  border-radius: 10px;
  padding: 14px 16px;
}

.momentum-box.highlight {
  border-color: rgba(197, 250, 106, 0.3);
  background: #13222e;
}

.momentum-num {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  line-height: 1.1;
}

.momentum-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #798fa9;
  margin: 6px 0 0 0;
}

.momentum-table {
  width: 100%;
  border-collapse: collapse;
}

.momentum-table th, .momentum-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1c2b42;
  font-size: 0.88rem;
}

.momentum-table th {
  color: #8da4c4;
  font-weight: 600;
  text-align: left;
}

.intel-summary-para {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #adbcd0;
  margin-top: 14px;
}

/* Trending Record Styles */
.trending-stat-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.t-stat {
  background: #111a29;
  border: 1px solid #23344c;
  border-radius: 8px;
  padding: 12px 14px;
}

.t-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.t-stat-lbl {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #798fa9;
  margin: 4px 0 0 0;
}

.activity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.activity-square {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #172437;
  border: 1px solid #24364e;
}

.activity-square.active {
  background: #FF7905;
  border-color: #ea580c;
}

/* Technical Content & Paragraphs */
.intel-para {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #d2deec;
  margin-bottom: 12px;
}

.intel-para:last-child {
  margin-bottom: 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #111a29;
  border: 1px solid #23344c;
  border-radius: 8px;
  padding: 14px 16px;
}

.feature-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #0b101b;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-item-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c9d8eb;
  margin: 0;
}

/* Platform Tabs & Terminal Window */
.platform-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.plat-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #273950;
  background: #141f30;
  color: #9ab0ca;
  cursor: pointer;
  transition: all 0.15s ease;
}

.plat-btn:hover {
  background: #1c2b42;
  color: #ffffff;
}

.plat-btn.active {
  background: #253954;
  border-color: #3b557a;
  color: #ffffff;
}

.terminal-window {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #273950;
  background: #090e18;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #131c2b;
  border-bottom: 1px solid #202e42;
}

.traffic-dots {
  display: flex;
  gap: 6px;
}

.traffic-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic-dots .dot.red { background: #ef4444; }
.traffic-dots .dot.amber { background: #f59e0b; }
.traffic-dots .dot.green { background: #22c55e; }

.terminal-title {
  font-family: monospace;
  font-size: 0.75rem;
  color: #798fa9;
}

.copy-term-btn {
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 4px;
  background: #1c2b42;
  border: 1px solid #2d4362;
  color: #d2deec;
  cursor: pointer;
}

.copy-term-btn:hover {
  background: #273c5c;
  color: #ffffff;
}

.terminal-body {
  padding: 14px 18px;
  overflow-x: auto;
}

.terminal-code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #f1f5f9;
}

.term-prompt {
  color: #22c55e;
  font-weight: bold;
  user-select: none;
  margin-right: 6px;
}

/* System Requirements Grid */
.reqs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.req-col {
  background: #111a29;
  border: 1px solid #23344c;
  border-radius: 8px;
  padding: 14px 16px;
}

.req-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8da4c4;
  margin: 0 0 8px 0;
}

.req-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.req-col li, .req-col p {
  font-size: 0.88rem;
  color: #d2deec;
  margin: 0;
  line-height: 1.5;
}

/* Use Cases */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.use-case-item {
  background: #111a29;
  border: 1px solid #23344c;
  border-radius: 8px;
  padding: 16px 18px;
}

.use-case-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.use-case-item p {
  font-size: 0.88rem;
  color: #adbcd0;
  line-height: 1.5;
  margin: 0;
}

/* Getting Started Workflow */
.workflow-steps {
  display: flex;
  flex-direction: column;
}

.workflow-step-row {
  display: flex;
  gap: 16px;
}

.step-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #0b101b;
  font-weight: 800;
  font-size: 0.84rem;
  flex-shrink: 0;
}

.step-connector {
  width: 2px;
  flex: 1;
  background: #253954;
  margin: 4px 0;
}

.step-instruction {
  padding-bottom: 18px;
  padding-top: 4px;
}

.step-instruction p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #d2deec;
}

/* Strengths & Limitations */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.strengths-card {
  border-color: rgba(34, 197, 94, 0.3);
  margin-bottom: 0;
}

.limitations-card {
  border-color: rgba(249, 115, 22, 0.3);
  margin-bottom: 0;
}

.pros-list, .cons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-item, .con-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d2deec;
}

.pro-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.con-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #f97316;
  flex-shrink: 0;
  margin-top: 5px;
}

/* Alternatives Stack */
.alternatives-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alt-row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #111a29;
  border: 1px solid #23344c;
  border-radius: 8px;
  padding: 12px 16px;
}

.alt-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.alt-meta {
  flex: 1;
  min-width: 0;
}

.alt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.alt-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.94rem;
}

.alt-link:hover {
  color: var(--lime);
}

.alt-desc {
  font-size: 0.82rem;
  color: #8da4c4;
  margin: 3px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #111a29;
  border: 1px solid #23344c;
  border-radius: 8px;
  overflow: hidden;
}

.faq-summary {
  padding: 14px 18px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  font-size: 1.2rem;
  color: #8da4c4;
  transition: transform 0.15s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 14px 18px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #adbcd0;
}

/* Sidebar Details List */
.sidebar-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  border-bottom: 1px solid #1c2b42;
  padding-bottom: 8px;
}

.sidebar-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-key {
  color: #798fa9;
}

.detail-val {
  color: #ffffff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-val.font-mono {
  font-family: monospace;
  font-size: 0.78rem;
  background: #172437;
  padding: 2px 6px;
  border-radius: 4px;
}

.sidebar-topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.similar-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.similar-row-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.similar-row-link:hover {
  background: #172437;
}

.similar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  flex-shrink: 0;
}

.similar-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.similar-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #d2deec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-stats {
  font-size: 0.72rem;
  color: #798fa9;
}

@media(max-width: 950px) {
  .detail-workspace {
    grid-template-columns: 1fr;
  }
  .feature-grid, .use-case-grid, .pros-cons-grid, .reqs-grid {
    grid-template-columns: 1fr;
  }
  .momentum-tri-grid {
    grid-template-columns: 1fr;
  }
  .trending-stat-quad {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   GitTrend-Parity Global Header, Command Palette & Header Pages
   ========================================================================== */

/* Announcement Bar */
.announcement-bar {
  background: #fdfbf7;
  border-bottom: 2px solid #000000;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: #111827;
  position: relative;
  z-index: 50;
}
.announcement-bar a {
  color: #ea580c;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}
.announcement-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0 4px;
  line-height: 1;
}
.announcement-close:hover {
  color: #000;
}

/* Command Palette Modal (⌘K) */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.cmd-palette-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cmd-palette-modal {
  background: #0f1724;
  border: 1px solid #2a3b50;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  border-radius: 14px;
  width: 90%;
  max-width: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-8px);
  transition: transform 0.15s ease;
}
.cmd-palette-backdrop.active .cmd-palette-modal {
  transform: translateY(0);
}
.cmd-palette-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #1a2538;
  background: #131c2c;
}
.cmd-palette-search-icon {
  color: #8fa2bd;
  flex-shrink: 0;
}
.cmd-palette-input {
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  width: 100%;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
}
.cmd-palette-input::placeholder {
  color: #64748b;
}
.cmd-palette-close-btn {
  background: #1a2538;
  border: 1px solid #28374d;
  border-radius: 6px;
  cursor: pointer;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}
.cmd-palette-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}
.cmd-palette-empty {
  padding: 32px 16px;
  text-align: center;
  color: #8fa2bd;
  font-size: 0.9rem;
}
.cmd-palette-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8fa2bd;
  padding: 10px 10px 4px;
}
.cmd-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #f1f5ff;
  cursor: pointer;
  transition: background 0.12s;
}
.cmd-palette-item:hover, .cmd-palette-item.selected {
  background: #182335;
}
.cmd-palette-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cmd-palette-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
}
.cmd-palette-item-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}
.cmd-palette-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #0b111a;
  border-top: 1px solid #1a2538;
  font-size: 0.75rem;
  color: #64748b;
}
.cmd-kbd-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-kbd {
  background: #141f32;
  border: 1px solid #28374d;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Nav search button */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #141f32;
  border: 1px solid #28374d;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.18s ease;
}
.nav-search-btn:hover {
  background: #1a2942;
  border-color: #3b4e6b;
  color: #ffffff;
}

/* Developer Cards (Dark Theme Parity) */
.dev-card-neo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #0f1724;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.dev-card-neo:hover {
  transform: translateY(-2px);
  background: #182335;
  border-color: #3b4e6b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.dev-card-neo:hover .dev-card-name a {
  color: #c5fa6a;
}
.dev-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.dev-card-rank {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #64748b;
  min-width: 28px;
}
.dev-card-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #2a3a52;
  object-fit: cover;
  flex-shrink: 0;
  background: #182335;
}
.dev-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dev-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #ffffff;
  margin: 0;
}
.dev-card-repo-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0;
}
.dev-card-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dev-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #8fa2bd;
  margin-top: 4px;
}
.dev-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 140px;
  flex-shrink: 0;
}
.dev-stars-today-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8fa2bd;
  text-transform: uppercase;
}
.dev-stars-today-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--lime);
}
.dev-stars-repos-count {
  font-size: 0.78rem;
  color: #8fa2bd;
}

/* Developer Profile Page Widgets */
.dev-profile-box {
  background: #0f1724;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.dev-profile-header-neo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.dev-profile-user-neo {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dev-profile-avatar-neo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #2a3a52;
  object-fit: cover;
  background: #182335;
}
.dev-profile-widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.dev-widget-card-neo {
  background: #0f1724;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}
.dev-widget-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8fa2bd;
}
.dev-widget-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--lime);
  margin-top: 4px;
}
.lang-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #182335;
  border: 1px solid #28374d;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 4px 6px 4px 0;
}

/* Topics Directory (Dark Theme Parity) */
.topics-hero-neo {
  background: linear-gradient(135deg, #131c2b, #0d1421);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.topics-hero-neo h1 {
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.topics-hero-neo .eyebrow {
  color: var(--lime) !important;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.topics-hero-neo p {
  color: #94a3b8 !important;
}
.topic-group-section {
  margin-bottom: 28px;
}
.topic-group-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 28px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topic-group-header::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--lime);
  border-radius: 2px;
}
.topic-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.topic-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: #111a28;
  border: 1px solid #2a3a52;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5ff;
  text-decoration: none;
  transition: all 0.18s ease;
}
.topic-pill-btn:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  background: #18253a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(197, 250, 106, 0.15);
}
.topic-pill-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  background: #182335;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #28374d;
}

/* The Language Chart Leaderboard (Dark Theme Parity) */
.lang-chart-card {
  background: #0f1724;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.lang-chart-row-neo {
  display: grid;
  grid-template-columns: 36px 140px 1fr 90px 90px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #1a2538;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.lang-chart-row-neo:last-child {
  border-bottom: none;
}
.lang-chart-row-neo:hover {
  background: #182335;
}
.lang-chart-rank {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #64748b;
}
.lang-chart-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}
.lang-chart-bar-bg {
  height: 8px;
  background: #1a2538;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  border: 1px solid #28374d;
}
.lang-chart-bar-fill {
  height: 100%;
  border-radius: 4px;
}
.lang-chart-stars {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  color: #ffffff;
}
.lang-chart-repos {
  font-size: 0.82rem;
  color: #8da1bc;
  text-align: right;
}

/* Badges & Pills */
.badge-rising {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(197, 250, 106, 0.12);
  color: var(--lime);
  font-weight: 700;
  font-size: 0.72rem;
  border: 1px solid rgba(197, 250, 106, 0.35);
  text-transform: uppercase;
}
.badge-gem {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
  font-weight: 700;
  font-size: 0.72rem;
  border: 1px solid rgba(192, 132, 252, 0.35);
  text-transform: uppercase;
}
.diamond-tag {
  color: #64748b;
  font-size: 0.78rem;
  margin-right: 6px;
}

/* Insights Charts (Dark Theme Parity) */
.insights-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.insights-chart-card {
  background: #0f1724;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.insights-chart-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.insights-chart-val {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: #ffffff;
}
.insights-chart-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 4px;
}
.insights-chart-sublabel {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}
.insights-chart-svg {
  width: 100%;
  height: 110px;
  display: block;
  overflow: visible;
  margin-top: 10px;
}
.insights-chart-card .badge {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

@media(max-width: 1400px) {
  .topnav .nav-item {
    padding: 6px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }
}
@media(max-width: 1240px) {
  .topnav .nav-item svg {
    display: none;
  }
  .nav-search-btn .cmd-kbd {
    display: none;
  }
}

@media(max-width: 800px) {
  .dev-card-neo {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .dev-card-right {
    align-items: flex-start;
    text-align: left;
  }
  .lang-chart-row-neo {
    grid-template-columns: 30px 110px 1fr 70px;
  }
  .lang-chart-repos {
    display: none;
  }
  .dev-profile-widgets-grid, .insights-chart-grid {
    grid-template-columns: 1fr;
  }
}

/* Best Hub (Dark Theme Parity) */
.best-group {
  background: #0f1724;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.best-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1a2538;
}
.best-group-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8fa2bd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.best-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.best-card-neo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #111a28;
  border: 1px solid #253347;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}
.best-card-neo:hover {
  background: #18253a;
  border-color: #3b4e6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.best-card-neo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.best-card-neo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #8fa2bd;
}
.best-card-stars {
  font-weight: 700;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
}
.best-card-repos {
  font-weight: 600;
  color: #8fa2bd;
}

/* Promote Page Styling (Dark Theme Parity) */
.promote-hero-card {
  background: linear-gradient(135deg, #131c2b, #0d1421);
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 32px;
}
.promote-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 10px 0;
}
.promote-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 14px 0;
}
.promote-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 800px;
  margin: 0 0 24px 0;
}
.promote-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.promote-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}
.promote-stat-box {
  background: #111a28;
  border: 1px solid #253347;
  border-radius: 8px;
  padding: 16px 20px;
}
.promote-stat-box dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa2bd;
  margin-bottom: 4px;
}
.promote-stat-box dd {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.promote-section {
  margin-top: 36px;
}
.promote-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 18px 0;
}
.promote-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.promote-result-card {
  background: #0f1724;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 24px;
}
.promote-result-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8fa2bd;
  margin: 0 0 8px 0;
}
.promote-result-views {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
}
.promote-result-views span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #8fa2bd;
}
.promote-result-stat {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}
.promote-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.promote-offer-card {
  background: #0f1724;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 24px;
}
.promote-offer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a2538;
}
.promote-offer-top h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.promote-offer-list {
  padding-left: 20px;
  margin: 0;
  line-height: 1.6;
  font-size: 0.92rem;
  color: #94a3b8;
}
.promote-offer-list li {
  margin-bottom: 8px;
}
.promote-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.promote-step-card {
  background: #0f1724;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 24px;
}
.promote-step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  border-radius: 8px;
  font-weight: 800;
  color: #0b1019;
  margin-bottom: 12px;
}
.promote-step-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}
.promote-step-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* Alphabetical Filter Bar (/repositories) */
.alpha-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #0f1724;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.alpha-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #28374d;
  border-radius: 6px;
  background: #141f32;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.15s ease;
}
.alpha-pill:hover, .alpha-pill.active {
  background: var(--lime);
  color: #090d15;
  border-color: var(--lime);
}

/* Footer Social Media Channels */
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #141f32;
  border: 1px solid #283950;
  color: #a3b8d2;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-social-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.footer-social-link:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.footer-social-link:hover svg {
  transform: scale(1.12);
}
.footer-social-link.yt:hover {
  border-color: #ff3333;
  background: rgba(255, 30, 30, 0.12);
  color: #ff6666;
}
.footer-social-link.ig:hover {
  border-color: #f75586;
  background: rgba(247, 85, 134, 0.12);
  color: #ff7aa5;
}
.footer-social-link.threads:hover {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.footer-social-link.fb:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}
.footer-social-link.x-com:hover {
  border-color: #94a3b8;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ========================================================
   Star History Interactive SVG Chart, Toolbar & Modals
   ======================================================== */
.promote-hero-card {
  position: relative!important;
  top: auto!important;
  z-index: 1!important;
}

.star-history-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid #21262d;
  margin: 16px 0;
}
.star-history-object {
  display: block;
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: 560px;
  border: none;
  aspect-ratio: 900 / 560;
}
.star-chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #1f2a3c;
}
.chart-theme-toggles {
  display: inline-flex;
  align-items: center;
  background: #0c1322;
  border: 1px solid #23344d;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.btn-chart-theme {
  background: transparent;
  border: none;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #8fa2bd;
  transition: all 0.2s ease;
}
.btn-chart-theme.active,
.btn-chart-theme:hover {
  background: #1a273b;
  color: #ffffff;
}
.chart-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chart-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid #2b3d56;
  background: #131d2c;
  color: #c3d2e6;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.chart-tool-btn:hover {
  background: #1c2b40;
  border-color: #3f5678;
  color: #ffffff;
}
.chart-tool-btn svg {
  flex-shrink: 0;
}

/* Modals for Embed & Share */
.chart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.chart-modal {
  background: #111a28;
  border: 1px solid #26384f;
  border-radius: 14px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 24px;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.chart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.chart-modal-header h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}
.chart-modal-close {
  background: transparent;
  border: none;
  color: #8fa2bd;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.chart-modal-close:hover {
  color: #ffffff;
}
.chart-modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #23344b;
  margin-bottom: 16px;
}
.modal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  color: #8fa2bd;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.modal-tab-btn:hover {
  color: #ffffff;
}
.modal-tab-btn.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.copy-code-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.modal-code-textarea {
  width: 100%;
  height: 90px;
  background: #090e17;
  border: 1px solid #23344b;
  border-radius: 8px;
  color: #c9d6e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 10px 12px;
  resize: vertical;
}
.modal-link-input {
  width: 100%;
  background: #090e17;
  border: 1px solid #23344b;
  border-radius: 8px;
  color: #c9d6e8;
  font-family: ui-monospace, monospace;
  font-size: 0.84rem;
  padding: 10px 12px;
}
.share-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.share-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 0.88rem;
}
.share-social-btn.x-twitter {
  background: #000000;
  border-color: #333333;
  color: #ffffff;
}
.share-social-btn.linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}
.image-download-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.download-choice-btn {
  justify-content: flex-start;
  padding: 12px 18px;
  font-size: 0.92rem;
}

/* Viral Sharing Bar & Virality Elements */
.viral-share-container {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.viral-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.viral-share-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
}
.viral-share-title .viral-flame {
  font-size: 1.05rem;
  animation: pulse-flame 2s infinite ease-in-out;
}
@keyframes pulse-flame {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.viral-share-subtext {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 4px;
}
.viral-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.viral-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
  line-height: 1;
  user-select: none;
}
.viral-share-btn svg {
  flex-shrink: 0;
}

.viral-share-btn.btn-x {
  background: #000000;
  color: #ffffff;
  border-color: #334155;
}
.viral-share-btn.btn-x:hover {
  background: #171717;
  border-color: #64748b;
  transform: translateY(-1px);
}

.viral-share-btn.btn-linkedin {
  background: rgba(10, 102, 194, 0.15);
  color: #38bdf8;
  border-color: rgba(10, 102, 194, 0.35);
}
.viral-share-btn.btn-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  transform: translateY(-1px);
}

.viral-share-btn.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #4ade80;
  border-color: rgba(37, 211, 102, 0.3);
}
.viral-share-btn.btn-whatsapp:hover {
  background: #25d366;
  color: #0f172a;
  border-color: #25d366;
  transform: translateY(-1px);
}

.viral-share-btn.btn-reddit {
  background: rgba(255, 69, 0, 0.12);
  color: #fb923c;
  border-color: rgba(255, 69, 0, 0.3);
}
.viral-share-btn.btn-reddit:hover {
  background: #ff4500;
  color: #ffffff;
  border-color: #ff4500;
  transform: translateY(-1px);
}

.viral-share-btn.btn-telegram {
  background: rgba(0, 136, 204, 0.12);
  color: #38bdf8;
  border-color: rgba(0, 136, 204, 0.3);
}
.viral-share-btn.btn-telegram:hover {
  background: #0088cc;
  color: #ffffff;
  border-color: #0088cc;
  transform: translateY(-1px);
}

.viral-share-btn.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}
.viral-share-btn.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.viral-share-btn.btn-native {
  background: linear-gradient(135deg, rgba(197, 250, 106, 0.15), rgba(56, 189, 248, 0.15));
  color: #c5fa6a;
  border-color: rgba(197, 250, 106, 0.35);
}
.viral-share-btn.btn-native:hover {
  background: #c5fa6a;
  color: #0b101b;
  border-color: #c5fa6a;
  transform: translateY(-1px);
}

/* Floating Toast Notification */
.viral-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(197, 250, 106, 0.4);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.viral-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SPONSORED & PROMOTE UI COMPONENTS (Top Bar, Sidebar & Bottom Callout)
   ========================================================================== */

/* Header Promote CTA Button with Megaphone */
.header-promote-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--lime) !important;
  color: #121c0b !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  border: 1px solid var(--lime) !important;
  box-shadow: 0 2px 10px rgba(197, 250, 106, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.header-promote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(197, 250, 106, 0.45);
  background: #d4ff85 !important;
}

/* Top Sponsored Bar (Above Feed / Rankings) */
.top-sponsored-section {
  margin-bottom: 22px;
}
.top-sponsored-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.top-sponsored-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #788fae;
}
.top-sponsored-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.top-sponsored-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #131c2c, #0e1522);
  border: 1px solid #23344d;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-sponsored-card:hover {
  transform: translateY(-2px);
  border-color: #3b537a;
  background: linear-gradient(135deg, #182337, #111a2a);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.top-sponsored-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid #2a3c57;
  flex-shrink: 0;
}
.top-sponsored-content {
  min-width: 0;
}
.top-sponsored-content strong {
  display: block;
  font-size: 0.86rem;
  color: #edf4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-sponsored-content p {
  margin: 2px 0 0 0;
  font-size: 0.74rem;
  color: #8fa2bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-sponsored-card.top-sponsored-cta {
  border-style: dashed;
  border-color: #304461;
  background: rgba(18, 27, 43, 0.4);
}
.top-sponsored-card.top-sponsored-cta:hover {
  border-color: var(--lime);
  background: rgba(197, 250, 106, 0.05);
}
.top-sponsored-cta-inner {
  width: 100%;
  text-align: center;
}
.top-sponsored-cta-inner .cta-plus {
  display: block;
  font-size: 0.84rem;
  color: var(--lime);
  font-weight: 700;
}
.top-sponsored-cta-inner p {
  margin: 2px 0 0 0;
  font-size: 0.72rem;
  color: #798da8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Sponsor Panel */
.side-sponsor-panel {
  background: linear-gradient(145deg, #131c2b, #0f1623);
  border: 1px solid #283a52;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.side-sponsor-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7e95b3;
  text-transform: uppercase;
}
.side-sponsor-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.side-sponsor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #152030;
  border: 1px solid #27384e;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.18s ease;
  position: relative;
}
.side-sponsor-item:hover {
  background: #1c2b40;
  border-color: #3b5375;
  transform: translateY(-1px);
}
.side-sponsor-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.side-sponsor-text {
  flex: 1;
  min-width: 0;
}
.side-sponsor-text strong {
  display: block;
  font-size: 0.84rem;
  color: #edf4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-sponsor-text p {
  margin: 1px 0 0 0;
  font-size: 0.72rem;
  color: #8fa3bf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-sponsor-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(197, 250, 106, 0.12);
  color: var(--lime);
  border: 1px solid rgba(197, 250, 106, 0.28);
}
.side-sponsor-promo-box {
  display: block;
  text-align: center;
  padding: 14px 12px;
  border: 1px dashed #304461;
  background: rgba(14, 21, 33, 0.4);
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 2px;
}
.side-sponsor-promo-box:hover {
  border-color: var(--lime);
  background: rgba(197, 250, 106, 0.05);
}
.side-promo-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--lime);
}
.side-promo-desc {
  display: block;
  font-size: 0.72rem;
  color: #8195af;
  margin-top: 3px;
}

/* Bottom Full-Width Maintainer Callout Banner */
.maintainer-banner-wrap {
  margin: 40px auto 20px auto;
}
.maintainer-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #152238 0%, #0f1725 100%);
  border: 1px solid #2b3e59;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}
.maintainer-banner-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--lime);
}
.maintainer-banner-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 8px;
}
.maintainer-banner-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.25;
}
.maintainer-banner-text p {
  margin: 0;
  color: #9cb1cb;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 680px;
}
.maintainer-banner-btn-wrap {
  flex-shrink: 0;
}
.maintainer-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(197, 250, 106, 0.25);
  transition: all 0.2s ease;
}
.maintainer-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 250, 106, 0.4);
}

@media(max-width: 900px) {
  .top-sponsored-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .maintainer-banner-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
}
@media(max-width: 520px) {
  .top-sponsored-grid {
    grid-template-columns: 1fr;
  }
}
