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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header {
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #1d1d1f;
}

.header p {
  color: #86868b;
  margin-top: 0.25rem;
}

.mode-selector {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mode-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 14px;
  border: 1px solid #d2d2d7;
  background: white;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn:hover {
  background: #f5f5f7;
}

.mode-btn.active {
  background: #1d1d1f;
  color: white;
  border-color: #1d1d1f;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 380px;
  }

  .preview-container {
    position: sticky;
    top: 2rem;
  }
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e5e7;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

.field-group {
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-size: 14px;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.field-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #d2d2d7;
  background: white;
  font-size: 14px;
  transition: all 0.2s;
}

.field-input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 1px #0071e3;
}

.photo-upload-area {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.photo-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f5f5f7;
  border: 2px dashed #d2d2d7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.photo-preview:hover {
  border-color: #0071e3;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview svg {
  width: 24px;
  height: 24px;
  color: #86868b;
}

.photo-remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
}

.photo-remove-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 14px;
  border: 1px solid #d2d2d7;
  background: white;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: #f5f5f7;
}

.btn-primary {
  background: #0071e3;
  color: white;
  border-color: #0071e3;
}

.btn-primary:hover {
  background: #0077ed;
}

.btn-success {
  background: #34c759;
  color: white;
  border-color: #34c759;
}

.btn-success:hover {
  background: #2db84d;
}

.btn-copied {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

.help-text {
  font-size: 12px;
  color: #86868b;
  margin-top: 0.5rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #d2d2d7;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.logo-checkbox:hover {
  border-color: #a1a1a6;
}

.logo-checkbox.checked {
  border-color: #0071e3;
  background: #f0f7ff;
}

.checkbox-icon {
  width: 20px;
  height: 20px;
  border: 2px solid #d2d2d7;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.logo-checkbox.checked .checkbox-icon {
  border-color: #0071e3;
  background: #0071e3;
}

.checkbox-icon svg {
  width: 12px;
  height: 12px;
  color: white;
  display: none;
}

.logo-checkbox.checked .checkbox-icon svg {
  display: block;
}

.logo-preview-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.size-selector {
  display: flex;
  gap: 0.5rem;
}

.size-btn {
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #d2d2d7;
  background: white;
  color: #1d1d1f;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.size-btn:hover {
  border-color: #a1a1a6;
}

.size-btn.active {
  border-color: #0071e3;
  background: #f0f7ff;
  color: #0071e3;
}

.step {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0071e3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 15px;
  color: #1d1d1f;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.step-desc {
  font-size: 13px;
  color: #86868b;
  line-height: 1.5;
}

.step-desc p + p {
  margin-top: 0.375rem;
}

.step-desc strong {
  color: #1d1d1f;
}

.step-desc a {
  color: #0071e3;
  text-decoration: underline;
}

details {
  margin-top: 0.75rem;
}

summary {
  color: #0071e3;
  cursor: pointer;
  user-select: none;
}

summary:hover {
  text-decoration: underline;
}

details img {
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e5e7;
  width: 100%;
}

.preview-label {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 0.75rem;
}

.preview-box {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e5e7;
  padding: 1.5rem;
}

.preview-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.preview-divider {
  border-top: 1px solid #e5e5e5;
  margin: 1rem 0;
}

.preview-name {
  font-weight: bold;
  color: #000;
  line-height: 1.3;
  padding: 0 0.5rem;
}

.preview-position {
  color: #000;
  margin-top: 0.5rem;
  line-height: 1.3;
  padding: 0 0.5rem;
}

.preview-contacts {
  font-family: Helvetica, Arial, sans-serif;
  color: #999;
  line-height: 1.3;
  padding: 0 0.5rem;
}

.preview-contact {
  margin-top: 0.5rem;
}

.preview-contact:first-child {
  margin-top: 0;
}

.preview-logo {
  display: block;
  margin-top: 0.5rem;
}

.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: white;
  color: #1d1d1f;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  margin-bottom: 0.5rem;
  animation: slideIn 0.3s ease;
  pointer-events: all;
}

.toast.success {
  background: #22c55e;
  color: white;
}

.toast.error {
  background: #ef4444;
  color: white;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}

#fileInput {
  display: none;
}

.section-title {
  font-size: 18px;
  color: #1d1d1f;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
