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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
}

.floating-buzzwords {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.buzzword {
  position: absolute;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.06);
  font-weight: bold;
  white-space: nowrap;
  animation: floatWord 20s linear infinite;
}

@keyframes floatWord {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-size: 60px;
  display: block;
  margin-bottom: 8px;
  animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

.title {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, #f7971e, #ffd200, #f7971e);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-top: 6px;
}

.subtitle span {
  display: inline-block;
  animation: wiggle 0.5s ease-in-out infinite alternate;
}

@keyframes wiggle {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hint {
  display: block;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  margin-top: 4px;
  font-style: italic;
}

input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}

input[type="text"]:focus {
  border-color: #f7971e;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(247, 151, 30, 0.2);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.upload-zone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #f7971e;
  background: rgba(247, 151, 30, 0.08);
  box-shadow: 0 0 40px rgba(247, 151, 30, 0.1);
}

.upload-zone.has-files {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.05);
}

.upload-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.upload-zone:hover .upload-icon {
  transform: scale(1.2) rotate(-10deg);
}

.upload-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.upload-text strong {
  color: #f7971e;
}

.upload-hint {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  margin-top: 8px;
}

.file-input {
  display: none;
}

.file-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(247, 151, 30, 0.15);
  border: 1px solid rgba(247, 151, 30, 0.3);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.file-tag .remove {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-size: 16px;
  line-height: 1;
}

.file-tag .remove:hover {
  opacity: 1;
}

.file-tag .ext {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.ext.html { background: #e44d26; }
.ext.css { background: #1572b6; }
.ext.js { background: #f7df1e; color: #000; }
.ext.unknown { background: rgba(255,255,255,0.2); }

.deploy-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #1a1a2e;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.deploy-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(247, 151, 30, 0.4);
}

.deploy-btn:active:not(:disabled) {
  transform: translateY(0);
}

.deploy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.deploy-btn .btn-text {
  position: relative;
  z-index: 1;
}

.deploy-btn.loading .btn-text::after {
  content: '';
  display: inline-block;
  width: 8px;
  margin-left: 8px;
  animation: dots 1.2s steps(4) infinite;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; box-shadow: 4px 0; }
  50% { content: '..'; box-shadow: 4px 0, 8px 0; }
  75% { content: '...'; box-shadow: 4px 0, 8px 0, 12px 0; }
}

.status-panel {
  margin-top: 20px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  display: none;
}

.status-panel.active {
  display: block;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.log-line {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: fadeInLog 0.3s ease-out;
}

@keyframes fadeInLog {
  0% { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

.log-line .time {
  color: rgba(255, 255, 255, 0.3);
  margin-right: 8px;
}

.log-line.ok { color: #4ade80; }
.log-line.warn { color: #fbbf24; }
.log-line.err { color: #f87171; }
.log-line.info { color: #60a5fa; }
.log-line.funny { color: #c084fc; font-style: italic; }

.progress-bar {
  margin-top: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f7971e, #ffd200);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-bar .fill.reverse {
  animation: reverseBar 2s ease-in-out infinite;
}

@keyframes reverseBar {
  0% { width: 80%; }
  50% { width: 20%; }
  100% { width: 80%; }
}

.result-panel {
  margin-top: 20px;
  text-align: center;
  display: none;
  padding: 24px;
  border-radius: 16px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  animation: celebration 0.6s ease-out;
}

.result-panel.error {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.2);
}

@keyframes celebration {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.result-panel.active {
  display: block;
}

.result-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 10px;
}

.result-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.result-url {
  color: #60a5fa;
  font-size: 14px;
  margin-top: 8px;
  word-break: break-all;
}

.result-url a {
  color: #60a5fa;
}

.result-funny {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 10px;
  font-style: italic;
}

.celebration-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

.footer {
  text-align: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.footer a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.footer a:hover {
  color: #f7971e;
}
