/* ThumbAI — Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

.ta-wrap { max-width: 680px; margin: 0 auto; padding: 1rem 0; }
.ta-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.ta-label { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.ta-input, .ta-wrap textarea, .ta-wrap input[type="text"],
.ta-wrap input[type="email"], .ta-wrap input[type="password"],
.ta-wrap select {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid #d1d5db; border-radius: 8px;
  background: #f9fafb; color: #111827; font-family: inherit;
  box-sizing: border-box; margin-bottom: 8px;
}
.ta-wrap textarea { resize: vertical; min-height: 72px; }
.ta-wrap input[type="range"] { width: 100%; }

.ta-btn-main {
  width: 100%; padding: 13px; background: #111827; color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; margin-top: 6px;
}
.ta-btn-main:disabled { opacity: .45; cursor: not-allowed; }
.ta-btn-sm { font-size: 13px; padding: 6px 14px; background: #111827; color: #fff;
  border-radius: 8px; text-decoration: none; }
.ta-link { font-size: 13px; color: #6b7280; text-decoration: none; }
.ta-link:hover { text-decoration: underline; }

.ta-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ta-kbd-bar { display: flex; gap: 6px; margin-bottom: 6px; }
.ta-kbd { font-size: 12px; padding: 3px 10px; border: 1px solid #d1d5db;
  border-radius: 6px; background: transparent; color: #6b7280; cursor: pointer; }
.ta-kbd.active { background: #111827; color: #fff; border-color: #111827; }

.ta-clr { width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; flex-shrink: 0; display: inline-block; }
.ta-clr.sel { border-color: #111827; }
.ta-colors { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.ta-align { flex: 1; padding: 6px; border: 1px solid #d1d5db; border-radius: 6px;
  background: transparent; cursor: pointer; font-size: 13px; }
.ta-align.sel { background: #f3f4f6; border-color: #9ca3af; font-weight: 600; }

.ta-preset { font-size: 11px; padding: 4px 10px; border: 1px solid #d1d5db;
  border-radius: 20px; background: transparent; cursor: pointer; color: #374151; }
.ta-preset-rec { border-color: #10b981; color: #065f46; background: #ecfdf5; }

.ta-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ta-user-bar { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.ta-credits-badge { background: #dbeafe; color: #1e40af; font-size: 12px;
  padding: 3px 10px; border-radius: 20px; font-weight: 600; }

.ta-status { font-size: 13px; color: #6b7280; margin: 8px 0; min-height: 18px; }

.ta-result-label { font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.ta-result-title { font-size: 20px; font-weight: 700; color: #111827; line-height: 1.4; }
.ta-result-body  { font-size: 15px; color: #374151; line-height: 1.6; }
.ta-hashtag-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.ta-tag { background: #eff6ff; color: #1d4ed8; font-size: 12px; padding: 4px 10px; border-radius: 20px; }
.ta-copy-btn { font-size: 12px; padding: 3px 10px; border: 1px solid #d1d5db; border-radius: 6px;
  background: transparent; cursor: pointer; color: #6b7280; }

.ta-img-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; }
.ta-img-box { text-align: center; }
.ta-img-label { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.ta-img-placeholder { background: #f3f4f6; border-radius: 8px; padding: 40px 16px;
  text-align: center; font-size: 13px; color: #9ca3af; }
.ta-download-btn { display: block; margin-top: 8px; padding: 7px; text-align: center;
  background: #111827; color: #fff; border-radius: 8px; font-size: 13px;
  text-decoration: none; }

/* Pricing */
.ta-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.ta-plan-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 1.5rem; position: relative; }
.ta-plan-featured { border-color: #6366f1; border-width: 2px; }
.ta-plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #6366f1; color: #fff; font-size: 11px; padding: 3px 12px; border-radius: 20px;
  font-weight: 600; white-space: nowrap; }
.ta-plan-name  { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ta-plan-price { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.ta-plan-price span { font-size: 14px; font-weight: 400; color: #6b7280; }
.ta-plan-credits { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.ta-plan-features { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13px; }
.ta-plan-features li::before { content: '✓ '; color: #10b981; font-weight: 700; }
.ta-plan-features li { margin-bottom: 6px; }
.ta-btn-plan { width: 100%; padding: 11px; background: #111827; color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; display: block; text-decoration: none; }
.ta-plan-featured .ta-btn-plan { background: #6366f1; }

/* Dashboard */
.ta-history-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; }
.ta-job-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem; }
.ta-job-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ta-job-meta { font-size: 12px; color: #9ca3af; }
.ta-dl-link { font-size: 12px; padding: 4px 10px; border: 1px solid #d1d5db;
  border-radius: 6px; text-decoration: none; color: #374151; }
.ta-empty { text-align: center; padding: 3rem; color: #9ca3af; font-size: 15px; }

/* Auth */
.ta-auth-wrap { display: flex; justify-content: center; padding: 2rem 1rem; }
.ta-auth-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 2rem; width: 100%; max-width: 400px; }
.ta-auth-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.ta-auth-tab { flex: 1; padding: 10px; border: none; background: transparent;
  cursor: pointer; font-size: 14px; font-family: inherit; }
.ta-auth-tab.active { background: #111827; color: #fff; }
.ta-auth-msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.ta-auth-success { background: #ecfdf5; color: #065f46; }
.ta-auth-error   { background: #fef2f2; color: #991b1b; }
.hidden { display: none !important; }
