/* ── Transcribe Pro — Pricing Page ─────────────────── */
.trpro-pricing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.trpro-pricing * { box-sizing: border-box; }

/* ── Header ─────────────────────────────────────────── */
.trpro-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.trpro-pricing-title {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.trpro-pricing-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 24px;
    font-weight: 400;
}

/* ── Toggle (Monthly / Yearly) ─────────────────────── */
.trpro-pricing-toggle {
    display: inline-flex;
    background: #e8ecf1;
    border-radius: 999px;
    padding: 5px;
    gap: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.trpro-pricing-toggle-btn {
    padding: 11px 28px;
    border: none !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    background: transparent !important;
    color: #64748b !important;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: none !important;
    text-decoration: none !important;
}

.trpro-pricing-toggle-btn.active {
    background: #0073e6 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 115, 230, 0.35) !important;
}

.trpro-pricing-toggle-btn:hover:not(.active) {
    color: #334155 !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.trpro-pricing-save-badge {
    display: inline-block;
    background: #22c55e !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.trpro-pricing-toggle-btn.active .trpro-pricing-save-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0073e6 !important;
}

/* ── Cards Grid ─────────────────────────────────────── */
.trpro-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* ── Card ────────────────────────────────────────────── */
.trpro-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 0 0 24px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.trpro-pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

/* ── Popular Card ────────────────────────────────────── */
.trpro-pricing-card--popular {
    border: 2px solid #0073e6;
    box-shadow: 0 12px 36px rgba(0, 115, 230, 0.15);
    transform: scale(1.02);
    z-index: 1;
}

.trpro-pricing-card--popular:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 115, 230, 0.2);
}

/* ── Pro Card ────────────────────────────────────────── */
.trpro-pricing-card--pro {
    border-color: #fcd34d;
}

.trpro-pricing-card--pro .trpro-pricing-card-head {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.trpro-pricing-card--pro:hover {
    border-color: #f59e0b;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.12);
}

/* ── Badge ───────────────────────────────────────────── */
.trpro-pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #0073e6;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    text-align: center;
    border-radius: 16px 16px 0 0;
}

