:root {
  --bg: #020617;
  --card: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .18);
  --text: #e5e7eb;
  --accent: #38bdf8;
  --accent2: #22c55e;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #1e3a8a, transparent 55%),
    linear-gradient(180deg, #020617, #020617);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  color: var(--text);
}

.wrapper {
  width: 100%;
  max-width: 460px;
}

.header {
  text-align: center;
  margin-bottom: 22px;
}

.header h1 {
  font-size: 1.8rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

/* UPLOAD BUTTON STYLE */
.upload-box {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  padding: 20px;
  transition: background .25s, transform .1s;
  text-align: center;
}

.upload-box:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}

.upload-box input {
  display: none;
}

.upload-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.upload-icon {
  font-size: 28px;
}

.upload-text {
  display: flex;
  flex-direction: column;
}

.upload-title {
  font-weight: 600;
  font-size: 16px;
}

.upload-desc {
  font-size: 12px;
  opacity: .7;
}

/* FILE INFO */
.file-info {
  margin-top: 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.file-name {
  font-size: 13px;
  opacity: .9;
  word-break: break-all;
}

.change-btn {
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
  cursor: pointer;
}

/* RIPPLE */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple .6s linear;
  background: rgba(56, 189, 248, .35);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* RESULT */
.result {
  margin-top: 18px;
  display: none;
}

.result textarea {
  width: 100%;
  margin-top: 8px;
  min-height: 90px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  color: white;
  resize: none;
}

.actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actions button,
.actions a {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .08);
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions a.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #020617;
}

.guide {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.6;
  opacity: .85;
}

.status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  opacity: .75;
}