.fd-form,
.fd-panel,
.fd-card {
  box-sizing: border-box;
  max-width: 920px;
  margin: 24px auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fd-form,
.fd-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(53, 37, 22, 0.1);
}

.fd-form label {
  display: grid;
  gap: 6px;
  color: #1f2933;
  font-weight: 700;
}

.fd-form input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #eadfce;
  border-radius: 8px;
}

.fd-form button,
.fd-client-row button,
.fd-action-form button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--fd-primary, #2f7d63);
  cursor: pointer;
  font-weight: 800;
}

.fd-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 255, 255, 0.18) 0 18%, transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(214, 155, 69, 0.22) 0 22%, transparent 40%),
    linear-gradient(135deg, var(--fd-primary, #2f7d63), #17202b 72%);
  box-shadow: 0 22px 54px rgba(31, 41, 51, 0.2);
}

.fd-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  pointer-events: none;
}

.fd-card > * {
  position: relative;
  z-index: 1;
}

.fd-card-head,
.fd-card footer,
.fd-client-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.fd-card-head span {
  color: var(--fd-accent, #d69b45);
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.fd-card h2 {
  margin: 6px 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.fd-logo {
  display: block;
  width: 118px;
  height: 92px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.fd-qr {
  display: grid;
  place-items: center;
  gap: 8px;
  width: clamp(168px, 24vw, 230px);
  padding: 14px;
  border-radius: 8px;
  color: #1f2933;
  background: #fff;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.fd-qr::before {
  content: "QR Code";
  color: var(--fd-primary, #2f7d63);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.fd-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.fd-qr strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.fd-stamps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 12px;
  margin: 40px 0 30px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.fd-stamps span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 2px dashed rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.fd-stamps .is-filled {
  border-color: var(--fd-accent, #d69b45);
  color: #1f2933;
  background: var(--fd-accent, #d69b45);
}

.fd-card footer {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.fd-card footer strong {
  font-size: 2rem;
}

.fd-card-tools {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 920px;
  margin: -8px auto 24px;
}

.fd-card-tools a,
.fd-card-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--fd-primary, #2f7d63), #17202b);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.18);
}

.fd-client-row {
  display: grid;
  grid-template-columns: 88px minmax(180px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffaf3;
}

.fd-client-qr {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
}

.fd-client-qr img {
  display: block;
  width: 66px;
  height: 66px;
}

.fd-client-info {
  display: grid;
  gap: 4px;
}

.fd-client-row span {
  color: #607083;
}

.fd-client-row a {
  color: var(--fd-primary, #2f7d63);
  font-weight: 800;
  text-decoration: none;
}

.fd-client-row form {
  display: flex;
  gap: 8px;
}

.fd-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.fd-action-form {
  margin: 0;
}

.fd-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff !important;
  background: #25d366;
  font-weight: 800;
  text-decoration: none;
}

.fd-action-form button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.fd-action-form .fd-danger-button {
  background: #b42318;
}

.fd-progress {
  min-width: 120px;
  font-weight: 800;
}

.fd-notice {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.fd-notice-success {
  color: #14563f;
  background: #e8f7ef;
}

.fd-notice-warning {
  color: #76511a;
  background: #fff4d8;
}

.fd-notice-error {
  color: #7c1f1f;
  background: #ffe6e6;
}

.fd-success {
  border-color: var(--fd-primary, #2f7d63);
  background: #f4fbf8;
}

.fd-success strong,
.fd-success span {
  display: block;
}

.fd-help {
  margin: 0;
  color: #607083;
}

.fd-search-form {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.fd-search-row {
  display: flex;
  gap: 8px;
}

.fd-search-row input {
  flex: 1;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #eadfce;
  border-radius: 8px;
}

.fd-search-row button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--fd-primary, #2f7d63);
  cursor: pointer;
  font-weight: 800;
}

.fd-scanner-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.78);
}

.fd-scanner-box {
  width: min(520px, 100%);
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: #17202b;
  text-align: center;
}

.fd-scanner-video {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid var(--fd-accent, #d69b45);
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}

.fd-scanner-close {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #1f2933;
  background: var(--fd-accent, #d69b45);
  cursor: pointer;
  font-weight: 900;
}

.fd-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1100px;
}

.fd-admin-page .fd-form,
.fd-admin-page .fd-panel {
  margin: 16px 0 24px;
}

.fd-admin-page ol {
  margin: 0 0 0 20px;
}

.fd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 18px 0 24px;
}

.fd-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(53, 37, 22, 0.08);
}

.fd-stat-card span {
  color: #607083;
  font-weight: 800;
}

.fd-stat-card strong {
  color: var(--fd-primary, #2f7d63);
  font-size: 2rem;
  line-height: 1;
}

.fd-offers-table {
  max-width: 1100px;
}

.fd-offers-table span {
  color: #607083;
}

@media (max-width: 720px) {
  .fd-card-head,
  .fd-card footer,
  .fd-client-row form,
  .fd-actions,
  .fd-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .fd-client-row {
    grid-template-columns: 78px 1fr;
  }

  .fd-progress,
  .fd-actions {
    grid-column: 1 / -1;
  }

  .fd-card-tools {
    flex-direction: column;
  }

  .fd-admin-grid,
  .fd-stats {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .fd-card,
  .fd-card * {
    visibility: visible;
  }

  .fd-card {
    position: absolute;
    inset: 20px;
    max-width: none;
    margin: 0;
    box-shadow: none;
  }

  .fd-card-tools {
    display: none;
  }
}

/* Visual final alinhado com a imagem promocional */
.fd-admin-page,
.fd-panel {
  --fd-cream: #fffaf3;
  --fd-ink: #17202b;
}

.fd-admin-page h1,
.fd-panel h2 {
  color: var(--fd-primary, #2f7d63);
  font-weight: 900;
  letter-spacing: 0;
}

.fd-form,
.fd-panel {
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 8%, rgba(214, 155, 69, 0.14) 0 16%, transparent 30%),
    linear-gradient(180deg, #fff, #fffaf3);
  box-shadow: 0 18px 42px rgba(53, 37, 22, 0.12);
}

.fd-form input,
.fd-search-row input {
  border-radius: 12px;
  background: #fff;
}

.fd-form button,
.fd-client-row button,
.fd-action-form button,
.fd-search-row button,
.fd-card-tools a,
.fd-card-tools button {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fd-primary, #2f7d63), #174635);
  box-shadow: 0 10px 22px rgba(47, 125, 99, 0.18);
}

.fd-card {
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 255, 255, 0.2) 0 18%, transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(214, 155, 69, 0.24) 0 22%, transparent 40%),
    linear-gradient(135deg, var(--fd-primary, #2f7d63), #17202b 72%);
  box-shadow: 0 24px 58px rgba(31, 41, 51, 0.22);
}

.fd-card::before,
.fd-logo,
.fd-qr,
.fd-stamps,
.fd-stamps span,
.fd-card footer,
.fd-client-qr,
.fd-notice,
.fd-scanner-box,
.fd-scanner-video,
.fd-scanner-close,
.fd-stat-card {
  border-radius: 16px;
}

.fd-card h2::after {
  content: "";
  display: block;
  width: 82px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--fd-accent, #d69b45);
}

.fd-client-row {
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 12%, rgba(214, 155, 69, 0.12) 0 12%, transparent 26%),
    linear-gradient(180deg, #fff, #fffaf3);
  box-shadow: 0 12px 28px rgba(53, 37, 22, 0.08);
}

.fd-stat-card {
  background:
    radial-gradient(circle at 90% 8%, rgba(214, 155, 69, 0.15) 0 16%, transparent 32%),
    #fff;
  box-shadow: 0 14px 30px rgba(53, 37, 22, 0.1);
}

.fd-dashboard-hero {
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.18) 0 18%, transparent 34%),
    linear-gradient(135deg, var(--fd-primary, #2f7d63), #17202b 74%);
}

.fd-dashboard-hero span {
  color: var(--fd-accent, #d69b45);
  font-weight: 900;
  text-transform: uppercase;
}

.fd-dashboard-hero h2 {
  margin: 8px 0 4px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.fd-dashboard-hero h2::after {
  content: "";
  display: block;
  width: 82px;
  height: 5px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--fd-accent, #d69b45);
}

.fd-dashboard-hero p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.fd-dashboard-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.fd-dashboard-menu div {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #eadfce;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(53, 37, 22, 0.08);
}

.fd-dashboard-menu strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  background: var(--fd-accent, #d69b45);
}

.fd-dashboard-menu span {
  color: var(--fd-primary, #2f7d63);
  font-weight: 900;
}

.fd-client-grid,
.fd-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.fd-client-grid .fd-client-row {
  grid-template-columns: 78px 1fr;
  align-items: start;
}

.fd-client-grid .fd-progress,
.fd-client-grid .fd-actions {
  grid-column: 1 / -1;
}

.fd-offer-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #eadfce;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 10%, rgba(214, 155, 69, 0.14) 0 16%, transparent 32%),
    linear-gradient(180deg, #fff, #fffaf3);
  box-shadow: 0 14px 30px rgba(53, 37, 22, 0.09);
}

.fd-offer-card > span {
  color: var(--fd-accent, #d69b45);
  font-weight: 900;
  text-transform: uppercase;
}

.fd-offer-card strong {
  color: var(--fd-primary, #2f7d63);
  font-size: 1.35rem;
}

.fd-offer-card p {
  margin: 0;
  color: #607083;
}

.fd-offer-card div {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  background: var(--fd-primary, #2f7d63);
}

.fd-offer-card b {
  font-size: 1.7rem;
}

.fd-offer-card time {
  color: #607083;
  font-weight: 800;
}