/* ── Card Head ───────────────────────────────────────── */
.trpro-pricing-card-head {
    text-align: center;
    padding: 28px 22px 22px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.trpro-pricing-card--popular .trpro-pricing-card-head {
    padding-top: 44px;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.trpro-pricing-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.trpro-pricing-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.trpro-pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.trpro-pricing-amount {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
    line-height: 1;
}

.trpro-pricing-period {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* ── Yearly note ─────────────────────────────────────── */
.trpro-pricing-yearly-note {
    font-size: 12px;
    color: #0073e6;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
}

.trpro-pricing-card--pro .trpro-pricing-yearly-note {
    color: #d97706;
}

/* ── Features ────────────────────────────────────────── */
.trpro-pricing-features {
    list-style: none;
    padding: 20px 22px 0;
    margin: 0 0 auto;
    flex: 1;
}

.trpro-pricing-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}

.trpro-pricing-feat--hl {
    font-weight: 600;
    color: #0f172a;
}

.trpro-pricing-feat--no {
    color: #94a3b8;
}

.trpro-pricing-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.trpro-pricing-feat--hl .trpro-pricing-check {
    background: #0073e6;
    color: #fff;
}

.trpro-pricing-card--pro .trpro-pricing-feat--hl .trpro-pricing-check {
    background: #f59e0b;
    color: #fff;
}

.trpro-pricing-x {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* ── CTA Button ──────────────────────────────────────── */
.trpro-pricing-cta-wrap {
    padding: 0 22px;
    margin-top: 20px;
}

.trpro-pricing-cta {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.35;
}

.trpro-pricing-cta--free {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.trpro-pricing-cta--free:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.trpro-pricing-cta--primary {
    background: linear-gradient(135deg, #0073e6, #005bb5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 115, 230, 0.35);
}

.trpro-pricing-cta--primary:hover {
    background: linear-gradient(135deg, #005bb5, #004a94);
    box-shadow: 0 6px 20px rgba(0, 115, 230, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.trpro-pricing-cta--pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.trpro-pricing-cta--pro:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.trpro-pricing-cta--current {
    background: #eff6ff;
    color: #0073e6;
    cursor: default;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.trpro-pricing-cta--soon {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.trpro-pricing-cta:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ── Guarantee ───────────────────────────────────────── */
.trpro-pricing-guarantee {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 28px;
    margin-bottom: 0;
}

.trpro-pricing-payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding-bottom: 4px;
}

.trpro-pricing-payments-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trpro-pricing-pay-img {
    display: block !important;
    width: auto !important;
    height: 44px !important;
    max-width: none !important;
    max-height: 44px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.trpro-pricing-pay-img--mono {
    height: 32px !important;
    max-height: 32px !important;
}

/* ── Modal context ───────────────────────────────────── */
.trpro-pricing--modal {
    padding: 0;
    max-width: none;
}

.trpro-pricing--modal .trpro-pricing-header {
    margin-bottom: 28px;
}

.trpro-pricing--modal .trpro-pricing-title {
    font-size: 26px;
}

.trpro-pricing--modal .trpro-pricing-grid {
    gap: 16px;
}

.trpro-pricing--modal .trpro-pricing-card--popular {
    transform: none;
}

.trpro-pricing--modal .trpro-pricing-card--popular:hover {
    transform: translateY(-3px);
}

.trpro-pricing--modal .trpro-pricing-amount {
    font-size: 32px;
}

.trpro-pricing--modal .trpro-pricing-feat {
    font-size: 12px;
    padding: 5px 0;
}

.trpro-pricing--modal .trpro-pricing-features {
    padding-top: 16px;
}

/* ── Theme reset: lock colors (Elementor / WP templates) ── */
.trpro-pricing .trpro-pricing-title {
    color: #0f172a !important;
}

.trpro-pricing .trpro-pricing-subtitle,
.trpro-pricing .trpro-pricing-desc,
.trpro-pricing .trpro-pricing-period,
.trpro-pricing .trpro-pricing-guarantee {
    color: #64748b !important;
}

.trpro-pricing .trpro-pricing-name,
.trpro-pricing .trpro-pricing-amount {
    color: #0f172a !important;
}

.trpro-pricing .trpro-pricing-feat {
    color: #334155 !important;
}

.trpro-pricing .trpro-pricing-feat--hl {
    color: #0f172a !important;
}

.trpro-pricing .trpro-pricing-feat--no {
    color: #94a3b8 !important;
}

.trpro-pricing .trpro-pricing-toggle-btn {
    color: #64748b !important;
    background: transparent !important;
}

.trpro-pricing .trpro-pricing-toggle-btn.active,
.trpro-pricing .trpro-pricing-toggle-btn.active:hover {
    color: #fff !important;
    background: #0073e6 !important;
}

.trpro-pricing .trpro-pricing-toggle-btn:hover:not(.active) {
    color: #334155 !important;
}

.trpro-pricing .trpro-pricing-save-badge {
    color: #fff !important;
}

.trpro-pricing .trpro-pricing-pay-img {
    width: auto !important;
    height: 44px !important;
    max-width: none !important;
    max-height: 44px !important;
    object-fit: contain !important;
}

.trpro-pricing .trpro-pricing-pay-img--mono {
    height: 32px !important;
    max-height: 32px !important;
}

.trpro-pricing .trpro-pricing-toggle-btn:not(.active) .trpro-pricing-save-badge {
    color: #fff !important;
}

.trpro-pricing .trpro-pricing-toggle-btn.active .trpro-pricing-save-badge {
    color: #0073e6 !important;
}

.trpro-pricing .trpro-pricing-cta--primary,
.trpro-pricing .trpro-pricing-cta--pro {
    color: #fff !important;
}

.trpro-pricing .trpro-pricing-cta--free,
.trpro-pricing .trpro-pricing-cta--current {
    color: #334155 !important;
}

.trpro-pricing .trpro-pricing-cta--current {
    color: #0073e6 !important;
}

.trpro-pricing .trpro-pricing-cta--soon {
    color: #94a3b8 !important;
}

.trpro-pricing .trpro-pricing-yearly-note {
    color: #0073e6 !important;
}

.trpro-pricing .trpro-pricing-card--pro .trpro-pricing-yearly-note {
    color: #d97706 !important;
}

.trpro-pricing .trpro-pricing-badge {
    color: #fff !important;
}

/* ── Theme reset inside dashboard modal ─────────────── */
.trdash-pricing-shell .trpro-pricing-title,
.trdash-pricing-shell .trpro-pricing-name,
.trdash-pricing-shell .trpro-pricing-amount,
.trdash-pricing-shell .trpro-pricing-feat,
.trdash-pricing-shell .trpro-pricing-desc,
.trdash-pricing-shell .trpro-pricing-period,
.trdash-pricing-shell .trpro-pricing-guarantee {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.trdash-pricing-shell .trpro-pricing-title,
.trdash-pricing-shell .trpro-pricing-name,
.trdash-pricing-shell .trpro-pricing-amount {
    color: #0f172a !important;
}

.trdash-pricing-shell .trpro-pricing-desc,
.trdash-pricing-shell .trpro-pricing-period,
.trdash-pricing-shell .trpro-pricing-guarantee {
    color: #64748b !important;
}

.trdash-pricing-shell .trpro-pricing-feat {
    color: #334155 !important;
}

.trdash-pricing-shell .trpro-pricing-feat--hl {
    color: #0f172a !important;
}

.trdash-pricing-shell .trpro-pricing-cta--primary,
.trdash-pricing-shell .trpro-pricing-cta--pro {
    color: #fff !important;
}

.trdash-pricing-shell .trpro-pricing-cta--free {
    color: #334155 !important;
}

.trdash-pricing-shell .trpro-pricing-toggle-btn {
    color: #64748b !important;
    background: transparent !important;
}

.trdash-pricing-shell .trpro-pricing-toggle-btn.active,
.trdash-pricing-shell .trpro-pricing-toggle-btn.active:hover {
    color: #fff !important;
    background: #0073e6 !important;
}

.trdash-pricing-shell .trpro-pricing-toggle-btn:hover:not(.active) {
    color: #334155 !important;
}

.trdash-pricing-shell .trpro-pricing-toggle-btn.active .trpro-pricing-save-badge {
    color: #0073e6 !important;
}

.trdash-pricing-shell .trpro-pricing-toggle-btn:not(.active) .trpro-pricing-save-badge {
    color: #fff !important;
}

/* ── Pricing popup overlay (dashboard + homepage) ───── */
.trdash-pricing-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: trdash-pricing-fade 0.2s ease;
}

@keyframes trdash-pricing-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.trdash-pricing-open {
    overflow: hidden;
}

.trdash-pricing-shell {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: auto;
    background: #f8fafc;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    padding: 28px 28px 24px;
    animation: trdash-pricing-slide 0.25s ease;
}

@keyframes trdash-pricing-slide {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.trdash-pricing-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none !important;
    border-radius: 50%;
    background: #fff !important;
    color: #64748b !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.15s, color 0.15s;
}

.trdash-pricing-close:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

.trdash-pricing-shell .trpro-pricing {
    padding: 8px 4px 0;
    max-width: none;
}

.trdash-pricing-shell .trpro-pricing-title {
    font-size: 28px;
    margin-bottom: 8px;
    padding-right: 44px;
}

.trdash-pricing-shell .trpro-pricing-guarantee {
    margin-top: 20px;
    margin-bottom: 4px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
    .trpro-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .trpro-pricing-card--popular {
        order: -1;
        transform: none;
    }

    .trpro-pricing-card--popular:hover {
        transform: translateY(-3px);
    }

    .trdash-pricing-shell {
        padding: 22px 18px 18px;
        border-radius: 20px;
    }

    .trdash-pricing-shell .trpro-pricing-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .trdash-pricing-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .trdash-pricing-shell {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        overflow-y: auto;
        padding: 20px 16px 16px;
    }

    .trpro-pricing-toggle-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .trpro-pricing {
        padding: 24px 16px 40px;
    }

    .trpro-pricing-title {
        font-size: 24px;
    }

    .trpro-pricing-amount {
        font-size: 30px;
    }

    .trpro-pricing-cta {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ── Dark theme support (Elementor dark sections) ──── */
.elementor-section-dark .trpro-pricing-title,
.elementor-section-dark .trpro-pricing-name,
.elementor-section-dark .trpro-pricing-amount {
    color: #fff;
}

.elementor-section-dark .trpro-pricing-subtitle,
.elementor-section-dark .trpro-pricing-desc,
.elementor-section-dark .trpro-pricing-period {
    color: #aaa;
}
