/* AltaCraft — stylesheet bersama (homepage + halaman PHP) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0c;
  --sidebar: #101014;
  --card: #141419;
  --border: #232329;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #6b9dff;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  display: flex;
  min-height: 100vh;
}
/* ---------- sidebar ---------- */
.sidebar {
  width: 240px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar .logo { flex-shrink: 0; }
.sidebar .nav { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.logo {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.3px;
  padding: 4px 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.logo span.logo-text span { color: var(--accent); }
.sidebar-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}
.sidebar-toggle:hover { color: var(--text); border-color: #3a3a44; }
body.sb-collapsed .sidebar {
  width: 72px;
  padding: 20px 8px;
}
body.sb-collapsed .logo { justify-content: center; padding: 4px 0 18px; }
body.sb-collapsed .logo-text { display: none; }
body.sb-collapsed #collapseBtn { display: none; }
body.sb-collapsed .nav a { justify-content: center; padding: 10px 4px; }
body.sb-collapsed .nav a .lbl { display: none; }
body.sb-collapsed .nav a .ic { font-size: 20px; }
body.sb-collapsed .nav-section { display: none; }
body.sb-collapsed .nav-links { display: block !important; }
.sidebar { transition: width .2s ease; }
#expandBtn { display: none; margin-right: 12px; }
body.sb-collapsed #expandBtn { display: flex; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 2px;
}
.nav a:hover { background: #1a1a20; color: var(--text); }
.nav a.active { background: #1c1c24; color: var(--text); font-weight: 600; }
/* Tombol Sign In di kaki sidebar */
.sidebar-foot {
  flex-shrink: 0;
  padding: 14px 4px 4px;
  background: var(--sidebar);
  border-top: 1px solid var(--border);
}
.signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2E7CF6;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.signin-btn:hover { background: #2568d8; color: #fff !important; }
.signin-btn svg { flex-shrink: 0; }
body.sb-collapsed .signin-btn span { display: none; }
body.sb-collapsed .signin-btn { padding: 10px 4px; }
.nav a svg { flex-shrink: 0; opacity: .85; }
.nav-section {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #63636b;
  padding: 18px 10px 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.nav-section:hover { color: var(--text); }
.nav-section .chev {
  margin-left: auto;
  font-size: 10px;
  transition: transform .15s;
}
/* Badge jumlah ala aitmpl.com */
.nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,.09);
  color: #9aa4b2;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  letter-spacing: 0;
  line-height: 1.5;
}
.nav-section .nav-badge + .chev { margin-left: 0; }
.nav-group.closed .nav-links { display: none; }
.nav-group.closed .chev { transform: rotate(-90deg); }
/* ---------- main ---------- */
.main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,12,.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.topbar .crumb { font-size: 13px; color: var(--muted); }
.top-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 7px 13px; border-radius: 8px; white-space: nowrap;
}
.topnav a:hover { color: var(--text); background: #1a1a20; }
.topnav a.active { color: #fff; background: #2E7CF6; }
.search {
  background: #141419;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  width: 240px;
  outline: none;
}
.search:focus { border-color: var(--accent); }
.hero { padding: 44px 32px 8px; max-width: 1600px; }
.kicker {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.5px; }
h1 .hl { color: var(--accent); }
.sub { color: var(--muted); margin-top: 10px; font-size: 15px; }
.grid-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #63636b;
  font-weight: 700;
  padding: 28px 32px 0;
  max-width: 1600px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 32px 48px;
  max-width: 1600px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
a.card:hover { border-color: #3a3a44; transform: translateY(-2px); }
.card.disabled { opacity: .55; cursor: default; }
/* ---------- snippet previews (CSS art) ---------- */
.snippet {
  height: 92px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.snippet.vizpro { background: linear-gradient(180deg, #1c0b33, #0c0c14); }
.snippet.vizpro .bars {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  display: flex; align-items: flex-end; gap: 5px; height: 56px;
}
.snippet.vizpro .bars i {
  flex: 1; border-radius: 3px;
  background: linear-gradient(180deg, #f472b6, #22d3ee);
}
.snippet.video { background: #141019; }
.snippet.video .tl { position: absolute; left: 14px; right: 14px; top: 18px; display: flex; flex-direction: column; gap: 8px; }
.snippet.video .tl div { height: 12px; border-radius: 4px; display: flex; gap: 4px; }
.snippet.video .tl div i { border-radius: 3px; }
.snippet.word { background: #101418; display: flex; justify-content: center; }
.snippet.word .doc {
  width: 64px; background: #1d232c; border-radius: 4px; margin: 10px 0;
  padding: 10px 8px; display: flex; flex-direction: column; gap: 6px;
}
.snippet.word .doc i { height: 5px; border-radius: 3px; background: #3a4552; }
.snippet.word .doc i:first-child { background: #6b9dff; width: 70%; }
.snippet.pdf { background: #170f12; display: flex; justify-content: center; }

.snippet.pdf .doc {
  width: 64px; background: #241318; border-radius: 4px; margin: 10px 0;
  padding: 10px 8px; display: flex; flex-direction: column; gap: 6px;
}

.snippet.pdf .doc i { height: 5px; border-radius: 3px; background: #4a2b31; }

.snippet.pdf .doc i:first-child { background: #ef4444; width: 70%; }

.snippet.excel {
  background:
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(34,197,94,.25) 17px 18px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(34,197,94,.25) 27px 28px),
    #0d1512;
}
.snippet.excel::after {
  content: ''; position: absolute; left: 29px; top: 19px; width: 54px; height: 35px;
  border: 2px solid #4ade80; border-radius: 2px;
}
.snippet.stream { background: #0d1520; }
.snippet.stream::after {
  content: '👤 Alex Chen ✓\A👤 Maya Patel ✓\A👤 Jordan Kim ✓';
  white-space: pre; position: absolute; top: 10px; left: 16px;
  font-size: 11px; color: #9fb3c8; line-height: 2;
}
.snippet.lab {
  background: radial-gradient(circle at 6px 6px, rgba(168,85,247,.5) 3px, transparent 4px) 0 0/28px 28px, #12101a;
}
.snippet.lab::after {
  content: '● ● ●'; position: absolute; bottom: 10px; left: 16px;
  color: #4ade80; font-size: 12px; letter-spacing: 6px;
}
.snippet.smada { background: #0e1512; display: flex; align-items: center; justify-content: center; gap: 10px; }
.snippet.smada i {
  width: 44px; height: 56px; border-radius: 5px; background: #1a2620;
  border: 1px solid #2a3a30; position: relative;
}
.snippet.smada i::after {
  content: ''; position: absolute; top: 10px; left: 8px; right: 8px; height: 5px;
  border-radius: 3px; background: #4ade80; box-shadow: 0 11px 0 #2f4438, 0 22px 0 #2f4438;
}
/* ---------- card body ---------- */
.card-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
}
.icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.card-body { flex: 1; min-width: 0; }
.card-title { font-weight: 700; font-size: 14px; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.card-desc { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.45; }
.arrow { color: #52525b; font-size: 18px; align-self: center; }
a.card:hover .arrow { color: var(--accent); }
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.badge.online { background: rgba(34,197,94,.12); color: #4ade80; }
.badge.lan { background: rgba(161,161,170,.12); color: #a1a1aa; }
.card.lan-card { opacity: .8; }
.snippet.printmate { background: #171310; display: flex; justify-content: center; }
.snippet.printmate .sheet {
  width: 78px; background: #221c14; border: 1px solid #3a2f1e; border-radius: 3px;
  margin: 10px 0; padding: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
}
.snippet.printmate .sheet i { border-radius: 2px; height: 14px; background: linear-gradient(135deg, #f59e0b, #b45309); }
.snippet.printmate .sheet i:nth-child(2) { background: linear-gradient(135deg, #38bdf8, #0369a1); }
.snippet.printmate .sheet i:nth-child(3) { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.snippet.printmate .sheet i:nth-child(4) { background: linear-gradient(135deg, #34d399, #047857); }
.snippet.printmate .sheet i:nth-child(5) { background: linear-gradient(135deg, #f472b6, #be185d); }
.snippet.printmate .sheet i:nth-child(6) { background: linear-gradient(135deg, #facc15, #a16207); }
.snippet.simus { background: #0c1322; display: flex; align-items: center; justify-content: center; }
.snippet.simus .seats { display: grid; grid-template-columns: repeat(6, 14px); gap: 5px; }
.snippet.simus .seats i { width: 14px; height: 14px; border-radius: 3px; background: #22314a; }
.snippet.simus .seats i.on { background: #6b9dff; }
/* ---------- detail view ---------- */
.detail { padding: 28px 32px 56px; max-width: 1600px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card);
}
.back-btn:hover { color: var(--text); border-color: #3a3a44; }
.detail-preview { margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.detail-preview .snippet { height: 200px; border-bottom: none; }
.detail-preview .snippet.vizpro .bars { height: 140px; }
.detail-preview .snippet.word .doc, .detail-preview .snippet.pdf .doc { width: 110px; padding: 14px 12px; gap: 9px; }
.detail-preview .snippet.stream::after { font-size: 14px; line-height: 2.4; top: 24px; left: 28px; }
.detail-preview .snippet.smada i { width: 74px; height: 96px; }
.detail-preview .snippet.lab::after { font-size: 16px; bottom: 22px; left: 28px; }
.detail-preview .snippet.printmate .sheet { width: 132px; gap: 8px; padding: 12px; }
.detail-preview .snippet.printmate .sheet i { height: 40px; }
.detail-preview .snippet.simus .seats { grid-template-columns: repeat(6, 22px); gap: 8px; }
.detail-preview .snippet.simus .seats i { width: 22px; height: 22px; }
.detail-head { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.detail-head .icon { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; }
.detail-name { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-desc { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 16px; max-width: 760px; }
.detail-feats { margin-top: 24px; max-width: 760px; }
.detail-feats h3 { font-size: 11px; letter-spacing: 2px; color: #63636b; margin-bottom: 6px; }
.detail-feats ul { list-style: none; }
.detail-feats li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: #d4d4d8; display: flex; gap: 10px;
}
.detail-feats li::before { content: '✓'; color: #4ade80; font-weight: 700; }
.open-btn {
  display: inline-block; margin-top: 28px; background: #2E7CF6; color: #fff;
  font-weight: 700; font-size: 15px; padding: 13px 30px; border-radius: 10px; text-decoration: none;
}
.open-btn:hover { background: #1f6ae0; }
.lan-note {
  margin-top: 28px; display: inline-block; background: rgba(161,161,170,.1);
  border: 1px solid var(--border); color: var(--muted);
  padding: 13px 20px; border-radius: 10px; font-size: 14px;
}
/* ---------- news tech ---------- */
.news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
a.news-card:hover { border-color: #3a3a44; transform: translateY(-2px); }
.news-thumb { height: 150px; background: #101018; overflow: hidden; border-bottom: 1px solid var(--border); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta {
  font-size: 11px; letter-spacing: .6px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.news-meta .news-time { color: #63636b; font-weight: 600; text-transform: none; letter-spacing: 0; }
.news-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.news-excerpt { color: var(--muted); font-size: 13px; line-height: 1.5; }
.news-status { padding: 8px 32px 48px; max-width: 1600px; color: var(--muted); font-size: 14px; }
.news-retry {
  display: inline-block; margin-top: 14px; background: #2E7CF6; color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; padding: 11px 24px; border-radius: 10px; font-family: inherit;
}
.news-retry:hover { background: #1f6ae0; }
@media (max-width: 640px) {
  .top-left { gap: 8px; }
  .topnav a { padding: 7px 9px; }
  .search { width: 150px; }
}
/* ---------- github projects ---------- */
.badge.github { background: rgba(167,139,250,.15); color: #c4b5fd; }
.snippet.wave .w {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 4px; padding: 0 18px;
}
.snippet.wave .w i { flex: 1; border-radius: 3px; min-height: 6px; }
.snippet.wave.vs { background: linear-gradient(180deg, #160b2e, #0c0c14); }
.snippet.wave.vs .w i { background: linear-gradient(180deg, #c084fc, #6366f1); }
.snippet.wave.f5 { background: linear-gradient(180deg, #0a1626, #0c0c14); }
.snippet.wave.f5 .w i { background: linear-gradient(180deg, #7dd3fc, #2563eb); }
.snippet.wave.fish { background: linear-gradient(180deg, #04202b, #0c1214); }
.snippet.wave.fish .w i { background: linear-gradient(180deg, #5eead4, #0891b2); }
.snippet.tv { background: #0a1410; display: flex; align-items: center; justify-content: center; }
.snippet.tv .screen {
  width: 104px; height: 62px; border-radius: 8px; position: relative;
  background: linear-gradient(160deg, #123324, #050807);
  border: 1px solid #1f4630; box-shadow: inset 0 0 24px rgba(74,222,128,.15);
}
.snippet.tv .screen::before {
  content: ''; position: absolute; top: 8px; left: 10px; right: 10px; height: 16px;
  border-radius: 4px; background: linear-gradient(90deg, rgba(74,222,128,.35), rgba(74,222,128,.08));
}
.snippet.tv .dock { position: absolute; bottom: 7px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.snippet.tv .dock i { width: 11px; height: 11px; border-radius: 3px; background: #1d3a29; }
.snippet.tv .dock i:first-child { background: #4ade80; }
.snippet.console { background: #0a0f1c; display: flex; align-items: center; justify-content: center; }
.snippet.console .pad {
  width: 118px; height: 56px; border-radius: 28px; position: relative;
  background: #131c30; border: 1px solid #26355a;
}
.snippet.console .pad i { position: absolute; border-radius: 50%; }
.snippet.console .pad .s1 { width: 14px; height: 14px; left: 44px; top: 10px; background: #1d2a47; border: 2px solid #3d5a99; }
.snippet.console .pad .s2 { width: 14px; height: 14px; left: 64px; bottom: 9px; background: #1d2a47; border: 2px solid #3d5a99; }
.snippet.console .pad .dp { position: absolute; left: 18px; top: 25px; width: 14px; height: 5px; background: #3d5a99; border-radius: 2px; }
.snippet.console .pad .dp::after { content: ''; position: absolute; left: 4.5px; top: -4.5px; width: 5px; height: 14px; background: #3d5a99; border-radius: 2px; }
.snippet.console .pad .bt {
  position: absolute; right: 29px; top: 13px; width: 7px; height: 7px; border-radius: 50%;
  background: #f472b6; box-shadow: 11px 9px 0 #4ade80, 0 18px 0 #facc15, 11px 27px 0 #38bdf8;
}
.detail-preview .snippet.tv .screen { width: 176px; height: 106px; }
.detail-preview .snippet.console .pad { width: 176px; height: 84px; border-radius: 42px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.detail-actions .open-btn { margin-top: 0; }
.yt-btn { background: #d92323; }
.yt-btn:hover { background: #b91c1c; }
@media (max-width: 1500px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .sidebar { display: none; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
}
.snippet.vector { background: #0e1420; display: flex; align-items: center; justify-content: center; }
.snippet.vector svg { width: 84%; height: 80%; }
.nav-section.sub { padding: 10px 10px 6px 16px; font-size: 11px; letter-spacing: .5px; cursor: pointer; }
.nav-section.sub:hover { color: var(--text); }
.sec-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.sec-link:hover { color: var(--text); }
.sec-link.active { color: var(--text); font-weight: 700; }
/* Timpa style .nav a yang ikut nempel ke link label sub-grup */
.nav .nav-section a.sec-link {
  display: inline-flex;
  padding: 0;
  margin: 0;
  gap: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
}
.nav .nav-section a.sec-link:hover { background: transparent; color: var(--text); }
.nav .nav-section a.sec-link.active { background: transparent; }
.nav-links .nav-links a { padding-left: 26px; }
.snippet.photo { background: #0e1420; display: flex; align-items: center; justify-content: center; }
.snippet.photo svg { width: 84%; height: 80%; }
.snippet.anatomi { background: #160f14; display: flex; align-items: center; justify-content: center; }
.snippet.anatomi svg { width: 84%; height: 80%; }
.snippet.daw { background: #14101f; display: flex; align-items: center; justify-content: center; }
.snippet.daw svg { width: 84%; height: 80%; }

/* ---------- app detail ala aitmpl.com ---------- */
.app-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:28px; margin-top:22px; align-items:start; }
.app-card { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:28px; }
.app-card-head { display:flex; gap:18px; align-items:center; }
.app-card-head .icon { width:64px; height:64px; font-size:30px; border-radius:16px; flex:none; }
.app-name { font-size:28px; font-weight:800; letter-spacing:-.3px; }
.app-pills { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.pill { font-size:11px; font-weight:600; padding:4px 12px; border-radius:999px; background:#1c1c22; border:1px solid var(--border); color:var(--muted); white-space:nowrap; }
.pill.online { color:#4ade80; background:#052e16; border-color:#14532d; }
.pill.lan { color:#fbbf24; background:#451a03; border-color:#78350f; }
.app-desc { color:var(--muted); font-size:15px; line-height:1.7; }
.desc-box { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px 20px; margin-top:18px; }
.desc-box .app-desc { margin:0; }
.desc-box .app-longdesc { color:var(--muted); font-size:15px; line-height:1.7; margin:12px 0 0; padding-top:12px; border-top:1px solid var(--border); }
.url-box { margin-top:18px; background:#0b0b0f; border:1px solid var(--border); border-radius:12px; padding:12px 14px; display:flex; align-items:center; gap:12px; }
.url-label { font-size:10px; letter-spacing:1.5px; font-weight:700; color:#63636b; white-space:nowrap; }
.url-box code { flex:1; min-width:0; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px; color:#fb923c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.copy-btn { background:#2E7CF6; color:#fff; border:none; border-radius:8px; padding:8px 18px; font-size:13px; font-weight:600; cursor:pointer; flex:none; }
.copy-btn:hover { background:#1f6ae0; }
.app-actions { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.btn-outline { display:inline-block; border:1px solid var(--border); background:transparent; color:#d4d4d8; border-radius:8px; padding:9px 16px; font-size:13px; text-decoration:none; }
.btn-outline:hover { border-color:var(--accent); color:#fff; }
.app-feats { margin-top:28px; }
.app-feats h3 { font-size:11px; letter-spacing:2px; color:#63636b; margin-bottom:6px; }
.app-feats ul { list-style:none; }
.app-feats li { padding:10px 0; border-bottom:1px solid var(--border); font-size:14px; color:#d4d4d8; display:flex; gap:10px; }
.app-feats li::before { content:'✓'; color:#4ade80; font-weight:700; }
.open-btn.app-open { margin-top:24px; }
.terminal { background:#0d1117; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.term-bar { display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border); }
.term-dot { width:12px; height:12px; border-radius:50%; flex:none; }
.term-title { margin-left:6px; font-size:12px; color:#71717a; font-family:ui-monospace,Menlo,Consolas,monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.term-body { padding:18px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px; line-height:1.9; word-break:break-all; }
.term-body .cmd { color:#e4e4e7; }
.term-body .ok { color:#4ade80; }
.term-body .warn { color:#fbbf24; }
.term-input-line { display:flex; align-items:center; gap:8px; margin-top:6px; }
.term-input { flex:1; background:transparent; border:0; outline:0; color:#e4e4e7; font:inherit; padding:0; min-width:0; }
.term-input::placeholder { color:#52525b; }
.term-status { display:flex; align-items:center; gap:16px; padding:10px 18px; border-top:1px solid var(--border); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12px; color:#a1a1aa; background:#09090b; }
.term-status .ts-branch { color:#4ade80; }
.term-status .ts-auto { margin-left:auto; color:#fb923c; }
@media (max-width:960px){ .app-detail-grid{ grid-template-columns:1fr; } }

/* ---------- project toolbar (github.php) ---------- */
.proj-toolbar { display:flex; align-items:center; gap:12px; padding:22px 32px 0; max-width:1600px; flex-wrap:wrap; }
.home-toolbar { display:flex; align-items:center; gap:12px; padding:6px 32px 0; max-width:1600px; flex-wrap:wrap; }
.home-divider { border:0; border-top:1px solid var(--border); margin:18px 32px 0; max-width:1600px; }
@media (max-width:700px) { .home-toolbar { padding:6px 20px 0; } .home-divider { margin:14px 20px 0; } }
.pt-search { display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--border); border-radius:10px; padding:0 14px; flex:1; min-width:200px; color:#71717a; }
.pt-search input { flex:1; background:transparent; border:0; outline:0; color:var(--text); font-size:14px; padding:12px 0; min-width:0; }
.pt-search input::placeholder { color:#63636b; }
.pt-select { background:var(--card); border:1px solid var(--border); border-radius:10px; color:var(--text); font-size:14px; padding:12px 14px; outline:0; cursor:pointer; }
.pt-btn { display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--border); border-radius:10px; color:var(--text); font-size:14px; padding:12px 16px; cursor:pointer; }
.pt-btn:hover { border-color:#3a3a44; }
.pt-filters-wrap { position:relative; }
.pt-panel { position:absolute; top:calc(100% + 8px); left:0; background:var(--card); border:1px solid var(--border); border-radius:10px; padding:14px 16px; z-index:30; white-space:nowrap; font-size:14px; box-shadow:0 8px 24px rgba(0,0,0,.4); }
.pt-panel label { display:flex; align-items:center; gap:8px; cursor:pointer; color:var(--text); }
.pt-panel input[type=checkbox] { accent-color:#2E7CF6; width:16px; height:16px; }
.pt-view { display:flex; background:var(--card); border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.pt-viewbtn { background:transparent; border:0; color:#71717a; padding:12px 14px; cursor:pointer; display:flex; align-items:center; }
.pt-viewbtn.active { background:#27272a; color:var(--text); }
.pt-sort { display:flex; align-items:center; gap:10px; color:#71717a; font-size:14px; margin-left:auto; }
.pt-count { color:#63636b; letter-spacing:1px; }
.proj-empty { text-align:center; color:var(--muted); padding:48px 20px; font-size:15px; }
/* list mode */
.grid.list { grid-template-columns:1fr; }
.grid.list .card { flex-direction:row; align-items:center; }
.grid.list .card .snippet { display:none; }
.grid.list .card-row { flex:1; }
@media (max-width:700px) { .pt-sort { margin-left:0; } .proj-toolbar { padding:18px 20px 0; } }

/* Hero pixel ala aitmpl.com */
.hero-pixel { text-align:center; padding:52px 20px 36px; max-width:1600px; margin:0 auto; }
.pixel-title { font-family:'Press Start 2P',monospace; color:#ff6b35; font-size:clamp(26px,4.5vw,52px); margin:0 0 20px; letter-spacing:2px; line-height:1.4; }
.pixel-bot { image-rendering:pixelated; }
.pixel-sub { color:var(--muted); font-size:13px; letter-spacing:3px; margin:0 0 30px; display:flex; align-items:center; justify-content:center; gap:10px; }
.pixel-sub .dot { width:8px; height:8px; border-radius:50%; background:#4ade80; display:inline-block; flex:none; }
.pixel-stats { display:inline-flex; background:#0d1117; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.pstat { padding:16px 38px; display:flex; flex-direction:column; gap:6px; }
.pstat + .pstat { border-left:1px solid var(--border); }
.pnum { font-size:26px; font-weight:700; color:#fff; }
.plbl { font-size:11px; letter-spacing:2px; color:#71717a; }
@media (max-width:600px){ .pstat{padding:12px 20px;} .pixel-sub{letter-spacing:1px;} }
