/* =========================================================
   TRANSCRIPTIONS PAGE
========================================================= */

.transcriptions-main {
  padding: 20px;
}

.transcriptions-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.transcriptions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 24px;
}

.transcriptions-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.transcriptions-heading-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 15px;

  background: #eff6ff;
  color: #2563eb;
}

.transcriptions-heading-icon .icon {
  width: 24px;
  height: 24px;
}

.transcriptions-title {
  margin: 0;

  font-size: 25px;
  font-weight: 750;
  line-height: 1.3;

  color: #172033;
}

.transcriptions-subtitle {
  max-width: 650px;

  margin: 5px 0 0;

  font-size: 14px;
  line-height: 1.5;

  color: #64748b;
}

.transcriptions-count {
  flex-shrink: 0;

  padding: 8px 12px;

  border-radius: 10px;

  background: #f1f5f9;

  color: #475569;

  font-size: 13px;
  font-weight: 650;
}


/* =========================================================
   JOB LIST
========================================================= */

.transcription-jobs {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;
}


/* =========================================================
   JOB CARD
========================================================= */

.transcription-job-card {
  display: flex;
  flex-direction: column;

  padding: 18px;

  background: #ffffff;

  border: 1px solid #e4eaf1;
  border-radius: 18px;

  box-shadow:
    0 4px 18px rgba(15, 23, 42, 0.04);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.transcription-job-card:hover {
  transform: translateY(-2px);

  border-color: #d6e1ef;

  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   TOP
========================================================= */

.transcription-job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;

  padding-bottom: 16px;

  border-bottom: 1px solid #edf1f5;
}

.transcription-job-type {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.transcription-job-icon {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #eff6ff;
  color: #2563eb;
}

.transcription-job-icon .icon {
  width: 20px;
  height: 20px;
}

.transcription-job-label {
  display: block;

  margin-bottom: 3px;

  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;

  color: #64748b;
}

.transcription-job-title {
  margin: 0;

  color: #172033;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.transcription-job-earning {
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 1px;
}

.transcription-job-earning span {
  font-size: 11px;
  color: #94a3b8;
}

.transcription-job-earning strong {
  font-size: 18px;
  font-weight: 800;

  color: #16a34a;

  white-space: nowrap;
}


/* =========================================================
   META
========================================================= */

.transcription-job-meta {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  padding: 16px 0;
}

.transcription-job-meta-item {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 8px;
}

.transcription-job-meta-icon {
  width: 30px;
  height: 30px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: #f8fafc;
  color: #64748b;
}

.transcription-job-meta-icon .icon {
  width: 15px;
  height: 15px;
}

.transcription-job-meta-label {
  display: block;

  margin-bottom: 1px;

  font-size: 10px;

  color: #94a3b8;
}

.transcription-job-meta-value {
  display: block;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #334155;

  font-size: 12px;
  font-weight: 650;
}


/* =========================================================
   INSTRUCTIONS
========================================================= */

.transcription-job-instructions {
  padding: 12px 13px;

  border-radius: 12px;

  background: #f8fafc;
}

.transcription-job-instructions-label {
  display: block;

  margin-bottom: 5px;

  font-size: 11px;
  font-weight: 700;

  color: #475569;
}

.transcription-job-instructions p {
  display: -webkit-box;

  margin: 0;

  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  color: #64748b;

  font-size: 12px;
  line-height: 1.5;
}


/* =========================================================
   FOOTER
========================================================= */

.transcription-job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-top: 16px;
}

.transcription-job-due {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.transcription-job-due span {
  font-size: 10px;
  color: #94a3b8;
}

.transcription-job-due strong {
  font-size: 12px;
  font-weight: 650;
  color: #475569;
}

.transcription-job-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 38px;

  padding: 8px 14px;

  border: 0;
  border-radius: 10px;

  background: #2563eb;
  color: #ffffff;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.18s ease;
}

.transcription-job-btn:hover {
  background: #1d4ed8;

  transform: translateY(-1px);
}

.transcription-job-btn:active {
  transform: translateY(0);
}

.transcription-job-btn .icon {
  width: 15px;
  height: 15px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.transcriptions-empty {
  min-height: 300px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 30px;

  text-align: center;
}

.transcriptions-empty-icon {
  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;

  border-radius: 50%;

  background: #eff6ff;
  color: #2563eb;
}

.transcriptions-empty-icon .icon {
  width: 26px;
  height: 26px;
}

.transcriptions-empty-title {
  margin: 0;

  font-size: 17px;
  font-weight: 700;

  color: #172033;
}

.transcriptions-empty-text {
  max-width: 390px;

  margin: 7px 0 0;

  font-size: 13px;
  line-height: 1.6;

  color: #64748b;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .transcription-jobs {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .transcriptions-main {
    padding: 15px;
  }

  .transcriptions-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .transcriptions-title {
    font-size: 21px;
  }

  .transcriptions-subtitle {
    font-size: 13px;
  }

  .transcriptions-count {
    width: fit-content;
  }

  .transcription-job-card {
    padding: 15px;
  }

  .transcription-job-meta {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .transcription-job-top {
    gap: 10px;
  }

  .transcription-job-earning strong {
    font-size: 16px;
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

  .transcription-job-top {
    flex-direction: column;
  }

  .transcription-job-earning {
    align-items: flex-start;
  }

  .transcription-job-meta {
    grid-template-columns: 1fr;
  }

  .transcription-job-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .transcription-job-btn {
    width: 100%;
  }

}

/* ==========================================================================
   Safaricom-style theme
   Brand palette: Safaricom Green #00A651 / #00913F, dark ink #0B2B26,
   soft mint backgrounds, M-PESA red accent for payment CTAs.
   ========================================================================== */

:root {
  --saf-green: #00A651;
  --saf-green-dark: #00843C;
  --saf-green-darker: #046A31;
  --saf-mint-50: #EAFBF2;
  --saf-mint-100: #D3F5E3;
  --saf-ink: #0B2B26;
  --saf-ink-soft: #3E5C55;
  --saf-mpesa-red: #E4002B;
  --saf-mpesa-red-dark: #B8001F;
  --saf-gray-100: #F4F7F6;
  --saf-gray-200: #E4EAE8;
  --saf-white: #FFFFFF;
  --saf-shadow: 0 20px 45px rgba(4, 30, 20, 0.18);
  --saf-radius-lg: 20px;
  --saf-radius-md: 14px;
  --saf-radius-sm: 10px;
}

/* ==========================================================================
   OVERLAY
   ========================================================================== */

.translation-unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at top, rgba(0, 166, 81, 0.25), rgba(6, 20, 16, 0.72) 65%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 0.25s ease;
}

.translation-unlock-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.translation-unlock-modal {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--saf-white);
  border-radius: var(--saf-radius-lg);
  box-shadow: var(--saf-shadow);
  border: 1px solid rgba(0, 166, 81, 0.15);
  animation: safModalPop 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.1);
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--saf-ink);
}

