.oil-card { height: 555px; }
.level-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f8f2;
  color: var(--deep);
  font-size: 9px;
}
.face h3 { margin-top: 25px; font-size: 21px; line-height: 1.45; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
  margin-top: 10px;
}
.family,
.extraction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f1f0e7;
  color: var(--deep);
  font-size: 11px;
  font-weight: 700;
}
.extraction { background: #e9f1ec; }
.family small,
.extraction small { color: var(--muted); font-size: 8px; font-weight: 500; }
.plant-photo {
  width: min(78%, 168px);
  aspect-ratio: 1 / 1;
  height: auto;
  flex: 0 0 auto;
  align-self: center;
  margin-top: 12px;
  border: 1px solid rgba(60,89,75,.10);
  border-radius: 9px;
  background-image: url('botanical-sprite.png');
  background-repeat: no-repeat;
  background-size: 500% 600%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}
.aroma-profile { margin-top: auto; }
.aroma-profile .scent { display: block; margin-bottom: 7px; }
.aroma-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.aroma-profile + .tag { margin-top: 12px; }
.back p { font-size: 12px; line-height: 1.65; }
.effect-list { display: grid; gap: 6px; margin-top: 10px; }
.mark { font-size: 10px; }
.safety-note {
  display: flex;
  gap: 14px;
  margin: -2px 0 18px;
  padding: 13px 16px;
  border: 1px solid #dcd9c8;
  border-radius: 10px;
  background: #fffbed;
  color: #6d6959;
  font-size: 11px;
  line-height: 1.7;
}
.safety-note b { flex: 0 0 auto; color: var(--ink); }
.body-box {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(255,255,255,.58);
}
.body-box b { display: block; margin-bottom: 4px; color: var(--deep); font-size: 10px; }
.body-box p { font-weight: 700; color: var(--ink); }
.body-detail { margin-top: 9px !important; }
.extraction-detail { margin-top: 4px !important; color: var(--deep); }
.effect-list.compact { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(60,89,75,.12); gap: 3px; }
@media(max-width:600px) { .safety-note { display: block; } .safety-note b { display: block; margin-bottom: 4px; } }
.quiz-setup { display: grid; gap: 25px; }
.setup-group > b { display: block; margin-bottom: 11px; color: var(--deep); font-size: 13px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-option { padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700; }
.quiz-option.active { border-color: var(--deep); background: var(--deep); color: #fff; }
.start-quiz { border: 0; border-radius: 24px; padding: 12px 22px; background: var(--deep); color: #fff; cursor: pointer; font-weight: 700; }
.change-settings { margin-left: 8px; border: 1px solid var(--line); border-radius: 24px; padding: 11px 20px; background: #fff; color: var(--deep); cursor: pointer; font-weight: 700; }
.topic-label { display: inline-block; margin: 0 0 12px; padding: 4px 9px; border-radius: 12px; background: #edf2e9; color: var(--deep); font-size: 10px; font-weight: 700; }
.quiz-progress { height: 5px; margin: -8px 0 22px; overflow: hidden; border-radius: 5px; background: var(--line); }
.quiz-progress span { display: block; height: 100%; border-radius: inherit; background: var(--sage); transition: width .3s; }
.quiz-feedback { margin: 15px 0 0; font-size: 13px; font-weight: 700; }
.quiz-feedback.ok { color: #52764e; }
.quiz-feedback.ng { color: #a46351; }
.quiz-result { padding: 12px 0 5px; text-align: center; }
.quiz-result > span { display: block; color: var(--gold); font: 700 46px 'DM Sans'; }
.quiz-result h3 { margin: 5px 0 10px; font-size: 21px; }
.quiz-result p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
@media(max-width:600px) { .quiz-options { display: grid; grid-template-columns: repeat(2,1fr); } .quiz-option { width: 100%; } .change-settings { margin: 8px 0 0; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.plan-badge { padding: 5px 9px; border-radius: 14px; background: #edf2e9; color: var(--deep); font-size: 10px; font-weight: 700; }
.upgrade-button { border: 0; border-radius: 18px; padding: 8px 13px; background: var(--deep); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.access-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 11px 14px; border-radius: 9px; background: #e9f1ec; color: var(--deep); font-size: 11px; }
.access-notice button { border: 0; background: transparent; color: var(--deep); cursor: pointer; font: inherit; font-weight: 800; text-decoration: underline; }
.locked-card { cursor: pointer; }
.locked-preview { position: relative; height: 100%; overflow: hidden; padding: 20px; border: 1px solid #deddd3; border-radius: 13px; background: #f2f1eb; display: flex; flex-direction: column; align-items: center; text-align: center; }
.locked-preview h3 { margin: 14px 0 2px; font-size: 19px; }
.locked-preview .latin { margin-bottom: 8px; }
.locked-preview .plant-photo { filter: grayscale(.35) blur(2px); opacity: .42; }
.locked-preview strong { margin-top: auto; color: var(--deep); font-size: 13px; }
.locked-preview > small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.lock-icon { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #fff; font-size: 12px; }
.premium-option { border-style: dashed; background: #f7f5ef; }
.free-quiz-note { margin: -10px 0 0; color: var(--muted); font-size: 10px; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; background: rgba(27,40,34,.58); display: grid; place-items: center; }
.modal-backdrop[hidden] { display: none; }
.upgrade-modal { position: relative; width: min(680px,100%); max-height: 90vh; overflow: auto; padding: 31px; border-radius: 18px; background: var(--paper); box-shadow: 0 20px 70px rgba(25,39,33,.25); }
.upgrade-modal h2 { margin: 0 35px 8px 0; font-size: 25px; line-height: 1.45; }
.upgrade-lead { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 19px; }
.plan-comparison { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.plan-comparison > div { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.plan-comparison small,.plan-comparison strong { display: block; }
.plan-comparison strong { margin: 7px 0 12px; color: var(--deep); font: 700 25px 'DM Sans'; }
.plan-comparison ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 2; }
.premium-plan { border-color: var(--sage) !important; background: #f1f5ef; }
.premium-plan > span { position: absolute; top: -10px; right: 12px; padding: 4px 9px; border-radius: 12px; background: var(--gold); color: #fff; font-size: 9px; font-weight: 700; }
.checkout-button { width: 100%; margin-top: 18px; padding: 12px; border: 0; border-radius: 24px; background: var(--deep); color: #fff; cursor: pointer; font-weight: 700; }
.checkout-button:disabled { background: #aeb7b2; cursor: not-allowed; }
.modal-note { margin: 8px 0 0; color: var(--muted); text-align: center; font-size: 9px; }
.restore-panel { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.restore-panel h3 { margin: 0 0 4px; font-size: 14px; }
.restore-panel > p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.restore-panel label { display: block; margin-bottom: 5px; color: var(--deep); font-size: 10px; font-weight: 700; }
.restore-panel form > div { display: flex; gap: 7px; }
.restore-panel input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-size: 12px; }
.restore-panel button { padding: 10px 13px; border: 1px solid var(--deep); border-radius: 9px; background: #fff; color: var(--deep); cursor: pointer; font-size: 11px; font-weight: 700; }
.restore-panel button:disabled { opacity: .55; cursor: wait; }
.app-status { margin: 18px 0 -8px; padding: 11px 14px; border: 1px solid #cbd8cf; border-radius: 9px; background: #edf5ef; color: var(--deep); font-size: 12px; }
.app-status[data-type="warning"] { border-color: #e4d4b7; background: #fff8e8; color: #795c2e; }
.app-status[data-type="success"] { border-color: #bfd6c4; background: #eaf6ed; color: #315f3b; }
@media(max-width:600px) { .header-actions .plan-badge,.header-actions .ghost { display:none; } .plan-comparison { grid-template-columns:1fr; } .upgrade-modal { padding: 25px 20px; } }
@media(max-width:600px) { .restore-panel form > div { display:grid; } }
