:root {
  --bg: #07111f;
  --text: #f5f7fb;
  --muted: #b8c0cf;
  --accent: #5eead4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #12304d 0%, var(--bg) 50%, #02060d 100%);
  color: var(--text);
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand.small {
  font-size: 0.9rem;
  opacity: 0.8;
}

.top-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.top-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  margin-bottom: 24px;
}

.upload-box {
  display: inline-block;
  padding: 18px 24px;
  border: 2px dashed var(--accent);
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.upload-box input {
  display: none;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.status {
  margin-top: 16px;
  min-height: 24px;
  color: var(--muted);
}

.status.error {
  color: #ff8a80;
}

.slider-wrap {
  margin-top: 18px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.quality-value {
  color: var(--accent);
}

.size-info {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.slider-bubble-wrap {
  position: relative;
  padding-top: 12px;
}

.slider-bubble {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #03111d;
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.preview-wrap {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preview-wrap img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.download-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

