* { box-sizing: border-box; font-family: Inter, Arial, sans-serif; }

body {
  background: #f3f4f6;
  padding: 40px;
}

button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }

.container {
  max-width: 1100px;
  margin: auto;
}

h1, h3 { text-align: center; }

h1 {
  font-size: 34px;
  letter-spacing: 0.5px;
  margin: 0 0 22px;
}

h3 {
  margin: 14px 0 14px;
  color: #111827;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
  margin-bottom: 25px;
}

.inline-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 600;
}

label { font-weight: 600; display: block; margin-top: 12px; }

.hint {
  margin: 10px 0 0;
  color: #6b7280;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-top: 6px;
}

.manual-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.manual-row .danger {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #991b1b;
  font-weight: 800;
}

.logo-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logo-box img {
  max-height: 80px;
  object-fit: contain;
  border: 1px dashed #ccc;
  padding: 10px;
}

.plans { display: flex; flex-direction: column; gap: 10px; }

.theme-toggle {
  display: flex;
  gap: 10px;
}

.size-toggle {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.size-btn {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 800;
}

.size-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.size-examples {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}

.size-example {
  position: relative;
  flex: 1;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(180deg,#ffffff,#f3f4f6);
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  overflow: hidden;
}

.size-example::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 2px solid rgba(79,70,229,.55);
}

.size-example span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-weight: 900;
  color: #111827;
  font-size: 14px;
}

.size-example[data-size="md"] { height: 64px; }
.size-example[data-size="sm"] { height: 50px; }

.size-example.is-active {
  border-color: #111827;
}

.size-example.is-active::before {
  border-color: rgba(17,24,39,.75);
}

.theme-btn {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 800;
}

.theme-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.plan-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  gap: 8px;
}

.plan-del {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #991b1b;
  font-weight: 900;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 20px;
}

.preview-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  overflow: hidden;
}

.preview-card img {
  width: 100%;
  display: block;
}

.preview-actions {
  padding: 12px;
  display: flex;
  gap: 10px;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.primary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  color: #fff;
  border: none;
  margin: 10px 0;
}

@media (max-width: 640px) {
  body { padding: 18px; }
  .manual-row { grid-template-columns: 1fr; }
  .manual-row .danger { width: 100%; }
}
