@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #eaf6ff;
  --muted: #8aa1b4;
  --panel: rgba(14, 31, 43, 0.83);
  --panel-strong: #102532;
  --line: rgba(154, 211, 239, 0.13);
  --blue: #27b6ff;
  --ice: #99e1ff;
  --night: #050d14;
  --danger: #ff6878;
  --radius: 26px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; background: #020810; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Noto Sans SC', sans-serif;
  position: relative;
  isolation: isolate;
  background: transparent;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .27;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(rgba(2, 8, 15, .18), rgba(2, 8, 15, .46)), url('/kali-bg.png') center top / cover no-repeat;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; border-radius: 999px; filter: blur(4px); pointer-events: none; opacity: .25; }
.ambient-one { width: 280px; height: 280px; top: 12%; left: -180px; border: 1px solid var(--blue); }
.ambient-two { width: 440px; height: 440px; right: -330px; top: 46%; border: 1px solid var(--ice); }

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 48px; height: 48px; object-fit: cover; box-shadow: 0 0 24px rgba(26, 187, 255, .28); border: 1px solid rgba(86, 210, 255, .36); border-radius: 50%; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 18px; letter-spacing: .08em; }
.brand small, .eyebrow, .section-kicker { color: var(--blue); font: 600 10px/1.4 'Space Grotesk', sans-serif; letter-spacing: .2em; }
.view-toggle button {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: rgba(14, 31, 43, .65); cursor: pointer;
}

