:root {
  --bg: #090b10;
  --panel: rgba(19, 22, 31, 0.86);
  --panel-2: #11141d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f7fb;
  --muted: #969dab;
  --muted-2: #737b89;
  --accent: #c9ff5a;
  --accent-soft: rgba(201, 255, 90, 0.12);
  --accent-2: #a8d93f;
  --danger: #ff7f87;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(119, 143, 73, .13), transparent 31rem),
    linear-gradient(180deg, #0a0c11 0%, #090b10 55%, #0b0d12 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(90px);
  opacity: .18;
  border-radius: 999px;
  z-index: -1;
}
.ambient-a { width: 300px; height: 300px; background: #7ba12f; top: 14%; left: -170px; }
.ambient-b { width: 240px; height: 240px; background: #476a21; top: 55%; right: -150px; }

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -0.025em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--accent); border: 1px solid rgba(201,255,90,.18); border-radius: 10px;
  background: rgba(201,255,90,.07);
}
.brand-mark svg { width: 27px; height: 27px; }
.header-nav { display: flex; align-items: center; gap: 28px; color: #c6cad2; font-size: 14px; }
.header-nav a { transition: color .2s ease; }
.header-nav a:hover { color: var(--text); }
.free-pill { padding: 7px 11px; border: 1px solid rgba(201,255,90,.2); color: var(--accent); background: rgba(201,255,90,.07); border-radius: 999px; font-size: 12px; }

main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero { text-align: center; max-width: 830px; margin: 82px auto 54px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: #b4b9c3; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.025);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(201,255,90,.08); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(48px, 7vw, 84px); line-height: .96; letter-spacing: -.062em; font-weight: 780; }
.hero h1 span { color: #aab0bb; }
.hero-copy { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }
.hero-badges { margin-top: 24px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: #878e9b; font-size: 13px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before { content: "✓"; color: var(--accent); font-size: 12px; }

.workspace {
  max-width: 940px; margin: 0 auto 108px; border: 1px solid var(--line); border-radius: 30px;
  background: rgba(15,18,25,.72); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(20px);
}
.tool-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.tool-tab {
  border: 0; border-right: 1px solid var(--line); background: transparent; color: #808795; padding: 18px 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .2s ease; position: relative;
}
.tool-tab:last-child { border-right: 0; }
.tool-tab:hover { color: #cdd1d8; background: rgba(255,255,255,.018); }
.tool-tab.active { color: var(--text); background: rgba(201,255,90,.045); }
.tool-tab.active::after { content:""; position:absolute; left:22%; right:22%; bottom:-1px; height:2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.tab-icon { font-size: 16px; color: var(--accent); min-width: 17px; text-align: center; }

.tool-panel { padding: 34px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.panel-kicker { color: var(--accent); font-size: 11px; letter-spacing: .12em; font-weight: 760; margin-bottom: 8px; }
.panel-heading h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.035em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.privacy-chip { flex: 0 0 auto; display:flex; align-items:center; gap:7px; color:#9ea5b1; font-size:11px; border:1px solid var(--line); border-radius:999px; padding:8px 10px; }
.lock-dot { width:6px; height:6px; background:var(--accent); border-radius:50%; }

.drop-zone {
  min-height: 260px; border: 1px dashed rgba(255,255,255,.18); border-radius: 22px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; padding:32px; background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008));
  outline: none; transition: .22s ease; cursor: pointer;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragover { border-color: rgba(201,255,90,.55); background: rgba(201,255,90,.035); transform: translateY(-1px); }
.upload-orb { width:52px; height:52px; border-radius:17px; display:grid; place-items:center; color:var(--accent); background:var(--accent-soft); border:1px solid rgba(201,255,90,.12); margin-bottom:16px; }
.upload-orb svg { width:24px; height:24px; }
.drop-title { font-size:18px; font-weight:700; letter-spacing:-.02em; }
.drop-subtitle { color:var(--muted); margin-top:5px; font-size:13px; }
.choose-button { margin-top:18px; background:var(--accent); color:#10130b; font-weight:760; border:0; border-radius:11px; padding:11px 18px; cursor:pointer; box-shadow:0 6px 22px rgba(201,255,90,.1); }
.choose-button:hover { filter: brightness(1.03); }
.drop-limit { margin-top:15px; color:#646b77; font-size:11px; }

.file-list { margin-top: 20px; display: grid; gap: 8px; }
.file-card { display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:14px; padding:12px 13px; background:rgba(255,255,255,.018); }
.file-type { width:36px; height:40px; border-radius:9px; display:grid; place-items:center; background:rgba(255,255,255,.045); color:#dce1e8; font-size:9px; font-weight:800; letter-spacing:.05em; }
.file-main { min-width:0; flex:1; }
.file-name { font-size:13px; color:#dfe3ea; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.file-meta { color:var(--muted-2); font-size:11px; margin-top:3px; }
.file-controls { display:flex; gap:4px; }
.icon-button { width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:transparent; color:#969eab; cursor:pointer; display:grid; place-items:center; }
.icon-button:hover { color:var(--text); border-color:var(--line-strong); }

.options-area { margin-top: 20px; }
.option-label { color:#aeb4be; font-size:12px; margin:0 0 9px; }
.segmented { display:grid; gap:8px; }
.segmented.two { grid-template-columns: repeat(2, 1fr); }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.option-card { border:1px solid var(--line); background:rgba(255,255,255,.015); border-radius:14px; padding:13px 14px; cursor:pointer; transition:.18s ease; text-align:left; color:inherit; }
.option-card:hover { border-color:rgba(255,255,255,.16); }
.option-card.active { border-color:rgba(201,255,90,.35); background:rgba(201,255,90,.045); }
.option-card strong { display:block; font-size:13px; font-weight:680; }
.option-card span { display:block; color:var(--muted-2); font-size:11px; margin-top:4px; line-height:1.4; }
.text-input { width:100%; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); color:var(--text); padding:12px 13px; outline:none; }
.text-input:focus { border-color:rgba(201,255,90,.4); box-shadow:0 0 0 3px rgba(201,255,90,.04); }
.helper { color:var(--muted-2); font-size:11px; margin-top:7px; line-height:1.5; }

.action-row { margin-top:22px; display:flex; gap:10px; }
.primary-button, .download-button { border:0; border-radius:12px; background:var(--accent); color:#10130b; padding:12px 18px; font-weight:760; cursor:pointer; }
.primary-button { min-width:150px; }
.primary-button:disabled { opacity:.45; cursor:not-allowed; }
.ghost-button { border:1px solid var(--line); border-radius:12px; background:transparent; color:#aeb4be; padding:12px 16px; cursor:pointer; }
.ghost-button:hover { border-color:var(--line-strong); color:var(--text); }

.progress-area { margin-top:22px; border:1px solid var(--line); border-radius:14px; padding:14px; background:rgba(255,255,255,.015); }
.progress-top { display:flex; justify-content:space-between; gap:14px; color:#bbc0c9; font-size:12px; }
.progress-track { height:5px; border-radius:999px; background:rgba(255,255,255,.06); margin-top:11px; overflow:hidden; }
.progress-bar { width:0%; height:100%; background:var(--accent); border-radius:999px; transition:width .25s ease; }

.result-area { margin-top:22px; }
.result-card { border:1px solid rgba(201,255,90,.2); border-radius:18px; background:linear-gradient(180deg, rgba(201,255,90,.055), rgba(255,255,255,.015)); padding:18px; }
.result-top { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.result-label { color:var(--accent); font-size:10px; letter-spacing:.11em; font-weight:800; }
.result-card h3 { margin:5px 0 5px; font-size:18px; }
.result-meta { color:var(--muted); font-size:12px; }
.result-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.summary-output { margin-top:14px; border-top:1px solid var(--line); padding-top:15px; color:#d6dae1; line-height:1.7; font-size:14px; }
.summary-output ul { margin:7px 0 0; padding-left:20px; }
.summary-output li { margin:7px 0; }
.summary-stats { display:flex; gap:10px; flex-wrap:wrap; margin-top:13px; }
.stat { border:1px solid var(--line); border-radius:10px; padding:8px 10px; color:var(--muted); font-size:11px; background:rgba(0,0,0,.12); }
.warning { margin-top:12px; color:#969daa; font-size:11px; line-height:1.5; }
.error-card { border:1px solid rgba(255,127,135,.2); background:rgba(255,127,135,.05); border-radius:14px; padding:14px; color:#f0b5b9; font-size:13px; }

.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:0 auto 100px; max-width:940px; }
.feature-grid article { border:1px solid var(--line); border-radius:19px; padding:22px; background:rgba(255,255,255,.018); }
.feature-icon { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; color:var(--accent); background:var(--accent-soft); margin-bottom:15px; }
.feature-grid h3 { margin:0 0 8px; font-size:15px; }
.feature-grid p { margin:0; color:var(--muted); font-size:12px; line-height:1.65; }

footer { width:min(1160px, calc(100% - 40px)); margin:0 auto; border-top:1px solid var(--line); min-height:110px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#6d7481; font-size:12px; }
.footer-brand { color:#b7bdc7; }
.brand-mark.small { width:28px; height:28px; border-radius:8px; font-size:12px; }

.toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%, 18px); opacity:0; pointer-events:none; background:#1c2029; color:#e2e6ed; border:1px solid var(--line-strong); padding:10px 14px; border-radius:11px; box-shadow:var(--shadow); font-size:12px; transition:.2s ease; z-index:30; }
.toast.show { opacity:1; transform:translate(-50%, 0); }
.hidden { display:none !important; }

@media (max-width: 760px) {
  .site-header { height:70px; }
  .header-nav a { display:none; }
  .hero { margin-top:56px; }
  .hero h1 { font-size:clamp(43px, 13vw, 66px); }
  .workspace { border-radius:22px; }
  .tool-tabs { grid-template-columns:repeat(5, minmax(72px, 1fr)); overflow-x:auto; }
  .tool-tab { flex-direction:column; gap:4px; font-size:10px; padding:13px 7px; min-width:72px; }
  .tool-panel { padding:22px; }
  .panel-heading { flex-direction:column; }
  .privacy-chip { align-self:flex-start; }
  .drop-zone { min-height:235px; padding:24px 16px; }
  .segmented.three { grid-template-columns:1fr; }
  .feature-grid { grid-template-columns:1fr; }
  footer { flex-direction:column; align-items:flex-start; justify-content:center; padding:26px 0; }
}

@media (max-width: 470px) {
  main, .site-header, footer { width:min(100% - 24px, 1160px); }
  .hero { margin-bottom:40px; }
  .hero-copy { font-size:15px; }
  .workspace { margin-bottom:72px; }
  .tool-panel { padding:18px; }
  .panel-heading h2 { font-size:22px; }
  .segmented.two { grid-template-columns:1fr; }
  .result-top { flex-direction:column; }
  .result-actions { justify-content:flex-start; }
}

/* Owner statistics */
.stats-nav-button { border:1px solid var(--line); background:rgba(255,255,255,.025); color:#adb4bf; border-radius:10px; padding:8px 11px; font:inherit; font-size:12px; cursor:pointer; }
.stats-nav-button:hover { color:var(--text); border-color:var(--line-strong); background:rgba(255,255,255,.045); }
.modal { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:24px; }
.modal-backdrop { position:absolute; inset:0; background:rgba(4,6,10,.78); backdrop-filter:blur(10px); }
.stats-dialog { position:relative; width:min(760px,100%); max-height:min(820px,calc(100vh - 48px)); overflow:auto; border:1px solid var(--line-strong); border-radius:24px; background:#10131a; box-shadow:0 30px 90px rgba(0,0,0,.55); padding:24px; }
.stats-dialog-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.stats-dialog-head h2 { margin:4px 0 6px; font-size:28px; letter-spacing:-.035em; }
.stats-dialog-head p { margin:0; color:var(--muted); font-size:12px; }
.modal-close { width:36px; height:36px; display:grid; place-items:center; flex:0 0 auto; border:1px solid var(--line); border-radius:10px; background:transparent; color:#aeb4be; font-size:20px; cursor:pointer; }
.modal-close:hover { color:var(--text); border-color:var(--line-strong); }
.stats-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:22px; }
.stats-card { border:1px solid var(--line); border-radius:15px; padding:15px; background:rgba(255,255,255,.02); }
.stats-card .stats-value { display:block; font-size:24px; font-weight:760; letter-spacing:-.04em; }
.stats-card .stats-name { display:block; color:var(--muted-2); font-size:10px; margin-top:5px; text-transform:uppercase; letter-spacing:.08em; }
.stats-section { margin-top:20px; border:1px solid var(--line); border-radius:17px; padding:16px; background:rgba(255,255,255,.012); }
.stats-section-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:13px; }
.stats-section-head h3 { margin:0; font-size:13px; }
.stats-section-head span { color:var(--muted-2); font-size:10px; }
.tool-stats { display:grid; gap:9px; }
.tool-stat-row { display:grid; grid-template-columns:100px 1fr 42px; gap:10px; align-items:center; font-size:11px; }
.tool-stat-row .tool-stat-name { color:#cbd0d8; }
.tool-stat-track { height:7px; border-radius:99px; background:rgba(255,255,255,.05); overflow:hidden; }
.tool-stat-fill { height:100%; border-radius:99px; background:var(--accent); min-width:2px; }
.tool-stat-count { text-align:right; color:var(--muted); font-variant-numeric:tabular-nums; }
.visit-bars { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; align-items:end; height:126px; padding-top:8px; }
.visit-day { height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:7px; min-width:0; }
.visit-bar-wrap { width:100%; height:84px; display:flex; align-items:flex-end; justify-content:center; }
.visit-bar { width:min(28px,80%); min-height:3px; border-radius:7px 7px 3px 3px; background:var(--accent); opacity:.9; }
.visit-count { font-size:10px; color:#bec4cd; }
.visit-label { font-size:9px; color:var(--muted-2); white-space:nowrap; }
.stats-admin-area { margin-top:20px; border:1px solid rgba(201,255,90,.12); border-radius:17px; padding:16px; background:rgba(201,255,90,.025); }
.stats-admin-area strong { font-size:12px; }
.stats-admin-area p { margin:4px 0 12px; color:var(--muted-2); font-size:11px; line-height:1.55; }
.stats-key-row { display:grid; grid-template-columns:1fr auto; gap:9px; }
.stats-key-row .primary-button { min-width:130px; white-space:nowrap; }

@media (max-width:760px) {
  .stats-nav-button { padding:7px 9px; }
  .stats-cards { grid-template-columns:repeat(2,1fr); }
  .stats-dialog { padding:19px; border-radius:20px; }
}
@media (max-width:470px) {
  .stats-nav-button { font-size:10px; }
  .stats-key-row { grid-template-columns:1fr; }
  .stats-key-row .primary-button { width:100%; }
  .tool-stat-row { grid-template-columns:76px 1fr 34px; }
}

/* Private admin dashboard */
.admin-page { min-height:100vh; }
.admin-main { width:min(1080px,calc(100% - 36px)); margin:0 auto; padding:72px 0 90px; }
.admin-shell { width:min(820px,100%); margin:0 auto; }
.admin-login-card, .admin-dashboard { border:1px solid var(--line-strong); border-radius:24px; background:#10131a; box-shadow:0 30px 90px rgba(0,0,0,.35); padding:26px; }
.admin-login-card { width:min(500px,100%); margin:8vh auto 0; }
.admin-login-card h1, .admin-dashboard h1 { margin:6px 0 8px; font-size:30px; letter-spacing:-.04em; }
.admin-login-card > p, .admin-dashboard-head p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.admin-login-card code { color:var(--text); }
.admin-login-form { display:grid; gap:10px; margin-top:22px; }
.admin-login-form label { font-size:11px; color:var(--muted-2); text-transform:uppercase; letter-spacing:.08em; }
.admin-login-form .primary-button { width:100%; margin-top:2px; }
.admin-dashboard-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.admin-head-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.admin-privacy-note { margin-top:18px; border:1px solid var(--line); border-radius:14px; padding:13px 14px; color:var(--muted-2); font-size:11px; line-height:1.6; background:rgba(255,255,255,.012); }
.admin-dashboard > .helper { margin-top:10px; text-align:right; }
@media (max-width:640px) {
  .admin-main { width:min(100% - 22px,1080px); padding-top:38px; }
  .admin-login-card, .admin-dashboard { padding:19px; border-radius:20px; }
  .admin-dashboard-head { flex-direction:column; }
  .admin-head-actions { width:100%; justify-content:flex-start; }
}

/* Compression clarity */
.option-label-row { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:9px; }
.option-label-row .option-label { margin:0; }
.estimate-note { color:var(--muted-2); font-size:10px; }
.compression-options { align-items:stretch; }
.compression-card { min-height:148px; display:flex; flex-direction:column; }
.compression-card .compression-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0; }
.compression-card .compression-head strong { font-size:14px; }
.compression-card .compression-head em { font-style:normal; font-size:9px; color:var(--accent); background:var(--accent-soft); border:1px solid rgba(201,255,90,.14); border-radius:999px; padding:4px 6px; white-space:nowrap; }
.compression-card .compression-estimate { margin-top:10px; color:#dce2ea; font-size:12px; font-weight:650; }
.compression-card .compression-detail { margin-top:7px; color:var(--muted-2); font-size:10.5px; line-height:1.5; }
.compression-helper { margin-top:9px; }

.drop-zone.dragover { box-shadow:0 0 0 4px rgba(201,255,90,.055), inset 0 0 45px rgba(201,255,90,.025); }
.drop-zone.dragover .drop-title::after { content:" · Release to add"; color:var(--accent); }

@media (max-width:760px) {
  .compression-card { min-height:auto; }
  .option-label-row { align-items:flex-start; }
}
.compression-result-detail { margin-top:12px; font-size:12px; color:#c7ccd5; line-height:1.55; }
