/* Dashboard trial reminder and Settings subscription card
   (wn-trial-banner-20261202b.js). Sits under the
   dashboard top bar on the dark band, in the landing page's lime and green. */
.wn-trial-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-block: 14px 4px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(216, 250, 141, 0.32);
  background: linear-gradient(120deg, rgba(216, 250, 141, 0.14), rgba(216, 250, 141, 0.05));
  color: #e8f5e9;
  font: 500 14px/1.45 Geist, Inter, system-ui, sans-serif;
}
.wn-trial-copy { flex: 1 1 320px; min-width: 0; }
.wn-trial-copy strong { color: #defb98; font-weight: 800; }
.wn-trial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wn-trial-banner button {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 16px;
}
.wn-trial-cta { background: #defb98; color: #13261c; border: 0; font-weight: 800 !important; }
.wn-trial-cta:hover { background: #ebffc0; }
.wn-trial-alt { background: transparent; color: #e3f5e6; border: 1px solid rgba(229, 251, 223, 0.4); font-weight: 700 !important; }
.wn-trial-alt:hover { background: rgba(255, 255, 255, 0.08); }
.wn-trial-close { background: none; border: 0; color: #a9c2b5; padding-inline: 6px !important; text-decoration: underline; text-underline-offset: 3px; }
.wn-trial-close:hover { color: #fff; }
.wn-trial-banner button:disabled { opacity: 0.6; cursor: progress; }
.wn-trial-banner button:focus-visible { outline: 2px solid #defb98; outline-offset: 2px; }
.wn-trial-status { flex-basis: 100%; margin: 0; font-size: 13px; color: #cfe2d6; }
.wn-trial-status:empty { display: none; }
@media (max-width: 640px) {
  .wn-trial-banner { padding: 14px; }
  .wn-trial-actions { width: 100%; }
  .wn-trial-cta { flex: 1 1 100%; }
}

/* Settings: Subscription card, in the dark green of the Cloud backup card. */
.wn-sub-card {
  margin-bottom: 18px;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid rgba(216, 250, 141, 0.24);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(216, 250, 141, 0.12), transparent 60%),
    linear-gradient(155deg, #15463c 0%, #0e3029 48%, #0a2420 100%);
  color: #e8f5e9;
}
.wn-sub-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: #a9c2b5; }
.wn-sub-title { margin: 0 0 6px; font: 800 26px/1.15 "Bricolage Grotesque", Geist, sans-serif; letter-spacing: -0.03em; color: #f3faf0; }
.wn-sub-text { margin: 0 0 14px; max-width: 62ch; color: #cfe2d6; font-size: 15px; line-height: 1.55; }
.wn-sub-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.wn-sub-card button { font: 600 14px/1.2 Geist, Inter, system-ui, sans-serif; cursor: pointer; border-radius: 10px; min-height: 42px; padding: 10px 18px; }
.wn-sub-card button:disabled { opacity: 0.6; cursor: progress; }
.wn-sub-card button:focus-visible { outline: 2px solid #defb98; outline-offset: 2px; }
.wn-sub-status { margin-top: 10px; }

/* Settings card, trial offer: copy and perks on the left, two plan tiles on
   the right, a lime light in the corner and the landing page's travelling
   lime edge. */
.wn-sub-card.wn-sub-offer {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px 32px;
  padding: 26px 28px;
  border-color: transparent;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(216, 250, 141, 0.22), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(131, 194, 148, 0.16), transparent 60%),
    linear-gradient(155deg, #15463c 0%, #0e3029 48%, #0a2420 100%);
  box-shadow: 0 30px 70px -36px rgba(1, 13, 15, 0.7), 0 0 0 1px rgba(216, 250, 141, 0.22);
}
.wn-sub-card.wn-sub-offer::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--hb-fc-angle, 0deg), rgba(216, 250, 141, 0) 0deg, #d8fa8d 60deg, rgba(216, 250, 141, 0) 130deg, rgba(216, 250, 141, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hb-fc-spin 6s linear infinite;
  pointer-events: none;
}
.wn-sub-offer .wn-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #defb98;
  color: #13261c;
  font: 800 12.5px/1.3 Geist, Inter, system-ui, sans-serif;
}
.wn-sub-offer .wn-sub-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f6b4f; }
.wn-sub-offer .wn-sub-title { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 6px; }
.wn-sub-offer .wn-sub-text { margin-bottom: 10px; }
.wn-sub-perks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: #e3f5e6; font-size: 13.5px; font-weight: 600; }
.wn-sub-perks li { display: inline-flex; align-items: center; gap: 6px; }
.wn-sub-perks li::before { content: "✓"; color: #defb98; font-weight: 800; }
.wn-sub-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wn-sub-card .wn-sub-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 0;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(229, 251, 223, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #f3faf0;
  text-align: left;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.wn-sub-card .wn-sub-plan:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(216, 250, 141, 0.6); transform: translateY(-1px); }
.wn-sub-plan-name { font-size: 13px; font-weight: 700; color: #cfe2d6; display: inline-flex; align-items: center; gap: 8px; }
.wn-sub-plan-name em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #defb98; color: #13261c; }
.wn-sub-plan-price { font: 800 26px/1.1 "Bricolage Grotesque", Geist, sans-serif; letter-spacing: -0.03em; color: #fff; }
.wn-sub-plan-price small { font: 600 13px/1 Geist, Inter, system-ui, sans-serif; letter-spacing: 0; color: #a9c2b5; margin-left: 3px; }
.wn-sub-plan-go { margin-top: 8px; padding: 9px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #f3faf0; font-weight: 800; font-size: 13.5px; }
.wn-sub-card .wn-sub-plan-best { background: #defb98; border-color: #defb98; color: #13261c; }
.wn-sub-card .wn-sub-plan-best:hover { background: #ebffc0; border-color: #ebffc0; }
.wn-sub-plan-best .wn-sub-plan-name { color: #2c4a3b; }
.wn-sub-plan-best .wn-sub-plan-name em { background: #13261c; color: #defb98; }
.wn-sub-plan-best .wn-sub-plan-price { color: #13261c; }
.wn-sub-plan-best .wn-sub-plan-price small { color: #3d5a4d; }
.wn-sub-plan-best .wn-sub-plan-go { background: #13261c; color: #defb98; }
.wn-sub-offer .wn-sub-status { grid-column: 1 / -1; margin: 0; }
@media (max-width: 820px) {
  .wn-sub-card.wn-sub-offer { grid-template-columns: 1fr; padding: 22px 20px; }
}
@media (max-width: 420px) {
  .wn-sub-plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wn-sub-card.wn-sub-offer::before { animation: none; }
  .wn-sub-card .wn-sub-plan { transition: none; }
}

/* Settings card: the reminder sentence stays on one line. The text column
   is wider, and below 1240px the plans move under the text so the sentence
   keeps the full width. */
.wn-sub-card.wn-sub-offer { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.wn-sub-offer .wn-sub-text { max-width: none; font-size: 14.5px; }
@media (min-width: 1241px) {
  .wn-sub-offer .wn-sub-text { white-space: nowrap; }
}
@media (max-width: 1240px) {
  .wn-sub-card.wn-sub-offer { grid-template-columns: 1fr; }
  .wn-sub-plans { max-width: 560px; }
}

/* Settings: hide the older Premium trial row; the Subscription card above
   covers it. */
html[data-wn-settings] #root aside.db-membership { display: none !important; }

/* Settings: cloud backup status on its own line, the three buttons on one row */
html #root .db-backup-controls > span { flex-basis: 100%; }
html #root .db-backup-controls > button { white-space: nowrap; }

/* Settings: storage card descriptions on one line where the cards are wide enough */
@media (min-width: 1360px) {
  html #root .db-card-desc { max-width: none !important; white-space: nowrap; font-size: 12.5px !important; }
}
