/* Tela Play — página dedicada */
.tela-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tela-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
}
.tela-hero p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 36rem; }
.tela-quota {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.tela-quota.ok { border-color: rgba(52, 211, 153, 0.35); color: var(--ok); background: rgba(52, 211, 153, 0.08); }
.tela-quota.warn { border-color: rgba(251, 191, 36, 0.4); color: #fbbf24; background: rgba(251, 191, 36, 0.08); }

.tela-import {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: end;
}
@media (max-width: 640px) { .tela-import { grid-template-columns: 1fr; } }
.tela-import-msg { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); min-height: 1.2rem; }
.tela-import-msg.err { color: var(--danger); }
.tela-import-msg.ok { color: var(--ok); }

.tela-grid {
  display: grid;
  grid-template-columns: 1fr min(300px, 34vw);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 960px) { .tela-grid { grid-template-columns: 1fr; } }

.step-card h2 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.step-num {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}
.fields-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.fields-row .span-2 { grid-column: span 2; }
@media (max-width: 520px) { .fields-row .span-2 { grid-column: span 1; } }

.tela-upload {
  display: grid;
  gap: 0.5rem;
}
.tela-upload input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.upload-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px dashed rgba(160, 200, 255, 0.28);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.upload-box:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--accent-soft);
}
.upload-box.has-file {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.06);
}
.upload-box.drag { transform: scale(1.01); border-color: var(--accent-2); }
.upload-ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
  color: var(--accent-2);
}
.upload-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.upload-txt strong { display: block; font-size: 0.86rem; margin-bottom: 0.15rem; }
.upload-txt span { font-size: 0.78rem; color: var(--muted); }

.tela-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.tela-status { font-size: 0.82rem; color: var(--muted); flex: 1; min-width: 140px; }

/* Prévia tipo Play Store */
.phone-preview {
  position: sticky;
  top: 5.5rem;
}
.phone-frame {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #0f1115 0%, #050506 100%);
  padding: 0.85rem 0.75rem 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.phone-notch {
  width: 36%;
  height: 4px;
  margin: 0 auto 0.75rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}
.pv-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.pv-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #1a1a22;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.pv-icon.empty { display: grid; place-items: center; color: var(--muted); font-size: 0.55rem; font-weight: 700; text-align: center; padding: 0.2rem; }
.pv-title { font-weight: 700; font-size: 0.95rem; margin: 0 0 0.1rem; line-height: 1.2; }
.pv-dev { margin: 0; font-size: 0.75rem; color: var(--muted); }
.pv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  text-align: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.pv-stat b { display: block; font-size: 0.82rem; }
.pv-stat span { font-size: 0.62rem; color: var(--muted); }
.pv-stars { color: #fbbf24; font-size: 0.7rem; letter-spacing: -1px; }
.pv-install {
  width: 100%;
  padding: 0.55rem;
  border: none;
  border-radius: 8px;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: default;
}
.pv-cap { margin: 0.55rem 0 0; text-align: center; font-size: 0.68rem; color: var(--muted); }

.tela-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.tela-list-head h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
}

.tela-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }
.tela-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: rgba(0, 0, 0, 0.15);
}
.tela-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.tela-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.tela-table tr:last-child td { border-bottom: 0; }
.tela-table tr:hover td { background: rgba(59, 130, 246, 0.04); }
.tela-link {
  color: var(--accent-2);
  font-size: 0.78rem;
  word-break: break-all;
  max-width: 280px;
  display: inline-block;
}
.tela-row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tela-row-actions .btn { padding: 0.38rem 0.65rem; font-size: 0.74rem; }
.tela-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
