/* All Services — Shared Studio Components */

/* Accessibility & Base */
*:focus-visible {
  outline: 2px solid var(--as-accent);
  outline-offset: 2px;
}

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

/* Studio Top Bar */
.as-topbar {
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.as-topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.as-topbar.fluid .as-topbar-inner {
  max-width: none;
  padding: 6px 18px;
  min-height: 58px;
}

.as-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.as-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.as-trade-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 3px 10px;
  border-radius: var(--as-r-pill);
  letter-spacing: 0.01em;
}

.as-demobar {
  background: #fffbeb;
  color: #78350f;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 7px 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(180, 83, 9, 0.14);
  display: block;
}

.as-demobar-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  margin-right: 7px;
  vertical-align: middle;
}

/* Studio Buttons (44px min touch target) */
.as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--as-r-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--as-ease), border-color var(--as-ease), color var(--as-ease), transform var(--as-ease), box-shadow var(--as-ease);
}

.as-btn:active {
  transform: translateY(1px) scale(0.985);
}

.as-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.as-btn-primary {
  background: var(--as-accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
}
.as-btn-primary:hover {
  background: var(--as-accent-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.as-btn-brand {
  background: var(--as-brand);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
}
.as-btn-brand:hover {
  background: var(--as-brand-hover);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.34);
}

.as-btn-sec {
  background: var(--as-bg-muted);
  color: var(--as-ink);
  border-color: var(--as-line);
}
.as-btn-sec:hover {
  background: #e2e8f0;
}

.as-btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}
.as-btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.32);
}

.as-btn-sm {
  padding: 8px 13px;
  font-size: 13px;
  min-height: 44px;
}

/* Badges & Chips */
.as-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--as-r-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.as-badge-live {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.as-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.as-badge-soon {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.as-badge-sample {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.as-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--as-r-sm);
  border: 1px solid var(--as-line-strong);
  background: var(--as-bg-elev);
  color: var(--as-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--as-ease), border-color var(--as-ease), color var(--as-ease);
}

.as-chip:hover {
  background: var(--as-bg-subtle);
}

/* Cards */
.as-card {
  background: var(--as-bg-elev);
  border-radius: var(--as-r);
  border: 1px solid var(--as-line);
  box-shadow: var(--as-shadow-sm);
  padding: 20px;
}

.as-card-hover {
  transition: transform var(--as-ease), box-shadow var(--as-ease), border-color var(--as-ease);
}
.as-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--as-shadow);
}

/* Inputs */
.as-input, .as-select, .as-textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
  color: var(--as-ink);
  background: var(--as-bg-elev);
  border: 1px solid var(--as-line-strong);
  border-radius: var(--as-r-sm);
  transition: border-color var(--as-ease), box-shadow var(--as-ease);
}
.as-input:focus, .as-select:focus, .as-textarea:focus {
  outline: none;
  border-color: var(--as-accent);
  box-shadow: var(--as-focus);
}

/* Polished Empty State Pattern: Icon + Title + 1 Helpful Line + Action */
.as-empty {
  background: var(--as-bg-elev);
  border: 1.5px dashed rgba(15, 23, 42, 0.14);
  border-radius: var(--as-r);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.as-empty.compact {
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.as-empty-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--as-bg-subtle);
  border: 1px solid var(--as-line);
  color: var(--as-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.as-empty-ic svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.as-empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--as-ink);
  letter-spacing: -0.01em;
}

.as-empty-copy {
  margin: 0;
  font-size: 13.5px;
  color: var(--as-muted);
  max-width: 360px;
  line-height: 1.45;
}

.as-empty-act {
  margin-top: 6px;
}

/* Toasts & Modals */
.as-toast {
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.as-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.66);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 40;
}

.as-modal-panel {
  background: var(--as-bg-elev);
  border-radius: 16px;
  padding: 24px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--as-shadow-lg);
  border: 1px solid var(--as-line);
}

@media (max-width: 640px) {
  .as-topbar-inner { padding: 0 16px; }
  .as-topbar.fluid .as-topbar-inner { padding: 6px 12px; }
}
