/* =========================================================
   OFERTAS VIP SOCIAL v2
   STYLE.CSS — RESPONSIVO PC / MOBILE / TABLET / TV
   TikTok scroll + seguidores + likes + uploads
========================================================= */

:root {
  /* Padrão = modo escuro global (a loja ainda tem tema próprio no perfil) */
  --primary: #8b919a;
  --primary-dark: #6d737c;
  --primary-light: rgba(255,255,255,0.08);

  --bg: #0c0c0e;
  --surface: #141418;
  --surface-2: #1a1a20;
  --text: #f0f0f3;
  --muted: #9a9aa3;
  --border: rgba(255,255,255,0.08);
  --danger: #e85a55;
  --success: #3dba7a;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow: 0 4px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);

  --header-height: 132px;
  --bottom-nav-height: 72px;
  --card-color: #1a1a20;

  font-family: Inter, Arial, sans-serif;
  color-scheme: dark;
}

/* Modo claro global */
html[data-app-theme="light"] {
  --primary: #5c6370;
  --primary-dark: #434a56;
  --primary-light: #eef0f4;

  --bg: #f3f4f7;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --text: #17181c;
  --muted: #6b7280;
  --border: #e2e4ea;
  --danger: #e53935;
  --success: #20a464;

  --shadow: 0 4px 20px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --card-color: #ffffff;
  color-scheme: light;
}

html[data-app-theme="dark"] {
  color-scheme: dark;
}

/* =========================================================
   RESET
========================================================= */

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

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c9cbd0;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aeb1b8;
}

/* =========================================================
   GENERIC
========================================================= */

.app {
  min-height: 100vh;
  width: 100%;
}

.muted {
  color: var(--muted);
}

.loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.btn-primary {
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  padding: 13px 20px;
  font-weight: 700;
  min-height: 46px;
  transition:
    transform .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 7px 18px rgba(255,107,0,.22);
}

.btn-primary:active {
  transform: scale(.98);
}

.btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 11px;
  padding: 11px 15px;
  font-weight: 700;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================================================
   AUTH
========================================================= */

.auth-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255,107,0,.12), transparent 40%),
    var(--bg);
  color: var(--text);
}

.auth-card {
  width: min(100%, 430px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 38px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.auth-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--primary-light);
  font-size: 38px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 20px;
}

.auth-brand h1 {
  font-size: clamp(25px, 5vw, 32px);
  margin-bottom: 5px;
  color: var(--text);
}

.auth-brand p {
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--surface-2);
  border-radius: 12px;
}

.auth-tab {
  border: 0;
  background: transparent;
  padding: 11px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label,
.auth-form label,
.form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

/* Inputs usam tema — NUNCA fundo branco fixo com texto claro */
.auth-form input,
.form input,
.form textarea,
.form select,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 13px;
  min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
  caret-color: var(--text);
}

.auth-form input::placeholder,
.form input::placeholder,
.form textarea::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.auth-form input:focus,
.form input:focus,
.form textarea:focus,
.form select:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.22);
}

.form textarea,
.auth-form textarea {
  resize: vertical;
  min-height: 80px;
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px;
}

.field-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* =========================================================
   HEADER / LOJA
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-top {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.header-main {
  width: min(100% - 40px, 1400px);
  margin: auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(250px, 2fr) auto;
  gap: 24px;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  font-size: clamp(17px, 2vw, 23px);
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-light);
  font-size: 22px;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#storeName {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search {
  position: relative;
  width: 100%;
}

.search > span,
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  padding: 0 40px 0 43px;
  background: var(--surface-2);
}

.search input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,.10);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.search-suggestions.open {
  display: block;
}

.search-suggestion {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestion:hover {
  background: var(--primary-light);
}

.search-suggestion img,
.search-suggestion .sugg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.edit-store-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 11px;
  padding: 11px 15px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-store-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.categories-nav {
  width: min(100% - 40px, 1400px);
  margin: auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.categories-nav a {
  flex: 0 0 auto;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
}

.categories-nav a:hover,
.categories-nav a.active {
  color: #fff;
  background: var(--primary);
}

/* =========================================================
   PROFILE HEADER (novo)
========================================================= */

.profile-header {
  width: min(100% - 40px, 1400px);
  margin: 20px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  flex: 1;
  min-width: 200px;
}

.profile-meta h1 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 4px;
}

.profile-stats {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.profile-stats span {
  font-size: 13px;
  color: var(--muted);
}

.profile-stats b {
  color: var(--text);
  font-weight: 800;
}

.follow-btn {
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  font-weight: 800;
  min-width: 120px;
  transition: .15s ease;
}

.follow-btn.following {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.follow-btn:hover {
  filter: brightness(1.05);
}

/* =========================================================
   FORYOU — TIKTOK STYLE SNAP SCROLL
========================================================= */

.view-foryou {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0b0b0d;
  overflow: hidden;
  position: relative;
}

.feed-container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-container::-webkit-scrollbar {
  display: none;
}

.feed-loading,
.feed-empty {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: #fff;
  scroll-snap-align: start;
}

.feed-card {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  background: #050505;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feed-video-wrap {
  position: absolute;
  inset: 0;
  background: #050505;
  cursor: pointer;
}

.feed-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.feed-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.32),
      transparent 25%,
      transparent 55%,
      rgba(0,0,0,.82)
    );
}

.feed-mute {
  position: absolute;
  z-index: 3;
  top: max(20px, env(safe-area-inset-top));
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.52);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  backdrop-filter: blur(8px);
}

.feed-side-actions {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: calc(var(--bottom-nav-height) + 120px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.feed-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.feed-side-btn .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: grid;
  place-items: center;
  font-size: 22px;
  backdrop-filter: blur(8px);
  transition: transform .15s;
}

.feed-side-btn:active .icon {
  transform: scale(.9);
}

.feed-side-btn.liked .icon {
  background: var(--primary);
}

.feed-info {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 80px;
  bottom: 0;
  padding:
    30px
    max(16px, 4vw)
    calc(var(--bottom-nav-height) + 24px);
  color: #fff;
}

.feed-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.feed-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  overflow: hidden;
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-user-meta {
  min-width: 0;
}

.feed-username {
  font-weight: 800;
  font-size: 15px;
}

.feed-storename {
  opacity: .78;
  font-size: 13px;
}

.feed-caption {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.45;
}

.feed-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.feed-btn {
  min-height: 43px;
  border-radius: 11px;
  padding: 10px 17px;
  border: 1px solid rgba(255,255,255,.35);
  font-weight: 800;
}

.feed-btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.feed-btn-outline {
  background: rgba(0,0,0,.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.feed-back-btn {
  position: absolute;
  z-index: 10;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  display: none;
}

.feed-back-btn.show {
  display: block;
}

/* ForYou search bar */
.foryou-search-wrap {
  position: absolute;
  z-index: 20;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 420px);
  display: none;
}

.view-foryou.search-open .foryou-search-wrap {
  display: block;
}

.foryou-search-toggle {
  position: absolute;
  z-index: 15;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.52);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
}

/* =========================================================
   POSTAR
========================================================= */

.view-post {
  min-height: calc(100vh - var(--bottom-nav-height));
  padding:
    35px
    20px
    calc(var(--bottom-nav-height) + 35px);
}

.post-form-wrap,
.post-page {
  width: min(100%, 720px);
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 35px);
  box-shadow: var(--shadow);
}

.page-heading {
  margin-bottom: 25px;
}

.page-heading h1 {
  font-size: clamp(22px, 4vw, 30px);
  margin-bottom: 6px;
}

.page-heading p {
  color: var(--muted);
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.video-upload-area,
.image-upload-area {
  width: 100%;
  min-height: 280px;
  border: 2px dashed #d5d7dc;
  border-radius: 18px;
  background: #fafafa;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.video-placeholder,
.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.video-placeholder .icon,
.upload-icon {
  font-size: 48px;
}

.video-preview,
.image-preview {
  width: 100%;
  height: 100%;
}

.video-preview video,
.image-preview img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #111;
}

.post-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.progress-track,
.post-progress .bar {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar,
#postProgressBar {
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width .25s ease;
}

/* =========================================================
   PERFIL / CATÁLOGO
========================================================= */

.view-profile {
  background: var(--bg);
  min-height: calc(100vh - var(--header-height));
  padding-bottom: calc(var(--bottom-nav-height) + 35px);
}

.profile-content {
  width: 100%;
}

.section {
  width: min(100% - 40px, 1400px);
  margin: 0 auto;
  padding: 30px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(20px, 3vw, 28px);
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 5px;
}

/* =========================================================
   BANNERS
========================================================= */

.banners-wrap {
  width: min(100% - 40px, 1400px);
  margin: 25px auto 0;
}

.banner-slide {
  position: relative;
  width: 100%;
  min-height: 210px;
  max-height: 430px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #222;
  box-shadow: var(--shadow);
  display: none;
}

.banner-slide.active {
  display: block;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  max-height: 430px;
  object-fit: cover;
}

.banner-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}

.banner-info h3 {
  font-size: clamp(20px, 3vw, 34px);
  margin-bottom: 5px;
}

.banner-info p {
  opacity: .9;
}

/* =========================================================
   PRODUTOS
========================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  background: var(--card-color, var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 9px rgba(0,0,0,.035);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f1f3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.035);
}

.discount {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.product-body {
  padding: 14px;
}

.product-body .store {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}

.product-name {
  font-weight: 700;
  line-height: 1.3;
  min-height: 39px;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.old {
  color: #92959c;
  text-decoration: line-through;
  font-size: 12px;
}

.price {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}

.product-actions {
  margin-top: 12px;
}

.buy-btn {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.buy-btn:hover {
  background: var(--primary-dark);
}

/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(var(--bottom-nav-height) + 20px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 27px;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

/* =========================================================
   PRODUCT PAGE
========================================================= */

.product-page {
  position: fixed;
  z-index: 150;
  inset: 0;
  overflow-y: auto;
  background: var(--bg);
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    40px
    max(20px, env(safe-area-inset-left));
}

.product-page-inner {
  width: min(100%, 900px);
  margin: auto;
  padding-top: 15px;
}

.back-button {
  border: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-weight: 700;
}

#productPageContent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(18px, 4vw, 35px);
  box-shadow: var(--shadow);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.product-detail-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f1f3;
  aspect-ratio: 1;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-description {
  margin: 16px 0;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================================================
   DRAWER
========================================================= */

.drawer-backdrop {
  position: fixed;
  z-index: 140;
  inset: 0;
  background: rgba(0,0,0,.48);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}

.offer-drawer {
  position: fixed;
  z-index: 145;
  top: 0;
  right: 0;
  width: min(100%, 520px);
  height: 100%;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  box-shadow: -10px 0 35px rgba(0,0,0,.18);
  padding: 55px 25px 30px;
}

.offer-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 25px;
}

