/* Owner Portal - Demon Seed
   Palette: black headers, white content, teal #009477 interactive, gold #c9a84c for brand identity */

.portal {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-family: "Open Sans", system-ui, sans-serif;
  color: #ffffff;
}

.portal-hero {
  text-align: center;
  margin-bottom: 40px;
}

.portal-title {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.12em;
  color: #c9a84c;
  margin: 0;
}

.portal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.portal-btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid #009477;
  border-radius: 2px;
  transition: background-color 120ms, color 120ms;
  cursor: pointer;
}

.portal-btn-primary {
  background: #009477;
  color: #ffffff;
}

.portal-btn-primary:hover {
  background: #007860;
  border-color: #007860;
  color: #ffffff;
}

.portal-btn-outline {
  background: transparent;
  color: #009477;
}

.portal-btn-outline:hover {
  background: #009477;
  color: #ffffff;
}

.portal-btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: transparent;
  color: #009477;
  border-width: 1px;
}

.portal-btn-small:hover {
  background: #009477;
  color: #ffffff;
}

.portal-section-title {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.1em;
  color: #ffffff;
  border-bottom: 1px solid #009477;
  padding-bottom: 8px;
  margin: 0 0 8px;
}

.portal-section-note {
  font-size: 0.85rem;
  color: #bbb;
  margin: 0 0 16px;
}

.portal-recent-empty {
  color: #bbb;
  font-style: italic;
  padding: 16px 0;
  margin: 0;
}

.portal-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-product-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 120ms;
}

.portal-product-row:hover {
  background: rgba(0, 148, 119, 0.16);
}

.portal-product-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f4f4f4;
}

.portal-product-name {
  flex: 1;
  font-weight: 600;
}

.portal-all {
  margin-top: 48px;
}

.portal-all-count {
  font-size: 0.85rem;
  color: #bbb;
  margin: 0 0 12px;
}

.portal-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.portal-select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: #2B323D;
  background: #ffffff;
  border: 1.5px solid #ddd;
  border-radius: 2px;
}

.portal-select:focus {
  outline: none;
  border-color: #009477;
}

.portal-edit-form .portal-btn {
  align-self: flex-start;
}

.portal-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .portal { padding: 24px 16px 64px; }
  .portal-title { font-size: 2.2rem; }
  .portal-actions { flex-direction: column; }
  .portal-btn { width: 100%; text-align: center; }
  .portal-product-row { flex-wrap: wrap; }
  .portal-product-name { flex: 1 0 60%; }
}
