* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.container {
  width: 100%;
  max-width: 480px;
}

.shortener-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 2.5rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  letter-spacing: -0.02em;
}

.tagline {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  color: #000;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.input-field::placeholder {
  color: #999;
}

.alias-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.alias-wrapper:focus-within {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.alias-prefix {
  padding: 0.875rem 0 0.875rem 1rem;
  color: #000;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.alias-input {
  border: none;
  background: transparent;
  padding-left: 0;
}

.alias-input:focus {
  box-shadow: none;
}

.btn-shorten {
  width: 100%;
  padding: 0.875rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.btn-shorten:hover {
  background: #222;
}

.btn-shorten:active {
  transform: scale(0.98);
}

.btn-shorten:disabled {
  background: #666;
  cursor: not-allowed;
}

/* Result */
.result-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.result-section.hidden {
  display: none;
}

.result-box {
  display: flex;
  gap: 0.5rem;
}

.result-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  color: #000;
}

.btn-copy {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #222;
}

.btn-copy.copied {
  background: #333;
}

.qr-container {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.qr-container img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* Responsive */
@media (max-width: 480px) {
  .shortener-box {
    padding: 1.75rem;
  }
  
  .result-box {
    flex-direction: column;
  }
  
  .btn-copy {
    width: 100%;
  }
}
