.gangafy-app {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-family: inherit;
}

.gangafy-form,
.gangafy-box,
.gangafy-toolbar {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.gangafy-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.gangafy-form-row {
  display: flex;
  gap: 10px;
}

.gangafy-form input {
  flex: 1;
  min-height: 44px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 0 12px;
}

.gangafy-form button,
.gangafy-toolbar button,
.gangafy-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

.gangafy-form button,
.gangafy-toolbar button {
  background: #111;
  color: #fff;
}

.gangafy-actions button:first-child {
  background: #f0f0f0;
}

.gangafy-actions button:last-child {
  background: #ffe8e8;
}

.gangafy-message {
  margin-top: 10px;
  font-size: 14px;
}

.gangafy-message.is-success { color: #0f7b3b; }
.gangafy-message.is-error { color: #b00020; }
.gangafy-message.is-info { color: #555; }

.gangafy-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gangafy-toolbar h3 {
  margin: 0;
}

.gangafy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gangafy-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.gangafy-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fafafa;
  padding: 14px;
}

.gangafy-card-body {
  padding: 16px;
}

.gangafy-brand {
  display: block;
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gangafy-card h4 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.gangafy-price {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
}

.gangafy-previous {
  font-size: 13px;
  color: #777;
  margin: 0 0 10px;
}

.gangafy-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #efefef;
  margin-bottom: 12px;
}

.gangafy-status-down { background: #dff7e8; color: #0f7b3b; }
.gangafy-status-up { background: #ffe8e8; color: #b00020; }
.gangafy-status-equal { background: #eef3ff; color: #1d4ed8; }
.gangafy-status-new { background: #f4f4f4; color: #555; }

.gangafy-actions {
  display: flex;
  gap: 8px;
}

.gangafy-empty {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 18px;
}

@media (max-width: 900px) {
  .gangafy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .gangafy-form-row,
  .gangafy-toolbar,
  .gangafy-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gangafy-grid { grid-template-columns: 1fr; }
}

.gangafy-price-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  background: #f2f2f2;
  color: #555;
  margin: 0 0 10px;
}

.gangafy-price-badge.is-cmr {
  background: #e8f0ff;
  color: #174ea6;
}
