#dashboardLogoStatus.logo-status-message {
  color: var(--muted);
  font-size: 0.97rem;
  margin-top: 4px;
  text-align: center;
  min-height: 18px;
  font-style: italic;
}
#dashboardLogoBrand {
  min-width: 70px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dashboardLogoBrand img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 14px;
  box-shadow: 0 2px 10px #0007, 0 1.5px 0 var(--accent);
  background: #fff;
  object-fit: contain;
  border: 2px solid var(--accent);
  display: block;
}
.toolbar {
  display: grid;
  gap: 18px 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
  color: var(--muted);
  background: rgba(10, 30, 50, 0.13);
  border-radius: 13px;
  padding: 16px 14px 13px 14px;
  box-shadow: 0 1.5px 8px #0002;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

input,
select,
button {
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: rgba(5, 20, 31, 0.82);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}

.logo-label {
  min-height: 120px;
  justify-content: flex-start;
}

.store-logo-featured {
  display: block;
  margin: 0 auto 8px auto;
  max-width: 120px;
  max-height: 70px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px #0005, 0 1.5px 0 var(--accent);
  background: #fff;
  object-fit: contain;
  border: 1.5px solid var(--accent);
}

#storeLogoPreview {
  display: none;
  margin: 0 auto 0 auto;
  text-align: center;
  width: 100%;
}

input[type="file"] {
  display: none;
}

.custom-upload-btn {
  background: linear-gradient(135deg, var(--accent), #13a6d0);
  color: #01253a;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 18px;
  margin-bottom: 4px;
  margin-top: 2px;
  cursor: pointer;
  box-shadow: 0 1.5px 8px #0002;
  transition: background 0.18s, color 0.18s;
  width: 100%;
  min-width: 0;
  display: block;
}
.custom-upload-btn:hover {
  filter: brightness(1.08);
}

.ghost-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s, border 0.18s;
  box-shadow: 0 1px 4px #0002;
  width: auto;
  min-width: 0;
  display: inline-block;
}
.ghost-btn.btn-top {
  margin-left: 18px;
  margin-top: 2px;
  font-size: 1rem;
  padding: 7px 18px;
}
.ghost-btn.btn-small {
  font-size: 0.97rem;
  padding: 6px 14px;
  margin-left: 10px;
  margin-top: 0;
}
:root {
  --bg-1: #071926;
  --bg-2: #0d2c3f;
  --card: rgba(7, 25, 38, 0.72);
  --text: #f3f8ff;
  --muted: #9fb9cf;
  --accent: #20d0ff;
  --accent-2: #7cffb7;
  --danger: #ff7582;
  --border: rgba(159, 185, 207, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #154869 0%, #081c2a 45%, #040f18 100%);
}

.background-layer {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(32, 208, 255, 0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(124, 255, 183, 0.05) 25%, transparent 25%);
  background-size: 42px 42px;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px;
}

.panel {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  box-shadow: 0 20px 65px rgba(2, 8, 18, 0.45);
}

.auth-panel {
  max-width: 440px;
  margin: 8vh auto;
  padding: 28px;
  animation: floatIn 0.6s ease;
}

.auth-panel h1 {
  font-family: 'Sora', sans-serif;
  margin-top: 0;
}

.auth-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

input,
select,
button {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(5, 20, 31, 0.7);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #13a6d0);
  color: #01253a;
  border: 0;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.error-text {
  min-height: 1.2rem;
  color: var(--danger);
}

.dashboard-panel {
  padding: 22px;
  display: grid;
  gap: 18px;
  animation: floatIn 0.45s ease;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-header h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
}

.toolbar {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.helper-text {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.room-refs-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(6, 19, 29, 0.92);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.room-refs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-refs-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.room-refs-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.room-refs-status.error {
  color: var(--danger);
}

.room-refs-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.room-refs-list li {
  color: var(--text);
  font-size: 0.9rem;
}

.grid-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(6, 19, 29, 0.92);
  min-height: 210px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: grid;
}

.grid-item:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 255, 183, 0.6);
}

.grid-main {
  padding: 10px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.grid-main h4 {
  margin: 0;
}

.grid-actions {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-actions button {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.grid-actions .btn-danger {
  background: rgba(255, 117, 130, 0.2);
  border: 1px solid rgba(255, 117, 130, 0.6);
  color: #ffd6dc;
}

.grid-item video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.grid-caption {
  font-size: 0.86rem;
  color: var(--muted);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 99px;
  color: #03293f;
  background: var(--accent-2);
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.7);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-card {
  width: min(620px, 100%);
  background: rgba(5, 17, 26, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview {
  width: 100%;
  min-height: 240px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.stream-panel {
  position: fixed;
  inset: 0;
  background: #01070d;
  z-index: 20;
}

.stream-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stream-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 21;
  padding: 12px;
  border-radius: 12px;
  background: rgba(2, 10, 18, 0.72);
  border: 1px solid var(--border);
}

.hidden {
  display: none !important;
}

.visible {
  display: block;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 740px) {
  .app-shell {
    padding: 14px;
  }

  .auth-panel {
    margin-top: 3vh;
  }

  .stream-overlay {
    right: 12px;
    left: 12px;
  }
}
