* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #0f172a;
  color: #e2e8f0;
  line-height: 1.5;
  min-height: 100vh;
}

header {
  background-color: #1e293b;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 24px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 12px;
  color: #94a3b8;
}

.lang-switcher {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: #475569;
  color: #fff;
}

.lang-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  font-weight: 600;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

.card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.status-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-left: 4px solid #10b981;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #94a3b8;
}

.card-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.input-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.input-wrapper {
  margin-bottom: 14px;
}

input, select, textarea {
  min-width: 0;
}

.form-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.preset-label {
  font-size: 12px;
  color: #64748b;
}

.preset-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: #1e293b;
  border-color: #38bdf8;
}

.btn {
  display: inline-block;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  padding: 14px;
  font-size: 15px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.action-banner {
  margin: 14px 0 20px 0;
}

.btn-download {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-download:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
}

.result-group {
  margin-bottom: 16px;
}

.result-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 500;
}

.code-box {
  display: flex;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

.code-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  outline: none;
}

.copy-btn {
  background: #334155;
  border: none;
  color: #e2e8f0;
  padding: 0 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #475569;
}

.copy-btn.copied {
  background: #10b981;
  color: #fff;
}

.info-card {
  background: #131e33;
  border-color: #1e3a5f;
}

.info-content p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
  line-height: 1.6;
}

.info-content strong {
  color: #38bdf8;
}

.footer-nav {
  text-align: center;
  padding: 24px 0 12px 0;
}

.footer-nav a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.download-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid #0284c7;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #38bdf8;
  margin-bottom: 20px;
}

.tip-icon {
  font-size: 18px;
  flex-shrink: 0;
}
