/* V10 — PIN parental e controle diário de tempo */
.parental-pin-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(82, 22, 140, .09);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff8df, #f6efff);
}
.parental-pin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.parental-pin-copy h2 { margin-bottom: 7px; font-size: 1.45rem; }
.parental-pin-copy p { margin: 0; max-width: 690px; color: var(--muted); line-height: 1.5; }
.pin-panel-actions { display: grid; gap: 9px; min-width: 190px; }
.pin-panel-actions .compact-btn { width: 100%; }
.pin-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pin-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0f0;
  color: #8a2630;
  font-weight: 900;
}
.pin-status-pill[data-status="active"] { background: #e7f8eb; color: #246335; }
.pin-status-pill[data-status="locked"] { background: #fff1d3; color: #754d00; }
.pin-status-description { color: var(--muted); font-size: .9rem; }
.pin-status-loading { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-weight: 900; }

.pin-dialog { width: min(560px, calc(100% - 24px)); }
.pin-form { display: grid; gap: 17px; padding: 26px; }
.pin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pin-input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 2px solid #eadff1;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .32em;
  text-align: center;
  outline: none;
}
.pin-input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(114, 39, 184, .11); }
.pin-security-note { padding: 13px 15px; border-radius: 15px; background: #edf8ff; color: #23546d; font-size: .88rem; line-height: 1.5; }
.pin-support-note { padding: 13px 15px; border-radius: 15px; background: #fff4d8; color: #654800; font-size: .9rem; line-height: 1.5; }
.pin-recovery-code { letter-spacing: .22em; }
.pin-recovery-secondary-action { margin-top: 12px; text-align: center; }
.text-button { border: 0; background: transparent; color: var(--purple-dark); font: inherit; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:disabled { cursor: wait; opacity: .6; }
.pin-recovery-resend-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  border: 2px solid rgba(95, 38, 159, .28);
  border-radius: 999px;
  background: #fff;
  color: var(--purple-dark);
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pin-recovery-resend-btn:hover:not(:disabled) {
  border-color: var(--purple);
  background: #f6edff;
}
.pin-recovery-resend-btn:focus-visible {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(114, 39, 184, .14);
}
.pin-recovery-resend-btn:disabled {
  cursor: wait;
  opacity: .58;
}

.account-danger-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(142, 37, 49, .18);
  border-radius: 22px;
  background: #fff7f7;
}
.account-danger-panel h2 { margin: 5px 0 7px; color: #7f2530; font-size: 1.25rem; }
.account-danger-panel p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.5; }
.danger-outline-btn,
.danger-btn {
  min-height: 48px;
  padding: 11px 17px;
  border: 2px solid #a93242;
  border-radius: 15px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.danger-outline-btn { background: #fff; color: #922c3a; }
.danger-btn { background: #922c3a; color: #fff; }
.danger-outline-btn:hover,
.danger-btn:hover { transform: translateY(-1px); }
.danger-outline-btn:disabled,
.danger-btn:disabled { cursor: wait; opacity: .6; transform: none; }
.account-deletion-dialog { width: min(620px, calc(100% - 24px)); }
.account-deletion-warning {
  padding: 16px;
  border: 1px solid rgba(142, 37, 49, .18);
  border-radius: 17px;
  background: #fff4f4;
  color: #6f242e;
}
.account-deletion-warning strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.account-deletion-warning p { margin: 0; line-height: 1.55; }
.account-deletion-warning.critical { border-width: 2px; background: #ffeded; }
.account-deletion-forgot { display: block; margin: 10px auto 0; }
.account-deletion-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 18px;
  border-radius: 20px;
  background: #e7f8eb;
  color: #246335;
  text-align: center;
}
.account-deletion-success span { font-size: 2.5rem; line-height: 1; }

.time-control-widget {
  appearance: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 16px;
  background: #edf8ff;
  color: #23546d;
  border: 1px solid rgba(35, 84, 109, .12);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.time-control-widget:hover,
.time-control-widget:focus-visible { outline: 3px solid rgba(114, 39, 184, .22); outline-offset: 2px; }
.time-control-widget:active { transform: scale(.98); }
.time-control-widget[data-warning="true"] { background: #fff1d3; color: #754d00; }
.time-control-icon { font-size: 22px; }
.time-control-text { display: grid; line-height: 1.05; }
.time-control-text small { font-size: .68rem; font-weight: 800; opacity: .82; }
.time-control-text strong { font-size: .98rem; white-space: nowrap; }

.time-limit-overlay {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(38, 16, 52, .82);
  backdrop-filter: blur(10px);
}
.time-limit-overlay[hidden] { display: none; }
.time-limit-overlay[data-time-flow="home"] [data-time-rest-only] { display: none !important; }
.time-limit-overlay[data-time-flow="home"] .time-limit-card { width: min(520px, 100%); }
.time-limit-overlay[data-time-flow="home"] .adult-unlock-panel { margin-top: 0; }
.time-limit-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: #fffdf8;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 28px 80px rgba(20, 8, 30, .45);
}
.time-limit-icon { font-size: 68px; line-height: 1; margin-bottom: 10px; }
.time-limit-card h2 { margin-bottom: 10px; font-size: clamp(2rem, 7vw, 3rem); }
.time-limit-card > p { max-width: 440px; margin: 0 auto 18px; color: var(--muted); line-height: 1.55; }
.time-limit-child { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 9px 13px; border-radius: 999px; background: #f2e8fa; color: var(--purple-dark); }
.adult-unlock-panel { margin-top: 18px; padding: 20px; border-radius: 20px; background: #f8f2fc; text-align: left; }
.adult-unlock-panel h3 { margin-bottom: 6px; text-align: center; }
.adult-unlock-panel > p { margin: 0 0 14px; color: var(--muted); text-align: center; line-height: 1.45; }
.pin-inline-field { display: grid; gap: 7px; font-weight: 900; }
.pin-inline-field input { min-height: 56px; border: 2px solid #dfcee9; border-radius: 15px; font-family: inherit; font-size: 1.35rem; font-weight: 900; line-height: 1; letter-spacing: .32em; text-align: center; outline: none; }
.pin-inline-field input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(114, 39, 184, .11); }
.time-unlock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.time-simple-editor { display: grid; gap: 10px; }
.time-simple-editor[hidden] { display: none; }
.time-simple-editor select,
.time-simple-editor input { min-height: 52px; border: 2px solid #dfcee9; border-radius: 14px; background: #fff; font: 800 1rem/1.2 inherit; padding: 8px 12px; }
.time-simple-editor label { display: grid; gap: 6px; font-weight: 900; }
.time-simple-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.time-protected-eyebrow { display: block; margin-bottom: 4px; color: var(--purple); text-align: center; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
body.time-limit-blocked [data-lila-gameplay-root] {
  pointer-events: none !important;
  user-select: none !important;
}

@media (max-width: 760px) {
  .parental-pin-heading { align-items: stretch; flex-direction: column; }
  .parental-pin-heading .primary-btn { width: 100%; }
  .pin-panel-actions { width: 100%; }
  .account-danger-panel { align-items: stretch; flex-direction: column; }
  .account-danger-panel .danger-outline-btn { width: 100%; }
  .pin-grid { grid-template-columns: 1fr; }
  .active-child-inner { flex-wrap: wrap; }
  .time-control-widget { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .time-unlock-actions { grid-template-columns: 1fr; }
  .time-simple-actions { grid-template-columns: 1fr; }
  .time-limit-card { padding: 24px 18px; border-radius: 24px; }
}
