/* Face Design 2.0 — Liquid Glass (passo 4).
   Só barras, chips, sheets e cards flutuantes. Sem vidro sobre vidro. */

.fd-glass {
  background: linear-gradient(135deg, rgba(255, 250, 240, .16), rgba(255, 250, 240, .05));
  border: 1px solid rgba(255, 250, 240, .22);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--sh-float);
  transition: transform var(--dur) var(--spring), background var(--dur);
}
.fd-glass:active { transform: scale(.97); }

html.fd-app .fd-btn-primary,
html.fd-app .gen-btn {
  min-height: var(--hit);
  padding: 0 22px;
  border-radius: var(--r-btn);
  border: 0;
  background: linear-gradient(180deg, var(--fd-gold-hi), var(--fd-gold));
  color: #1a1405;
  font-weight: 700;
}

/* P1-22: header fica só em fd-app.css; aqui só menu de conta. */
html.fd-app .fp-acc-menu {
  background: linear-gradient(135deg, rgba(255, 250, 240, .14), rgba(255, 250, 240, .04)) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-color: rgba(255, 250, 240, .18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), var(--sh-float);
}

html.fd-app .quota-chip,
html.fd-app .effect-vol-chip,
html.fd-app .effect-preset.on,
html.fd-app .tbtn {
  background: linear-gradient(135deg, rgba(255, 250, 240, .14), rgba(255, 250, 240, .05)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 250, 240, .2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

html.fd-app .patient-group,
html.fd-app .item,
html.fd-app .dashboard .card,
html.fd-app .proc,
html.fd-app .panel {
  background: linear-gradient(135deg, rgba(255, 250, 240, .12), rgba(255, 250, 240, .04)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 250, 240, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--sh-float);
}

/* Texto sobre vidro: leve sombra de fundo para AA */
html.fd-app header .logo-main,
html.fd-app header .tbtn,
html.fd-app .quota-chip,
html.fd-app .effect-vol-chip {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

@media (prefers-reduced-transparency: reduce) {
  .fd-glass,
  html.fd-app header,
  html.fd-app .fp-acc-menu,
  html.fd-app .quota-chip,
  html.fd-app .effect-vol-chip,
  html.fd-app .effect-preset.on,
  html.fd-app .tbtn,
  html.fd-app .patient-group,
  html.fd-app .item,
  html.fd-app .dashboard .card,
  html.fd-app .proc,
  html.fd-app .panel {
    background: #1c1a17 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  .fd-glass,
  html.fd-app header,
  html.fd-app .patient-group,
  html.fd-app .item {
    border-color: var(--fd-gold-hi) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-glass,
  html.fd-app .tbtn,
  html.fd-app .gen-btn {
    transition: none !important;
  }
  .fd-glass:active { transform: none; }
}

/* —— Polish “app caro” (16/11): cards + barra Simular + campo —— */
html.fd-app .pcard {
  background: linear-gradient(160deg, rgba(255, 250, 240, .10), rgba(255, 250, 240, .03)) !important;
  border: 1px solid rgba(255, 250, 240, .14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 22px rgba(0, 0, 0, .22);
  border-radius: 16px !important;
}
html.fd-app .pcard.active {
  border-color: rgba(210, 180, 124, .42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 0 0 .5px rgba(210, 180, 124, .25),
    0 12px 28px rgba(0, 0, 0, .28);
}
html.fd-app .field,
html.fd-app input.field,
html.fd-app textarea.field {
  background: rgba(21, 19, 17, .72) !important;
  border: 1px solid rgba(255, 250, 240, .12) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
html.fd-app .field:focus,
html.fd-app input.field:focus,
html.fd-app textarea.field:focus {
  border-color: rgba(210, 180, 124, .45) !important;
  box-shadow: 0 0 0 3px rgba(210, 180, 124, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
}
html.fd-app .upload-zone {
  border-radius: 18px !important;
  border: 1px dashed rgba(210, 180, 124, .28) !important;
  background: linear-gradient(160deg, rgba(255, 250, 240, .08), rgba(255, 250, 240, .02)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
html.fd-app .upload-zone.has {
  border-style: solid !important;
  border-color: rgba(210, 180, 124, .35) !important;
}
@media (max-width: 1023px) {
  html.fd-app .gen-btn,
  html.fd-app #genBtn {
    border-radius: 999px !important;
    box-shadow:
      0 14px 34px rgba(0, 0, 0, .45),
      inset 0 1px 0 rgba(255, 255, 255, .4),
      0 0 0 .5px rgba(210, 180, 124, .35);
  }
}
