/* ============================================================
   wireframe.css — App Meninas V2
   Wireframe visual, sem banco e sem APIs.
   Estrutura: header + abas + painel central + footer de prêmios.
   ============================================================ */

:root{
  --app-w: 420px;
  --cream: #fff2d8;
  --paper: #fffdfa;
  --ink: #705f5f;
  --line: #8f8585;
  --muted: #b7aaaa;
  --pink: #f7d8dd;
  --rose: #f9e5e8;
  --mint: #bceee0;
  --blue: #c6e9fb;
  --green: #bff0b5;
  --yellow: #fff092;
  --gold: #d9bd35;
  --danger: #f3b5b5;
  --bonus: #c8f1f5;
  --shadow: 0 10px 28px rgba(80, 54, 54, .10);
  --radius: 16px;
  --hand: "Sour Gummy", "Comic Sans MS", cursive;
  --sans: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{ box-sizing:border-box; }
html{ min-height:100%; }
body{
  min-height:100%;
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(255,255,255,.8), transparent 26%),
    linear-gradient(180deg, #fff8e8 0%, #fffdfa 44%, #fff5df 100%);
}
button, input, select{ font:inherit; }
button{ cursor:pointer; }
img{ max-width:100%; display:block; }

.wf-body{ padding:0; }
.wf-app-shell{
  width:min(100%, var(--app-w));
  min-height:100vh;
  margin:0 auto;
  background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.04), 0 16px 50px rgba(90,58,58,.12);
}

