/* =========================================================
   Demos — cada site de exemplo tem sua própria identidade,
   isolada pelo prefixo .d-<nome>
   ========================================================= */
.demo { font-family: var(--f-body); font-size: 14px; min-height: 404px; }
.demo button { font: inherit; cursor: pointer; }

/* ---------- 01 · Padaria (loja virtual) ---------- */
.d-pad { background: #fbf4ea; color: #3b2414; }
.d-pad .top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #ead9c3; }
.d-pad .brand { font-family: Georgia, serif; font-style: italic; font-size: 20px; }
.d-pad .cart { background: #3b2414; color: #fbf4ea; border: 0; border-radius: 20px; padding: 6px 12px; }
.d-pad .ban { padding: 22px 18px 8px; }
.d-pad .ban h3 { font-family: Georgia, serif; font-size: 26px; color: #3b2414; }
.d-pad .ban p { margin: 4px 0 0; color: #7a5a40; }
.d-pad .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px 18px 20px; }
.d-pad .p { background: #fff; border: 1px solid #ead9c3; border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
.d-pad .ph { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 8px; display: grid; place-items: center; font-size: 30px; }
.d-pad .p span { font-size: 13px; color: #7a5a40; }
.d-pad .add { background: #c8742c; color: #fff; border: 0; border-radius: 6px; padding: 7px; }
.d-pad .add.ok { background: #4f7a3a; }

/* ---------- 02 · Clínica (agendamento) ---------- */
.d-cli { background: #f2f7fb; color: #0e2a3d; }
.d-cli .top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #0e2a3d; color: #e9f4fb; }
.d-cli .top b { letter-spacing: .04em; }
.d-cli .wrap { padding: 18px; display: grid; gap: 14px; }
.d-cli h3 { font-size: 20px; font-family: var(--f-body); font-weight: 600; }
.d-cli .days, .d-cli .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.d-cli .days button, .d-cli .slots button { border: 1px solid #bcd3e3; background: #fff; border-radius: 8px; padding: 8px 12px; color: #0e2a3d; }
.d-cli .days button { display: grid; text-align: center; min-width: 58px; }
.d-cli .days small { font-size: 11px; color: #5b7a90; }
.d-cli [aria-pressed="true"] { background: #1f8a8a !important; color: #fff !important; border-color: #1f8a8a !important; }
.d-cli [aria-pressed="true"] small { color: #d8f2f2; }
.d-cli .slots button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.d-cli .conf { border: 0; background: #0e2a3d; color: #fff; border-radius: 8px; padding: 11px; font-weight: 600; }
.d-cli .conf:disabled { opacity: .4; }
.d-cli .msg { background: #dff3ee; border: 1px solid #9fd8c8; border-radius: 8px; padding: 10px 12px; color: #14594a; }

/* ---------- 03 · Dashboard (sistema) ---------- */
.d-dash { background: #0b0f17; color: #dfe5f0; display: grid; grid-template-columns: 150px 1fr; }
.d-dash aside { background: #111725; padding: 16px 12px; display: grid; align-content: start; gap: 4px; font-size: 13px; color: #7d8aa5; }
.d-dash aside b { color: #fff; margin-bottom: 10px; }
.d-dash aside span.on { color: #fff; background: #1b2338; border-radius: 4px; padding: 4px 8px; margin-inline: -8px; }
.d-dash .body { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.d-dash .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-dash .seg { display: flex; border: 1px solid #263049; border-radius: 6px; overflow: hidden; }
.d-dash .seg button { border: 0; background: transparent; color: #7d8aa5; padding: 5px 10px; font-size: 12px; }
.d-dash .seg button[aria-pressed="true"] { background: #3a74ff; color: #fff; }
.d-dash .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-dash .kpi { background: #111725; border: 1px solid #1f2840; border-radius: 6px; padding: 10px; }
.d-dash .kpi small { color: #7d8aa5; font-size: 11.5px; }
.d-dash .kpi div { font-family: var(--f-mono); font-size: 19px; font-variant-numeric: tabular-nums; }
.d-dash .kpi em { font-style: normal; font-size: 11.5px; color: #4fd18b; }
.d-dash .chart { background: #111725; border: 1px solid #1f2840; border-radius: 6px; padding: 12px 12px 6px; }
.d-dash .bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; border-bottom: 1px solid #263049; }
.d-dash .bars i { flex: 1; background: #3a74ff; border-radius: 3px 3px 0 0; transition: height .4s ease; }
.d-dash .bars i:last-child { background: #ffc83a; }
.d-dash .lbl { display: flex; gap: 6px; font-family: var(--f-mono); font-size: 10px; color: #7d8aa5; padding-top: 4px; }
.d-dash .lbl span { flex: 1; text-align: center; }

.mobile .d-dash { grid-template-columns: 1fr; }
.mobile .d-dash aside { display: none; }
.mobile .d-dash .kpis { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) {
  .d-dash { grid-template-columns: 1fr; }
  .d-dash aside { display: none; }
  .d-dash .kpis { grid-template-columns: 1fr 1fr; }
}

/* ---------- 04 · Agro (institucional + sensores) ---------- */
.d-agro { background: #0f1a12; color: #e8f1e4; }
.d-agro .top { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; font-size: 13px; color: #a9c3a0; }
.d-agro .top b { color: #e8f1e4; font-size: 16px; }
.d-agro .hero2 { padding: 28px 18px 22px; display: grid; gap: 10px; background: linear-gradient(160deg, #16301b, #0f1a12 70%); }
.d-agro h3 { font-size: 30px; font-family: var(--f-display); font-weight: 700; color: #e8f1e4; }
.d-agro h3 span { color: #9fe06a; }
.d-agro p { margin: 0; color: #a9c3a0; max-width: 40ch; }
.d-agro .sens { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; padding: 16px 18px 22px; }
.d-agro .s { border: 1px solid #284330; border-radius: 8px; padding: 12px; }
.d-agro .s small { color: #a9c3a0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.d-agro .s div { font-family: var(--f-mono); font-size: 22px; font-variant-numeric: tabular-nums; }
.d-agro .s div u { text-decoration: none; font-size: 12px; color: #a9c3a0; }
.d-agro .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9fe06a; }
.d-agro .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9fe06a; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- 05 · Portfólio pessoal ---------- */
.d-port { background: #f4f2ff; color: #1b1640; padding: 22px 18px; display: grid; gap: 16px; align-content: start; }
.d-port .who { display: flex; gap: 14px; align-items: center; }
.d-port .av { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#ff6a88, #7b5cff, #ff6a88); flex: none; }
.d-port h3 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.d-port .who p { margin: 0; color: #5a5487; font-size: 13px; }
.d-port .filters { display: flex; gap: 6px; flex-wrap: wrap; }
.d-port .filters button { border: 1px solid #cfc8ff; background: #fff; border-radius: 20px; padding: 5px 12px; color: #1b1640; font-size: 12.5px; }
.d-port .filters button[aria-pressed="true"] { background: #1b1640; color: #fff; border-color: #1b1640; }
.d-port .works { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.d-port .w { aspect-ratio: 1; max-width: 100%; border-radius: 10px; display: flex; align-items: flex-end; padding: 10px; color: #fff; font-size: 12.5px; font-weight: 600; }