@keyframes safModalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.translation-unlock-modal::-webkit-scrollbar { width: 8px; }
.translation-unlock-modal::-webkit-scrollbar-thumb {
  background: var(--saf-mint-100);
  border-radius: 8px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.translation-unlock-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 24px 18px;
  background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-darker) 100%);
  border-radius: var(--saf-radius-lg) var(--saf-radius-lg) 0 0;
  color: var(--saf-white);
  position: relative;
  overflow: hidden;
}

.translation-unlock-header::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.translation-unlock-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 20px;
}

.translation-unlock-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.translation-unlock-header p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.translation-unlock-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--saf-white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.translation-unlock-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ==========================================================================
   MESSAGE
   ========================================================================== */

.translation-unlock-message {
  padding: 18px 24px 0;
}

.translation-unlock-message strong {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--saf-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.translation-unlock-message p {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--saf-ink-soft);
}

/* ==========================================================================
   PRICE BOX
   ========================================================================== */

.translation-unlock-price-box {
  margin: 18px 24px 0;
  padding: 20px;
  text-align: center;
  background: linear-gradient(160deg, var(--saf-mint-50) 0%, var(--saf-mint-100) 100%);
  border: 1px dashed var(--saf-green);
  border-radius: var(--saf-radius-md);
  position: relative;
}

.translation-unlock-offer {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--saf-white);
  background: var(--saf-mpesa-red);
  border-radius: 999px;
}

.translation-unlock-old-price {
  font-size: 15px;
  color: #9AA8A3;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.translation-unlock-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--saf-green-darker);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.translation-unlock-savings {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--saf-mpesa-red-dark);
}

.translation-unlock-price-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--saf-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PAYMENT METHOD
   ========================================================================== */

.translation-payment-section {
  padding: 20px 24px 0;
}

.translation-payment-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--saf-ink);
}

.translation-payment-method {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--saf-white);
  border: 1.5px solid var(--saf-gray-200);
  border-radius: var(--saf-radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.translation-payment-method.active {
  border-color: var(--saf-green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
  background: var(--saf-mint-50);
}

.translation-payment-method-icon {
  font-size: 20px;
}

.translation-payment-method strong {
  display: block;
  font-size: 13.5px;
  color: var(--saf-ink);
}

.translation-payment-method small {
  display: block;
  font-size: 11.5px;
  color: var(--saf-ink-soft);
}

.translation-payment-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saf-green);
  color: var(--saf-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

/* ==========================================================================
   STK PUSH SECTION
   ========================================================================== */

.translation-stk-section {
  padding: 18px 24px 0;
}

.translation-stk-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--saf-ink);
}

