.admin-page {
  max-width: 720px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.admin-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
  animation: fadeUp 0.6s var(--ease) both;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-top: 20px;
}

.field-label:first-child {
  margin-top: 0;
}

.token-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.token-hint code {
  color: var(--text-muted);
}

.btn-link {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: #c7d2fe;
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
}

.dropzone {
  margin-top: 8px;
  padding: 40px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(129, 140, 248, 0.06);
}

.dropzone p {
  font-weight: 600;
  margin-bottom: 6px;
}

.dropzone .hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.btn-primary,
.btn-secondary {
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  margin-top: 0;
  flex-shrink: 0;
}

.url-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.url-row .field-input {
  flex: 1;
}

.result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.preview-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.preview-row .preview-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.result-meta {
  flex: 1;
  min-width: 0;
}

.yaml-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.yaml-hint code {
  color: var(--text-muted);
  word-break: break-all;
}

.msg {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.msg.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.msg.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.status-ok {
  color: #6ee7b7;
}

.status-off {
  color: #fca5a5;
}

@media (max-width: 640px) {
  .preview-row {
    flex-direction: column;
  }
  .url-row {
    flex-direction: column;
  }
}