.page-shell { width: min(960px, calc(100% - 40px)); margin: 54px auto 100px; }
.hero {
  min-height: 250px;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(120deg, rgba(17, 45, 61, .92), rgba(6, 19, 29, .82));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .28);
}
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: 650px; text-align: center; }
.hero h1 { margin: 14px 0 10px; font-size: clamp(38px, 7vw, 66px); letter-spacing: -.06em; line-height: 1.1; }
.hero p { margin: 0; color: #a9c0cf; font-size: 16px; }
.content-section { margin-top: 24px; }
.location-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 3px 14px; }
.breadcrumbs { min-width: 0; display: flex; gap: 7px; margin: 0; color: #8199aa; font-size: 13px; flex-wrap: wrap; }
.breadcrumbs button { border: 0; padding: 0; color: inherit; background: none; cursor: pointer; }
.breadcrumbs button:hover { color: var(--blue); }
.breadcrumbs .current { color: #d8edf9; }
.breadcrumbs i { color: #496071; font-style: normal; }
.back-button {
  min-width: 132px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(39, 182, 255, .62);
  border-radius: 14px;
  color: #06131c;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ice), #19c7ff);
  box-shadow: 0 10px 28px rgba(8, 173, 237, .2);
  cursor: pointer;
}
.back-button span { font-size: 20px; line-height: 1; }
.back-button:active { transform: translateY(1px); }
.section-heading { margin-bottom: 15px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-heading h2 { margin: 5px 0 0; font-size: 23px; }
.view-toggle { display: flex; gap: 6px; }
.view-toggle button { width: 38px; height: 38px; }
.view-toggle button.active { color: var(--blue); border-color: rgba(39, 182, 255, .45); background: rgba(39, 182, 255, .1); }

.file-table { padding: 10px 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(18px); box-shadow: 0 28px 80px rgba(0, 0, 0, .24); }
.table-head, .file-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; }
.table-head { padding: 15px 16px 10px; color: #6f899a; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.table-head span:last-child, .file-size { text-align: right; }
.file-row { min-height: 74px; padding: 10px 16px; border-radius: 17px; transition: transform .2s, background .2s; cursor: pointer; }
.file-row + .file-row { border-top: 1px solid rgba(155, 215, 240, .07); }
.file-row:hover { transform: translateX(5px); background: rgba(118, 190, 223, .08); }
.file-main { min-width: 0; display: flex; align-items: center; gap: 15px; }
.file-icon { position: relative; width: 42px; height: 38px; flex: 0 0 auto; }
.file-icon.folder { height: 30px; margin-top: 7px; border-radius: 5px 6px 7px 7px; background: linear-gradient(145deg, #38c5ff, #078ddf); box-shadow: 0 8px 18px rgba(10, 153, 229, .18); }
.file-icon.folder::before { content: ''; position: absolute; top: -7px; left: 3px; width: 18px; height: 9px; border-radius: 5px 5px 0 0; background: #34bdf6; }
.file-icon.file { display: grid; place-items: center; border-radius: 11px; color: #b8eaff; font: 700 10px/1 'Space Grotesk'; border: 1px solid rgba(84, 200, 255, .38); background: linear-gradient(145deg, #15384c, #0b2331); }
.file-meta { min-width: 0; }
.file-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.file-desc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: #738b9c; font-size: 12px; }
.file-size { color: #88a0b0; font: 500 13px/1 'Space Grotesk'; }
.file-list.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 8px; }
.file-list.grid .file-row { display: flex; min-width: 0; min-height: 170px; padding: 22px; overflow: hidden; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); }
.file-list.grid .file-row + .file-row { border-top: 1px solid var(--line); }
.file-list.grid .file-main { width: 100%; min-width: 0; flex-direction: column; align-items: flex-start; }
.file-list.grid .file-meta { width: 100%; min-width: 0; }
.file-list.grid .file-name {
  width: 100%;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.45;
}
.file-list.grid .file-desc { width: 100%; }
.file-list.grid .file-size { max-width: 100%; align-self: flex-end; }
.file-list.grid + * { display: none; }

.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed rgba(142, 211, 242, .18); border-radius: var(--radius); color: var(--muted); }
.empty-state h3 { margin: 16px 0 4px; color: #c8deeb; }
.empty-state p { margin: 0; font-size: 13px; }
.empty-orbit { width: 46px; height: 46px; margin: auto; border: 1px solid var(--blue); border-radius: 50%; box-shadow: inset 0 0 0 9px rgba(39, 182, 255, .07); }
.notice { margin-top: 22px; padding: 22px 24px; display: flex; gap: 15px; border: 1px solid var(--line); border-radius: 22px; background: rgba(10, 24, 34, .72); }
.notice-icon { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #06131c; font: 700 14px Georgia; background: var(--ice); }
.notice strong { font-size: 14px; }
.notice p { margin: 5px 0 0; color: #8198a8; font-size: 13px; line-height: 1.7; }
footer { width: min(960px, calc(100% - 40px)); margin: 0 auto 40px; padding-top: 25px; border-top: 1px solid var(--line); color: #405766; display: flex; justify-content: space-between; font: 600 10px/1 'Space Grotesk'; letter-spacing: .18em; }
footer p { margin: 0; font-family: 'Noto Sans SC'; letter-spacing: .1em; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translate(-50%, 30px); padding: 11px 18px; border-radius: 12px; color: #06131c; background: var(--ice); opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 16px 50px rgba(0,0,0,.35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.icon { display: inline-block; width: 17px; height: 17px; position: relative; vertical-align: middle; }
.icon-list::before { content: ''; position: absolute; left: 1px; top: 3px; width: 3px; height: 3px; border-radius: 1px; background: currentColor; box-shadow: 0 5px currentColor, 0 10px currentColor; }
.icon-list::after { content: ''; position: absolute; left: 7px; top: 3px; width: 9px; height: 3px; border-radius: 1px; background: currentColor; box-shadow: 0 5px currentColor, 0 10px currentColor; }
.icon-grid::before { content: ''; position: absolute; left: 2px; top: 2px; width: 6px; height: 6px; border-radius: 1px; background: currentColor; box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor; }
.reveal { animation: reveal .7s both cubic-bezier(.22,.75,.25,1); }
.delay-one { animation-delay: .1s; }
.delay-two { animation-delay: .2s; }
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  body::after { background-position: center top; }
  .topbar { width: calc(100% - 28px); height: 76px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 16px; }
  .brand small { display: none; }
  .page-shell { width: calc(100% - 24px); margin-top: 22px; }
  .hero { min-height: 202px; padding: 30px 26px; border-radius: 27px; }
  .hero h1 { font-size: 42px; }
  .hero p { width: 100%; font-size: 13px; line-height: 1.7; }
  .location-bar { margin-top: 22px; align-items: stretch; flex-direction: column-reverse; gap: 12px; }
  .back-button { width: 100%; min-height: 52px; font-size: 16px; border-radius: 16px; }
  .breadcrumbs { padding: 0 3px; font-size: 14px; line-height: 1.8; }
  .section-heading { align-items: center; gap: 14px; }
  .section-heading > div:first-child { min-width: 0; }
  .view-toggle { margin-left: auto; flex: 0 0 auto; align-items: center; }
  .view-toggle button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; }
  .file-table { padding-inline: 8px; border-radius: 23px; }
  .file-row { padding-inline: 12px; grid-template-columns: minmax(0, 1fr) 65px; }
  .table-head { grid-template-columns: minmax(0, 1fr) 65px; }
  .file-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-list.grid { gap: 8px; padding: 4px; }
  .file-list.grid .file-row { min-height: 190px; padding: 15px; }
  .file-list.grid .file-name { min-height: 2.9em; font-size: 14px; }
  .file-list.grid .file-desc { margin-top: 7px; overflow: visible; white-space: normal; line-height: 1.55; }
  .file-list.grid .file-size { margin-top: 10px; align-self: flex-start; }
  .notice { padding: 20px; }
}
