/* PixelCut · iDklic — Navy #1B3A5C + Teal #3FBDB6 */
:root {
  --navy: #1B3A5C;
  --navy-deep: #0F2440;
  --navy-light: #2A4F7A;
  --teal: #3FBDB6;
  --teal-bright: #5DD4CD;
  --teal-deep: #2B9B95;
  --accent-grad: linear-gradient(135deg, #1B3A5C 0%, #2B9B95 60%, #3FBDB6 100%);
  --teal-grad: linear-gradient(135deg, #3FBDB6 0%, #5DD4CD 100%);

  --bg-0: #0A1626;
  --bg-1: #0F1F35;
  --bg-2: #152A45;

  --text: #F1F5F9;
  --text-dim: #94A8C2;
  --text-mute: #5F7A99;

  --border: rgba(63, 189, 182, 0.12);
  --border-strong: rgba(63, 189, 182, 0.25);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(63, 189, 182, 0.05);

  --success: #3FBDB6;
  --error: #EF6B6B;
  --warn: #F59E0B;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 700px at 20% 0%, rgba(63, 189, 182, 0.12), transparent 50%),
    radial-gradient(700px 600px at 90% 60%, rgba(27, 58, 92, 0.5), transparent 50%),
    radial-gradient(800px 800px at 50% 110%, rgba(63, 189, 182, 0.08), transparent 50%);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

/* iDKLiC official logo (white version for dark theme) */
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.2s, filter 0.2s;
  filter: drop-shadow(0 4px 16px rgba(63, 189, 182, 0.2));
}
.logo:hover .logo-img {
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 22px rgba(63, 189, 182, 0.35));
}

.logo-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-link {
  color: var(--teal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.brand-link:hover { color: var(--teal-bright); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.hero {
  text-align: center;
  margin: 24px 0 48px;
}

.badge {
  display: inline-block;
  background: rgba(63, 189, 182, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.grad {
  background: var(--teal-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s, background 0.2s;
}

.card:hover { border-color: var(--border-strong); }

.card label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-grad);
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 800;
}

.quota-inline {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  background: rgba(63, 189, 182, 0.06);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.quota-inline .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(63, 189, 182, 0.15);
}
.quota-inline.low .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }
.quota-inline.empty .dot { background: var(--error); box-shadow: 0 0 0 3px rgba(239, 107, 107, 0.15); }

.drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--glass-strong);
}
.drop-zone:hover, .drop-zone.dragging {
  border-color: var(--teal);
  background: rgba(63, 189, 182, 0.07);
  transform: translateY(-1px);
}

.drop-icon {
  color: var(--teal);
  margin-bottom: 14px;
  display: inline-flex;
  opacity: 0.85;
}
.drop-zone p { margin: 4px 0; }
.muted { color: var(--text-dim); font-size: 14px; }

.link-btn {
  background: none;
  border: none;
  color: var(--teal);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.link-btn:hover { color: var(--teal-bright); }

.file-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}

.file-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.file-chip.done { color: var(--teal); border-color: var(--teal); background: rgba(63, 189, 182, 0.08); }
.file-chip.error { color: var(--error); border-color: rgba(239, 107, 107, 0.4); }

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--teal-grad);
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(63, 189, 182, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(63, 189, 182, 0.4);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--teal); }

.progress-bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--teal-grad);
  width: 0%;
  transition: width 0.3s;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(63, 189, 182, 0.5);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.progress-log {
  max-height: 200px;
  overflow-y: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.log-line { padding: 2px 0; color: var(--text-dim); }
.log-line.ok { color: var(--teal); }
.log-line.err { color: var(--error); }

.download-card {
  text-align: center;
  padding: 40px 24px;
  border-color: var(--border-strong);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--teal-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(63, 189, 182, 0.3);
}

.download-card h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.download-card p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.download-card .btn-primary { margin-right: 8px; }

.how {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.how h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.how-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(63, 189, 182, 0.1);
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid var(--border-strong);
}

.how-item p {
  color: var(--text-dim);
  font-size: 14px;
}

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-mute);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--teal);
  text-decoration: none;
}
footer a:hover { color: var(--teal-bright); }

@media (max-width: 600px) {
  header { padding: 16px 20px; gap: 8px; }
  .logo-img { height: 40px; }
  .logo { gap: 10px; }
  .logo-text strong { font-size: 14px; }
  .logo-sub { font-size: 10px; }
  main { padding: 16px 16px 60px; }
  .hero { margin: 16px 0 32px; }
  .card { padding: 20px; }
  .actions { flex-direction: column; }
  .actions button { width: 100%; justify-content: center; }
  .quota-inline { margin-left: 0; }
  .card label { flex-wrap: wrap; }
}
