/* Shortly pricing surface: warm orange, SF Pro Display, and compact daily limits. */
.pricing-modal[hidden] { display: none; }
body.pricing-open { overflow: hidden; }
.pricing-modal {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  padding: 28px; background: rgba(18, 24, 38, .48); backdrop-filter: blur(8px);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.pricing-dialog {
  position: relative; width: min(1240px, 100%); max-height: min(92vh, 900px); overflow: auto;
  padding: 36px 38px 26px; border: 1px solid rgba(255, 122, 0, .18); border-radius: 28px;
  background: linear-gradient(145deg, #fffaf5 0%, #fff 42%, #fff7ef 100%);
  box-shadow: 0 28px 90px rgba(94, 50, 18, .25);
}
.pricing-close { position: absolute; top: 18px; right: 20px; width: 36px; height: 36px; border: 1px solid #e8e9ed; border-radius: 50%; background: #fff; color: #657083; font-size: 24px; line-height: 1; cursor: pointer; }
.pricing-heading { text-align: center; max-width: 650px; margin: 0 auto 28px; }
.pricing-eyebrow { color: #f25c16; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.pricing-heading h2 { margin: 8px 0 8px; color: #121a2b; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.045em; }
.pricing-heading p { margin: 0; color: #6f7786; font-size: 15px; }
.pricing-toggle { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid #e6e7eb; border-radius: 999px; background: #f5f6f8; }
.pricing-period { border: 0; border-radius: 999px; padding: 10px 16px; background: transparent; color: #687184; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pricing-period.active { color: #fff; background: linear-gradient(110deg, #ff9c18, #ff4f16); box-shadow: 0 5px 14px rgba(255, 103, 19, .25); }
.pricing-period span { margin-left: 4px; color: #f25c16; font-size: 11px; }
.pricing-period.active span { color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
body:not(.free-plan-enabled) .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-card { position: relative; display: flex; min-height: 430px; flex-direction: column; padding: 24px 22px 22px; border: 1px solid #e8e9ed; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(31, 33, 40, .06); }
.pricing-card-featured { border: 2px solid #ff7a00; box-shadow: 0 16px 34px rgba(255, 111, 14, .18); transform: translateY(-8px); }
.pricing-popular { position: absolute; top: -14px; left: 22px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(110deg,#ff9c18,#ff4f16); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.pricing-card-head h3 { margin: 0; color: #131b2b; font-size: 22px; letter-spacing: -.025em; }
.pricing-card-head p { min-height: 40px; margin: 7px 0 0; color: #7a8290; font-size: 13px; line-height: 1.4; }
.pricing-price { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 3px; margin: 22px 0 18px; color: #111827; white-space: normal; }
.pricing-price span { font-size: clamp(27px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.05em; }
.pricing-price span.pricing-original { margin-right: 0; color: #ef7b3a; font-size: 14px; font-weight: 700; letter-spacing: -.03em; text-decoration: line-through; }
.pricing-price small { min-width: 0; max-width: 100%; color: #7a8290; font-size: clamp(9px, 0.8vw, 11px); line-height: 1.25; }
.pricing-price .pricing-original:not([hidden]) ~ .pricing-billing-label { flex: 0 0 100%; }
.pricing-trial-note { min-height: 16px; margin: -12px 0 18px; color: #e75916; font-size: 11px; font-weight: 800; line-height: 1.35; }
.pricing-trial-note[hidden] { display: none; }
.pricing-cta { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: linear-gradient(110deg,#ff9c18,#ff4f16); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(255, 103, 19, .18); }
.pricing-cta:hover { filter: brightness(1.04); transform: translateY(-1px); }
.pricing-cta-light { border: 1px solid #e5e7eb; background: #fff; color: #1c2535; box-shadow: none; }
.pricing-features { display: grid; gap: 13px; margin: 22px 0 0; padding: 0; list-style: none; color: #4f596a; font-size: 13px; line-height: 1.35; }
.pricing-features li { position: relative; padding-left: 28px; }
.pricing-features li.feature-no { color: #9aa1ad; }
.pricing-features li.feature-no::before { content: "×"; background: #f0f1f3; color: #a4a9b1; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #d5f7e3; color: #118b4b; font-size: 12px; font-weight: 900; }
.pricing-features strong { color: #202a3c; }
.pricing-footnote { margin: 22px 0 0; color: #89909c; text-align: center; font-size: 11px; }
.pricing-free-action { margin-top: 16px; text-align: center; }
.pricing-free-action button { border: 0; background: transparent; color: #7a8290; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 12px; cursor: pointer; }
.pricing-free-action button:hover { color: #f25c16; }
.plan-usage-modal[hidden] { display: none; }
body.plan-usage-open { overflow: hidden; }
.plan-usage-modal {
  position: fixed; inset: 0; z-index: 1250; display: grid; place-items: center; padding: 22px;
  background: rgba(18, 24, 38, .52); backdrop-filter: blur(8px);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.plan-usage-dialog {
  position: relative; width: min(820px, 100%); max-height: min(90vh, 820px); overflow: auto;
  padding: 34px; border: 1px solid rgba(255, 122, 0, .18); border-radius: 24px;
  background: #fff; box-shadow: 0 28px 90px rgba(31, 33, 40, .24);
}
.plan-usage-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: 1px solid #e8e9ed; border-radius: 50%; background: #fff; color: #657083; font-size: 22px; line-height: 1; cursor: pointer; }
.plan-usage-heading { max-width: 540px; margin-bottom: 24px; }
.plan-usage-eyebrow, .plan-usage-label { color: #f25c16; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.plan-usage-heading h2 { margin: 8px 0 8px; color: #121a2b; font-size: 32px; letter-spacing: -.04em; }
.plan-usage-heading p { margin: 0; color: #6f7786; font-size: 14px; }
.plan-usage-identity { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid #eceef2; border-radius: 16px; background: #fffaf5; }
.plan-usage-identity strong { display: block; margin: 5px 0 2px; color: #121a2b; font-size: 23px; }
.plan-usage-identity span:last-child { color: #6f7786; font-size: 13px; }
.plan-usage-upgrade, .plan-usage-tracker-gate > button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: linear-gradient(110deg,#ff9c18,#ff4f16); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.plan-usage-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.plan-usage-metric { min-width: 0; padding: 16px; border: 1px solid #eceef2; border-radius: 14px; background: #fff; }
.plan-usage-metric-label { display: block; min-height: 32px; color: #788193; font-size: 12px; line-height: 1.35; }
.plan-usage-metric-value { display: flex; align-items: baseline; gap: 4px; margin: 9px 0 10px; color: #121a2b; font-size: 21px; font-weight: 800; }
.plan-usage-metric-value small { color: #8a92a0; font-size: 11px; font-weight: 600; }
.plan-usage-meter { height: 6px; overflow: hidden; border-radius: 99px; background: #f0f1f3; }
.plan-usage-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9c18, #ff4f16); }
.plan-usage-metric-note { display: block; margin-top: 8px; color: #8a92a0; font-size: 11px; }
.plan-usage-tracker-gate { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid #f2d4b6; border-radius: 14px; background: #fff8ef; }
.plan-usage-tracker-gate > div { display: flex; align-items: flex-start; gap: 12px; }
.plan-usage-lock { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #ffead4; color: #e56d19; font-size: 13px; }
.plan-usage-tracker-gate strong { display: block; color: #273043; font-size: 13px; }
.plan-usage-tracker-gate p { margin: 4px 0 0; color: #7c8491; font-size: 12px; line-height: 1.4; }
.plan-usage-tracker { margin-top: 18px; }
.plan-usage-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.plan-usage-section-head h3 { margin: 5px 0 0; color: #121a2b; font-size: 20px; }
.plan-usage-count { color: #7c8491; font-size: 12px; }
.plan-usage-upload-list { display: grid; gap: 8px; }
.plan-usage-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(110px, .7fr); align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #eceef2; border-radius: 12px; }
.plan-usage-upload-name { min-width: 0; overflow: hidden; color: #273043; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.plan-usage-upload-meta { display: block; margin-top: 3px; color: #8a92a0; font-size: 11px; font-weight: 500; }
.plan-usage-upload-status { color: #687184; font-size: 12px; white-space: nowrap; }
.plan-usage-upload-progress { min-width: 0; }
.plan-usage-upload-progress .plan-usage-meter { margin-bottom: 4px; }
.plan-usage-upload-progress small { display: block; color: #8a92a0; font-size: 10px; text-align: right; }
.plan-usage-empty { padding: 22px; border: 1px dashed #dfe2e8; border-radius: 12px; color: #7c8491; font-size: 13px; text-align: center; }
.plan-usage-reset { margin: 18px 0 0; color: #9aa1ad; font-size: 11px; text-align: center; }
@media (max-width: 720px) {
  .plan-usage-dialog { padding: 28px 18px 22px; border-radius: 18px; }
  .plan-usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-usage-identity, .plan-usage-tracker-gate { align-items: flex-start; flex-direction: column; }
  .plan-usage-upgrade, .plan-usage-tracker-gate > button { width: 100%; }
}
@media (max-width: 480px) {
  .plan-usage-modal { padding: 10px; }
  .plan-usage-metrics { gap: 8px; }
  .plan-usage-metric { padding: 12px; }
  .plan-usage-upload { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-usage-upload-progress { grid-column: 1 / -1; }
}
.youtube-import-prompt-modal[hidden] { display: none; }
.youtube-import-prompt-modal {
  position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px;
  background: rgba(9, 12, 20, .64); backdrop-filter: blur(10px);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.youtube-import-prompt-dialog {
  position: relative; width: min(500px, 100%); padding: 34px 34px 28px; overflow: hidden;
  border: 1px solid rgba(255, 122, 0, .24); border-radius: 24px;
  background: linear-gradient(145deg, #fffaf5 0%, #fff 48%, #fff4e9 100%);
  box-shadow: 0 28px 90px rgba(35, 18, 8, .34); text-align: center;
}
.youtube-import-prompt-dialog::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #ff9c18, #ff4f16); }
.youtube-import-prompt-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #8a8f99; font-size: 25px; cursor: pointer; }
.youtube-import-prompt-mark { display: grid; place-items: center; width: 48px; height: 34px; margin: 0 auto 18px; border-radius: 11px; background: #ff1f1f; color: #fff; font-size: 18px; }
.youtube-import-prompt-kicker { color: #f25c16; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.youtube-import-prompt-dialog h2 { margin: 8px auto 10px; max-width: 390px; color: #121a2b; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.04em; line-height: 1.08; }
.youtube-import-prompt-dialog p { margin: 0 auto; max-width: 410px; color: #687184; font-size: 14px; line-height: 1.5; }
.youtube-import-prompt-benefits { display: grid; gap: 9px; margin: 22px 0; color: #4f596a; font-size: 13px; text-align: left; }
.youtube-import-prompt-benefits span { display: flex; align-items: center; gap: 9px; }
.youtube-import-prompt-benefits b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #d5f7e3; color: #118b4b; font-size: 12px; }
.youtube-import-prompt-primary { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: linear-gradient(110deg,#ff9c18,#ff4f16); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(255, 103, 19, .2); }
.youtube-import-prompt-primary:hover { filter: brightness(1.04); transform: translateY(-1px); }
.youtube-import-prompt-continue { margin-top: 13px; border: 0; background: transparent; color: #6f7786; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.youtube-import-prompt-footnote { margin-top: 18px !important; color: #9aa1ad !important; font-size: 11px !important; }
@media (max-width: 1050px) { .pricing-grid, body:not(.free-plan-enabled) .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pricing-card-featured { transform: none; } }
@media (max-width: 620px) { .pricing-modal { padding: 10px; } .pricing-dialog { padding: 30px 16px 20px; border-radius: 20px; } .pricing-grid, body:not(.free-plan-enabled) .pricing-grid { grid-template-columns: 1fr; } .pricing-card { min-height: auto; } }
