/* ── Transcribe Pro — SaveFree Style ───────────────────── */
#transcribe-pro-app {
  max-width: 780px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

/* ── Reset theme overrides ────────────────────────────── */
#transcribe-pro-app button,
#transcribe-pro-app input {
  font-family: inherit;
  line-height: 1.5;
}

/* ── Карточка ─────────────────────────────────────────── */
.trpro-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 32px;
}

/* ── Header / Hero ────────────────────────────────────── */
.trpro-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 8px 12px 0;
}

.trpro-hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4f46e5;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
}

.trpro-hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #111827;
  letter-spacing: -0.02em;
}

.trpro-hero-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trpro-hero-subtitle {
  color: #6b7280;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 520px;
}

/* ── Features row ─────────────────────────────────────── */
.trpro-features {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.trpro-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.trpro-feature-icon {
  font-size: 18px;
  line-height: 1;
}

/* ── User bar ─────────────────────────────────────────── */
.trpro-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
}

.trpro-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trpro-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.trpro-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trpro-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.trpro-badge-free { background: #e8f0fe; color: #1a73e8; }
.trpro-badge-premium { background: #fef7cd; color: #b45309; }

/* ── Tabs ──────────────────────────────────────────────── */
.trpro-tabs {
  display: flex;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

#transcribe-pro-app .trpro-tab {
  flex: 1;
  padding: 11px 16px;
  border: none;
  background: #f0f0f0 !important;
  font-size: 14px;
  font-weight: 500;
  color: #333 !important;
  cursor: pointer;
  transition: all 0.15s;
}

#transcribe-pro-app .trpro-tab:first-child { border-right: 2px solid #e5e7eb; }

#transcribe-pro-app .trpro-tab.active {
  background: #0073e6 !important;
  color: #fff !important;
}

#transcribe-pro-app .trpro-tab:not(.active):hover {
  background: #e0e0e0 !important;
  color: #111 !important;
}

/* ── URL Input ────────────────────────────────────────── */
.trpro-url-section {
  margin-bottom: 16px;
}

.trpro-input-wrap {
  display: flex;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.trpro-input-wrap:focus-within {
  border-color: #0073e6;
}

.trpro-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
  border: none;
  outline: none;
  background: transparent;
}

.trpro-input::placeholder { color: #bbb; }

.trpro-paste-btn {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f5f5f5;
  border: none;
  border-left: 2px solid #e0e0e0;
  cursor: pointer;
  color: #888;
  font-size: 18px;
  transition: background 0.15s;
}

.trpro-paste-btn:hover { background: #eee; }

.trpro-submit-row {
  margin-top: 12px;
}

#transcribe-pro-app .trpro-btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: #0073e6 !important;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#transcribe-pro-app .trpro-btn-submit:hover { background: #005bb5 !important; }
#transcribe-pro-app .trpro-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Dropzone ─────────────────────────────────────────── */
.trpro-dropzone {
  border: 2px dashed #d0d0d0;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
  background: #fafafa;
}

.trpro-dropzone:hover,
.trpro-dropzone.dragover {
  border-color: #0073e6;
  background: #f0f7ff;
}

.trpro-drop-icon { font-size: 40px; margin-bottom: 10px; display: block; }
.trpro-drop-title { font-size: 15px; font-weight: 500; color: #333; margin-bottom: 4px; }
.trpro-drop-sub { font-size: 13px; color: #999; }
.trpro-drop-formats { font-size: 12px; color: #bbb; margin-top: 8px; }

.trpro-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef2f7;
  border: 1px solid #d0d7e0;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.trpro-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.trpro-file-name-icon { font-size: 18px; }

.trpro-file-actions {
  display: flex;
  gap: 8px;
}

/* ── Progress ─────────────────────────────────────────── */
.trpro-progress {
  margin: 24px 0;
  text-align: center;
}

.trpro-progress-bar {
  height: 5px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.trpro-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0073e6, #42a5f5);
  border-radius: 3px;
  transition: width 0.5s ease;
  animation: trpro-shimmer 2s infinite;
}

@keyframes trpro-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.trpro-progress-label {
  font-size: 14px;
  color: #666;
}

.trpro-progress-label strong {
  color: #0073e6;
}

/* ── Result ───────────────────────────────────────────── */
.trpro-result {
  margin-top: 24px;
}

.trpro-result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.trpro-result-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #999;
}

.trpro-result-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trpro-export-bar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

#transcribe-pro-app .trpro-btn-export {
  padding: 6px 12px;
  border: 2px solid #ccc !important;
  border-radius: 6px;
  background: #f5f5f5 !important;
  font-size: 12px;
  font-weight: 600;
  color: #333 !important;
  cursor: pointer;
  transition: all 0.15s;
}

#transcribe-pro-app .trpro-btn-export:hover {
  border-color: #0073e6 !important;
  color: #0073e6 !important;
  background: #e8f0fe !important;
}

#transcribe-pro-app .trpro-btn-copy {
  background: #0073e6 !important;
  color: #fff !important;
  border-color: #0073e6 !important;
  position: relative;
}

#transcribe-pro-app .trpro-btn-copy:hover { background: #005bb5 !important; border-color: #005bb5 !important; }

.trpro-btn-copy.copied::after {
  content: '\2713';
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: #fff;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.trpro-transcript {
  background: #f9fafb;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  max-height: 450px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  color: #222;
}

.trpro-transcript::-webkit-scrollbar { width: 6px; }
.trpro-transcript::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ── Error ─────────────────────────────────────────────── */
.trpro-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin: 16px 0;
}