/* Header reutilizável */
.wf-header{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--cream);
  border-bottom:1px solid rgba(120, 100, 80, .12);
}
.wf-header__inner{
  min-height:82px;
  padding:22px 37px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.wf-logo{
  width:168px;
  height:35px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid var(--line);
  color:#777;
  text-decoration:none;
  font-weight:800;
}
.wf-logo img{ max-height:42px; width:auto; }
.wf-logo__fallback{ display:none; }
.wf-logo--placeholder .wf-logo__fallback{ display:block; }
.wf-datebox{ text-align:center; }
.wf-datebox__label{
  display:block;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9f8d8d;
  margin-bottom:2px;
}
.wf-datebox__button{
  border:0;
  background:transparent;
  color:#bf565d;
  font-family:var(--hand);
  font-size:18px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:6px;
}
.wf-datebox__icon{ font-size:17px; }

.wf-main{ padding:14px 36px 26px; }

/* Abas */
.wf-tabs{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-end;
  gap:0;
  margin:0 0 -1px;
  padding-left:0;
}
.wf-tab{
  min-width:111px;
  height:54px;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  border-bottom:0;
  border-radius:7px 7px 0 0;
  text-decoration:none;
  color:#be565d;
  font-family:var(--hand);
  font-size:19px;
  font-weight:800;
}
.wf-tab.is-active{
  background:#fff;
  border-color:var(--line);
  color:#b94d55;
}

.wf-panel{
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:0 9px 9px 9px;
  padding:16px 12px 22px;
  min-height:360px;
  box-shadow:var(--shadow);
}
.wf-panel--tabbed{ margin-bottom:20px; }

.wf-section-title{
  min-height:34px;
  display:flex;
  align-items:center;
  padding:8px 14px;
  margin:0 0 14px;
  text-transform:uppercase;
  font-weight:900;
  color:#6f6868;
  letter-spacing:.03em;
}
.wf-section-title--pink{ background:var(--rose); }
.wf-section-title--rose{ background:var(--rose); }

/* Botões base */
.wf-button{
  border:0;
  border-radius:9px;
  background:#55aef5;
  color:#fff;
  padding:10px 16px;
  font-weight:900;
  box-shadow:0 4px 0 rgba(60,110,150,.22);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.wf-button--big{
  min-width:170px;
  min-height:52px;
  border-radius:999px;
  font-size:20px;
  background:linear-gradient(135deg, #65b8ff, #cf60b5);
}

/* MENINAS */
.kid-card{
  border-bottom:1px solid #c8bfbf;
  margin:0 0 16px;
  background:#fff;
}
.kid-card:last-child{ border-bottom:0; }
.kid-card__summary{
  width:100%;
  border:0;
  background:#fff;
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 4px 12px;
  color:var(--ink);
  text-align:left;
}
.kid-card__avatar{
  width:64px;
  height:64px;
  flex:0 0 64px;
  border-radius:8px;
  background:var(--pink);
  transform:rotate(-7deg);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.kid-card__avatar.is-placeholder::after,
.wf-prize-thumb.is-placeholder::after,
.reward-editor-card__img.is-placeholder::after,
.wf-splash__illustration.is-placeholder::after,
.wf-splash__logo.is-placeholder::after{
  content:"imagem";
  color:#aa9191;
  font-family:var(--hand);
  font-weight:800;
}
.kid-card__avatar img{ width:100%; height:100%; object-fit:contain; transform:rotate(7deg); }
.kid-card__summary-text{ flex:1; min-width:0; }
.kid-card__summary-text strong{
  display:block;
  color:#777;
  font-family:var(--hand);
  font-size:21px;
  line-height:1.1;
}
.kid-card__summary-text small{ display:block; color:#a79c9c; margin-top:3px; }
.kid-card__arrow{ color:#aa8c8c; font-size:20px; }
.kid-card__body{
  display:none;
  margin:0 0 18px 42px;
  padding:14px 8px 18px;
  background:linear-gradient(180deg, #fff7de, #fffcef);
}
.kid-card.is-open .kid-card__body{ display:block; }
.kid-card.is-closed-day .kid-card__body{ outline:2px dashed rgba(85,174,245,.45); }

.kid-headline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.kid-headline h2{
  margin:0;
  color:#b8525a;
  font-family:var(--hand);
  font-size:24px;
}
.kid-headline p{ margin:2px 0 0; color:#9b8e8e; font-size:12px; }
.star-pair{ display:flex; gap:4px; font-size:28px; line-height:1; }
.star{ color:var(--gold); text-shadow:0 1px 0 #fff, 0 0 0 #9f8427; }
.star.is-alpha{ opacity:.25; filter:grayscale(.25); }
.star.is-earned{ opacity:1; }

.progress-wrap{ margin:8px 0 10px; }
.progress-label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:#867979;
  margin-bottom:4px;
}
.progress-number{ color:#b8525a; }
.progress-track{
  height:20px;
  border:1px solid #e2b5b5;
  border-radius:5px;
  background:#fff9f0;
  overflow:hidden;
}
.progress-fill{
  height:100%;
  background:linear-gradient(90deg, #eacbd1, #ffdd95);
  width:0;
  transition:width .25s ease;
}
.mini-board{
  margin:8px 0 12px;
  padding:8px 10px;
  border:1px dashed #d6c383;
  border-radius:10px;
  background:rgba(255,255,255,.55);
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
}

.goal-groups{ display:grid; gap:11px; }
.goal-group{ border-bottom:1px solid #ddd09c; padding-bottom:8px; }
.goal-group__title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  color:#6f6f6f;
  margin:0 0 8px;
}
.goal-list{ display:grid; gap:5px; padding-left:22px; }
.goal-list label{
  min-height:24px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:3px 8px;
  background:rgba(255,255,255,.44);
  color:#756c6c;
}
.goal-list label:nth-child(even){ background:#fff0bd; }
.goal-list input:checked + span{ font-weight:800; }

.adjust-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}
.adjust-btn{
  border:0;
  border-radius:9px;
  padding:9px 8px;
  font-weight:900;
  color:#456;
}
.adjust-btn--bonus{ background:var(--bonus); }
.adjust-btn--penalty{ background:#f9dddd; }
.adjust-btn.is-on{ outline:3px solid rgba(191,86,93,.35); transform:translateY(-1px); }
.closing-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
}
.day-message{
  margin:0;
  color:#23507a;
  font-family:var(--hand);
  font-weight:800;
  line-height:1.15;
}

/* METAS */
.child-selector{
  display:grid;
  grid-template-columns:1fr;
  gap:5px;
  padding:0 10px 12px;
  border-bottom:1px solid #d9c493;
  margin-bottom:12px;
}
.child-selector label{ font-weight:900; color:#777; }
.child-selector select,
.inline-add input,
.form-grid input,
.reward-editor-card input{
  width:100%;
  min-height:32px;
  border:1px solid #a09a9a;
  border-radius:0;
  background:#fff;
  padding:6px 8px;
  color:#665;
}
.admin-note{
  margin:10px 0 14px;
  padding:10px 12px;
  border-radius:10px;
  background:#fff6db;
  border:1px dashed #e0c67a;
  color:#796f62;
  font-size:13px;
}
.goal-admin-card{
  margin:0 10px 12px 58px;
  border-bottom:1px solid #a9c8e9;
}
.goal-admin-card__head{
  width:100%;
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:8px;
  border:0;
  background:#fff;
  color:#346ca8;
  padding:8px 0;
  text-align:left;
  font-weight:900;
}
.goal-admin-card__body{ display:none; padding:8px 0 14px; }
.goal-admin-card.is-open .goal-admin-card__body{ display:block; }
.type-chip{
  display:inline-flex;
  border-radius:999px;
  padding:3px 8px;
  font-size:10px;
  font-style:normal;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.type-chip--main{ background:#e0f2ff; color:#2d679b; }
.type-chip--extra{ background:#fff4c6; color:#836200; }
.weekday-row{ display:flex; flex-wrap:wrap; gap:4px; margin-bottom:10px; }
.day-chip{
  border-radius:999px;
  border:1px dashed #b4b4b4;
  color:#aaa;
  padding:3px 7px;
  font-size:11px;
  font-weight:800;
}
.day-chip.is-on{ background:#dff5ff; color:#3573a4; border-style:solid; }
.meta-list{ list-style:none; padding:0; margin:0 0 10px; display:grid; gap:8px; }
.meta-list li{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px;
}
.meta-list label{ color:#716c6c; }
.meta-list button,
.inline-add button,
.period-config-tabs button{
  border:0;
  background:#7db0d7;
  color:#fff;
  font-weight:900;
  padding:5px 8px;
}
.admin-actions{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.soft-btn{ border:0; background:#edf6ff; color:#5d85a8; font-weight:900; padding:7px 8px; border-radius:8px; }
.soft-btn--danger{ background:#fff0f0; color:#bf7373; }
.inline-add{ display:grid; grid-template-columns:1fr auto; gap:4px; }

/* CONFIG */
.config-block{ margin:0 0 20px; }
.config-block__title{
  width:100%;
  min-height:44px;
  border:0;
  padding:10px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  color:#687071;
  text-transform:uppercase;
  font-weight:900;
}
.config-block--mint .config-block__title{ background:var(--mint); }
.config-block--blue .config-block__title{ background:#bddff0; }
.config-block--rose .config-block__title{ background:#f2dfe4; }
.config-block__body{ padding:14px 0 4px; }
.period-config-tabs{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:4px;
  margin-bottom:12px;
}
.period-config-tabs button{ background:#d7d7d7; border-radius:5px; }
.period-config-tabs .is-active{ background:#b8dcff; color:#395d7e; }
.reward-editor-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.reward-editor-card{ display:grid; gap:6px; font-size:12px; font-weight:900; color:#b8525a; }
.reward-editor-card__img{
  aspect-ratio:1;
  border-radius:10px;
  background:#ead6d8;
  transform:rotate(-8deg);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.reward-editor-card__img img{ width:100%; height:100%; object-fit:cover; transform:rotate(8deg); }
.form-grid{ display:grid; gap:10px; }
.form-grid label{ font-weight:900; color:#716c6c; font-size:13px; }
.history-table-wrap{ overflow-x:auto; border:1px solid #e6d6d6; }
.history-table{ width:100%; border-collapse:collapse; min-width:520px; font-size:12px; }
.history-table th,
.history-table td{ border-bottom:1px solid #eee2e2; padding:8px; text-align:left; }
.history-table th{ background:#fff3d0; color:#6b6262; }

/* FOOTER de prêmios */
.wf-prizes{
  background:var(--cream);
  padding:16px 36px 20px;
  border-top:1px solid rgba(120, 100, 80, .12);
}
.wf-prizes__title{
  font-weight:900;
  font-size:20px;
  margin-bottom:14px;
  color:#6c6868;
}
.wf-period-tabs{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:3px;
  margin-bottom:20px;
}
.wf-period-tab{
  border:0;
  min-height:25px;
  border-radius:4px;
  color:#5e5e5e;
  font-weight:900;
  font-size:12px;
}
.wf-period-tab:nth-child(1){ background:#bfe0ff; }
.wf-period-tab:nth-child(2){ background:#c9f3b5; }
.wf-period-tab:nth-child(3){ background:#fff08a; }
.wf-period-tab:not(.is-active){ opacity:.65; }
.wf-prize-cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.wf-prize-card{ text-align:center; min-width:0; }
.wf-prize-thumb{
  width:78px;
  height:78px;
  margin:0 auto 8px;
  border-radius:10px;
  background:#ead6d8;
  transform:rotate(-13deg);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.wf-prize-thumb img{ width:100%; height:100%; object-fit:cover; transform:rotate(13deg); }
.wf-prize-name{
  color:#c5525b;
  font-family:var(--hand);
  font-weight:800;
  line-height:1;
}
.wf-prize-desc{ margin:4px 0 0; font-size:10px; color:#9c8d8d; }

/* Splash */
.wf-body--splash{
  display:grid;
  place-items:center;
  background:linear-gradient(180deg, #fff3d7, #ffe8ef 60%, #eaf8ff);
}
.wf-splash{
  width:min(100%, var(--app-w));
  min-height:100vh;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  padding:28px;
}
.wf-splash__cloud{
  position:absolute;
  width:150px;
  height:54px;
  border-radius:999px;
  background:rgba(255,255,255,.7);
  filter:blur(.2px);
}
.wf-splash__cloud--one{ top:8%; left:-40px; }
.wf-splash__cloud--two{ bottom:16%; right:-52px; }
.wf-splash__card{
  width:100%;
  min-height:560px;
  padding:32px 24px;
  border:2px dashed rgba(190,86,93,.28);
  border-radius:28px;
  background:rgba(255,255,255,.72);
  text-align:center;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
}
.wf-splash__logo{
  width:190px;
  height:58px;
  border:1px solid #a89c9c;
  background:#fff;
  display:grid;
  place-items:center;
  color:#777;
  font-weight:900;
}
.wf-splash__logo span{ display:none; }
.wf-splash__logo.is-placeholder span{ display:block; }
.wf-splash__illustration{
  width:190px;
  height:160px;
  border-radius:24px;
  background:#f3d9df;
  display:grid;
  place-items:center;
  overflow:hidden;
  transform:rotate(-3deg);
}
.wf-splash__illustration img{ width:100%; height:100%; object-fit:cover; transform:rotate(3deg) scale(1.08); }
.wf-splash h1{
  margin:6px 0 0;
  color:#b8525a;
  font-family:var(--hand);
  font-size:36px;
}
.wf-splash p{ margin:0; max-width:270px; color:#756b6b; font-weight:700; }

@media (max-width:390px){
  .wf-header__inner{ padding-left:22px; padding-right:22px; }
  .wf-main{ padding-left:22px; padding-right:22px; }
  .wf-prizes{ padding-left:22px; padding-right:22px; }
  .wf-tab{ min-width:92px; font-size:18px; }
  .kid-card__body{ margin-left:18px; }
  .reward-editor-grid{ grid-template-columns:1fr; }
}
