.sn-off-panel {
  margin: 0 0 22px 0;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(55, 217, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(55, 217, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(7, 31, 33, 0.96), rgba(8, 24, 22, 0.94));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.sn-off-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.sn-off-head h2 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
}

.sn-off-head p {
  margin: 0;
  color: rgba(235, 255, 244, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.sn-off-version {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(55, 217, 255, 0.11);
  border: 1px solid rgba(55, 217, 255, 0.22);
  color: #a9efff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sn-off-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 14px;
}

.sn-off-card {
  padding: 17px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.085);
}

.sn-off-card h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.sn-off-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(235, 255, 244, 0.74);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.sn-off-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  outline: none;
  font-size: 15px;
}

.sn-off-input:focus {
  border-color: rgba(55, 217, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(55, 217, 255, 0.12);
}

.sn-off-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.sn-off-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 900;
  color: #06201a;
  background: linear-gradient(135deg, #37d9ff, #c8f58c);
  box-shadow: 0 12px 24px rgba(55, 217, 255, 0.18);
}

.sn-off-btn.ghost {
  color: #dffcff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.sn-off-btn.save {
  background: linear-gradient(135deg, #28d987, #c8f58c);
}

.sn-off-btn.danger {
  color: #ffffff;
  background: rgba(255, 85, 85, 0.88);
  box-shadow: none;
}

.sn-off-help,
.sn-off-note,
.sn-off-muted {
  display: block;
  margin-top: 12px;
  color: rgba(235, 255, 244, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.sn-off-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(55, 217, 255, 0.1);
  border: 1px solid rgba(55, 217, 255, 0.18);
  color: #dffcff;
  font-size: 14px;
  font-weight: 800;
}

.sn-off-product {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 13px;
  align-items: center;
  margin-bottom: 14px;
}

.sn-off-product img,
.sn-off-placeholder {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sn-off-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a9efff;
  font-weight: 900;
}

.sn-off-product strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.18;
}

.sn-off-product span {
  display: block;
  margin-top: 4px;
  color: rgba(235, 255, 244, 0.7);
  font-size: 13px;
}

.sn-off-product small {
  display: block;
  margin-top: 3px;
  color: rgba(235, 255, 244, 0.52);
  font-size: 12px;
}

.sn-off-nutrients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.sn-off-nutrients div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.sn-off-nutrients span {
  display: block;
  color: rgba(235, 255, 244, 0.55);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sn-off-nutrients b {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 15px;
}

.sn-off-portion {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(40, 217, 135, 0.09);
  border: 1px solid rgba(40, 217, 135, 0.17);
}

.sn-off-portion > strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 14px;
}

.sn-off-scanner {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sn-off-scanner.hidden {
  display: none;
}

.sn-off-scanner video {
  width: 100%;
  max-height: 260px;
  border-radius: 14px;
  background: #000;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .sn-off-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sn-off-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .sn-off-nutrients {
    grid-template-columns: repeat(2, 1fr);
  }

  .sn-off-product {
    grid-template-columns: 64px 1fr;
  }

  .sn-off-product img,
  .sn-off-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }
}