.translation-stk-input-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--saf-gray-200);
  border-radius: var(--saf-radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.translation-stk-input-row:focus-within {
  border-color: var(--saf-green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
}

.translation-stk-prefix {
  padding: 0 12px;
  font-size: 15px;
  background: var(--saf-gray-100);
  height: 44px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--saf-gray-200);
}

.translation-stk-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: none;
  outline: none;
  font-size: 14.5px;
  color: var(--saf-ink);
  background: transparent;
}

.translation-stk-input::placeholder {
  color: #A9B6B1;
}

.translation-stk-btn {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border: none;
  border-radius: var(--saf-radius-sm);
  background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
  color: var(--saf-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 166, 81, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.translation-stk-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 22px rgba(0, 166, 81, 0.42);
}

.translation-stk-btn:active {
  transform: translateY(0);
}

.translation-stk-btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  transform: none;
  box-shadow: none;
}

.translation-stk-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--saf-white);
  border-radius: 50%;
  animation: safSpin 0.7s linear infinite;
}

@keyframes safSpin {
  to { transform: rotate(360deg); }
}

.translation-stk-hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--saf-ink-soft);
  text-align: center;
}

/* ==========================================================================
   MANUAL PAYMENT SECTION
   ========================================================================== */

.translation-manual-section {
  margin: 18px 24px 0;
  padding-top: 16px;
  border-top: 1px dashed var(--saf-gray-200);
  display: none; /* toggled by JS */
}

.translation-manual-section.is-open {
  display: block;
}

.translation-payment-instructions h4 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--saf-ink);
}

.translation-payment-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--saf-ink-soft);
  line-height: 1.5;
}

.translation-payment-step-number {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saf-mint-100);
  color: var(--saf-green-darker);
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
}

.translation-payment-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--saf-mint-50);
  border-radius: var(--saf-radius-sm);
  font-size: 13.5px;
  color: var(--saf-ink);
}

.translation-payment-amount strong {
  font-size: 16px;
  color: var(--saf-green-darker);
}

.translation-payment-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  background: #FFF8E6;
  border: 1px solid #F5DFA0;
  border-radius: var(--saf-radius-sm);
  font-size: 12px;
  color: #7A5B00;
  line-height: 1.5;
}

.translation-manual-whatsapp-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--saf-radius-sm);
  background: #25D366;
  color: var(--saf-white);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.translation-manual-whatsapp-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ==========================================================================
   ACTIONS
   ========================================================================== */

.translation-unlock-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 24px 24px;
}

.translation-unlock-cancel {
  padding: 11px 18px;
  border: 1.5px solid var(--saf-gray-200);
  border-radius: var(--saf-radius-sm);
  background: var(--saf-white);
  color: var(--saf-ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.translation-unlock-cancel:hover {
  border-color: #C9D3D0;
  color: var(--saf-ink);
}

.translation-unlock-manual-toggle {
  padding: 11px 16px;
  border: none;
  background: none;
  color: var(--saf-green-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.translation-unlock-manual-toggle:hover {
  color: var(--saf-green-darker);
}

/* ==========================================================================
   PREMIUM OVERLAY (on locked job cards)
   ========================================================================== */

.translation-job-card {
  position: relative;
}

.translation-premium-disabled {
  pointer-events: none;
  user-select: none;
}

.translation-premium-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(11, 43, 38, 0.55) 0%, rgba(11, 43, 38, 0.82) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: inherit;
  pointer-events: auto; /* re-enable the upgrade button */
}

.translation-premium-card {
  width: 100%;
  max-width: 260px;
  text-align: center;
  padding: 22px 18px;
  background: var(--saf-white);
  border-radius: var(--saf-radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  animation: safPremiumFloat 0.3s ease;
}

@keyframes safPremiumFloat {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.translation-premium-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
  color: var(--saf-white);
  border-radius: 50%;
  font-size: 20px;
}

.translation-premium-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--saf-white);
  background: var(--saf-mpesa-red);
  border-radius: 999px;
}

.translation-premium-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--saf-ink);
}

.translation-premium-text {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--saf-ink-soft);
}

.translation-upgrade-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: none;
  border-radius: var(--saf-radius-sm);
  background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
  color: var(--saf-white);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 166, 81, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.translation-upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 166, 81, 0.4);
}

.translation-upgrade-btn span {
  display: inline-flex;
  transition: transform 0.15s ease;
}

