/* ==========================================================================
   VSCALE Marketplace Autopilot • Design System & UI
   Aesthetics: Cyber-Obsidian / Luxury Fintech / Dark Glassmorphism
   ========================================================================== */

:root {
  --bg-main: #090c10;
  --bg-sidebar: #0d1117;
  --bg-card: rgba(18, 22, 30, 0.75);
  --bg-card-hover: rgba(26, 32, 44, 0.85);
  --bg-input: #12161f;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.2);
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- ESTRUTURA GERAL --- */
.app-layout {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1877f2, #06b6d4);
  color: white;
  font-weight: 800;
  font-size: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.brand-text h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .subtext {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-item.active {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-item .badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-muted);
}

.badge-pulse {
  background: rgba(16, 185, 129, 0.2) !important;
  color: var(--accent-green) !important;
  animation: pulse 2s infinite;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2) !important;
  color: var(--accent-amber) !important;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #34d399;
  font-weight: 500;
}

.dot-online {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.tenant-tag {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-align: center;
}

/* --- ÁREA PRINCIPAL --- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 32px 40px;
  background: radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.topbar h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.topbar .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

/* --- BOTÕES --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: white;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: #fff;
}

/* --- TABS --- */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

/* --- MÉTRICAS --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.metric-header .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.icon-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }

.metric-card .value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-top: 14px;
  font-feature-settings: "tnum";
}

.metric-card .meta {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-green { color: var(--accent-green); }
.text-amber { color: var(--accent-amber); }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 11px; }

/* --- CARDS & GRIDS --- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.card-body {
  padding: 22px;
}

.max-w-2xl {
  max-width: 680px;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-3 { margin-bottom: 12px; }

/* --- LISTAS MINI --- */
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.mini-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mini-item-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.mini-item-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- CONTAS GRID --- */
.tab-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tab-actions-bar h3 {
  font-size: 18px;
  font-weight: 700;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.account-card-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.account-card-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-faint);
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.account-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* --- ANÚNCIOS GRID --- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.listing-image-wrap {
  width: 100%;
  height: 180px;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

.listing-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-price-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(9, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.listing-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.listing-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.listing-body p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-cities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.city-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-muted);
}

.listing-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- TABELAS --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 14px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.data-table td {
  padding: 16px 20px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --- INBOX UNIFICADO --- */
.inbox-container {
  display: flex;
  height: calc(100vh - 160px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.inbox-sidebar {
  width: 340px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: rgba(13, 17, 23, 0.7);
}

.inbox-search {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.inbox-search input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  outline: none;
}

.inbox-search input:focus {
  border-color: var(--border-focus);
}

.inbox-threads {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.thread-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s;
}

.thread-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.thread-item.active {
  background: rgba(6, 182, 212, 0.08);
  border-left: 3px solid var(--accent-cyan);
}

.thread-info {
  flex: 1;
  min-width: 0;
}

.thread-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.thread-top h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-top .time {
  font-size: 11px;
  color: var(--text-faint);
}

.thread-item p {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-account-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px;
}

/* --- JANELA DO CHAT --- */
.inbox-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(9, 12, 16, 0.4);
}

.empty-chat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  gap: 14px;
}

.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 22, 30, 0.5);
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-user h4 {
  font-size: 15px;
  color: #fff;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-bubble {
  max-width: 65%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.4;
  word-break: break-word;
}

.msg-bubble.buyer {
  align-self: flex-start;
  background: #1e2638;
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.msg-bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-bubble .timestamp {
  font-size: 10.5px;
  margin-top: 4px;
  display: block;
  opacity: 0.7;
}

.chat-input-bar {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  background: rgba(18, 22, 30, 0.7);
}

.chat-input-bar input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13.5px;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--border-focus);
}

/* --- FORMULÁRIOS & MODAIS --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.3;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.form-check label {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #0f141c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.account-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}

.account-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
}

.account-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.alert-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.4;
}

.alert-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #e0f2fe;
}

/* --- TOASTS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #fff;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease;
}

.toast.success { border-color: rgba(16, 185, 129, 0.4); }
.toast.info { border-color: rgba(6, 182, 212, 0.4); }

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

/* --- MULTI-PHOTO GALLERY & PREVIEWS --- */
.photo-input-row {
  display: flex;
  gap: 10px;
}

/* --- DROPZONE UPLOAD DO COMPUTADOR --- */
.upload-dropzone {
  border: 2px dashed rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.04);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.btn-upload-pc {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(2, 132, 199, 0.3));
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
}

.btn-upload-pc:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(2, 132, 199, 0.45));
}

.dropzone-text {
  font-size: 11.5px;
  color: var(--text-faint);
}

.photos-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photos-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  max-height: 190px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
}

.photo-thumb-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #111;
}

.photo-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb-item .thumb-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.photo-thumb-item .thumb-cover {
  background: #0284c7;
  color: white;
}

.photo-thumb-item .btn-remove-thumb {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}

.photo-thumb-item .btn-remove-thumb:hover {
  transform: scale(1.15);
}

.listing-photo-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.listing-gallery-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
}

.listing-gallery-strip img {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* --- TELA DE ACESSO RESTRITO (LOCK SCREEN) --- */
.lock-screen-wrapper {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.12) 0%, rgba(9, 12, 16, 0.98) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.lock-card {
  width: 100%;
  max-width: 440px;
  background: rgba(18, 22, 30, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.15);
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

.lock-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.lock-brand-info h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.lock-brand-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.lock-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lock-shield-icon {
  width: 64px;
  height: 64px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.lock-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.lock-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.lock-body form {
  width: 100%;
}

.lock-error-msg {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-top: 8px;
}

.lock-footer {
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  font-family: var(--font-mono);
}

/* --- CAMPO DE SENHA COM BOTÃO DE VISIBILIDADE --- */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 44px;
}

.btn-toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-toggle-password:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.text-success {
  color: #10b981 !important;
}

.btn-delete-listing {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  transition: all 0.2s ease;
}

.btn-delete-listing:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.hidden {
  display: none !important;
}
