@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap");
:root {
  --bg: #0e0d0b;
  --surface: #181713;
  --border: #2c2920;
  --border-xs: #201e18;
  --accent: #c9a227;
  --text: #ede8df;
  --muted: #7a7060;
  --dim: #5c5549;
  --ok: #6bbf72;
  --ok-bg: #0f1e10;
  --ok-border: #1e3a20;
  --err: #d95f5f;
  --err-bg: #2e1a1a;
  --err-border:#4a2a2a;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --max: 1400px;
  --pad-x: 1.25rem;
}

html.light {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --border: #d4cec4;
  --border-xs: #e0dbd2;
  --accent: #b08a18;
  --text: #1a1814;
  --muted: #6b6357;
  --dim: #8c8070;
  --ok: #2e7d34;
  --ok-bg: #eaf4eb;
  --ok-border: #b8debb;
  --err: #c0392b;
  --err-bg: #fde8e8;
  --err-border:#e8a0a0;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "DM Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border-xs);
  padding: 0.9rem var(--pad-x);
}

.app-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

html.light nav {
  background: rgba(245, 243, 239, 0.92);
}

.app {
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 1px;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.brand-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.user-email {
  color: var(--muted);
}

.user-plan-badge {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.06em;
}

.user-signout,
.user-signin {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.user-signout:hover,
.user-signin:hover {
  opacity: 0.85;
}

.theme-toggle {
  background: none;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--dim);
}

.headline {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.headline strong {
  color: var(--text);
  font-weight: 500;
}

.limits-box {
  margin-bottom: 1rem;
  background: #15130f;
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-md);
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.limits-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--muted);
}
.limits-row strong {
  color: var(--text);
  font-weight: 500;
}

.limits-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 99px;
  border: 0.5px solid var(--border);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.limits-detail {
  color: var(--dim);
}

.limits-row-after {
  color: var(--dim);
}

.dropzone {
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  background: var(--surface);
}
.dropzone:hover, .dropzone.over {
  border-color: var(--accent);
  border-style: solid;
}
.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dz-icon {
  margin: 0 auto 1.25rem;
  width: 40px;
  height: 40px;
}