.translation-upgrade-btn:hover span {
  transform: translateX(3px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
  .translation-unlock-modal { max-width: 100%; border-radius: var(--saf-radius-md); }
  .translation-unlock-header { border-radius: var(--saf-radius-md) var(--saf-radius-md) 0 0; }
  .translation-unlock-price { font-size: 28px; }
}

/* ==========================================================================
   TASK MODAL (view + submit a translation job)
   ========================================================================== */

.translation-task-modal {
  max-width: 480px;
}

.translation-task-body {
  padding: 18px 24px 0;
}

.translation-task-source {
  margin: 8px 0 16px;
  padding: 14px;
  background: var(--saf-gray-100);
  border: 1px solid var(--saf-gray-200);
  border-radius: var(--saf-radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--saf-ink);
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.translation-task-input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--saf-gray-200);
  border-radius: var(--saf-radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--saf-ink);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.translation-task-input:focus {
  outline: none;
  border-color: var(--saf-green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
}

.translation-task-input::placeholder {
  color: #A9B6B1;
}

/* ==========================================================================
   TRANSCRIPTION PREMIUM OVERLAY (on locked job cards)
   ========================================================================== */

.transcription-job-card {
  position: relative;
}

.transcription-premium-disabled {
  pointer-events: none;
  user-select: none;
}

.transcription-premium-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(11, 43, 38, 0.55) 0%, rgba(11, 43, 38, 0.82) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: inherit;
  pointer-events: auto;
}

.transcription-premium-card {
  width: 100%;
  max-width: 260px;
  text-align: center;
  padding: 22px 18px;
  background: var(--saf-white);
  border-radius: var(--saf-radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  animation: safPremiumFloat 0.3s ease;
}

.transcription-premium-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
  color: var(--saf-white);
  border-radius: 50%;
  font-size: 20px;
}

.transcription-premium-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--saf-white);
  background: var(--saf-mpesa-red);
  border-radius: 999px;
}

.transcription-premium-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--saf-ink);
}

.transcription-premium-text {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--saf-ink-soft);
}

.transcription-upgrade-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: none;
  border-radius: var(--saf-radius-sm);
  background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
  color: var(--saf-white);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 166, 81, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.transcription-upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 166, 81, 0.4);
}

.transcription-upgrade-btn span {
  display: inline-flex;
  transition: transform 0.15s ease;
}

.transcription-upgrade-btn:hover span {
  transform: translateX(3px);
}

.transcription-job-locked-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--saf-ink-soft);
  background: var(--saf-gray-100);
  border-radius: var(--saf-radius-sm);
}

/* ==========================================================================
   TRANSCRIPTION AUDIO PLAYER (task submit modal)
   ========================================================================== */

.transcription-task-audio {
  display: none; /* controlled via custom buttons below */
}

.transcription-audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 12px;
}

.transcription-audio-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--saf-gray-200);
  border-radius: 50%;
  background: var(--saf-white);
  color: var(--saf-ink);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.transcription-audio-btn:hover {
  border-color: var(--saf-green);
  transform: translateY(-1px);
}

.transcription-audio-btn-primary {
  width: 64px;
  height: 64px;
  border: none;
  background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
  color: var(--saf-white);
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(0, 166, 81, 0.35);
}

.transcription-audio-btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.transcription-audio-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--saf-ink-soft);
}

.transcription-audio-track {
  flex: 1;
  height: 6px;
  background: var(--saf-gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.transcription-audio-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.transcription-submit-hint {
  margin: 4px 0 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #7A5B00;
  background: #FFF8E6;
  border: 1px solid #F5DFA0;
  border-radius: var(--saf-radius-sm);
  text-align: center;
}

.transcription-submit-hint-ready {
  color: var(--saf-green-darker);
  background: var(--saf-mint-50);
  border-color: var(--saf-green);
}

.transcription-audio-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Disabled submit button */
#submitTranscriptionTaskBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
  box-shadow: none;
  transform: none;
}

/* Optional: make the disabled text slightly muted */
#submitTranscriptionTaskBtn:disabled {
  color: rgba(255, 255, 255, 0.7);
}

/* Ready to submit */
#submitTranscriptionTaskBtn:not(:disabled) {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
  filter: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

/* Nice hover once enabled */
#submitTranscriptionTaskBtn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.transcriptions-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  /*background:transparent;*/
}

.transcriptions-empty-icon .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  /*font-size:3em;*/
}

.transcriptions-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transcriptions-empty-icon-svg {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transcriptions-empty-icon-svg svg {
  width: 100%;
  height: 100%;
}

.transcription-audio-progress {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.transcription-audio-time {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.transcription-audio-track {
  position: relative;
  height: 8px;
  width: 100%;
  border-radius: 999px;
  background: #dbe3ee;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.transcription-audio-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  pointer-events: none;
}

.transcription-audio-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.1s ease;
}

.transcription-audio-track:hover .transcription-audio-thumb {
  transform: translate(-50%, -50%) scale(1.2);
}

.transcription-audio-track:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 4px;
}