/* GKZiD Owner dashboard — internal ops surface */

.owner-dash-body {
  margin: 0;
  min-height: 100vh;
  background: #050608;
  color: #eaf2ff;
  font-family: "Outfit", system-ui, sans-serif;
  /* ../style.css sets body to flex + centered — clips wide admin layouts on phones */
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

#ownerMain {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.owner-dash {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 20px clamp(12px, 4vw, 32px) 56px;
  box-sizing: border-box;
}

.owner-dash__kicker {
  margin: 0 0 6px;
  color: #00F52A;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.owner-dash__title {
  margin: 0 0 8px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.5rem, 5.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.owner-dash__lead {
  margin: 0 0 22px;
  max-width: 72ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(234, 242, 255, 0.62);
}

.owner-dash__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.owner-dash__bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.owner-dash__bar .owner-dash__title {
  margin-bottom: 0;
}

.owner-hub__title {
  margin: 0 0 8px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  color: #eaf2ff;
}

.owner-hub__lead {
  margin: 0 0 20px;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(234, 242, 255, 0.55);
}

.owner-hub .owner-link-grid {
  margin-bottom: 0;
}

.owner-tool-view__title {
  margin: 0 0 16px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  color: #00F52A;
}

.owner-tool-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: rgba(234, 242, 255, 0.72);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.owner-tool-back:hover {
  color: #00F52A;
}

.owner-dash--hub .owner-tool-view {
  display: none !important;
}

.owner-dash--tool .owner-hub {
  display: none !important;
}

.owner-tool-view__body .owner-tool-panel {
  border-top: none;
  padding-top: 0;
}

.owner-tool-view__body .owner-tool-panel:not(.is-active) {
  display: none !important;
}

.owner-dash__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.owner-dash__toolbar--in-tool {
  margin-top: 0;
  padding-bottom: 14px;
}

.owner-dash__signed-in {
  font-size: 0.8rem;
  color: rgba(234, 242, 255, 0.5);
  flex: 1 1 160px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-dash__section {
  margin-bottom: 28px;
}

.owner-dash__section-title {
  margin: 0 0 12px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.owner-bulk-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: rgba(212, 228, 248, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.owner-bulk-steps li {
  margin-bottom: 0.65rem;
}

.owner-bulk-steps code {
  font-size: 0.85em;
  color: rgba(0, 245, 42, 0.9);
}

.owner-dash__section-hint--tight {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.owner-dash__section-hint {
  margin: -6px 0 14px;
  font-size: 0.8rem;
  color: rgba(234, 242, 255, 0.45);
  max-width: 70ch;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.owner-dash__section-hint code {
  word-break: break-word;
}

.owner-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.owner-metric {
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.owner-metric__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 242, 255, 0.45);
  margin-bottom: 6px;
}

.owner-metric__link {
  float: right;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(0, 245, 42, 0.9);
  text-decoration: none;
}

.owner-metric__link:hover {
  text-decoration: underline;
  color: #00f52a;
}

.owner-metric__value {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

/* Host URL: avoid display font + unbreakable string blowing card width on mobile */
.owner-metric__value--host {
  display: block;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: rgba(234, 242, 255, 0.88);
}

.owner-metric__value--accent {
  color: #00F52A;
}

.owner-roster-email-tool__grid {
  margin-bottom: 8px;
}

.owner-link-card--accent {
  border-color: rgba(0, 245, 42, 0.45);
  background: rgba(0, 245, 42, 0.06);
}

.owner-link-card--accent:hover {
  border-color: rgba(0, 245, 42, 0.75);
}

.owner-metric__sub {
  margin-top: 6px;
  font-size: 0.7rem;
  color: rgba(234, 242, 255, 0.38);
  line-height: 1.35;
}

.owner-metric__sub--err {
  color: rgba(255, 170, 140, 0.95);
  font-size: 0.72rem;
  word-break: break-word;
  max-width: 100%;
}

.owner-metric-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.owner-metric-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(234, 242, 255, 0.68);
}

.owner-metric-list strong {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #00F52A;
}

.owner-locker-wins {
  margin-top: 20px;
  border: 1px solid rgba(0, 245, 42, 0.18);
  border-radius: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.owner-locker-wins__title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.owner-locker-wins__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.owner-locker-wins__item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(234, 242, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.owner-locker-wins__item--grand {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.08) inset;
}

.owner-locker-wins__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.owner-locker-wins__prize {
  font-weight: 700;
  color: #eaf2ff;
}

.owner-locker-wins__meta {
  font-size: 0.78rem;
  color: rgba(234, 242, 255, 0.62);
}

.owner-locker-wins__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.owner-locker-wins__badge--pending {
  background: rgba(255, 184, 107, 0.15);
  color: #ffb86b;
}

.owner-locker-wins__badge--delivered,
.owner-locker-wins__badge--auto {
  background: rgba(0, 245, 42, 0.12);
  color: #00f52a;
}

.owner-locker-wins__badge--progress {
  background: rgba(120, 180, 255, 0.15);
  color: #9ec5ff;
}

.owner-locker-wins__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-product-tools {
  border: 1px solid rgba(0, 245, 42, 0.18);
  border-radius: 16px;
  padding: 18px 16px 8px;
  background: rgba(0, 0, 0, 0.2);
}

.owner-product-tools .owner-link-grid {
  margin-bottom: 20px;
}

.owner-link-card--jump {
  border-color: rgba(0, 245, 42, 0.22);
}

.owner-link-card--jump:hover {
  border-color: rgba(0, 245, 42, 0.55);
}

.owner-product-tools__panels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.owner-tool-panel {
  margin: 0;
  padding: 22px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 72px;
}

.owner-tool-panel:first-child {
  border-top: none;
  padding-top: 8px;
}

.owner-tool-panel .owner-dash__section-title {
  font-size: 1rem;
}

.owner-product-tools .owner-dash__section {
  margin-bottom: 0;
}

.owner-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.owner-link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 245, 42, 0.06);
  border: 1px solid rgba(0, 245, 42, 0.22);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
  font: inherit;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

button.owner-link-card {
  appearance: none;
  -webkit-appearance: none;
}

.owner-link-card:hover {
  border-color: rgba(0, 245, 42, 0.45);
  background: rgba(0, 245, 42, 0.1);
}

.owner-link-card__name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #00F52A;
}

.owner-link-card__hint {
  font-size: 0.75rem;
  color: rgba(234, 242, 255, 0.5);
  line-height: 1.35;
}

.owner-checklist {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(234, 242, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.55;
}

.owner-checklist li {
  margin-bottom: 6px;
}

.owner-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.owner-media-grid--single {
  grid-template-columns: 1fr;
  max-width: min(100%, 440px);
}

.owner-media-slot {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.owner-media-slot__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.owner-media-slot__lead {
  margin: -4px 0 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(234, 242, 255, 0.48);
}

.owner-media-slot__slot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.owner-media-slot__upload-btn {
  flex: 1 1 auto;
  min-height: 40px;
  font-size: 0.8rem;
}

.owner-media-slot__label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(234, 242, 255, 0.6);
}

.owner-media-slot__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #eaf2ff;
  font: inherit;
  font-size: 0.85rem;
  padding: 8px 10px;
  margin: 0 0 10px;
}

.owner-media-slot__input::placeholder {
  color: rgba(234, 242, 255, 0.34);
}

.owner-media-slot__select {
  appearance: none;
}

.owner-media-slot__preview {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.75rem;
}

.owner-media-slot__file-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 10px;
}

.owner-media-slot__mini-btn {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.68rem;
}

.owner-media-slot__file-input {
  display: none;
}

.owner-media-slot__slot-msg {
  min-height: 2.55em;
  margin: 0 0 8px;
  font-size: 0.72rem;
  line-height: 1.38;
  font-weight: 500;
  color: rgba(234, 242, 255, 0.42);
}

.owner-media-slot__thumb {
  margin: -2px 0 6px;
}

.owner-media-slot__thumb[hidden] {
  display: none !important;
}

.owner-media-slot__thumb-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 245, 42, 0.55);
}

.owner-media-slot__thumb-frame {
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.owner-media-slot__thumb-frame img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.owner-media-slot__thumb-frame--landscape img {
  max-height: none;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.owner-media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 12px;
}

.owner-media-status {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(234, 242, 255, 0.65);
}

.owner-gate {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 16px 56px;
  text-align: center;
}

.owner-gate__title {
  margin: 8px 0 12px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  letter-spacing: -0.02em;
}

.owner-gate__msg {
  min-height: 1.35em;
  margin: 0 0 10px;
  color: rgba(255, 180, 120, 0.92);
  font-size: 0.9rem;
}

.owner-gate__msg:empty {
  display: none;
}

.owner-gate__lead {
  margin: 0 0 20px;
  color: rgba(234, 242, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.5;
}

.owner-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.owner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease, filter 0.12s ease;
}

.owner-btn:active {
  transform: scale(0.98);
}

.owner-btn--primary {
  background: linear-gradient(165deg, #00F52A, #00F52A);
  color: #04120d;
}

.owner-btn--ghost {
  background: transparent;
  color: #00F52A;
  border: 1px solid rgba(0, 245, 42, 0.4);
}

.is-hidden {
  display: none !important;
}

.owner-toggle-card {
  max-width: 36rem;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 42, 0.22);
  background: rgba(0, 245, 42, 0.05);
  box-sizing: border-box;
}

.owner-toggle-card__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #eaf2ff;
  line-height: 1.35;
}

.owner-toggle-card__input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #00F52A;
}

.owner-toggle-card__text {
  flex: 1;
  min-width: 0;
}

.owner-toggle-card__status {
  margin: 12px 0 0;
  padding-left: calc(1.15rem + 12px);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(234, 242, 255, 0.55);
}

.owner-spotlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.owner-spotlight-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #eaf2ff;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.owner-badge-award {
  border: 1px solid rgba(0, 245, 42, 0.22);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
  background: linear-gradient(145deg, rgba(0, 245, 42, 0.06), rgba(0, 0, 0, 0.35));
}

.owner-badge-award__label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(234, 242, 255, 0.55);
}

.owner-badge-award__preview {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(234, 242, 255, 0.78);
}

.owner-badge-award__preview.is-hidden {
  display: none;
}

.owner-badge-award__status {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(0, 245, 42, 0.9);
}

.owner-badge-award__preview a {
  color: #00f52a;
}

@media (max-width: 480px) {
  .owner-metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .owner-btn {
    font-size: 0.72rem;
    padding: 0 14px;
  }
}