/* =========================================================
   ADMIN
========================================================= */

.view-admin {
  position: fixed;
  z-index: 120;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.admin-topbar {
  height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 800;
}

.back-btn,
.text-btn {
  border: 0;
  background: transparent;
  font-weight: 700;
}

.back-btn:hover,
.text-btn:hover {
  color: var(--primary);
}

.admin-layout {
  height: calc(100% - 62px);
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
}

.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  overflow-y: auto;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.admin-main {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 40px);
}

.admin-section {
  width: min(100%, 1200px);
  margin: auto;
}

.admin-section > h1,
.admin-section .section-head h1,
.admin-heading h1 {
  font-size: clamp(23px, 4vw, 32px);
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.stats > div,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.stats b,
.stat-card b {
  font-size: 28px;
  color: var(--primary);
}

.stats span,
.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.admin-info-card {
  background: var(--primary-light);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 10px;
}

.admin-info-card strong {
  display: block;
  margin-bottom: 6px;
}

.admin-info-card p {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.table-wrap table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.table-wrap th {
  background: #fafafa;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.action-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.action-btns button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.action-btns button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.action-btns button.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Posts grid no admin */
.admin-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.admin-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.admin-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.admin-post-thumb {
  width: 100%;
  aspect-ratio: 9/16;
  background: #111;
  position: relative;
}

.admin-post-thumb video,
.admin-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-post-meta {
  padding: 12px;
}

.admin-post-meta .views {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* =========================================================
   ADMIN BANNERS
========================================================= */

.banner-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.banner-admin-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.banner-admin-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #eee;
}

.banner-admin-card .body {
  padding: 14px;
}

.banner-admin-card h3 {
  font-size: 15px;
}

.banner-admin-card .muted {
  margin-top: 5px;
  font-size: 12px;
}

/* =========================================================
   FORMS ADMIN
========================================================= */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 850px;
}

.form h3 {
  padding-top: 8px;
  margin-bottom: -5px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.check input {
  width: 18px !important;
  min-height: 18px !important;
}

.settings-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.settings-block h3 {
  margin-bottom: 16px;
  font-size: 16px;
}

.admin-image-preview {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 280px;
  background: #f0f1f3;
}

.admin-image-preview img {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
}

.color-preview {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

/* =========================================================
   MODAL
========================================================= */

.modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.52);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-box {
  position: relative;
  width: min(100%, 650px);
  max-height: min(90vh, 850px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.modal-box h2 {
  margin-bottom: 20px;
  padding-right: 40px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 25px;
}

.modal-header {
  margin-bottom: 16px;
}

/* =========================================================
   TOAST
========================================================= */

.toast {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + 22px);
  transform: translate(-50%, 20px);
  max-width: calc(100% - 30px);
  padding: 12px 18px;
  border-radius: 11px;
  background: #17181c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   BOTTOM NAV
========================================================= */

.bottom-nav {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  padding:
    5px
    max(8px, env(safe-area-inset-right))
    max(5px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
}

.nav-icon {
  font-size: 21px;
  line-height: 1;
}

.nav-item.active {
  color: var(--primary);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 1fr 1.6fr auto;
    gap: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .banner-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TABLET / SMALL NOTEBOOK
========================================================= */

@media (max-width: 800px) {
  :root {
    --bottom-nav-height: 68px;
  }

  .header-main {
    width: calc(100% - 24px);
    grid-template-columns: 1fr auto;
    min-height: 65px;
  }

  .header-main .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-main {
    padding: 9px 0 12px;
  }

  .edit-store-btn {
    padding: 9px 11px;
    font-size: 12px;
  }

  .categories-nav {
    width: calc(100% - 24px);
    padding-bottom: 9px;
  }

  .site-header {
    position: relative;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section,
  .banners-wrap,
  .profile-header {
    width: calc(100% - 24px);
  }

  .section {
    padding: 24px 0;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 8px;
  }

  .admin-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-sidebar a {
    white-space: nowrap;
    padding: 10px 12px;
  }

  .admin-main {
    padding: 20px 14px 80px;
  }

  .stats {
    gap: 10px;
  }

  .stats > div,
  .stat-card {
    padding: 14px;
  }

  .stats b,
  .stat-card b {
    font-size: 24px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  :root {
    --bottom-nav-height: 64px;
  }

  .auth-screen {
    padding: 14px;
    align-items: flex-start;
    padding-top: max(25px, env(safe-area-inset-top));
  }

  .auth-card {
    margin-top: 10px;
    border-radius: 18px;
    padding: 23px 18px;
  }

  .auth-logo {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .header-top {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .header-main {
    width: calc(100% - 20px);
  }

  .logo {
    font-size: 16px;
  }

  .logo-icon {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
    font-size: 19px;
  }

  .edit-store-btn {
    font-size: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .edit-store-btn span {
    display: none;
  }

  .categories-nav {
    width: calc(100% - 20px);
  }

  .view-post {
    padding: 18px 10px calc(var(--bottom-nav-height) + 20px);
  }

  .post-form-wrap,
  .post-page {
    border-radius: 16px;
    padding: 18px 14px;
  }

  .video-upload-area,
  .image-upload-area {
    min-height: 240px;
  }

  .feed-info {
    padding:
      20px
      12px
      calc(var(--bottom-nav-height) + 20px);
    right: 70px;
  }

  .feed-caption {
    font-size: 14px;
  }

  .feed-btn {
    min-height: 41px;
    padding: 9px 13px;
    font-size: 12px;
  }

  .feed-mute {
    right: 13px;
    top: max(13px, env(safe-area-inset-top));
  }

  .feed-side-actions {
    right: 10px;
    bottom: calc(var(--bottom-nav-height) + 100px);
  }

  .section,
  .banners-wrap,
  .profile-header {
    width: calc(100% - 20px);
  }

  .banners-wrap {
    margin-top: 12px;
  }

  .banner-slide,
  .banner-slide img {
    min-height: 170px;
    max-height: 240px;
  }

  .banner-info {
    padding: 18px;
  }

  .banner-info h3 {
    font-size: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .product-body {
    padding: 10px;
  }

  .product-name {
    font-size: 13px;
    min-height: 34px;
  }

  .price {
    font-size: 17px;
  }

  .buy-btn {
    min-height: 38px;
    font-size: 12px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats > div,
  .stat-card {
    padding: 11px 7px;
    border-radius: 12px;
    text-align: center;
  }

  .stats b,
  .stat-card b {
    font-size: 21px;
  }

  .stats span,
  .stat-card span {
    font-size: 10px;
  }

  .banner-admin-grid {
    grid-template-columns: 1fr;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    height: 56px;
    padding: 0 10px;
    font-size: 12px;
  }

  .admin-layout {
    height: calc(100% - 56px);
  }

  .admin-main {
    padding: 16px 10px 90px;
  }

  .modal {
    padding: 10px;
    align-items: end;
  }

  .modal-box {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 23px 16px;
  }

  .offer-drawer {
    width: 100%;
    padding-left: 17px;
    padding-right: 17px;
  }

  .product-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  #productPageContent {
    border-radius: 15px;
    padding: 15px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .profile-stats {
    justify-content: center;
  }
}

/* =========================================================
   MUITO PEQUENO
========================================================= */

@media (max-width: 380px) {
  .products-grid {
    gap: 7px;
  }

  .product-body {
    padding: 8px;
  }

  .product-name {
    font-size: 12px;
  }

  .price {
    font-size: 16px;
  }

  .buy-btn {
    font-size: 11px;
  }

  .nav-item {
    font-size: 10px;
  }
}

/* =========================================================
   TV / TELAS GRANDES
========================================================= */

@media (min-width: 1800px) {
  :root {
    --bottom-nav-height: 86px;
  }

  body {
    font-size: 17px;
  }

  .header-main,
  .categories-nav,
  .section,
  .banners-wrap,
  .profile-header {
    max-width: 1700px;
  }

  .header-main {
    min-height: 95px;
  }

  .logo {
    font-size: 28px;
  }

  .logo-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 27px;
  }

  .search input {
    height: 58px;
    font-size: 17px;
  }

  .categories-nav a {
    padding: 12px 19px;
    font-size: 15px;
  }

  .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }

  .product-body {
    padding: 18px;
  }

  .product-name {
    font-size: 17px;
  }

  .price {
    font-size: 24px;
  }

  .buy-btn {
    min-height: 48px;
  }

  .nav-item {
    font-size: 14px;
  }

  .nav-icon {
    font-size: 27px;
  }
}

/* =========================================================
   TV 4K / ULTRAWIDE
========================================================= */

@media (min-width: 2500px) {
  .header-main,
  .categories-nav,
  .section,
  .banners-wrap,
  .profile-header {
    max-width: 2200px;
  }

  .products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
  }

  .feed-info {
    padding-left: 8vw;
    padding-right: 8vw;
  }
}

/* =========================================================
   LANDSCAPE MOBILE
========================================================= */

@media (max-height: 500px) and (orientation: landscape) {
  .bottom-nav {
    height: 55px;
  }

  .nav-item {
    flex-direction: row;
    gap: 7px;
  }

  .nav-icon {
    font-size: 17px;
  }

  .feed-info {
    padding-bottom: 70px;
  }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: 0 2px 9px rgba(0,0,0,.035);
  }

  .product-card:hover .product-image img {
    transform: none;
  }
}

/* =========================================================
   REDUÇÃO DE MOVIMENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* =========================================================
   SAFE AREA
========================================================= */

@supports (padding: max(0px)) {
  .auth-screen {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .bottom-nav {
    padding-bottom: max(5px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   PRINT
========================================================= */

@media print {
  .bottom-nav,
  .site-header,
  .whatsapp-float,
  .toast,
  .modal,
  .view-admin {
    display: none !important;
  }

  body {
    background: #fff;
  }
}


/* Acesso público — auth overlay */
[hidden] { display: none !important; }
.auth-screen.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.78); backdrop-filter: blur(8px);
  display: flex !important; align-items: center; justify-content: center;
  padding: 16px;
}
.auth-screen.auth-overlay .auth-card {
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-guest {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.btn-guest:hover {
  background: var(--surface-2);
  color: var(--text);
}
.auth-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
.auth-close-btn:hover { background: var(--border); }

/* Selos de usuário (verificado / admin) */
.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.user-badge.verified {
  background: #3b82f6;
  color: #fff;
}
.user-badge.admin {
  background: #f59e0b;
  color: #111;
  font-size: 9px;
}
.pa-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.pa-search-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.pa-search-bar input::placeholder { color: var(--muted); }


/* Verificação de idade */
.age-gate-modal {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.age-gate-card {
  background: #1a1a1a; border-radius: 20px; padding: 28px 24px;
  max-width: 380px; width: 100%; text-align: center; color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.age-gate-icon {
  font-size: 42px; font-weight: 900; color: #ff6b00; margin-bottom: 8px;
}
.age-gate-card h2 { margin: 0 0 10px; font-size: 22px; }
.age-gate-card p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.5; margin: 0 0 20px; }

/* ========== Carrinho flutuante + tipo de oferta ========== */
.cart-float {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.cart-float #cartFloatCount {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #FF6B00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.cart-add-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}
.cart-panel .cart-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
}
.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-line-qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
}
.cart-total {
  text-align: right;
  font-size: 16px;
  margin-bottom: 8px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

/* Countdown banner */
.banner-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.15);
  color: #FF6B00;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.admin-post-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.admin-post-actions button {
  font-size: 12px;
  padding: 4px 8px;
}

/* ========== Tipo de oferta (cards visíveis) ========== */
.offer-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.offer-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  background: #fafafa;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.offer-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.offer-type-card .otc-icon { font-size: 28px; line-height: 1; }
.offer-type-card .otc-title { font-weight: 700; font-size: 13px; color: #111; }
.offer-type-card .otc-desc { font-size: 11px; color: #666; }
.offer-type-card:has(input:checked),
.offer-type-card.active {
  border-color: #FF6B00;
  background: rgba(255, 107, 0, 0.08);
  box-shadow: 0 0 0 1px #FF6B00;
}
.btn-library {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 107, 0, 0.45);
  background: rgba(255, 107, 0, 0.06);
  color: #c44f00;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-library:hover {
  background: rgba(255, 107, 0, 0.12);
}
.media-library-panel {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
}
.cart-float.cart-empty {
  opacity: 0.55;
}
.cart-add-btn {
  flex: 0 0 auto;
  min-width: 88px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.cart-float {
  z-index: 950 !important;
}

/* WhatsApp float antigo desativado — só carrinho */


/* ========== Notificações ========== */
.notif-badge {
  position: absolute;
  top: 4px;
  right: 18%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #FF6B00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ========== Bottom nav 4 itens equilibrados ========== */
.bottom-nav {
  display: flex !important;
  justify-content: space-around;
  align-items: stretch;
  gap: 0;
}
.bottom-nav .nav-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding: 8px 4px;
  font-size: 11px;
}
.bottom-nav .nav-icon {
  font-size: 20px;
  line-height: 1.2;
}
.bottom-nav .nav-item span:last-child {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Notif badge no perfil */
.notif-badge-inline {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 9px;
  background: #FF6B00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Chat */
.view-chat {
  padding: 16px 16px calc(var(--bottom-nav-height) + 20px);
  min-height: 100vh;
  background: #f7f7f8;
}
.chat-page { max-width: 640px; margin: 0 auto; }
.chat-empty { text-align: center; padding: 40px 16px; color: #666; }
.chat-thread-list { display: flex; flex-direction: column; gap: 8px; }
.chat-thread-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #FF6B00; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; flex-shrink: 0;
}
.chat-thread-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-thread-meta span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-room {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--bottom-nav-height) - 40px);
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid #eee;
}
.chat-room-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid #eee;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  background: #fafafa;
}
.chat-bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: #FF6B00;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.theirs {
  align-self: flex-start;
  background: #eee;
  color: #111;
  border-bottom-left-radius: 4px;
}
.chat-send-form {
  display: flex; gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
}
.chat-send-form input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}
.chat-send-form button {
  border-radius: 12px;
  padding: 10px 14px;
}

/* ========== Perfil moderno (hero) ========== */
.profile-hero {
  position: relative;
  margin: 0 0 18px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background: #0f0f10;
}
.profile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255,107,0,0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(255,180,50,0.25), transparent 50%),
    linear-gradient(180deg, #1a120c 0%, #0c0c0d 70%);
}
.profile-hero-inner {
  position: relative;
  z-index: 1;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.profile-avatar-ring {
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00, #ffb347, #FF6B00);
  box-shadow: 0 8px 28px rgba(255,107,0,0.35);
}
.profile-hero .profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a1a;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  border: 3px solid #0f0f10;
}
.profile-hero .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-hero .profile-meta h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.profile-slogan {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.profile-hero .profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.profile-hero .profile-stats b { color: #fff; }
.profile-hero .dot { opacity: 0.5; }
.store-pill {
  background: rgba(255,107,0,0.2);
  color: #ffb347;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.profile-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}
.profile-bell-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.profile-bell-btn .notif-badge-inline {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #FF6B00;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.follow-btn {
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.follow-btn.following,
.follow-btn-soft {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
.follow-btn-cta {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.22) !important;
}

/* Botão Editar loja — visível e chamativo */
.edit-store-btn {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.edit-store-btn:hover {
  background: rgba(255,255,255,0.18) !important;
}

/* ========== Gates fullscreen (termos + idade) ========== */
.gate-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: #0a0a0b;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.gate-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #16120f 0%, #0c0c0d 40%);
  color: #fff;
}
.gate-brand {
  text-align: center;
  padding: 28px 20px 12px;
  flex-shrink: 0;
}
.gate-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: linear-gradient(135deg, #FF6B00, #ffb347);
  box-shadow: 0 10px 30px rgba(255,107,0,0.35);
}
.gate-logo.age {
  font-size: 22px;
  font-weight: 900;
  color: #111;
}
.gate-brand h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
}
.gate-brand p {
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}
.gate-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}
.gate-scroll h2 {
  font-size: 18px;
  margin: 12px 0 8px;
  color: #fff;
}
.gate-scroll h3 {
  font-size: 14px;
  margin: 16px 0 6px;
  color: #ffb347;
}
.gate-scroll p { margin: 0 0 10px; }
.gate-end-mark {
  text-align: center;
  color: rgba(255,255,255,0.4);
  margin: 24px 0 8px !important;
  font-size: 12px;
}
.gate-actions {
  flex-shrink: 0;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-align: left;
}
.gate-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 0 16px 16px;
  margin: 0;
}
.btn-gate-secondary {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.btn-gate-ghost {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 14px;
}

/* ========== Notificações sheet maior ========== */
.notif-panel {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  max-height: none !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1300 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.notif-panel[hidden] { display: none !important; }
.notif-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.notif-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  color: var(--text, #111);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}
.notif-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #eee);
  cursor: pointer;
}
.notif-item.unread { background: rgba(255,107,0,0.08); }
.notif-item:hover { background: var(--surface-2, #f5f5f5); }
.notif-icon { font-size: 20px; width: 28px; text-align: center; }
.notif-body { flex: 1; min-width: 0; }
.notif-body p { margin: 2px 0; font-size: 13px; line-height: 1.35; }
.notif-chevron { opacity: 0.4; font-size: 18px; }
.profile-float-btn .notif-badge-inline,
.notif-badge-inline {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.profile-float-btn { position: relative; }
.notif-panel-head {
  padding: 16px 18px 10px !important;
}
.notif-list {
  flex: 1;
  overflow-y: auto;
  max-height: 55vh;
}
.notif-item {
  align-items: flex-start !important;
}
.notif-chevron {
  color: #ccc;
  font-size: 22px;
  line-height: 1;
  margin-left: 4px;
}
.notif-panel-foot {
  padding: 8px 12px 16px;
  border-top: 1px solid #eee;
}
.notif-quick-reply {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  border: 1px solid #eee;
}
.nqr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.notif-quick-reply textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
  font-family: inherit;
}

/* Catálogo no perfil um pouco mais clean */
#profileContent .section {
  padding-left: 16px;
  padding-right: 16px;
}
#profileContent .section-head h2 {
  font-size: 18px;
}

/* ========== Temas da loja (escopo: só #viewProfile) ========== */
#viewProfile.store-themed {
  background: var(--store-bg, #f4f4f6);
  color: var(--store-text, #111);
  min-height: 100vh;
}
#viewProfile.store-themed .site-header,
body.viewing-store-theme #siteHeader {
  background: var(--store-surface, #fff) !important;
  color: var(--store-text, #111);
  border-bottom-color: rgba(0,0,0,0.06);
}
#viewProfile.store-themed .product-card,
#viewProfile.store-themed .banner-slide {
  background: var(--store-card, #fff) !important;
  color: var(--store-text, #111);
}
#viewProfile.store-themed .buy-btn,
#viewProfile.store-themed .btn-primary,
#viewProfile.store-themed .follow-btn:not(.follow-btn-soft):not(.following) {
  background: var(--store-primary, #FF6B00) !important;
  border-color: var(--store-primary, #FF6B00) !important;
}
#viewProfile.store-themed .price {
  color: var(--store-primary, #FF6B00);
}
#viewProfile.store-themed .muted,
#viewProfile.store-themed .profile-slogan {
  color: var(--store-muted, #666) !important;
}
#viewProfile.store-themed .section-head h2 {
  color: var(--store-text, #111);
}

/* Capa atrás do perfil */
.profile-hero.has-cover .profile-hero-bg {
  background-size: cover !important;
  background-position: center !important;
  filter: none;
}
.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 0;
}
.profile-hero.has-cover .profile-hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
}
.profile-hero-inner { z-index: 1; }

/* Theme picker admin */
.theme-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.theme-swatch {
  aspect-ratio: 1.4;
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 22px;
  cursor: pointer;
  background: #f0f0f0;
}
.theme-swatch[data-theme="light"] { background: linear-gradient(135deg, #fff, #ffe8d6); }
.theme-swatch[data-theme="dark"] { background: linear-gradient(135deg, #1a1a1a, #333); }
.theme-swatch[data-theme="warm"] { background: linear-gradient(135deg, #fff7ed, #E85D04); }
.theme-swatch[data-theme="forest"] { background: linear-gradient(135deg, #d8f3dc, #2D6A4F); }
.theme-swatch[data-theme="ocean"] { background: linear-gradient(135deg, #caf0f8, #0077B6); }
.theme-swatch[data-theme="grape"] { background: linear-gradient(135deg, #e0aaff, #7B2CBF); }
.theme-swatch[data-theme="midnight"] { background: linear-gradient(135deg, #0a0e17, #00D4FF); }
.theme-swatch[data-theme="rose"] { background: linear-gradient(135deg, #ffe4e6, #E11D48); }
.theme-swatch.active {
  border-color: #FF6B00;
  box-shadow: 0 0 0 2px rgba(255,107,0,0.25);
  transform: scale(1.04);
}

/* ForYou: cor do anunciante no botão da oferta */
.feed-card .feed-btn-primary {
  background: var(--post-accent, #FF6B00) !important;
  border-color: var(--post-accent, #FF6B00) !important;
}
.feed-card .feed-avatar {
  box-shadow: 0 0 0 2px var(--post-accent, #FF6B00);
}


/* ========== Shell dark: botões de produto equilibrados ========== */
.product-card {
  background: var(--card-color, var(--surface-2));
  border: 1px solid var(--border);
  color: var(--text);
}
.product-card .buy-btn {
  flex: 1;
  background: var(--store-primary, rgba(255,255,255,0.12));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-weight: 700;
  padding: 10px 12px;
  letter-spacing: 0.01em;
}
/* Fora do perfil de loja (sem --store-primary): botão neutro elegante */
body:not(.viewing-store-theme) .product-card .buy-btn {
  background: linear-gradient(180deg, #2a2a32, #1e1e24);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f5f5f7;
}
body:not(.viewing-store-theme) .product-card .buy-btn:hover {
  border-color: rgba(255,255,255,0.28);
  background: linear-gradient(180deg, #33333c, #24242c);
}
.product-card .cart-add-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}
.product-card .price {
  color: var(--store-primary, #e8e8ec);
  font-weight: 800;
}
body:not(.viewing-store-theme) .product-card .price {
  color: #e8e8ec;
}

/* Nav / bottom bar no dark */
.bottom-nav {
  background: rgba(12,12,14,0.92) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(12px);
}
.nav-item {
  color: rgba(255,255,255,0.55);
}
.nav-item.active {
  color: #fff !important;
}
.nav-item.active .nav-icon {
  filter: none;
}

/* Toast legível no dark */
.toast {
  background: #1e1e24 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Dentro da loja do cliente: botões usam a cor da loja (chama atenção sem brigar) */
#viewProfile.store-themed .product-card .buy-btn {
  background: var(--store-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--store-primary) 35%, transparent);
}
#viewProfile.store-themed .product-card .cart-add-btn {
  border-color: color-mix(in srgb, var(--store-primary) 40%, transparent);
  color: var(--store-primary);
}

/* ========== Contraste: texto claro em fundo claro ========== */
#viewProfile.store-themed .product-card,
#viewProfile.store-themed .banner-slide {
  border: 1px solid color-mix(in srgb, var(--store-text, #111) 12%, transparent);
}
/* Se card for muito claro e texto também, força legibilidade */
.product-card .product-name,
.product-card h3,
.product-card .price {
  text-shadow: 0 0 0 transparent;
}
.product-card {
  outline: 1px solid rgba(0,0,0,0.06);
}
/* Tema claro da loja: borda e sombra no texto quando necessário */
#viewProfile.store-themed[style*="--store-card: #fff"],
#viewProfile.store-themed[style*="--store-card:#fff"],
#viewProfile.store-themed[style*="--store-card: #ffffff"],
#viewProfile.store-themed[style*="--store-card:#ffffff"] {
  /* handled via always-on soft border */
}
.product-card .buy-btn {
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
/* Bubbles brancas legíveis */
.chat-bubble.theirs {
  background: #23232a !important;
  color: #f2f2f5 !important;
  border: 1px solid rgba(255,255,255,0.08);
}
.chat-bubble.mine {
  background: #2f3540 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Chat WhatsApp-like */
.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2a2a32;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.chat-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-thread-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.chat-thread-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.chat-day-sep {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
}
.chat-day-sep span {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
}
.chat-bubble {
  position: relative;
  max-width: 78%;
}
.chat-bubble-time {
  font-size: 10px;
  opacity: 0.65;
  margin-top: 4px;
  text-align: right;
}

/* Status loja / online */
.profile-status-row {
  display: flex;
  justify-content: center;
  margin: 4px 0 2px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
}
.status-pill.open .status-dot,
.status-pill.online .status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
}
.status-pill.closed .status-dot,
.status-pill.offline .status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}

/* Hours grid admin */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.hours-row {
  display: grid;
  grid-template-columns: 70px 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.hours-day {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.hours-row input[type="time"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.hours-sep { opacity: 0.5; text-align: center; }

/* Cards claros: garante borda legível */
#viewProfile.store-themed .product-card {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}


/* ========== Toggle modo claro/escuro global ========== */
.app-theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 850;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.app-theme-toggle:hover {
  filter: brightness(1.1);
}
/* no ForYou, evita colidir com busca */
.view-foryou .app-theme-toggle,
#viewForYou ~ .app-theme-toggle {
  top: 12px;
}
html[data-app-theme="light"] .bottom-nav {
  background: rgba(255,255,255,0.92) !important;
  border-top-color: var(--border) !important;
}
html[data-app-theme="light"] .nav-item {
  color: var(--muted);
}
html[data-app-theme="light"] .nav-item.active {
  color: var(--text) !important;
}
html[data-app-theme="light"] .chat-bubble.theirs {
  background: #eef0f4 !important;
  color: #17181c !important;
  border-color: #dde0e6;
}
html[data-app-theme="light"] .chat-bubble.mine {
  background: #2f3540 !important;
  color: #fff !important;
}
html[data-app-theme="light"] .toast {
  background: #1e1e24 !important;
  color: #fff !important;
}

/* ========== Painel admin moderno ========== */
.view-admin {
  background: var(--bg) !important;
  color: var(--text);
  min-height: 100vh;
}
.admin-topbar {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.admin-title strong {
  letter-spacing: -0.02em;
}
.admin-layout {
  display: grid !important;
  grid-template-columns: 220px 1fr !important;
  gap: 0 !important;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  align-items: stretch;
}
.admin-sidebar {
  background: var(--surface) !important;
  border-right: 1px solid var(--border);
  padding: 16px 12px !important;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.admin-sidebar a {
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-bottom: 4px;
  display: flex !important;
  gap: 10px;
  align-items: center;
  color: var(--muted) !important;
  transition: background .15s, color .15s;
}
.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.admin-main {
  padding: 20px 22px 40px !important;
  width: 100%;
  max-width: none !important;
}
.admin-section {
  width: 100%;
}
.admin-heading {
  margin-bottom: 18px;
}
.admin-heading h1 {
  font-size: 26px;
  letter-spacing: -0.03em;
}
.stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card b {
  font-size: 28px;
  letter-spacing: -0.03em;
}
.admin-card,
.admin-list-item,
.settings-block,
.settings-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.settings-form {
  padding: 16px;
}
.admin-main .form-field input,
.admin-main .form-field textarea,
.admin-main .form-field select {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
  border-radius: 10px;
}
@media (max-width: 800px) {
  .admin-layout {
    grid-template-columns: 1fr !important;
  }
  .admin-sidebar {
    position: relative;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-sidebar nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }
  .admin-sidebar a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.edit-store-btn {
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  font-weight: 700 !important;
}

/* ========== Chat futurista ========== */
.view-chat {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0,180,255,0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120,80,255,0.1), transparent 45%),
    var(--bg) !important;
  padding: 0 !important;
  min-height: 100vh;
}
.chat-futuristic {
  max-width: 720px;
  margin: 0 auto;
  min-height: calc(100vh - var(--bottom-nav-height));
  display: flex;
  flex-direction: column;
  position: relative;
}
.chat-list-pane {
  padding: 16px 16px calc(var(--bottom-nav-height) + 16px);
  flex: 1;
}
.chat-heading-fx {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.chat-heading-fx h1 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, #9ecbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-app-theme="light"] .chat-heading-fx h1 {
  background: linear-gradient(90deg, #111, #3a6ea5);
  -webkit-background-clip: text;
  background-clip: text;
}
.chat-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: chatPulse 1.8s infinite;
  margin-top: 12px;
}
@keyframes chatPulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.chat-thread-item {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(8px);
  border-radius: 16px !important;
  transition: transform .15s, border-color .15s;
}
.chat-thread-item:hover {
  border-color: rgba(100,180,255,0.35) !important;
  transform: translateY(-1px);
}
html[data-app-theme="light"] .chat-thread-item {
  background: #fff !important;
  border-color: var(--border) !important;
}

/* Sala em tela cheia — composer sempre visível */
.view-chat.room-open .chat-list-pane {
  display: none;
}
.chat-room-fullscreen {
  position: fixed !important;
  inset: 0 0 var(--bottom-nav-height) 0 !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 50;
  display: flex !important;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 40% at 50% -20%, rgba(80,140,255,0.15), transparent 50%),
    var(--bg) !important;
}
.chat-room-fullscreen[hidden] {
  display: none !important;
}
.chat-room-head {
  flex-shrink: 0;
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(12,12,16,0.85);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-back-fx {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.chat-room-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-room-status {
  font-size: 11px;
  color: #6ee7b7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chat-messages {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 16px 14px 12px !important;
  background: transparent !important;
  min-height: 0;
}
.chat-composer {
  flex-shrink: 0;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(12,12,16,0.92);
  backdrop-filter: blur(16px);
  z-index: 2;
}
.chat-quick-emojis {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
}
.chat-quick-emojis::-webkit-scrollbar { display: none; }
.chat-quick-emojis button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  font-size: 20px;
  cursor: pointer;
  transition: transform .12s, background .12s;
}
.chat-quick-emojis button:active {
  transform: scale(0.92);
}
.chat-quick-emojis button:hover {
  background: rgba(255,255,255,0.12);
}
.chat-send-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.chat-send-form input {
  flex: 1;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  padding: 12px 14px !important;
}
.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}
.chat-bubble.mine {
  background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(59,130,246,0.25);
}
.chat-bubble.theirs {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
html[data-app-theme="light"] .chat-room-fullscreen,
html[data-app-theme="light"] .chat-room-head,
html[data-app-theme="light"] .chat-composer {
  background: rgba(255,255,255,0.95);
}
html[data-app-theme="light"] .chat-send-form input {
  background: #f3f4f7 !important;
  color: #111 !important;
  border-color: #dde0e6 !important;
}
html[data-app-theme="light"] .chat-back-fx {
  color: #111;
  background: #f3f4f7;
}

/* Carrinho: só com itens; arrastável */
.cart-float[hidden] {
  display: none !important;
}
.cart-float.dragging {
  opacity: 0.9;
  cursor: grabbing;
  z-index: 1200;
  touch-action: none;
}
.cart-float {
  touch-action: none;
  user-select: none;
}

/* Capa do perfil */
.profile-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.profile-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-hero.has-cover {
  min-height: 220px;
}
.profile-hero.has-cover .profile-hero-bg {
  background: #1a1a1a;
}

/* Banner da loja: imagem sempre visível */
.banner-slide {
  display: none;
  background: #1a1a1a;
}
.banner-slide.active {
  display: block !important;
}
.banner-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  background: #222;
}
.banner-placeholder {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
.banner-slide img.img-broken {
  display: none;
}

/* Texto da loja usa --store-text */
#viewProfile.store-themed,
#viewProfile.store-themed .product-card,
#viewProfile.store-themed h1,
#viewProfile.store-themed h2,
#viewProfile.store-themed h3 {
  color: var(--store-text, inherit);
}


/* ========== Perfil: textos com borda / estrelas / painel ========== */
.profile-hero .profile-meta h1 {
  color: #fff !important;
  -webkit-text-stroke: 0.4px rgba(0,0,0,0.55);
  text-shadow:
    0 1px 2px rgba(0,0,0,0.7),
    0 0 12px rgba(0,0,0,0.35);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.profile-slogan {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.75);
}
.profile-stats,
.profile-stats span {
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}
.edit-store-btn {
  min-width: 96px;
  font-size: 14px !important;
  letter-spacing: 0.02em;
}
.edit-store-btn span {
  display: inline !important;
}

/* Dentro do tema da loja: textos seguem --store-text com contraste */
#viewProfile.store-themed .section-head h2,
#viewProfile.store-themed .section-head .eyebrow,
#viewProfile.store-themed .product-card,
#viewProfile.store-themed .product-card h3,
#viewProfile.store-themed .product-name {
  color: var(--store-text) !important;
}
#viewProfile.store-themed .product-card h3,
#viewProfile.store-themed .product-name {
  text-shadow: 0 0 0 transparent;
  /* borda sutil quando texto claro em fundo claro */
  filter: drop-shadow(0 0 0.5px rgba(0,0,0,0.25));
}

/* Estrelas */
.stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  margin: 4px 0 2px;
}
.stars-wrap .star {
  color: rgba(255,255,255,0.35);
  font-size: 16px;
  line-height: 1;
}
.stars-wrap .star.on {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,0.45);
}
.stars-label {
  margin-left: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.rate-stars-pick {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 16px;
}
.rate-star-btn {
  background: transparent !important;
  border: none !important;
  font-size: 36px !important;
  color: #9ca3af !important;
  cursor: pointer;
  line-height: 1;
  padding: 6px !important;
  transition: color .15s, transform .15s, text-shadow .15s;
}
.rate-star-btn.on,
.rate-star-btn.is-on {
  color: #fbbf24 !important;
  transform: scale(1.12);
  text-shadow: 0 0 12px rgba(251,191,36,0.55);
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 55vh;
  overflow-y: auto;
}
.review-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.review-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

/* ========== Modais modernos (tela cheia adaptável) ========== */
.modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding: 0 !important;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}
.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  min-height: 40vh;
  margin: 0 !important;
  border-radius: 22px 22px 0 0 !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.35) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
}
.modal-header {
  flex-shrink: 0;
  padding: 16px 48px 12px 18px !important;
  border-bottom: 1px solid var(--border);
}
.modal-header h2,
.modal-box h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text) !important;
}
.modal-body,
#modalBody {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px !important;
  -webkit-overflow-scrolling: touch;
}
.modal-close {
  position: absolute !important;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}
.modal .form label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.modal .form input,
.modal .form textarea,
.modal .form select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
}
.modal .btn-primary,
.modal .btn-outline {
  border-radius: 14px !important;
  padding: 14px !important;
  font-weight: 700;
}
@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal-box {
    border-radius: 20px !important;
    max-height: 85vh;
    min-height: auto;
  }
}

/* ========== Admin full-bleed sections ========== */
.view-admin {
  position: fixed !important;
  inset: 0 !important;
  z-index: 800;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.view-admin[hidden] { display: none !important; }
.admin-topbar {
  flex-shrink: 0;
}
.admin-layout {
  flex: 1;
  min-height: 0 !important;
  max-width: none !important;
  width: 100% !important;
  grid-template-columns: 200px 1fr !important;
  overflow: hidden;
}
.admin-sidebar {
  max-height: none !important;
  height: 100%;
  overflow-y: auto;
}
.admin-main {
  height: 100%;
  overflow-y: auto;
  padding: 16px !important;
  max-width: none !important;
}
.admin-section {
  min-height: 100%;
  width: 100%;
}
.admin-section .stats {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
}

/* ========== Foguinho destaques no perfil ========== */
.profile-fire-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.profile-fire-btn .fire-icon {
  font-size: 24px;
  display: block;
  animation: firePulse 1.2s ease-in-out infinite;
}
@keyframes firePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.2); filter: brightness(1.25); }
}

.featured-popup-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--fx, #FF6B00), color-mix(in srgb, var(--fx, #FF6B00) 40%, #7c3aed));
  color: #fff;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--fx, #FF6B00) 40%, transparent);
  animation: featuredGlow 2.5s ease-in-out infinite;
}
@keyframes featuredGlow {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.25) brightness(1.05); }
}
.featured-popup-banner .fx-fire {
  font-size: 32px;
  animation: firePulse 1s ease-in-out infinite;
}
.featured-popup-banner p {
  margin: 2px 0 0;
  opacity: 0.9;
  font-size: 13px;
}
.featured-popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.featured-popup-grid .product-card {
  margin: 0;
}


/* Theme toggle só no perfil */
.app-theme-toggle[hidden] {
  display: none !important;
}

/* ========== Comentários em tempo real ========== */
.comments-panel {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.comments-panel[hidden] { display: none !important; }
.comments-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.comments-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 78vh;
  background: var(--surface);
  color: var(--text);
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.3);
}
.comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  min-height: 180px;
}
.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.comment-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.comment-body {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
}
.comment-body p { margin: 0; }
.comment-mood { font-size: 22px; line-height: 1; }
.owner-react {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
}
.owner-react-bar {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.owner-react-bar button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 16px;
}
.comments-composer {
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
}
.mood-bar {
  position: relative;
  margin-bottom: 8px;
}
.mood-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 20px;
  cursor: pointer;
}
.mood-float {
  position: absolute;
  left: 0;
  bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  max-width: 280px;
  z-index: 3;
  animation: moodPop 0.2s ease-out;
}
@keyframes moodPop {
  from { transform: translateY(8px) scale(0.95); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.mood-float button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface-2);
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}
.comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.comment-form input {
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 14px;
}


/* Badge nav chat */
.nav-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(239,68,68,0.45);
}
.nav-badge[hidden] { display: none !important; }

/* Toast live no topo */
.notif-live-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  width: min(420px, calc(100% - 24px));
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow: hidden;
  animation: nltIn 0.25s ease-out;
}
.notif-live-toast[hidden] { display: none !important; }
@keyframes nltIn {
  from { transform: translateX(-50%) translateY(-16px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.nlt-main {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
}
.nlt-icon { font-size: 22px; text-align: center; }
.nlt-body strong { display: block; font-size: 13px; }
.nlt-body p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nlt-expand {
  border: none;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.nlt-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  width: 28px;
  height: 28px;
}
.nlt-reply {
  padding: 0 12px 12px;
  border-top: 1px solid var(--border);
}
.nlt-reply form {
  display: flex;
  gap: 8px;
  padding-top: 10px;
}
.nlt-reply input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
}
.nlt-reply button {
  border: none;
  border-radius: 12px;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}


/* ========== PAINEL 100% ADAPTÁVEL (qualquer tela) ========== */
.view-admin {
  position: fixed !important;
  inset: 0 !important;
  z-index: 900 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  background: var(--bg) !important;
}
.view-admin[hidden] { display: none !important; }

.admin-topbar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.admin-topbar .back-btn,
.admin-topbar .text-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}
.admin-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-layout {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  grid-template-columns: none !important;
  overflow: hidden !important;
}

.admin-sidebar {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-height: none !important;
  height: auto !important;
  position: relative !important;
  top: auto !important;
  border-right: none !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 8px !important;
  overflow: hidden !important;
}
.admin-sidebar nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 4px !important;
  scrollbar-width: thin !important;
}
.admin-sidebar a {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.admin-sidebar a span:first-child {
  margin-right: 4px;
}

.admin-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

.admin-section {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
  box-sizing: border-box !important;
}

.admin-heading {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}
.admin-heading h1 {
  font-size: clamp(18px, 5vw, 26px) !important;
  margin: 0 !important;
}

.stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}
.stat-card {
  min-width: 0 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}
.stat-card b {
  font-size: clamp(18px, 4vw, 26px) !important;
  word-break: break-word !important;
}
.stat-card span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.admin-main .grid2 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
@media (min-width: 640px) {
  .admin-main .grid2 {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Desktop: sidebar lateral */
@media (min-width: 900px) {
  .admin-layout {
    flex-direction: row !important;
  }
  .admin-sidebar {
    width: 220px !important;
    max-width: 220px !important;
    height: 100% !important;
    border-bottom: none !important;
    border-right: 1px solid var(--border) !important;
    overflow-y: auto !important;
  }
  .admin-sidebar nav {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
  }
  .admin-sidebar a {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .admin-main {
    padding: 20px !important;
  }
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  }
}

/* Forms / cards não estouram */
.admin-main input,
.admin-main select,
.admin-main textarea,
.admin-main button {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.admin-list-item,
.banner-admin-card,
.admin-post-card,
.settings-block,
.settings-form {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}


/* DrawerDeal branding */
.header-top { display: none !important; }
.logo-name {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
.muted-stat {
  font-size: 12px;
  opacity: 0.85;
}


/* ========== Contraste painel / modo escuro ========== */
.view-admin,
.view-admin .admin-main,
.view-admin .admin-section {
  color: var(--text) !important;
}
.view-admin label,
.view-admin .field-help,
.view-admin .muted,
.view-admin small {
  color: var(--muted) !important;
}
.view-admin h1,
.view-admin h2,
.view-admin h3,
.view-admin strong,
.view-admin .admin-heading {
  color: var(--text) !important;
}
.view-admin input,
.view-admin select,
.view-admin textarea {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
.view-admin input::placeholder,
.view-admin textarea::placeholder {
  color: var(--muted) !important;
  opacity: 0.85;
}
.view-admin button,
.view-admin .btn-primary,
.view-admin .btn-outline,
.view-admin .back-btn,
.view-admin .text-btn {
  color: var(--text) !important;
}
.view-admin .btn-primary {
  background: #3b82f6 !important;
  color: #fff !important;
  border: none !important;
}
.view-admin .btn-outline,
.view-admin button:not(.btn-primary):not(.danger):not(.text-btn):not(.back-btn) {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
.view-admin button.danger,
.view-admin .danger {
  background: rgba(232, 89, 85, 0.15) !important;
  color: #ff8a86 !important;
  border: 1px solid rgba(232, 89, 85, 0.35) !important;
}
.view-admin .text-btn {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
}
.view-admin .danger-text {
  color: #ff8a86 !important;
  border-color: rgba(232, 89, 85, 0.4) !important;
}
.admin-top-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
.view-admin .admin-list-item,
.view-admin .banner-admin-card,
.view-admin .admin-post-card,
.view-admin .stat-card,
.view-admin .settings-block {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.view-admin .admin-list-item h3,
.view-admin .banner-admin-card h3,
.view-admin .admin-post-meta,
.view-admin .stat-card b {
  color: var(--text) !important;
}

/* Modal no escuro legível */
.modal-box {
  background: var(--surface) !important;
  color: var(--text) !important;
}
.modal-box label,
.modal-box .muted {
  color: var(--muted) !important;
}
.modal-box input,
.modal-box select,
.modal-box textarea {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
.modal-box .btn-primary {
  background: #3b82f6 !important;
  color: #fff !important;
}
.modal-box button:not(.btn-primary):not(.modal-close) {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}


/* Platform logo & admin */
.platform-logo-img {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-icon.platform-logo-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  position: relative;
}
.platform-report-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(239,68,68,0.5);
  z-index: 2;
  pointer-events: none;
}
.platform-report-badge[hidden] { display: none !important; }

.platform-about {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.platform-about-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.platform-about-logo-wrap {
  flex-shrink: 0;
}
.platform-about-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: block;
}
.platform-about-hero-text {
  min-width: 0;
  flex: 1;
}
.platform-about-hero-text strong {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}
.platform-about-hero-text .muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
.platform-about-block {
  margin-bottom: 16px;
}
.platform-about-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.platform-about-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.platform-about-block p {
  margin: 0 0 12px;
  line-height: 1.45;
}
.platform-about-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.platform-about-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px !important;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
}
.platform-about-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.view-platform-admin {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.view-platform-admin[hidden] { display: none !important; }
.platform-admin-body {
  flex: 1;
  overflow: auto;
  padding: 12px;
}
.platform-admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
}
.platform-admin-tabs button {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.platform-admin-tabs button.active {
  background: #3b82f6;
  color: #fff;
  border-color: transparent;
}
.pa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pa-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.pa-card-title {
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}
.pa-card-details {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  color: var(--text);
}
.pa-card-meta {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}
.pa-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.pa-status.open { color: #fbbf24; }
.pa-status.resolved { color: #22c55e; }
.pa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.pa-actions button {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pa-actions button.pa-btn-primary {
  background: #3b82f6;
  color: #fff;
  border-color: transparent;
}

.suspended-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.85);
  display: grid;
  place-items: center;
  padding: 20px;
}
.suspended-gate[hidden] { display: none !important; }
.suspended-card {
  max-width: 400px;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
}


/* Loja / usuário verificado */
.store-pill.verified-pill {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-weight: 700;
}
html[data-app-theme="light"] .store-pill.verified-pill {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.1);
}
.follow-btn.danger-outline {
  border-color: rgba(232, 90, 85, 0.45);
  color: var(--danger);
}
.follow-btn.danger-outline:hover {
  background: rgba(232, 90, 85, 0.12);
}

/* =========================================================
   DRAWER — expande o banner no lugar + desliza produtos
========================================================= */
.banner-slide {
  transition: min-height .35s cubic-bezier(.22,1,.36,1), max-height .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.banner-slide.is-drawer-open {
  display: block !important;
  min-height: 320px;
  max-height: 520px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 5;
}
.banner-slide.is-expanding {
  min-height: 260px;
}

.drawer-banner-stage {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
  background: #111;
}

.drawer-banner-frame {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 520px;
}

.drawer-banner-media {
  position: absolute;
  inset: 0;
}
.drawer-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
  max-height: 520px;
}
.drawer-banner-ph {
  min-height: 320px;
  display: grid;
  place-items: center;
  font-size: 56px;
  background: #1a1a1a;
}
.drawer-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,0.82));
  pointer-events: none;
}
.drawer-banner-sale {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #e53935;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 8px;
}

.drawer-banner-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px 56px 20px 20px;
  color: #fff;
}
.drawer-banner-kicker {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.drawer-banner-info h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.drawer-banner-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.drawer-banner-price-row .old {
  text-decoration: line-through;
  opacity: 0.75;
  font-size: 14px;
}
.drawer-banner-price-row strong {
  font-size: 24px;
  font-weight: 800;
}
.drawer-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.drawer-banner-actions .buy-btn {
  border: 0;
  background: #fff;
  color: #111;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.drawer-cart-btn { min-width: 48px; }
.drawer-switch-btn {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
}

.drawer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.drawer-nav:hover { background: rgba(0,0,0,0.65); }
.drawer-nav-prev { left: 10px; }
.drawer-nav-next { right: 10px; }

.drawer-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.drawer-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.drawer-dots span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.35);
}
.drawer-dots span.on {
  width: 18px;
  background: #fff;
}

/* Animação: um banner desliza pro outro */
@keyframes drawerInFromRight {
  from { transform: translateX(18%); opacity: 0.55; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes drawerInFromLeft {
  from { transform: translateX(-18%); opacity: 0.55; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes drawerIn {
  from { transform: scale(0.96); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}
.drawer-slide-from-right {
  animation: drawerInFromRight .38s cubic-bezier(.22,1,.36,1) both;
}
.drawer-slide-from-left {
  animation: drawerInFromLeft .38s cubic-bezier(.22,1,.36,1) both;
}
.drawer-slide-in {
  animation: drawerIn .4s cubic-bezier(.22,1,.36,1) both;
}

/* remove overlay antigo se ainda existir no DOM */
.ml-drawer-host { display: none !important; }
.product-drawer-stack { display: none !important; }

/* Digital menu — cardápio digital */
.view-digital-menu {
  position: fixed; inset: 0; z-index: 960;
  background: var(--bg); color: var(--text);
}
.view-digital-menu[hidden] { display: none !important; }
.dm-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
}
.dm-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 2;
}
.dm-icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: var(--surface-2); color: var(--text);
  font-size: 18px; cursor: pointer; flex-shrink: 0;
}
.dm-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.dm-avatar {
  width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
  font-size: 20px; flex-shrink: 0;
}
.dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-brand-text { min-width: 0; }
.dm-brand-text strong {
  display: block; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-table-pill {
  display: inline-block; margin-top: 3px;
  border: 0; cursor: pointer;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(59,130,246,0.15); color: #60a5fa;
  font-size: 12px; font-weight: 700;
}
.dm-cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 14px 8px;
  scrollbar-width: none;
}
.dm-cats::-webkit-scrollbar { display: none; }
.dm-cat {
  flex-shrink: 0; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font-size: 13px; font-weight: 600;
}
.dm-cat.active { background: #3b82f6; color: #fff; border-color: transparent; }
.dm-grid {
  flex: 1; overflow: auto;
  padding: 8px 14px 100px;
  display: flex; flex-direction: column; gap: 12px;
}
.dm-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dm-card-img {
  position: relative;
  background: var(--surface-2);
  min-height: 108px;
}
.dm-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  min-height: 108px;
}
.dm-card-ph {
  min-height: 108px; display: grid; place-items: center; font-size: 32px;
}
.dm-sale {
  position: absolute; top: 8px; left: 8px;
  background: #e53935; color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px;
}
.dm-card-body {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.dm-card-name {
  font-size: 14px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-card-desc {
  margin: 0; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-card-price-row {
  display: flex; align-items: baseline; gap: 8px; margin-top: 2px;
}
.dm-card-price-row .old {
  font-size: 12px; text-decoration: line-through; color: var(--muted);
}
.dm-card-price-row .price {
  font-size: 16px; font-weight: 800; color: var(--text);
}
.dm-card-actions {
  display: flex; gap: 6px; margin-top: auto; padding-top: 6px;
}
.dm-btn-add, .dm-btn-mesa, .dm-btn-wa {
  border: 0; border-radius: 10px; cursor: pointer;
  font-size: 12px; font-weight: 700; padding: 8px 10px;
}
.dm-btn-add {
  width: 36px; background: var(--surface-2); color: var(--text);
}
.dm-btn-mesa {
  flex: 1; background: #3b82f6; color: #fff;
}
.dm-btn-wa {
  flex: 1; background: #25d366; color: #fff;
}
.dm-footer {
  position: sticky; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}
.dm-footer-btn {
  border: 0; border-radius: 14px; padding: 14px 12px;
  font-weight: 800; font-size: 14px; cursor: pointer;
}
.dm-footer-mesa { background: #3b82f6; color: #fff; }
.dm-footer-wa { background: #25d366; color: #fff; }
.dm-empty {
  text-align: center; padding: 48px 16px; color: var(--muted);
}
.dm-empty span { font-size: 40px; display: block; margin-bottom: 8px; }
.dm-status {
  margin: 10px 14px 0; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px;
}
.dm-status.preparing { border-color: #fbbf24; }
.dm-status.ready { border-color: #22c55e; }
.dm-status.sent { border-color: #3b82f6; }

/* Chat ticks */
.chat-ticks { margin-left: 6px; font-size: 11px; letter-spacing: -1px; opacity: 0.75; }
.chat-ticks.delivered { opacity: 0.85; }
.chat-ticks.read { color: #3b82f6; opacity: 1; }

.comment-tools { display: flex; gap: 8px; margin-top: 6px; }
.comment-tools button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12px; cursor: pointer; text-decoration: underline;
}

.feed-repost-label {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
  opacity: 0.9;
}


/* =========================================================
   Busca do perfil — só bolinha da lupa
========================================================= */
.profile-search-bubble {
  position: relative;
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.search-bubble-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.search-bubble-btn:hover { border-color: var(--primary); color: var(--primary); }
.profile-search-bubble.open .search-bubble-btn { display: none; }
.search-expanded {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: min(72vw, 320px);
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 8px 0 12px;
  box-shadow: var(--shadow-lg);
  z-index: 40;
}
.search-expanded[hidden] { display: none !important; }
.search-expanded .search-icon {
  position: static; transform: none; margin-right: 6px;
}
.search-expanded input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 40px;
  padding: 0 8px !important;
  flex: 1;
  min-width: 0;
}
.search-close-x {
  border: 0; background: transparent;
  font-size: 18px; color: var(--muted);
  width: 32px; height: 32px; cursor: pointer;
}

/* Header sem barra larga feia */
.header-main .profile-search-bubble { flex: 0 0 auto; }
.header-main { gap: 12px; }

/* Categorias sob o banner — sticky + setas */
.profile-cats-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  margin: 0 auto;
  width: min(100%, 1400px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.profile-cats-bar .categories-nav {
  flex: 1;
  width: auto;
  margin: 0;
  padding: 4px 0;
  min-width: 0;
}
.cat-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.75;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.cat-arrow:hover { opacity: 1; color: var(--text); }

/* Anel de Faísca no foguinho */
.profile-fire-btn.has-spark {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff6b00, 0 4px 14px rgba(255,107,0,0.35);
}

/* =========================================================
   FAÍSCAS (stories)
========================================================= */
.sparks-host {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  display: flex; align-items: stretch; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
  padding: 0;
}
.sparks-host[hidden] { display: none !important; }
.sparks-host.open { opacity: 1; }
.sparks-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: 100%;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 80px rgba(0,0,0,0.5);
}
.sparks-progress {
  position: absolute; top: 10px; left: 12px; right: 12px; z-index: 5;
  display: flex; gap: 4px;
  padding-top: env(safe-area-inset-top, 0);
}
.sparks-bar {
  flex: 1; height: 2.5px; border-radius: 99px;
  background: rgba(255,255,255,0.35); overflow: hidden;
}
.sparks-bar i {
  display: block; height: 100%; width: 0; background: #fff;
}
.sparks-bar i.done { width: 100%; }
.sparks-bar i.run {
  animation: sparksFill linear forwards;
}
@keyframes sparksFill {
  from { width: 0; }
  to { width: 100%; }
}
.sparks-close {
  position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 6;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,0.35); color: #fff; font-size: 24px; cursor: pointer;
  backdrop-filter: blur(6px);
}
.sparks-media {
  position: absolute; inset: 0;
  background: #0a0a0a;
}
.sparks-media img, .sparks-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.sparks-empty {
  height: 100%; display: grid; place-content: center; text-align: center; color: #fff; gap: 8px;
}
.sparks-empty span { font-size: 56px; }
.sparks-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 24px 18px 28px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #fff;
}
.sparks-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 13px;
}
.sparks-brand {
  font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 11px; opacity: 0.85;
}
.sparks-text {
  font-size: 18px; font-weight: 700; line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 12px;
}
.sparks-cta-btn {
  border: 0; border-radius: 999px;
  padding: 12px 18px; font-weight: 800;
  background: #fff; color: #111; cursor: pointer;
}
.sparks-tap {
  position: absolute; top: 0; bottom: 80px; width: 40%; z-index: 3;
  border: 0; background: transparent; cursor: pointer;
}
.sparks-tap-left { left: 0; }
.sparks-tap-right { right: 0; width: 60%; }
.sparks-manage {
  position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 7;
}
body.sparks-open { overflow: hidden; }
@media (min-width: 768px) {
  .sparks-host { padding: 16px 0; align-items: center; }
  .sparks-stage {
    width: min(100%, 420px);
    height: min(96vh, 820px);
    border-radius: 18px;
  }
}
@media (max-width: 767px) {
  .sparks-stage { width: 100%; height: 100%; border-radius: 0; }
}


/* =========================================================
   Banner no TOPO do perfil — sem faixa branca
========================================================= */
#viewProfile {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#viewProfile .banners-wrap.banners-top {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}
#viewProfile .banners-wrap.banners-top .banners-slider,
#viewProfile .banners-wrap.banners-top .banner-slide {
  border-radius: 0 !important;
  margin: 0 !important;
}
#viewProfile .banners-wrap.banners-top .banner-slide {
  min-height: 180px;
}
/* Header da loja fino / colado no topo sobre o banner */
#viewProfile ~ .site-header,
.view-profile-active .site-header,
#siteHeader {
  /* mantém utilidades, mas reduz peso visual */
}
body.profile-view #siteHeader.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
body.profile-view #siteHeader .header-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
body.profile-view #siteHeader .logo-name,
body.profile-view #storeName {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
body.profile-view #profileHeaderWrap .profile-hero {
  margin-top: 0 !important;
  border-radius: 0;
}

/* Avatar = botão Faíscas com + e anel incendiando */
.profile-avatar-spark {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.profile-avatar-spark .profile-avatar-ring {
  position: relative;
  display: block;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #666, #444);
  transition: box-shadow .3s ease, background .3s ease;
}
.profile-avatar-spark .profile-avatar {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a1a;
  border: 3px solid #0f0f10;
  position: relative;
}
.profile-avatar-spark .profile-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.profile-avatar-plus {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FF6B00;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
  border: 2px solid #0f0f10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  z-index: 2;
}
.profile-spark-hint {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Anel incendiado quando tem Faíscas */
.profile-avatar-ring.lit {
  background: conic-gradient(from 0deg, #ff3d00, #ffb300, #ff6b00, #ff3d00, #ffb300, #ff6b00, #ff3d00);
  animation: sparkRingSpin 2.2s linear infinite, sparkRingPulse 1.4s ease-in-out infinite;
  box-shadow:
    0 0 0 2px rgba(255,107,0,0.35),
    0 0 22px rgba(255,80,0,0.55),
    0 8px 28px rgba(255,107,0,0.4);
}
@keyframes sparkRingSpin {
  to { filter: hue-rotate(25deg); }
}
@keyframes sparkRingPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.profile-avatar-spark.has-content .profile-avatar-plus {
  background: #22c55e;
}
/* remove botão de fogo solto antigo se sobrar estilo */
.profile-fire-btn { display: none !important; }


/* DrawerDeal — inbox do sistema no chat */
.chat-thread-system {
  background: linear-gradient(90deg, rgba(255,107,0,0.12), transparent);
  border-left: 3px solid #FF6B00;
}
.chat-avatar-system {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #FF6B00, #ffb347);
  font-size: 22px;
}
.chat-unread-dot {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #e53935; color: #fff;
  font-size: 11px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.sys-notif-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 12px;
}
.sys-notif-bubble.unread {
  border-color: rgba(255,107,0,0.45);
  box-shadow: 0 0 0 1px rgba(255,107,0,0.15);
}
.sys-notif-title { font-weight: 800; margin-bottom: 4px; }
.sys-notif-body { font-size: 14px; line-height: 1.35; }
.sys-notif-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.chat-empty-sys {
  text-align: center; padding: 48px 16px; color: var(--muted);
}
.chat-empty-sys span { font-size: 40px; display: block; margin-bottom: 8px; }
.nav-badge {
  position: absolute;
  top: 4px; right: 10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: #e53935; color: #fff;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  line-height: 1;
}


/* =========================================================
   Banner de PERFIL no topo — zero faixa branca
   DrawerDeal + botões flutuando dentro do banner
========================================================= */
#siteHeader { display: none !important; }

#viewProfile {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#viewProfile #profileHeaderWrap {
  margin: 0 !important;
  padding: 0 !important;
}
#viewProfile .profile-hero {
  margin: 0 !important;
  border-radius: 0 !important;
  min-height: 280px;
}
#viewProfile .profile-hero-inner {
  padding-top: 12px !important;
  gap: 14px;
}
#viewProfile .banners-wrap {
  margin-top: 12px !important;
}

.profile-float-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 8px;
  position: relative;
  z-index: 5;
}
.profile-float-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.profile-float-logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  font-size: 18px;
  border: 1px solid rgba(255,255,255,0.2);
}
.profile-float-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-float-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.profile-float-btn:hover {
  background: rgba(0,0,0,0.42);
}
.profile-search-float {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 10px 6px 14px;
  backdrop-filter: blur(12px);
}
.profile-search-float[hidden] { display: none !important; }
.profile-search-float input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 14px;
  min-width: 0;
}
.profile-search-float input::placeholder { color: rgba(255,255,255,0.55); }
.profile-search-float button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
}

/* esconde sino antigo solto se existir */

.pa-review-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  background: var(--surface);
}
.pa-review-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.pa-review-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* No perfil: tema à esquerda para não cobrir DrawerDeal / busca */
body.profile-view .app-theme-toggle {
  top: auto;
  bottom: 88px;
  right: 14px;
  left: auto;
  z-index: 80;
}
.profile-float-bar {
  z-index: 20 !important;
  position: relative;
}
.profile-float-brand {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
}
.profile-float-brand:hover .profile-float-name {
  text-decoration: underline;
}
/* + só dono (fallback CSS) */
.profile-avatar-spark:not(.owner) .profile-avatar-plus {
  display: none !important;
}


/* Comandas — botão flutuante da loja */
.comanda-float {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 920;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #FF6B00, #ff9f43);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255,107,0,0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.comanda-float-icon { font-size: 24px; line-height: 1; }
.comanda-float-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.comanda-float.pulse {
  animation: comandaPulse 1.2s ease-in-out infinite;
}
@keyframes comandaPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(255,107,0,0.4); transform: scale(1); }
  50% { box-shadow: 0 8px 36px rgba(255,107,0,0.7), 0 0 0 10px rgba(255,107,0,0.15); transform: scale(1.05); }
}
.comanda-float-panel {
  position: fixed;
  right: 16px;
  bottom: 164px;
  z-index: 930;
  width: min(360px, calc(100vw - 24px));
  max-height: min(62vh, 520px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.comanda-float-panel[hidden] { display: none !important; }
.cfp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.cfp-close {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--text); font-size: 20px; cursor: pointer;
}
.cfp-list { flex: 1; overflow: auto; padding: 10px; }
.cfp-hint { padding: 8px 14px 12px; margin: 0; font-size: 12px; }
.cfp-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface-2);
}
.cfp-card.is-new {
  border-color: rgba(255,107,0,0.55);
  box-shadow: 0 0 0 1px rgba(255,107,0,0.2);
}
.cfp-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.cfp-status {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  color: #FF6B00;
}
.cfp-items { margin: 0 0 6px; font-size: 13px; line-height: 1.35; }
.cfp-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.cfp-actions button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cfp-actions button.primary {
  background: #FF6B00;
  border-color: transparent;
  color: #fff;
}
body.profile-view .comanda-float { bottom: 96px; }

/* Cardápio — prévia da comanda */
.dm-comanda-preview {
  position: fixed;
  top: 72px;
  right: 10px;
  width: min(200px, 42vw);
  max-height: 55vh;
  z-index: 900;
  background: var(--surface, #fff);
  color: var(--text, #111);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0.92;
  transform: translateX(8px);
  transition: transform .2s, box-shadow .2s;
}
.dm-comanda-preview.has-items {
  opacity: 1;
  transform: none;
  box-shadow: 0 12px 36px rgba(255,107,0,0.22);
}
.dm-comanda-preview.dm-cp-pulse {
  animation: dmCpPulse .35s ease;
}
@keyframes dmCpPulse {
  50% { transform: scale(1.04); }
}
.dm-cp-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--border,#eee);
  font-size: 13px;
}
.dm-cp-head span {
  background: #FF6B00; color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
.dm-cp-list { flex: 1; overflow: auto; padding: 8px; }
.dm-cp-empty { font-size: 12px; text-align: center; margin: 12px 0; }
.dm-cp-item {
  display: flex; justify-content: space-between; gap: 6px;
  align-items: center; padding: 6px 4px; font-size: 12px;
  border-bottom: 1px solid var(--border,#f0f0f0);
}
.dm-cp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-cp-qty { display: flex; align-items: center; gap: 4px; }
.dm-cp-qty button {
  width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2,#f5f5f5); cursor: pointer; font-weight: 800;
}
.dm-cp-send {
  border: 0; background: #FF6B00; color: #fff; font-weight: 800;
  padding: 10px; cursor: pointer;
}
.dm-fly-dot {
  position: fixed; z-index: 1200; width: 14px; height: 14px;
  border-radius: 50%; background: #FF6B00;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.admin-banned-msg {
  color: #e53935; font-size: 12px; font-weight: 600; margin: 4px 0 6px;
}
.admin-banned-thumb {
  width: 100%; height: 100%; min-height: 90px;
  display: grid; place-items: center; font-size: 32px;
  background: #1a1a1a; color: #e53935;
}
.admin-post-card.is-banned { opacity: 0.85; border-color: rgba(229,57,53,0.4); }

.feed-spin-arrows {
  display: inline-block;
  animation: feedSpin 2.8s linear infinite;
}
@keyframes feedSpin {
  to { transform: rotate(360deg); }
}
.feed-repost-count { opacity: 0.9; }
.mesa-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.mesa-pick-btn {
  padding: 14px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2, #f5f5f5);
  font-weight: 800;
  cursor: pointer;
}
.mesa-pick-btn:hover { border-color: #FF6B00; color: #FF6B00; }
.dm-comanda-preview {
  z-index: 1100 !important;
}

.dm-status {
  margin: 8px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  background: var(--surface-2, #f5f5f5);
  border: 1px solid var(--border);
}
.dm-status.sent { border-color: rgba(255,107,0,0.4); }
.dm-status.preparing { border-color: rgba(59,130,246,0.45); background: rgba(59,130,246,0.08); }
.dm-status.ready { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.1); }
.dm-reinforce {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.dm-rf-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dm-store-reply {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.cfp-reinforce {
  background: rgba(255,107,0,0.12);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  margin: 6px 0;
}
.cfp-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.cfp-quick button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mesa-pick-btn.selected {
  background: #FF6B00 !important;
  color: #fff !important;
  border-color: #FF6B00 !important;
}
.mesa-pick-personalizado {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 12px !important;
  margin-top: 4px;
  border-radius: 14px !important;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(251,191,36,0.1));
  border: 1.5px solid rgba(255,107,0,0.45) !important;
  color: var(--text);
}
.mesa-pick-personalizado small {
  font-weight: 600;
  font-size: 11px;
  opacity: 0.75;
}
.mesa-pick-personalizado.selected {
  background: #FF6B00 !important;
  color: #fff !important;
  border-color: #FF6B00 !important;
}
.mesa-pick-inline {
  max-height: 220px;
  overflow: auto;
}

/* Ego — preview da última/top recomendação */
.ego-top-review {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  max-width: 100%;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ego-top-review:hover {
  background: rgba(0,0,0,0.4);
  border-color: rgba(251,191,36,0.35);
}
.ego-top-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.ego-top-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.ego-top-body {
  min-width: 0;
  flex: 1;
}
.ego-top-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2px;
}
.ego-top-meta .ego-verified,
.review-item-author .ego-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.review-item-author .ego-verified {
  margin-left: 4px;
  vertical-align: middle;
}
.ego-top-text {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ego-top-stars {
  color: #fbbf24;
  font-size: 10px;
  letter-spacing: 1px;
  margin-left: 4px;
}
.review-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.review-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.review-item-author {
  font-weight: 700;
  font-size: 13px;
}

/* Arrastar floats (comanda loja + prévia cliente) */
.ov-draggable {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ov-draggable.is-dragging {
  cursor: grabbing;
  opacity: 0.92;
  transition: none !important;
  z-index: 1400 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35) !important;
}
.comanda-float.ov-draggable {
  position: fixed;
}
.dm-comanda-preview.ov-draggable {
  position: fixed;
  transition: box-shadow .2s;
}
.dm-comanda-preview .dm-cp-head {
  cursor: grab;
}
.dm-comanda-preview.is-dragging .dm-cp-head {
  cursor: grabbing;
}
.cfp-card.has-ask {
  border-color: rgba(255,107,0,0.7);
  box-shadow: 0 0 0 2px rgba(255,107,0,0.18);
}


/* Carrinho — taxas e pagamento */
.cart-fee-box {
  margin: 12px 0 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2, #f5f5f5);
}
.cart-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 3px 0;
}
.cart-fee-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 15px;
}
.cart-fee-total b { color: #FF6B00; }
.cart-pay-info {
  margin-bottom: 10px;
}
.drawer-switch-btn-main {
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  font-weight: 800 !important;
}
.mesas-admin-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.mesas-qr-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 13px;
  word-break: break-all;
}


/* FAB DrawerDeal — Sobre / Suporte / Admin */
.platform-fab {
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top, 0px)) !important;
  left: 12px !important;
  z-index: 1200 !important;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #fff;
}
.platform-fab:active { transform: scale(0.96); }
.platform-fab-icon,
.platform-fab-icon svg,
.platform-fab-svg {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
}
.platform-fab .platform-report-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
}
/* Não cobrir busca do foryou no topo direito */
.view-foryou .foryou-search-toggle { z-index: 960; }
.platform-about-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.platform-about-btn { width: 100%; }
.platform-about-badge {
  display: inline-flex;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
}


/* Faíscas — bandeja de quem você segue + autor */
.sparks-tray {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  gap: 10px;
  padding: 6px 12px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sparks-tray::-webkit-scrollbar { display: none; }
.sparks-tray-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  min-width: 56px;
}
.sparks-tray-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 2px rgba(255,107,0,0.15);
}
.sparks-tray-item.on .sparks-tray-avatar {
  border-color: #FF6B00;
  box-shadow: 0 0 0 2px rgba(255,107,0,0.55);
}
.sparks-tray-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sparks-tray-name {
  font-size: 10px;
  font-weight: 700;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.sparks-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.sparks-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.sparks-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sparks-author-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.sparks-host.has-tray .sparks-progress {
  top: calc(70px + env(safe-area-inset-top, 0px));
}
.sparks-host.has-tray .sparks-close {
  top: calc(70px + env(safe-area-inset-top, 0px));
}
.sparks-tray {
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
}

.notif-push-row { padding: 0 16px 10px; }
.notif-push-status.ok { color: #16a34a; }

/* Composer sempre visível na sala */
.chat-room.is-open .chat-composer,
.chat-room-fullscreen:not([hidden]) .chat-composer {
  display: block !important;
  visibility: visible !important;
}
#chatSendForm:not([hidden]) {
  display: flex !important;
}
.platform-fab:not([hidden]) {
  display: flex !important;
}


/* =========================================================
   MOBILE FIX 2026 — cards, botões, viewport, faíscas
========================================================= */
html {
  height: 100%;
  height: -webkit-fill-available;
}
body {
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

/* Feed: botões laterais sempre acima da bottom nav */
.feed-side-actions {
  z-index: 30 !important;
  pointer-events: auto !important;
}
.feed-side-btn {
  pointer-events: auto !important;
}

@media (max-width: 600px) {
  .feed-card {
    height: 100svh;
    height: 100dvh;
    max-height: 100svh;
  }
  .feed-side-actions {
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 10px;
    z-index: 40 !important;
  }
  .feed-side-btn .icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .feed-side-btn {
    font-size: 11px;
  }
  .feed-info {
    right: 62px !important;
    padding-bottom: calc(var(--bottom-nav-height) + 12px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: 42%;
    overflow: hidden;
  }
  .feed-mute {
    top: max(10px, env(safe-area-inset-top));
    z-index: 35;
  }

  /* Product cards: botões sempre visíveis */
  .product-card {
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  .product-image {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
  }
  .product-body {
    padding: 12px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .product-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .product-card .buy-btn,
  .product-card .cart-add-btn {
    min-height: 44px;
    font-size: 13px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Views gerais — espaço para bottom nav + safe area */
  .view:not(.view-foryou) {
    padding-bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px));
  }
  .view-chat,
  .view-profile,
  .view-post,
  .view-search {
    min-height: 100dvh;
  }

  /* Faíscas: botão adicionar sempre legível no mobile */
  .sparks-manage {
    left: 12px !important;
    right: 12px !important;
    bottom: max(20px, env(safe-area-inset-bottom, 12px)) !important;
    z-index: 40 !important;
    display: flex !important;
    justify-content: center;
    pointer-events: auto !important;
  }
  .sparks-manage[hidden] {
    display: none !important;
  }
  .sparks-manage .btn-primary,
  #sparksAddBtn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(255, 107, 0, 0.45);
  }
  .profile-avatar-plus {
    width: 30px !important;
    height: 30px !important;
    font-size: 22px !important;
    line-height: 26px !important;
    z-index: 5 !important;
  }
}

/* Tablet intermediário */
@media (max-width: 900px) and (min-width: 601px) {
  .feed-side-actions {
    bottom: calc(var(--bottom-nav-height) + 80px);
  }
}

/* FAB DrawerDeal nunca sob botões do feed */
.platform-fab {
  z-index: 1200 !important;
}