.dz-main {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.dz-sub {
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.opt-group {
  background: var(--surface);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-md);
  padding: 0.75rem 0.875rem;
}

.opt-label {
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.opt-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pill {
  font-size: 0.78rem;
  padding: 4px 11px;
  border-radius: 99px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.1s, color 0.1s, background 0.1s;
  line-height: 1.8;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}
.pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.opt-input {
  width: 100%;
  background: var(--bg);
  border: 0.5px solid var(--border);
  color: var(--accent);
  padding: 0.45rem 0.65rem;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.15s;
}
.opt-input:focus {
  border-color: var(--accent);
}
.opt-input::-moz-placeholder {
  color: var(--border);
}
.opt-input::placeholder {
  color: var(--border);
}

.actions {
  margin-top: 0.875rem;
}

.btn-process {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  padding: 0.8rem 1.4rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.1s;
}
.btn-process:hover {
  opacity: 0.85;
}
.btn-process:disabled {
  opacity: 0.4;
  cursor: default;
}

.progress-wrap {
  display: none;
  margin-top: 1rem;
}

.progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.2s ease;
}

.progress-label {
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

.btn-zip {
  background: var(--accent);
  border: none;
  border-radius: var(--r-md);
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.1s;
}
.btn-zip:hover {
  opacity: 0.85;
}

.btn-clear {
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: border-color 0.1s, color 0.1s;
}
.btn-clear:hover {
  border-color: var(--err);
  color: var(--err);
}

.btn-copy {
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.1s, color 0.1s;
}
.btn-copy:hover {
  border-color: var(--accent);
  color: var(--text);
}
.btn-copy.copied {
  border-color: var(--ok);
  color: var(--ok);
}

.divider {
  border: none;
  border-top: 0.5px solid var(--border-xs);
  margin: 1.75rem 0;
}

.msg {
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.msg-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 0.5px solid var(--ok-border);
}
.msg-err {
  background: var(--err-bg);
  color: var(--err);
  border: 0.5px solid var(--err-border);
}

.results-banner {
  background: var(--ok-bg);
  border: 0.5px solid var(--ok-border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.rb-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.rb-label {
  font-size: 0.75rem;
  color: #4a8a52;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rb-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ok);
}

.rb-detail {
  font-size: 0.78rem;
  color: #3a6a40;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.results-title {
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.875rem;
  background: var(--surface);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-md);
  min-width: 0;
}

.file-thumb {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 0.5px solid var(--border-xs);
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

.file-name {
  font-size: 0.85rem;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.file-before {
  font-size: 0.78rem;
  color: var(--dim);
  text-decoration: line-through;
}

.file-arrow {
  font-size: 0.75rem;
  color: var(--dim);
}

.file-after {
  font-size: 0.78rem;
  color: var(--muted);
}

.savings-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--ok-bg);
  color: var(--ok);
  border: 0.5px solid var(--ok-border);
  font-weight: 500;
  white-space: nowrap;
}

.snippet-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  margin-top: -1px;
  background: var(--bg);
  border: 0.5px solid var(--border-xs);
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.snippet-code {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.45;
}

.btn-delete {
  flex-shrink: 0;
  background: none;
  border: 0.5px solid transparent;
  border-radius: var(--r-sm);
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1;
  padding: 2px 7px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.btn-delete:hover {
  color: #e57373;
  border-color: rgba(229, 115, 115, 0.3);
}

.save-project-wrap {
  margin-top: 1.25rem;
}

.save-project-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.save-project-form .opt-input {
  flex: 1;
}

.how {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border-xs);
}

.how-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.how-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  flex-shrink: 0;
}

.upgrade-heading {
  margin-bottom: 1.5rem;
}

.upgrade-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.upgrade-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.upgrade-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.upgrade-card {
  background: var(--surface);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upgrade-card--pro {
  border-color: var(--accent);
}

.upgrade-card-name {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.upgrade-card--pro .upgrade-card-name {
  color: var(--accent);
}

.upgrade-card-price {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.upgrade-card-price span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

.upgrade-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.upgrade-features li {
  font-size: 0.8rem;
  color: var(--muted);
}
.upgrade-features li::before {
  content: "– ";
  color: var(--dim);
}

.upgrade-feature--highlight {
  color: var(--text) !important;
}
.upgrade-feature--highlight::before {
  color: var(--accent) !important;
  content: "★ " !important;
}

.upgrade-current-badge {
  font-size: 0.72rem;
  color: var(--dim);
  border: 0.5px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
  align-self: flex-start;
}

.upgrade-btn-primary {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.1s;
}
.upgrade-btn-primary:hover {
  opacity: 0.85;
}

.upgrade-btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.1s, color 0.1s;
  margin-top: 0.4rem;
}
.upgrade-btn-secondary:hover {
  border-color: var(--dim);
  color: var(--text);
}

.upgrade-error {
  font-size: 0.78rem;
  color: var(--err);
  background: var(--err-bg);
  border: 0.5px solid var(--err-border);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
}

.upgrade-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.upgrade-qr-img {
  width: 160px;
  height: 160px;
  border-radius: var(--r-sm);
  border: 0.5px solid var(--border-xs);
}

.upgrade-qr-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.upgrade-qr-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.upgrade-qr-label {
  color: var(--dim);
}

.upgrade-qr-val {
  color: var(--text);
  font-weight: 500;
}

.upgrade-qr-note {
  font-size: 0.72rem;
  color: var(--dim);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.upgrade-already {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  text-align: center;
}

.upgrade-check {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 0.5px solid var(--ok-border);
  color: var(--ok);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.upgrade-already-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.upgrade-already-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.upgrade-footer {
  font-size: 0.75rem;
  color: var(--dim);
  text-align: center;
  margin-top: 0.5rem;
}
.upgrade-footer a {
  color: var(--dim);
}
.upgrade-footer a:hover {
  color: var(--text);
}

@media (max-width: 500px) {
  .upgrade-plans {
    grid-template-columns: 1fr;
  }
}
.dash-section {
  margin-bottom: 1.25rem;
}

.dash-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.5rem;
}

.dash-card {
  background: var(--surface);
  border: 0.5px solid var(--border-xs);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
}

.dash-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.dash-plan-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.dash-plan-expires {
  display: block;
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 0.2rem;
}

.dash-limits {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dash-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  border-bottom: 0.5px solid var(--border-xs);
  padding-bottom: 0.4rem;
}
.dash-limit-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-limit-label {
  color: var(--dim);
}

.dash-limit-val {
  color: var(--text);
}

.dash-empty {
  font-size: 0.8rem;
  color: var(--dim);
  margin: 0;
}

@media (max-width: 479px) {
  .file-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .file-meta {
    margin-left: 40px;
    flex-basis: calc(100% - 40px);
  }
}
@media (min-width: 520px) {
  .app {
    padding: 2rem 1.5rem 3rem;
  }
  .dropzone {
    padding: 4rem 2rem;
  }
  .options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
  }
  .options .opt-group:last-child {
    grid-column: 1/-1;
  }
  .how {
    flex-direction: row;
    gap: 2rem;
  }
  .file-meta {
    flex-wrap: nowrap;
  }
}
@media (min-width: 768px) {
  .app {
    padding: 2.5rem 2rem 4rem;
  }
}/*# sourceMappingURL=main.css.map */