.pageContainer {
  animation: fadeIn 0.3s ease-out;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.title {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 800;
}

.subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

.notice {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 700;
}

.statusCard {
  min-width: 210px;
  padding: 16px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
}

.statusCard span,
.statusCard small,
.field span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.statusCard strong {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 1.28rem;
}

.statusCard small {
  display: block;
  margin-top: 4px;
  text-transform: none;
}

.settingsGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 20px;
  align-items: start;
}

.settingsPanel,
.previewPanel {
  border-radius: 12px;
  padding: 20px;
}

.panelHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panelHeader h2 {
  color: var(--foreground);
  font-size: 1.16rem;
}

.panelHeader p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.formGrid {
  display: grid;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--foreground);
  font-size: 0.9rem;
}

.field input:focus {
  border-color: var(--primary);
  outline: none;
}

.assetField {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.assetControls {
  display: grid;
  gap: 10px;
}

.logoPreview {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(203, 232, 209, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.compactPreview {
  min-height: 96px;
}

.previewImage,
.previewLogo {
  width: 42px;
  height: 42px;
  display: inline-block;
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(135deg, var(--primary), #71e7a9);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}

.previewImage {
  width: 110px;
  height: 62px;
}

.compactPreview .previewImage {
  width: 42px;
  height: 42px;
}

.hasPreviewImage {
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}

.logoPreview strong {
  color: var(--foreground);
  font-size: 0.84rem;
}

.fileRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fileButton,
.clearButton,
.actionBtn,
.dangerBtn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.fileButton {
  position: relative;
  overflow: hidden;
  border-color: rgba(16, 185, 129, 0.34);
  color: var(--primary);
}

.fileButton input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fileButton:hover,
.clearButton:hover,
.actionBtn:hover,
.dangerBtn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btnPrimary {
  border-color: rgba(16, 185, 129, 0.42);
  color: var(--primary);
}

.dangerBtn {
  color: var(--danger);
}

.actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.previewColumn {
  display: grid;
  gap: 16px;
}

.frontendPreview,
.adminPreview {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.previewLogo {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.frontendPreview div,
.adminPreview div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.frontendPreview strong,
.adminPreview strong {
  color: var(--foreground);
  font-size: 1.05rem;
}

.frontendPreview small,
.adminPreview small {
  color: var(--muted);
  font-size: 0.84rem;
}

@media (prefers-color-scheme: light) {
  .subtitle,
  .panelHeader p,
  .statusCard span,
  .statusCard small,
  .field span {
    color: var(--muted);
  }

  .field input {
    background: rgba(4, 12, 9, 0.46);
  }

  .assetField,
  .frontendPreview,
  .adminPreview {
    background: rgba(238, 248, 239, 0.05);
  }
}

@media (max-width: 1100px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .settingsGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .title {
    font-size: 2rem;
  }

  .assetField {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }
}
