/* ylishi.tools Premium Paywall Styles */
#ylt-paywall-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 99999; display: flex; align-items: center; justify-content: center;
}
.ylt-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.ylt-modal {
  position: relative; background: #fff; border-radius: 16px;
  padding: 32px 28px; max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  animation: yltSlideIn 0.3s ease;
}
@keyframes yltSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ylt-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 24px; cursor: pointer; color: #999; line-height: 1;
}
.ylt-close:hover { color: #333; }
.ylt-icon { font-size: 48px; margin-bottom: 12px; }
.ylt-modal h3 { margin: 0 0 8px; font-size: 1.3em; color: #232F3E; }
.ylt-modal p { margin: 4px 0; color: #555; font-size: 0.95em; }
.ylt-sub { color: #888 !important; font-size: 0.85em !important; margin-bottom: 16px !important; }
.ylt-plans { display: flex; gap: 12px; margin: 16px 0; }
.ylt-plan {
  flex: 1; border: 2px solid #e5e7eb; border-radius: 10px;
  padding: 14px 10px; position: relative; transition: border-color 0.2s;
}
.ylt-plan:hover { border-color: #FF9900; }
.ylt-featured { border-color: #FF9900; background: #fffbeb; }
.ylt-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #FF9900; color: #232F3E; padding: 2px 10px;
  border-radius: 10px; font-size: 0.7em; font-weight: 700; white-space: nowrap;
}
.ylt-plan-name { font-size: 0.85em; color: #666; margin-bottom: 4px; }
.ylt-price { font-size: 1.4em; font-weight: 800; color: #232F3E; }
.ylt-price span { font-size: 0.5em; font-weight: 400; color: #999; }
.ylt-price-cny { font-size: 0.8em; color: #999; }
.ylt-btn-upgrade {
  display: block; width: 100%; padding: 14px; margin: 16px 0 12px;
  background: #FF9900; color: #232F3E; text-decoration: none;
  border-radius: 8px; font-weight: 700; font-size: 1.05em;
  transition: background 0.2s;
}
.ylt-btn-upgrade:hover { background: #e68a00; }
.ylt-license-row {
  display: flex; gap: 8px; margin-top: 8px;
}
.ylt-license-row input {
  flex: 1; padding: 10px 12px; border: 2px solid #D5D9D9;
  border-radius: 8px; font-size: 0.9em; outline: none;
}
.ylt-license-row input:focus { border-color: #FF9900; }
.ylt-license-row button {
  padding: 10px 16px; background: #232F3E; color: #fff;
  border: none; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.ylt-license-row button:hover { background: #1a2533; }
.ylt-msg { font-size: 0.85em; margin-top: 8px; min-height: 1.2em; }

/* Usage badge (optional, for tools to show remaining uses) */
.ylt-usage-badge {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font-size: 0.75em; font-weight: 600; margin-left: 6px;
  background: #f0fdf4; color: #059669; border: 1px solid #86efac;
}
.ylt-usage-badge.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.ylt-usage-badge.limit { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.ylt-usage-badge.premium { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