/* ── Login ─────────────────────────────────────────────── */
.trpro-login-section {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-top: 20px;
}

.trpro-login-section h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.trpro-login-section p {
  color: #888;
  font-size: 13px;
  margin: 0 0 14px;
}

#transcribe-pro-app .trpro-btn-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff !important;
  border: 2px solid #ddd !important;
  color: #333 !important;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

#transcribe-pro-app .trpro-btn-google:hover {
  border-color: #4285f4 !important;
  color: #333 !important;
  box-shadow: 0 2px 8px rgba(66,133,244,0.12);
}

.trpro-btn-google svg { width: 18px; height: 18px; }

/* ── Premium CTA ──────────────────────────────────────── */
.trpro-premium {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.trpro-premium h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #92400e;
}

.trpro-premium p {
  font-size: 13px;
  color: #a16207;
  margin: 0 0 12px;
}

#transcribe-pro-app .trpro-btn-premium {
  padding: 10px 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

#transcribe-pro-app .trpro-btn-premium:hover { background: linear-gradient(135deg, #d97706, #b45309) !important; }

/* ── Small buttons ────────────────────────────────────── */
#transcribe-pro-app .trpro-btn-sm {
  padding: 6px 14px;
  border: 2px solid #bbb !important;
  border-radius: 6px;
  background: #f0f0f0 !important;
  font-size: 12px;
  font-weight: 500;
  color: #333 !important;
  cursor: pointer;
  transition: all 0.15s;
}

#transcribe-pro-app .trpro-btn-sm:hover { border-color: #0073e6 !important; color: #0073e6 !important; background: #e8f0fe !important; }

#transcribe-pro-app .trpro-btn-sm-primary {
  background: #0073e6 !important;
  color: #fff !important;
  border-color: #0073e6 !important;
}

#transcribe-pro-app .trpro-btn-sm-primary:hover { background: #005bb5 !important; border-color: #005bb5 !important; }

.trpro-link {
  color: #0073e6;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}

.trpro-link:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .trpro-card { padding: 20px 16px; }
  .trpro-hero-title { font-size: 26px; }
  .trpro-hero-subtitle { font-size: 15px; }
  .trpro-hero-badge { font-size: 12px; margin-bottom: 10px; }
  .trpro-features { gap: 8px; }
  .trpro-feature { font-size: 13px; padding: 8px 12px; }
  .trpro-result-toolbar { flex-direction: column; align-items: flex-start; }
  .trpro-user-bar { flex-direction: column; gap: 6px; text-align: center; }
  .trpro-file-info { flex-direction: column; gap: 8px; text-align: center; }
  .trpro-tabs { flex-direction: column; }
  .trpro-tab:first-child { border-right: none; border-bottom: 2px solid #e5e7eb; }
}
