/*
 * SubtitleVideo theme: shared look for every page (loaded by css/style.css).
 * Only restyles shared Bootstrap 4 pieces (navbar, buttons, inputs, cards,
 * footer); page markup and form ids are untouched.
 */
:root {
    --sv-ink: #0f172a;
    --sv-muted: #556179;
    --sv-line: #e4e9f2;
    --sv-bg: #f6f8fc;
    --sv-card: #ffffff;
    --sv-primary: #2f5bff;
    --sv-primary-dark: #1f44d6;
    --sv-accent: #ff4d6d;
    --sv-success: #12b886;
    --sv-radius: 14px;
    --sv-shadow: 0 10px 30px rgba(15, 23, 42, .07);
    --sv-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: var(--sv-bg) !important;
    color: var(--sv-ink);
    font-family: var(--sv-font);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--sv-ink); letter-spacing: -.01em; }
a { color: var(--sv-primary); }
a:hover { color: var(--sv-primary-dark); }

/* ---------- Navbar ---------- */
.sv-navbar {
    background: rgba(255, 255, 255, .92) !important;
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border: 1px solid var(--sv-line);
    border-radius: var(--sv-radius);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
    padding: .5rem 1rem;
    margin-top: 6px;
}
.sv-navbar .nav-link { color: var(--sv-ink) !important; font-weight: 500; border-radius: 8px; }
.sv-navbar .nav-link:hover { background: #eef2ff; }
.sv-navbar .dropdown-menu {
    border: 1px solid var(--sv-line);
    border-radius: 12px;
    box-shadow: var(--sv-shadow);
    padding: .4rem;
}
.sv-navbar .dropdown-item { border-radius: 8px; padding: .45rem .8rem; }
.sv-navbar .dropdown-item:hover { background: #eef2ff; color: var(--sv-primary-dark); }
.sv-navbar .navbar-toggler { border-color: var(--sv-line); }
.sv-nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.sv-nav-actions .sv-signin { color: var(--sv-ink); font-weight: 500; padding: .45rem .8rem; border-radius: 8px; }
.sv-nav-actions .sv-signin:hover { background: #eef2ff; text-decoration: none; }
@media (max-width: 991px) {
    .sv-nav-actions { margin: .5rem 0 .25rem; }
}

/* ---------- Buttons & inputs ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary {
    background: var(--sv-primary) !important;
    border-color: var(--sv-primary) !important;
    box-shadow: 0 6px 16px rgba(47, 91, 255, .25);
}
.btn-primary:hover, .btn-primary:focus { background: var(--sv-primary-dark) !important; border-color: var(--sv-primary-dark) !important; }
.btn-outline-primary { color: var(--sv-primary); border-color: var(--sv-primary); }
.btn-outline-primary:hover { background: var(--sv-primary); color: #fff; }
.form-control, .custom-select, .custom-file-label {
    border-radius: 10px !important;
    border-color: #d5dcea;
}
.form-control:focus, .custom-select:focus {
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 .2rem rgba(47, 91, 255, .15);
}
.progress { border-radius: 999px; background: #e9edf6; }
.progress-bar { background: linear-gradient(90deg, var(--sv-primary), #6a8bff); }

/* ---------- Cards ---------- */
.card, .well {
    border: 1px solid var(--sv-line) !important;
    border-radius: var(--sv-radius) !important;
    box-shadow: var(--sv-shadow);
    background: var(--sv-card);
}
.table { background: var(--sv-card); border-radius: var(--sv-radius); overflow: hidden; }
.table thead th, .table th { border-top: 0; color: var(--sv-muted); font-weight: 600; }

/* ---------- jQuery UI dialogs (signup) ---------- */
.ui-dialog { border-radius: var(--sv-radius) !important; border: 1px solid var(--sv-line) !important; box-shadow: 0 24px 60px rgba(15, 23, 42, .18); padding: 0 !important; overflow: hidden; }
.ui-dialog .ui-dialog-titlebar { background: #f3f6ff; border: 0; border-bottom: 1px solid var(--sv-line); border-radius: 0; padding: .8rem 1rem; }
.ui-dialog .ui-dialog-buttonpane button { border-radius: 10px; }
.ui-dialog .ui-dialog-buttonpane button:first-child { background: var(--sv-primary); border-color: var(--sv-primary); color: #fff; }

/* ---------- Home: hero ---------- */
.sv-hero {
    position: relative;
    margin: 18px 0 26px;
    padding: 46px 36px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(1200px 400px at 100% -20%, rgba(255, 77, 109, .45), transparent 60%),
        radial-gradient(900px 500px at -10% 120%, rgba(106, 139, 255, .55), transparent 60%),
        linear-gradient(135deg, #10183a, #1d2f7a 55%, #2f5bff);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(31, 68, 214, .25);
}
.sv-hero h1 { color: #fff; font-weight: 800; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; margin: 14px 0 14px; max-width: 760px; }
.sv-hero p.lead { color: #dbe4ff; font-size: clamp(16px, 1.6vw, 19px); max-width: 680px; margin-bottom: 24px; }
.sv-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.sv-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.sv-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sv-hero .btn-light { color: var(--sv-primary-dark); font-weight: 700; padding: .8rem 1.4rem; border-radius: 12px; }
.sv-hero .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); padding: .8rem 1.4rem; border-radius: 12px; background: transparent; }
.sv-hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sv-hero .sv-note { color: #b9c6ff; font-size: 14px; margin-left: 4px; }
.sv-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.sv-stats div { min-width: 120px; }
.sv-stats b { display: block; font-size: 24px; color: #fff; }
.sv-stats span { color: #b9c6ff; font-size: 13px; }

/* ---------- Home: sections ---------- */
.sv-section { margin: 46px 0; }
.sv-section-head { text-align: center; max-width: 680px; margin: 0 auto 26px; }
.sv-section-head h2 { font-weight: 800; font-size: clamp(24px, 3vw, 34px); }
.sv-section-head p { color: var(--sv-muted); font-size: 16px; }
.sv-tool-card { background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 20px; box-shadow: var(--sv-shadow); padding: 26px 24px; }

.sv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sv-step { background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: var(--sv-radius); padding: 22px; box-shadow: var(--sv-shadow); }
.sv-step .num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--sv-primary-dark); font-weight: 800; margin-bottom: 12px; }
.sv-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.sv-step p { color: var(--sv-muted); margin: 0; }

/* ---------- Home: pricing ---------- */
.sv-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.sv-plan { position: relative; background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 20px; padding: 26px 24px; box-shadow: var(--sv-shadow); display: flex; flex-direction: column; }
.sv-plan.featured { border: 2px solid var(--sv-primary); box-shadow: 0 24px 50px rgba(47, 91, 255, .18); }
.sv-plan .badge-pop { position: absolute; top: -12px; left: 24px; background: var(--sv-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.sv-plan h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.sv-plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.sv-plan .price small { font-size: 15px; color: var(--sv-muted); font-weight: 500; }
.sv-plan .per { color: var(--sv-muted); font-size: 14px; margin-bottom: 14px; }
.sv-plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.sv-plan li { padding: 6px 0 6px 26px; position: relative; color: #2b3650; }
.sv-plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: #e7f8f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2312b886' d='M6.5 11.2 3.3 8l1-1 2.2 2.2 5.2-5.2 1 1z'/%3E%3C/svg%3E") center/12px no-repeat; }
.sv-plan .btn { width: 100%; padding: .75rem 1rem; }
.sv-pay-note { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; color: var(--sv-muted); font-size: 14px; margin-top: 18px; }
.sv-pay-note span::before { content: "✓ "; color: var(--sv-success); font-weight: 700; }

/* ---------- Footer ---------- */
footer { color: var(--sv-muted); }
footer .nav-link, footer a.text-muted { color: var(--sv-muted) !important; }
footer .nav-link:hover { color: var(--sv-primary) !important; }

@media (max-width: 767px) {
    .sv-hero { padding: 32px 20px; border-radius: 18px; }
    .sv-steps, .sv-pricing { grid-template-columns: 1fr; }
    .sv-stats { gap: 18px; }
    .sv-tool-card { padding: 18px 14px; }
}

/* Pages set <body class="container" style="width:80%">: use the full width on phones. */
body.container { width: 100% !important; max-width: 1180px; padding-left: 16px; padding-right: 16px; }

/* The page header nests .row inside .row (two negative margins): keep it inside the page. */
#header, #header .row { margin-left: 0 !important; margin-right: 0 !important; }
#header [class*="col-"] { padding-left: 0; padding-right: 0; }

@media (max-width: 575px) {
    .sv-hero-actions .btn { width: 100%; }
    .sv-hero .sv-note { margin: 4px 0 0; }
    .sv-stats div { min-width: calc(50% - 10px); }
}

/* Long button labels (e.g. "Download software") wrap instead of widening the page. */
@media (max-width: 575px) {
    .btn { white-space: normal; max-width: 100%; }
}

/* ===================== v4: polish ===================== */

/* Header: logo moves into the navbar; the whole header sticks while scrolling. */
#header:has(nav) { position: sticky; top: 0; z-index: 1030; } #header { padding-top: 6px; background: linear-gradient(var(--sv-bg) 70%, rgba(246, 248, 252, 0)); }
#header > .row:has(img[src*="logo"]):not(:has(nav)) { display: none !important; }
.sv-brand img { display: block; height: 34px; width: auto; }
.sv-navbar { margin-top: 0; }
@media (max-width: 991px) { .sv-navbar .navbar-collapse { padding-top: .5rem; } }

/* Upload form as the main card. */
form.form[id*="upload-form"] {
    background: var(--sv-card);
    border: 1px solid var(--sv-line);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
    padding: 28px 28px 22px !important;
    position: relative;
}
form.form[id*="upload-form"]::before {
    content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(47, 91, 255, .45), rgba(255, 77, 109, .35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
form.form[id*="upload-form"] h4 { font-weight: 800; font-size: 22px; }
form.form[id*="upload-form"] label { font-weight: 600; color: #26324a; }
form.form[id*="upload-form"] .custom-file-label { height: calc(2.6em + 2px); line-height: 1.9; }
form.form[id*="upload-form"] .custom-file-label::after { height: 2.6em; line-height: 1.9; border-radius: 0 10px 10px 0; background: #eef2ff; color: var(--sv-primary-dark); font-weight: 600; }
form.form[id*="upload-form"] .form-control { min-height: 46px; }
form.form[id*="upload-form"] button[type="submit"], form.form[id*="upload-form"] .btn-primary { padding: .75rem 1.6rem; font-size: 1.05rem; }
form.form[id*="upload-form"] .form-check { margin: .25rem 0; }

/* Job status table. */
#output { background: var(--sv-card) !important; border: 1px solid var(--sv-line) !important; border-radius: var(--sv-radius) !important; box-shadow: var(--sv-shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; }
#output table { margin-bottom: 0; }
#output { max-width: 100%; }
#output td, #output th { vertical-align: middle; }
#result_total { font-weight: 800; margin-top: 30px; }

/* Features grid. */
.sv-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sv-feature { display: block; background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 18px; padding: 22px; box-shadow: var(--sv-shadow); color: var(--sv-ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sv-feature:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(15, 23, 42, .12); border-color: #c9d5ff; color: var(--sv-ink); text-decoration: none; }
.sv-feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff; margin-bottom: 14px; background: linear-gradient(135deg, var(--sv-primary), #6a8bff); box-shadow: 0 10px 22px rgba(47, 91, 255, .3); }
.sv-feature:nth-child(3n+2) .ico { background: linear-gradient(135deg, #ff4d6d, #ff8a5b); box-shadow: 0 10px 22px rgba(255, 77, 109, .3); }
.sv-feature:nth-child(3n) .ico { background: linear-gradient(135deg, #12b886, #3bd7a6); box-shadow: 0 10px 22px rgba(18, 184, 134, .3); }
.sv-feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.sv-feature p { color: var(--sv-muted); margin-bottom: 10px; font-size: 15px; }
.sv-feature .more { color: var(--sv-primary); font-weight: 600; font-size: 14px; }

/* Languages strip. */
.sv-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 0 auto; }
.sv-langs span { background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: #2b3650; }
.sv-langs span.more { background: #eef2ff; border-color: #d6e0ff; color: var(--sv-primary-dark); font-weight: 600; }

/* FAQ. */
.sv-faq { max-width: 820px; margin: 0 auto; }
.sv-faq details { background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.sv-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after { content: "+"; color: var(--sv-primary); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.sv-faq details[open] summary::after { transform: rotate(45deg); }
.sv-faq details p { color: var(--sv-muted); padding-bottom: 16px; margin: 0; }

/* Final call to action. */
.sv-cta { text-align: center; color: #fff; border-radius: 22px; padding: 44px 24px; margin: 50px 0 30px;
    background: radial-gradient(800px 300px at 50% -40%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(135deg, #1d2f7a, #2f5bff 60%, #6a8bff);
    box-shadow: 0 24px 60px rgba(31, 68, 214, .25); }
.sv-cta h2 { color: #fff; font-weight: 800; font-size: clamp(24px, 3.2vw, 36px); }
.sv-cta p { color: #dbe4ff; margin-bottom: 22px; }
.sv-cta .btn-light { color: var(--sv-primary-dark); font-weight: 700; padding: .8rem 1.6rem; border-radius: 12px; }

/* Footer. */
footer.col-sm-12 { background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 22px; padding: 30px 26px 10px !important; box-shadow: var(--sv-shadow); margin-top: 30px !important; }
footer h5 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sv-ink); margin-bottom: 14px; }
footer .border-top { border-color: var(--sv-line) !important; margin-top: 10px; }
footer .fa-youtube, footer .fa-facebook { color: var(--sv-muted); margin-left: 8px; font-size: 16px; }
footer .fa-youtube:hover { color: #ff0000; } footer .fa-facebook:hover { color: #1877f2; }

/* Reveal on scroll (js/theme.js adds .sv-in). */
.sv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.sv-reveal.sv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sv-reveal { opacity: 1; transform: none; transition: none; } .sv-feature { transition: none; } }

@media (max-width: 991px) { .sv-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
    .sv-features { grid-template-columns: 1fr; }
    form.form[id*="upload-form"] { padding: 20px 16px 16px !important; border-radius: 18px; }
    footer.col-sm-12 { padding: 22px 16px 6px !important; }
}

/* The taller file picker needs its wrapper to grow too. */
form.form[id*="upload-form"] .custom-file { height: calc(2.6em + 2px); margin-bottom: 8px; }
form.form[id*="upload-form"] .custom-file-input { height: 100%; }
form.form[id*="upload-form"] .form-check-label { font-weight: 500; }

/* Tables keep the page font (some headers fell back to a serif face). */
table th, table td, #output th, #output td { font-family: var(--sv-font) !important; }
/* FontAwesome has no letters: text inside an icon tag (e.g. <i class="fa fa-lock">File</i>) falls back to the page font. */
.fa, table .fa, #output .fa { font-family: FontAwesome, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; }
#output th { font-size: 14px; text-transform: none; }

/* Browsers without :has(): js/theme.js adds this class to the old logo row. */
.sv-hide-legacy-logo { display: none !important; }

/* Job status table (#customers, built by js/get_result.js; the first row is the header). */
#output { padding: 6px 8px; }
#customers { margin: 0; border: 0; background: transparent; }
#customers tr, #customers tr:nth-child(even), #customers tr:hover { background: transparent !important; }
#customers td { border: 0 !important; border-bottom: 1px solid var(--sv-line) !important; padding: 14px 12px !important; color: #2b3650; background: transparent !important; word-break: break-word; }
#customers tr:last-child td { border-bottom: 0 !important; }
#customers tr:first-child td { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sv-muted); padding-top: 10px !important; padding-bottom: 10px !important; }
#customers tr:first-child td .fa { margin-right: 4px; color: inherit; }
#customers tr:not(:first-child) { transition: background .15s ease; border-radius: 10px; }
#customers tr:not(:first-child):hover { background: #f5f8ff !important; }
#customers td.name { font-weight: 500; color: var(--sv-ink); }
#customers tr:not(:first-child) td.name::before { content: "\f1c8"; font-family: FontAwesome; color: #9aa6bf; margin-right: 10px; }
#customers tr:not(:first-child) td:last-child { font-weight: 500; }
#customers td:has(.fa-check) { color: #0f9f6e; }
#customers .fa-check { color: var(--sv-success) !important; background: #e7f8f1; border-radius: 50%; width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 12px; margin-right: 6px; }
#customers a { font-weight: 500; }
#auto_refresh { accent-color: var(--sv-primary); }


/* ===================== v5: service pages ===================== */

/* The service page <h1> is wrapped in .sv-page-hero by js/theme.js; a
   whitespace-only <h1> (home page) is hidden there too. */
#paypal > .col-sm > h1.h1.sv-blank { display: none !important; }

/* Account balance notice above the page. */
#info_quota_minutes .alert {
    display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0;
    padding: 10px 16px; border-radius: 999px; border: 1px solid #d6e0ff; background: #f3f6ff; color: var(--sv-primary-dark); font-weight: 600;
}
#info_quota_minutes .alert::before { content: "\f017"; font-family: FontAwesome; }
#info_quota_minutes .alert p, #info_quota_minutes .alert strong { margin: 0; font-weight: 600; }

/* "See pricing" / "About purchase" links become buttons. */
#paypal > .col-sm > p > .btn-link {
    margin-left: 8px; padding: .45rem 1rem; border-radius: 999px;
    background: #eef2ff; color: var(--sv-primary-dark) !important; font-weight: 700 !important; text-decoration: none;
}
#paypal > .col-sm > p > .btn-link:hover { background: var(--sv-primary); color: #fff !important; }

/* Intro copy under the banner reads better narrower and softer. */
#paypal > .col-sm > p, #paypal > .col-sm > div > p { color: #334060; line-height: 1.7; }
#paypal > .col-sm > p { max-width: 960px; }

/* Wide illustrations / demo videos: rounded, centred. */
#paypal img.img-fluid, #paypal video, #paypal iframe { border-radius: 18px; }

/* Pricing boxes of the service pages (checkout.css), laid out like the home .sv-plan cards. */
.checkout { display: flex !important; flex-wrap: wrap; gap: 20px; align-items: stretch; background: var(--sv-card); border: 1px solid var(--sv-line);
    border-radius: 22px; box-shadow: var(--sv-shadow); padding: 28px 24px; margin: 16px 0; }
.checkout > h4, .checkout > p, .checkout > hr, .checkout > br { flex: 0 0 100%; margin: 0; text-align: center; }
.checkout > h4 { font-weight: 800; font-size: 24px; }
.checkout > p { color: var(--sv-muted); margin-top: -12px; }
.checkout .checkout_columns { float: none !important; width: auto !important; flex: 1 1 240px; padding: 0 !important; display: flex; }
.checkout_price { flex: 1; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sv-line) !important; border-radius: 20px;
    overflow: hidden; box-shadow: none !important; padding: 22px 22px 12px !important; }
.checkout_columns:nth-of-type(2) .checkout_price { border: 2px solid var(--sv-primary) !important; box-shadow: 0 24px 50px rgba(47, 91, 255, .18) !important; }
.checkout_price li { border: 0 !important; padding: 6px 0 6px 26px !important; text-align: left !important; position: relative; color: #2b3650; }
.checkout_price li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: #e7f8f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2312b886' d='M6.5 11.2 3.3 8l1-1 2.2 2.2 5.2-5.2 1 1z'/%3E%3C/svg%3E") center/12px no-repeat; }
.checkout_price li.header, .checkout_price li.grey { padding: 0 !important; background: none !important; color: var(--sv-ink) !important; }
.checkout_price li.header::before, .checkout_price li.grey::before { display: none; }
.checkout_price li.header { font-size: 18px !important; font-weight: 700; }
.checkout_price li.grey { font-size: 34px !important; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
/* Third column: the PayPal form, shown as a checkout card. */
.checkout .checkout_columns > .row { margin: 0 !important; width: 100%; background: #f7f9ff; border: 1px solid var(--sv-line); border-radius: 20px; padding: 18px 18px !important; align-content: flex-start; }
.checkout .checkout_columns > .row > [class*="col-"] { padding: 0; }
.checkout form.form[action*="paypal.com"] { background: none; border: 0; box-shadow: none; padding: 0 !important; margin: 0 !important; }
.checkout form[action*="paypal.com"] table { width: 100%; }
.checkout form[action*="paypal.com"] td { padding: 3px 0; font-weight: 600; font-size: 13px; color: #26324a; }
.checkout img[src*="money.png"] { display: block; max-width: 96px; margin: 14px auto 0 !important; }

/* Native file inputs (support form). */
input[type="file"].form-control-file { padding: 10px; border: 1px dashed #c3cde3; border-radius: 12px; background: #fbfcff; width: 100%; }
input[type="file"]::file-selector-button { border: 0; border-radius: 8px; padding: 8px 14px; margin-right: 12px; background: #eef2ff; color: var(--sv-primary-dark); font-weight: 700; cursor: pointer; }

/* Message pages (main_template_message.php: verified email, resend, errors). */
.sv-message {
    max-width: 640px; margin: 30px auto; text-align: center;
    background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08); padding: 40px 32px; font-size: 17px; line-height: 1.75; color: #2b3650;
}
.sv-message-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--sv-primary), #6a8bff); color: #fff; font-size: 28px; box-shadow: 0 14px 30px rgba(47, 91, 255, .3);
}
.sv-message a { display: inline-block; margin-top: 16px; padding: .7rem 1.4rem; border-radius: 12px; background: var(--sv-primary); color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 8px 18px rgba(47, 91, 255, .25); }
.sv-message a:hover { background: var(--sv-primary-dark); }
.sv-message a + br + a, .sv-message a ~ a { background: #eef2ff; color: var(--sv-primary-dark) !important; box-shadow: none; }

/* Support page illustration. */
img[src*="support.png"] { border-radius: 22px; display: block; margin: 0 auto 10px; }
#contact-form { background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 22px; box-shadow: var(--sv-shadow); padding: 28px 26px; margin-top: 10px; }
#contact-form h2 { font-weight: 800; }

/* Banner built by js/theme.js around the service page <h1>. */
.sv-page-hero {
    margin: 18px 0 26px; padding: 36px 34px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
    background:
        radial-gradient(900px 300px at 100% -30%, rgba(255, 77, 109, .45), transparent 60%),
        radial-gradient(700px 400px at -10% 130%, rgba(106, 139, 255, .55), transparent 60%),
        linear-gradient(135deg, #10183a, #1d2f7a 55%, #2f5bff);
    box-shadow: 0 24px 60px rgba(31, 68, 214, .22);
}
.sv-page-hero .sv-page-title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 12px; }
#paypal .sv-page-hero > h1.h1 {
    background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 22px !important; border-radius: 0;
    font-size: 15px !important; font-weight: 500 !important; line-height: 1.6; color: #c9d4ff !important; max-width: 900px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sv-page-hero .btn-light { color: var(--sv-primary-dark); font-weight: 700; padding: .75rem 1.3rem; border-radius: 12px; }
.sv-page-hero .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); padding: .75rem 1.3rem; border-radius: 12px; background: transparent; }
.sv-page-hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 575px) { .sv-page-hero { padding: 26px 18px; border-radius: 18px; } .sv-page-hero .btn { width: 100%; } }

/* Lighter job table: muted empty cells and helper lines. */
#customers td { font-size: 15px; }
#customers tr:first-child td { font-weight: 600; font-size: 11.5px; color: #8a95ad; }
#customers tr:not(:first-child) td:not(.name):not(:last-child) { color: #9aa6bf; }
#customers .fa-check { width: 20px; height: 20px; line-height: 20px; font-size: 11px; }
#result_total + p, #result_total ~ p { color: var(--sv-muted); }
#classic_version_block, #result_total ~ div:has(#auto_refresh) { color: var(--sv-muted); font-size: 14px; }
#output + p + p, #output ~ p { color: var(--sv-muted); font-size: 14px; }

/* ===================== Footer v2: dark ===================== */
footer.sv-footer {
    background:
        radial-gradient(900px 300px at 90% -20%, rgba(47, 91, 255, .35), transparent 60%),
        radial-gradient(700px 300px at 0% 120%, rgba(255, 77, 109, .18), transparent 60%),
        #0c1330 !important;
    border: 0 !important; border-radius: 24px !important; color: #aeb8d3;
    padding: 34px 34px 8px !important; margin: 40px 0 24px !important; box-shadow: 0 24px 60px rgba(12, 19, 48, .25);
}
.sv-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sv-footer-brand img { filter: brightness(0) invert(1); height: 34px; width: auto; }
.sv-footer-brand p { margin: 10px 0 0; color: #aeb8d3; max-width: 460px; }
.sv-footer-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.sv-footer-cta .btn-light { color: var(--sv-primary-dark); font-weight: 700; border-radius: 12px; padding: .6rem 1.2rem; }
.sv-footer-ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; padding: .6rem 1.2rem; }
.sv-footer-ghost:hover { background: rgba(255, 255, 255, .08); }
footer.sv-footer h5 { color: #fff !important; font-size: 13px; letter-spacing: .1em; }
footer.sv-footer .nav-link, footer.sv-footer a.text-muted, footer.sv-footer .nav-item a { color: #aeb8d3 !important; transition: color .15s ease; }
footer.sv-footer .nav-link:hover, footer.sv-footer .nav-item a:hover { color: #fff !important; }
footer.sv-footer .nav-item, footer.sv-footer span { color: #aeb8d3 !important; }
footer.sv-footer .fa-envelope, footer.sv-footer .fa-home { color: #6a8bff; }
footer.sv-footer .border-top { border-color: rgba(255, 255, 255, .1) !important; margin-top: 18px; }
footer.sv-footer .border-top p { color: #7f8bab !important; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; width: 100%; margin: 0; }
footer.sv-footer .border-top a { color: #aeb8d3 !important; border-left: 0 !important; padding: 2px 8px !important; border-radius: 6px; text-decoration: none !important; }
footer.sv-footer .border-top a:hover { color: #fff !important; background: rgba(255, 255, 255, .06); }
footer.sv-footer .border-top a.fa { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); padding: 0 !important; font-size: 15px; }
footer.sv-footer .border-top a.fa:hover { background: var(--sv-primary); }
footer.sv-footer .d-flex { width: 100%; }
@media (max-width: 575px) {
    footer.sv-footer { padding: 24px 18px 6px !important; border-radius: 18px !important; }
    .sv-footer-cta .btn { flex: 1; }
}

/* ===================== Navbar v2 ===================== */
.sv-navbar { padding: .65rem 1.1rem !important; border-radius: 18px !important; box-shadow: 0 10px 30px rgba(15, 23, 42, .07) !important; }
.sv-brand { margin-right: 1.25rem; padding: 0; }
.sv-brand img { height: 44px !important; }
.sv-navbar .navbar-nav .nav-link { font-size: 15px; font-weight: 600; padding: .55rem .85rem !important; border-radius: 10px; transition: background .15s ease, color .15s ease; }
.sv-navbar .navbar-nav .nav-link:hover, .sv-navbar .show > .nav-link { background: #eef2ff; color: var(--sv-primary-dark) !important; }
.sv-navbar .dropdown-toggle::after { border-top-width: .32em; opacity: .55; margin-left: .4em; }
.sv-navbar .dropdown-menu { margin-top: 10px; min-width: 240px; animation: svDrop .16s ease-out; }
@keyframes svDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sv-nav-actions .sv-signin { font-size: 15px; font-weight: 600; }
.sv-nav-actions .btn-primary {
    background: linear-gradient(135deg, #2f5bff, #6a5bff) !important; border: 0 !important;
    padding: .55rem 1.15rem !important; border-radius: 999px !important; font-size: 14.5px; box-shadow: 0 10px 22px rgba(47, 91, 255, .3);
}
.sv-nav-actions .btn-primary:hover { transform: translateY(-1px); }
.sv-nav-actions .navbar-nav .nav-link.dropdown-toggle { background: #f3f6ff; border: 1px solid #dfe6ff; border-radius: 999px !important; padding: .45rem 1rem !important; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-nav-actions .navbar-nav .nav-link.dropdown-toggle::before { content: "\f2bd"; font-family: FontAwesome; color: var(--sv-primary); margin-right: 8px; font-size: 16px; }
.sv-nav-actions .dropdown-menu { right: 0; left: auto; }
@media (max-width: 991px) { .sv-brand img { height: 36px !important; } }

/* ===================== Upload form v2 ===================== */
form.form[id*="upload-form"] fieldset { border: 0 !important; padding: 0 !important; margin: 0; }
form.form[id*="upload-form"] fieldset > h4 { font-size: 24px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
form.form[id*="upload-form"] fieldset > h4 .fa { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--sv-primary); font-size: 18px; }
form.form[id*="upload-form"] label { font-size: 14px; margin-bottom: 8px; }

/* File picker as a drop zone; the real input still covers it, so drop works. */
form.form[id*="upload-form"] .custom-file { height: 150px !important; margin-bottom: 10px; }
form.form[id*="upload-form"] .custom-file-input { height: 150px !important; cursor: pointer; z-index: 3; }
form.form[id*="upload-form"] .custom-file-label {
    height: 150px !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 2px dashed #c3cde8 !important; background: linear-gradient(180deg, #fbfcff, #f3f6ff); color: var(--sv-ink); font-weight: 700; font-size: 16px;
    line-height: 1.4 !important; text-align: center; transition: border-color .15s ease, background .15s ease; white-space: normal; padding: 10px 16px;
}
form.form[id*="upload-form"] .custom-file-label::before { content: "\f0ee"; font-family: FontAwesome; font-size: 30px; color: var(--sv-primary); margin-bottom: 4px; }
form.form[id*="upload-form"] .custom-file-label::after {
    content: "Drag & drop a video or audio file here, or click to browse" !important; position: static !important; display: block; height: auto !important;
    background: none !important; border: 0 !important; color: var(--sv-muted) !important; font-weight: 500 !important; font-size: 13.5px; padding: 0 !important; line-height: 1.4 !important;
}
form.form[id*="upload-form"] .custom-file:hover .custom-file-label,
form.form[id*="upload-form"] .custom-file-input:focus ~ .custom-file-label { border-color: var(--sv-primary) !important; background: #eef2ff; box-shadow: none; }
form.form[id*="upload-form"] .custom-file-label.selected { color: var(--sv-primary-dark); }
form.form[id*="upload-form"] .custom-file-label.selected::before { content: "\f1c8"; }
form.form[id*="upload-form"] .custom-file + br + p, form.form[id*="upload-form"] .custom-file ~ p { color: var(--sv-muted); font-size: 13px; }
form.form[id*="upload-form"] .progress { height: 20px; margin: 4px 0 18px !important; }

/* Mode radios as two selectable cards. */
form.form[id*="upload-form"] .form-check-inline {
    display: inline-flex; align-items: flex-start; gap: 10px; vertical-align: top;
    width: calc(50% - 12px); margin: 6px 12px 6px 0 !important; padding: 14px 16px 14px 14px;
    border: 1.5px solid var(--sv-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
form.form[id*="upload-form"] .form-check-inline + .form-check-inline { margin-right: 0 !important; }
form.form[id*="upload-form"] .form-check-inline:hover { border-color: #c9d5ff; }
form.form[id*="upload-form"] .form-check-inline:has(input:checked) { border-color: var(--sv-primary); background: #f3f6ff; box-shadow: 0 8px 20px rgba(47, 91, 255, .12); }
form.form[id*="upload-form"] .form-check-inline .form-check-input { margin: 3px 0 0 !important; position: static; accent-color: var(--sv-primary); width: 17px; height: 17px; flex: 0 0 auto; }
form.form[id*="upload-form"] .form-check-inline .form-check-label { margin: 0; cursor: pointer; font-size: 14.5px; line-height: 1.45; color: #2b3650; }
form.form[id*="upload-form"] .form-check-inline .form-check-label::before { font-family: FontAwesome; display: block; font-size: 18px; color: var(--sv-primary); margin-bottom: 6px; }
form.form[id*="upload-form"] .form-check-inline #inlineRadio1 + .form-check-label::before { content: "\f130"; }
form.form[id*="upload-form"] .form-check-inline #inlineRadio2 + .form-check-label::before { content: "\f031"; color: #ff4d6d; }

/* Main action. */
form.form[id*="upload-form"] input[type="submit"].btn-primary, form.form[id*="upload-form"] button[type="submit"].btn-primary {
    width: 100%; padding: .95rem 1.4rem !important; font-size: 1.1rem; border-radius: 14px !important; border: 0 !important;
    background: linear-gradient(135deg, #2f5bff, #6a5bff) !important; box-shadow: 0 14px 30px rgba(47, 91, 255, .3) !important; margin-top: 4px;
}
form.form[id*="upload-form"] input[type="submit"].btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
@media (max-width: 767px) {
    form.form[id*="upload-form"] .form-check-inline { width: 100%; margin-right: 0 !important; }
    form.form[id*="upload-form"] .custom-file, form.form[id*="upload-form"] .custom-file-input, form.form[id*="upload-form"] .custom-file-label { height: 130px !important; }
}

/* ===================== Palette harmony ===================== */
/* One brand gradient for the hero, page banners and the footer; the closing
   call to action is a light band in between so two dark blocks never touch. */
:root { --sv-brand-gradient: radial-gradient(1000px 360px at 100% -20%, rgba(255, 77, 109, .32), transparent 60%), radial-gradient(800px 420px at -10% 120%, rgba(106, 139, 255, .45), transparent 60%), linear-gradient(135deg, #10183a, #1d2f7a 55%, #2f5bff); }
.sv-hero, .sv-page-hero { background: var(--sv-brand-gradient); }
footer.sv-footer {
    background:
        radial-gradient(900px 320px at 100% 0%, rgba(47, 91, 255, .35), transparent 60%),
        radial-gradient(700px 320px at 0% 100%, rgba(255, 77, 109, .14), transparent 60%),
        linear-gradient(160deg, #10183a, #16225a) !important;
}
footer.sv-footer .nav-item a[href^="mailto"] { color: #c9d4ff !important; }
.sv-cta {
    background: linear-gradient(135deg, #eef2ff, #f6efff) !important; color: var(--sv-ink);
    border: 1px solid #dfe6ff; box-shadow: 0 18px 40px rgba(47, 91, 255, .10);
}
.sv-cta h2 { color: var(--sv-ink) !important; }
.sv-cta p { color: var(--sv-muted) !important; }
.sv-cta .btn-light {
    background: linear-gradient(135deg, #2f5bff, #6a5bff) !important; color: #fff !important; border: 0;
    box-shadow: 0 14px 30px rgba(47, 91, 255, .3);
}

/* Job tables outside #output (e.g. enhancer pages) scroll inside themselves on narrow screens. */
table#customers { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) { #customers td { padding: 10px 8px !important; font-size: 14px; } }

/* <fieldset> defaults to min-width: min-content and pushed forms wider than phones. */
form.form fieldset, form.form[id*="upload-form"] fieldset { min-width: 0 !important; max-width: 100%; }
form.form select, form.form .form-control { max-width: 100%; }
form.form fieldset { overflow-x: hidden; overflow-x: clip; }

/* Auto-refresh row above the job table. */
.sv-refresh-label { margin: 0 12px 0 4px; font-weight: 600; color: var(--sv-ink); cursor: pointer; font-size: 14px; }
.sv-status-steps { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.sv-status-steps span { font-size: 12px; font-weight: 600; color: var(--sv-muted); background: #eef1f8; border-radius: 999px; padding: 3px 10px; }
.sv-status-steps span:not(:last-child)::after { content: " \2192"; color: #b3bdd3; }
.sv-status-steps span:last-child { background: #e7f8f1; color: #0f9f6e; }

/* Mode cards: title and explanation. */
form.form[id*="upload-form"] .form-check-inline .form-check-label b { display: block; font-size: 15px; color: var(--sv-ink); margin-bottom: 2px; }
form.form[id*="upload-form"] .form-check-inline .form-check-label span { display: block; font-size: 13.5px; color: var(--sv-muted); }

/* Intro under "Your subtitle jobs". */
#result_total ~ p { max-width: 820px; }
#result_total ~ p a { font-weight: 600; }

/* ===================== Fixes: other pages ===================== */
/* Pages with their own dark dropdown CSS: keep the navbar menus light. */
.sv-navbar .dropdown-menu { background: #fff !important; }
.sv-navbar .dropdown-menu .dropdown-item { color: var(--sv-ink) !important; background: transparent; }
.sv-navbar .dropdown-menu .dropdown-item:hover, .sv-navbar .dropdown-menu .dropdown-item:focus { background: #eef2ff !important; color: var(--sv-primary-dark) !important; }

/* Solid sticky header: content no longer shows through it while scrolling. */
#header:has(nav) { background: var(--sv-bg) !important; box-shadow: 0 8px 18px -14px rgba(15, 23, 42, .25); padding-bottom: 8px; }

/* Banner around any page's first <h1> (js/theme.js). */
.sv-page-hero > h1 {
    background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 22px !important; border: 0 !important;
    font-size: 15px !important; font-weight: 500 !important; line-height: 1.6 !important; color: #c9d4ff !important; max-width: 900px; text-align: left !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Every main form of a service page gets the card look, not only upload-form. */
form.form:not([action*="paypal.com"]) {
    background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08); padding: 26px 26px 20px !important;
    margin-top: 32px !important; margin-bottom: 24px;
}
/* Demo image right above an upload card (video-enhance-ai.php). */
.sv-demo-img { display: block; margin: 8px auto 0; border-radius: 22px; box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }
form.form:not([action*="paypal.com"]) h4 { font-weight: 800; }
form.form:not([action*="paypal.com"]) label { font-weight: 600; color: #26324a; }
form.form:not([action*="paypal.com"]) .progress { height: 18px; }

/* Upload progress: keep the percentage readable inside the bar. */
.progress { overflow: hidden; }
.progress .progress-bar { font-size: 12px; font-weight: 700; line-height: 20px; color: #fff; min-width: 2.5em; white-space: nowrap; }

/* Intro copy blocks (e.g. video-enhance-ai.php). */
.sv-lead { font-size: 18px; color: var(--sv-ink) !important; margin-bottom: 12px; }
.sv-checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.sv-checklist li { position: relative; padding-left: 30px; color: #2b3650; }
.sv-checklist li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #e7f8f1; color: #0f9f6e; font-size: 11px; display: grid; place-items: center; }

/* Buy box on out-of-minutes messages (buy_box.php). */
.sv-buybox { margin-top: 22px; text-align: left; }
.sv-buybox-need { text-align: center; font-size: 16px; margin-bottom: 14px; }
.sv-buybox-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sv-buybox-plan { position: relative; border: 1.5px solid var(--sv-line); border-radius: 16px; padding: 20px 16px 16px; text-align: center; background: #fff; margin: 0; }
.sv-buybox-plan.recommended { border-color: var(--sv-primary); box-shadow: 0 14px 30px rgba(47, 91, 255, .15); }
.sv-buybox-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--sv-accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.sv-buybox-minutes { font-weight: 700; color: var(--sv-ink); }
.sv-buybox-price { font-size: 34px; font-weight: 800; color: var(--sv-ink); line-height: 1.1; margin: 6px 0 2px; }
.sv-buybox-per { color: var(--sv-muted); font-size: 13px; margin-bottom: 14px; }
.sv-buybox-btn { width: 100%; border: 0; border-radius: 12px; padding: .7rem 1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2f5bff, #6a5bff); box-shadow: 0 10px 22px rgba(47, 91, 255, .25); cursor: pointer; }
.sv-buybox-plan:not(.recommended) .sv-buybox-btn { background: #eef2ff; color: var(--sv-primary-dark); box-shadow: none; }
.sv-buybox-note { color: var(--sv-muted); font-size: 13px; margin: 14px 0 0; text-align: center; }
.sv-message .sv-buybox-plan, .sv-message .sv-buybox-btn { margin-top: 0; }
.sv-message .sv-buybox a { display: inline; padding: 0; background: none; box-shadow: none; color: var(--sv-primary) !important; }
@media (max-width: 575px) { .sv-buybox-plans { grid-template-columns: 1fr; } }
/* With a buy box, the message's own "return" link becomes secondary. */
.sv-message:has(.sv-buybox) > a { background: #eef2ff; color: var(--sv-primary-dark) !important; box-shadow: none; }

/* Enhancer: extra demo links + customer review. */
.sv-demo-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin: 28px 0 18px; padding: 20px 24px; background: var(--sv-card); border: 1px solid var(--sv-line);
    border-radius: 18px; box-shadow: 0 12px 30px rgba(15, 23, 42, .06); }
.sv-demo-text b { display: block; font-size: 17px; color: var(--sv-ink); }
.sv-demo-text span { color: #5b6476; font-size: 14px; }
.sv-demo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sv-demo-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--sv-line); background: #fff; color: var(--sv-ink) !important; font-weight: 700; text-decoration: none !important; }
.sv-demo-btn:hover { border-color: #4f6bff; color: #4f6bff !important; }
.sv-demo-btn.primary { background: #4f6bff; border-color: #4f6bff; color: #fff !important; }
.sv-demo-btn.primary:hover { background: #3a55e8; color: #fff !important; }
.sv-review { margin: 0 0 28px; padding: 22px 26px; border-left: 4px solid #4f6bff; background: #f3f5ff; border-radius: 0 18px 18px 0; }
.sv-review-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4f6bff; margin-bottom: 8px; }
.sv-review .blockquote { margin: 0; font-size: 15px; font-style: italic; color: #26324a; }
.sv-review .blockquote-footer { margin-top: 10px; font-style: normal; }

/* Mode radios shown as a vertical list (auto-subtitle-generator-online.php). */
form.form .form-check:not(.form-check-inline) > .form-check-label b { font-weight: 700; color: var(--sv-ink); }
form.form .form-check:not(.form-check-inline) > .form-check-label span { display: block; font-size: 13.5px; color: var(--sv-muted); font-weight: 400; }
form.form .form-check:not(.form-check-inline):has(> input[name="mode_extract"]) {
    padding: 12px 14px 12px 40px; margin-bottom: 10px; border: 1px solid var(--sv-line); border-radius: 14px; background: #fff; }
form.form .form-check:not(.form-check-inline):has(> input[name="mode_extract"]:checked) { border-color: var(--sv-primary); background: #f3f5ff; }
form.form .form-check:has(> input[name="mode_extract"]) > .form-check-input { margin-left: -24px; margin-top: 5px; }

/* "How it works" step cards on the service pages. */
.row:has(> [class*="col-"] > .card.hover-translate-y-n10) { counter-reset: svstep; margin-top: 28px; row-gap: 18px; }
[class*="col-"] > .card.hover-translate-y-n10 { height: 100%; border: 1px solid var(--sv-line); border-radius: 20px; box-shadow: var(--sv-shadow); transition: transform .2s, box-shadow .2s; }
[class*="col-"] > .card.hover-translate-y-n10:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15, 23, 42, .12); }
.card.hover-translate-y-n10 .card-body { text-align: left !important; padding: 24px; }
.card.hover-translate-y-n10 .card-body::before { counter-increment: svstep; content: counter(svstep); display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 12px; background: #eef2ff; color: var(--sv-primary); font-weight: 800; margin-bottom: 12px; }
.card.hover-translate-y-n10 .pb-2 b { font-size: 17px; color: var(--sv-ink); }
.card.hover-translate-y-n10 .pt-2 { padding-top: 4px !important; padding-bottom: 0 !important; }
.card.hover-translate-y-n10 .text-muted { font-size: 14.5px; line-height: 1.6; color: var(--sv-muted) !important; }

/* FAQ / Troubleshoot toggles under the steps. */
.row:has(> [class*="col-"] > button > a[onclick^="showMoreAsked"]) { gap: 10px; margin: 18px 0 8px !important; }
.row:has(> [class*="col-"] > button > a[onclick^="showMoreAsked"]) > [class*="col-"] { flex: 0 0 auto; max-width: none; width: auto; padding: 0; }
button:has(> a[onclick^="showMoreAsked"]), button:has(> a[onclick^="showMoreIssues"]) { padding: 0 !important; }
a[onclick^="showMoreAsked"], a[onclick^="showMoreIssues"] { display: inline-flex !important; align-items: center; gap: 8px; padding: 10px 18px !important;
    border: 1px solid var(--sv-line) !important; border-radius: 999px; background: #fff !important; color: var(--sv-ink) !important; font-weight: 700; }
a[onclick^="showMoreAsked"]::before { content: "\f059"; font-family: FontAwesome; color: var(--sv-primary); font-weight: 400; }
a[onclick^="showMoreIssues"]::before { content: "\f0ad"; font-family: FontAwesome; color: var(--sv-primary); font-weight: 400; }
a[onclick^="showMoreAsked"]:hover, a[onclick^="showMoreIssues"]:hover { border-color: var(--sv-primary) !important; color: var(--sv-primary) !important; }

/* Checkout dialog for the home pricing buttons (replaces window.prompt). */
.sv-checkout-modal[hidden] { display: none !important; }
.sv-checkout-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sv-checkout-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); animation: svFade .2s ease; }
.sv-checkout-dialog { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 30px 28px 24px;
    box-shadow: 0 40px 90px rgba(15, 23, 42, .35); text-align: left; animation: svPop .22s ease; }
.sv-checkout-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: #8a94a8; cursor: pointer; }
.sv-checkout-x:hover { color: var(--sv-ink); }
.sv-checkout-icon { width: 48px; height: 48px; border-radius: 14px; background: #eef2ff; color: var(--sv-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.sv-checkout-dialog h3 { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: var(--sv-ink); }
.sv-checkout-price { font-size: 30px; font-weight: 800; color: var(--sv-ink); margin-bottom: 18px; }
.sv-checkout-price small { font-size: 13px; font-weight: 500; color: var(--sv-muted); }
.sv-checkout-dialog label { font-weight: 600; font-size: 14px; color: #26324a; margin-bottom: 6px; }
.sv-checkout-dialog .form-control { height: 48px; border-radius: 12px; font-size: 16px; }
.sv-checkout-hint { font-size: 13px; color: var(--sv-muted); margin: 8px 0 0; }
.sv-checkout-error { font-size: 13px; color: #e03131; margin: 6px 0 0; font-weight: 600; }
.sv-checkout-go { width: 100%; margin-top: 18px; border-radius: 14px; font-weight: 700; padding: .8rem 1rem; }
.sv-checkout-trust { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--sv-muted); }
.sv-checkout-trust i { color: #12b886; margin-right: 4px; }
body.sv-modal-open { overflow: hidden; }
@keyframes svFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes svPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* Pages with their own Bootstrap build (subtitle-translator): keep light buttons light. */
.sv-hero .btn-light, .sv-page-hero .btn-light, .sv-cta .btn-light, footer .btn-light, .sv-footer-cta .btn-light {
    background: #fff !important; border-color: #fff !important; color: var(--sv-primary-dark, #1f3fd1) !important; }

/* Email code dialog for the upload forms (js/email_otp_gate.js); reuses .sv-checkout-*. */
.sv-otp .sv-otp-lead { color: var(--sv-muted); font-size: 14.5px; margin: 6px 0 16px; }
.sv-otp .sv-otp-lead b { color: var(--sv-ink); word-break: break-all; }
.sv-otp .sv-otp-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13.5px; color: #26324a; }
.sv-otp .sv-otp-consent input { margin-top: 3px; flex: 0 0 auto; }
.sv-otp .sv-otp-consent a { text-decoration: underline; }
.sv-otp .sv-otp-code { height: 58px !important; font-size: 28px !important; letter-spacing: 12px; text-align: center; font-weight: 700; }
.sv-otp .sv-otp-links { display: flex; justify-content: space-between; margin-top: 12px; }
.sv-otp .sv-otp-links button { background: none; border: 0; padding: 0; color: var(--sv-primary); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sv-otp .sv-otp-links button:disabled { color: #8a94a8; cursor: default; }
.sv-otp .sv-otp-msg { min-height: 20px; margin: 12px 0 0; font-size: 13.5px; font-weight: 600; }
.sv-otp .sv-otp-msg.err { color: #e03131; }
.sv-otp .sv-otp-msg.ok { color: #12b886; }
.sv-otp-required { margin: 10px 0 0; font-size: 14px; color: #e03131; font-weight: 600; text-align: center; }
.sv-otp-required a { text-decoration: underline; }
.sv-billing-notes { margin: 22px 0 8px; font-size: 14.5px; }

/* translate-image.php result card (js/s3_translate_image.js fills #image_full and #text_full). */
.sv-ti-result { margin: 28px 0; background: var(--sv-card); border: 1px solid var(--sv-line); border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .08); overflow: hidden; }
.sv-ti-head { padding: 22px 26px; border-bottom: 1px solid var(--sv-line); }
.sv-ti-head h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; color: var(--sv-ink); display: flex; align-items: center; gap: 10px; }
.sv-ti-head h2 .fa { width: 36px; height: 36px; border-radius: 12px; background: #eef2ff; color: var(--sv-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.sv-ti-head p { margin: 0; color: var(--sv-muted); font-size: 14.5px; }
.sv-ti-body { padding: 22px 26px 26px; }
.sv-ti-image:empty { display: none; }
.sv-ti-image { margin-bottom: 18px; text-align: center; }
.sv-ti-image img { max-width: 100%; max-height: 420px; border-radius: 14px; border: 1px solid var(--sv-line); }
.sv-ti-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a94a8; }
.sv-ti-text .container-fluid { padding: 0; border: 1px solid var(--sv-line); border-radius: 14px; overflow: hidden; }
.sv-ti-text .row { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.sv-ti-text .row:nth-child(even) { background: #f7f9ff; }
.sv-ti-text .col.border { border: 0 !important; border-bottom: 1px solid var(--sv-line) !important; padding: 10px 14px; font-size: 14.5px; color: #26324a; word-break: break-word; max-width: none; }
.sv-ti-text .col.border + .col.border { border-left: 1px solid var(--sv-line) !important; color: var(--sv-ink); font-weight: 500; }
.sv-ti-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; border: 2px dashed #d7def0; border-radius: 16px; color: #8a94a8; font-weight: 600; }
.sv-ti-empty .fa { font-size: 28px; color: #b8c3e0; }
@media (max-width: 575px) { .sv-ti-head, .sv-ti-body { padding-left: 16px; padding-right: 16px; } }
.sv-note-muted { font-size: 13.5px; color: var(--sv-muted) !important; margin: 0 0 18px; }
.sv-ti-result { width: 100%; flex: 0 0 100%; }

/* Navbar dropdowns above the page content on pages without #header (subtitle-translator). */
.sv-navbar { position: relative; z-index: 1031; }
.sv-navbar .dropdown-menu { z-index: 1032; }
#more_info, #pricing { scroll-margin-top: 110px; }

/* Result page of the upload handlers (main_template_message.php), one look per kind of message. */
.sv-msg { --msg: var(--sv-primary); --msg-bg: #eef2ff; max-width: 760px; margin: 10px auto 40px !important; text-align: left !important; padding: 32px 34px 26px !important; border-top: 5px solid var(--msg) !important; }
.sv-msg--minutes { --msg: #f08c00; --msg-bg: #fff4e0; }
.sv-msg--blocked { --msg: #e03131; --msg-bg: #ffe9e9; }
.sv-msg--email { --msg: var(--sv-primary); --msg-bg: #eef2ff; }
.sv-msg--wait { --msg: #7048e8; --msg-bg: #f1ecff; }
.sv-msg--file { --msg: #e8590c; --msg-bg: #fff0e6; }
.sv-msg-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sv-msg .sv-message-icon { margin: 0 !important; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; background: var(--msg-bg) !important; color: var(--msg) !important; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.sv-msg-title { font-size: 24px !important; font-weight: 800; margin: 0 !important; color: var(--sv-ink); line-height: 1.2; }
.sv-msg-sub { margin: 4px 0 0; color: var(--sv-muted); font-size: 14.5px; }
.sv-msg-text { display: block; color: #2b3650; font-size: 15.5px; line-height: 1.7; }
.sv-msg .sv-msg-text a, .sv-msg .sv-msg-help a { display: inline !important; margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; color: var(--sv-primary) !important; font-weight: 600; text-decoration: underline; border-radius: 0; }
.sv-msg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.sv-msg-facts > div { background: #f7f9ff; border: 1px solid var(--sv-line); border-radius: 16px; padding: 14px 16px; }
.sv-msg-facts span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a94a8; }
.sv-msg-facts b { display: block; font-size: 24px; font-weight: 800; color: var(--sv-ink); line-height: 1.3; }
.sv-msg-facts small { color: var(--sv-muted); font-size: 12.5px; }
.sv-msg-facts .need { background: var(--msg-bg); border-color: transparent; }
.sv-msg-facts .need b { color: var(--msg); }
.sv-msg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sv-msg .sv-msg-actions a.sv-msg-btn { display: inline-flex !important; align-items: center; gap: 8px; padding: .7rem 1.3rem !important; border-radius: 12px !important; background: #fff !important; border: 1px solid var(--sv-line); color: var(--sv-ink) !important; font-weight: 700; text-decoration: none !important; box-shadow: none !important; margin: 0 !important; }
.sv-msg .sv-msg-actions a.sv-msg-btn:hover { border-color: var(--sv-primary); color: var(--sv-primary) !important; }
.sv-msg .sv-msg-actions a.sv-msg-btn.primary { background: var(--sv-primary) !important; border-color: var(--sv-primary); color: #fff !important; }
.sv-msg .sv-buybox { margin-top: 18px; }
.sv-msg-help { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--sv-line); font-size: 13.5px; color: var(--sv-muted); }
.sv-msg-help .fa { color: var(--msg); margin-right: 4px; }
/* Old database texts: their trailing "Back Home" link shown as a button. */
.sv-msg:not(:has(> .sv-msg-actions)) .sv-msg-text > a:last-child { display: inline-flex !important; margin-top: 18px !important; padding: .7rem 1.3rem !important; border-radius: 12px; border: 1px solid var(--sv-line); background: #fff !important; color: var(--sv-ink) !important; text-decoration: none; }
@media (max-width: 575px) { .sv-msg { padding: 24px 18px 20px !important; } .sv-msg-facts { grid-template-columns: minmax(0, 1fr); } .sv-msg-title { font-size: 20px !important; } }
.sv-job-received { display: flex; align-items: flex-start; gap: 14px; margin: 6px 0 18px; padding: 16px 18px; border-radius: 18px; background: #e9faf3; border: 1px solid #b6ecd6; color: #1d4d3a; animation: svPop .3s ease; }
.sv-job-received .ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: #12b886; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.sv-job-received b { display: block; color: #0b5d40; }
.sv-job-received span { font-size: 14px; }
.sv-job-received span b { display: inline; }
.sv-job-received button { margin-left: auto; border: 0; background: none; font-size: 24px; line-height: 1; color: #4c8a72; cursor: pointer; }

/* Terms, privacy and security pages (js/legal.js). */
.sv-legal-hero h1 { max-width: 760px; }
.sv-legal-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #c9d4ff; font-size: 14px; }
.sv-legal-meta a { color: #fff !important; text-decoration: none; }
.sv-legal-meta .fa { margin-right: 6px; }
.sv-legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.sv-legal-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--sv-line); color: var(--sv-ink) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.sv-legal-tabs a .fa { color: var(--sv-primary); }
.sv-legal-tabs a.active { background: var(--sv-primary); border-color: var(--sv-primary); color: #fff !important; }
.sv-legal-tabs a.active .fa { color: #fff; }
#paypal.sv-legal-page { margin: 0; }
.sv-legal-grid { display: grid !important; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; padding: 0; margin-top: 18px; }
.sv-legal-toc { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; background: #fff; border: 1px solid var(--sv-line); border-radius: 18px; padding: 16px 12px; box-shadow: var(--sv-shadow); }
.sv-legal-toc-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a94a8; padding: 0 10px 8px; }
.sv-legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.sv-legal-toc li a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; color: #3b4660 !important; text-decoration: none !important; line-height: 1.35; }
.sv-legal-toc li a:hover { background: #f3f5ff; }
.sv-legal-toc li a.active { background: #eef2ff; color: var(--sv-primary) !important; font-weight: 700; }
.sv-legal-body { background: #fff; border: 1px solid var(--sv-line); border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .06); padding: 34px 40px; color: #2b3650; font-size: 15.5px; line-height: 1.8; min-width: 0; overflow-wrap: anywhere; }
.sv-legal-body .row { margin: 0; display: block; }
.sv-legal-body .col-sm { padding: 0; max-width: none; }
.sv-legal-body > div:first-child { font-size: 16px; color: #26324a; }
.sv-legal-body h2.sv-legal-h { scroll-margin-top: 110px; font-size: 20px; font-weight: 800; color: var(--sv-ink); margin: 34px 0 10px; padding-top: 26px; border-top: 1px solid var(--sv-line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sv-legal-body > div:first-child h2.sv-legal-h:first-child, .sv-legal-body h2.sv-legal-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sv-legal-flag { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #b35c00; background: #fff4e0; border-radius: 999px; padding: 4px 10px; }
.sv-legal-body p:empty, .sv-legal-empty, .sv-legal-body > br { display: none; }
.sv-legal-body a { color: var(--sv-primary); }
@media (max-width: 991px) {
    .sv-legal-grid { grid-template-columns: minmax(0, 1fr); }
    .sv-legal-toc { position: static; max-height: none; }
    .sv-legal-toc ol { columns: 2; column-gap: 8px; }
}
@media (max-width: 575px) { .sv-legal-body { padding: 22px 18px; font-size: 15px; } .sv-legal-toc ol { columns: 1; } }
.sv-msg-text:has(.sv-msg-facts) .sv-buybox-need { display: none; }

.sv-legal-body h2.sv-legal-h + br { display: none; }

/* Privacy note under the job lists. */
.sv-privacy-note { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 8px; padding: 14px 16px; border-radius: 16px; background: #f3f5ff; border: 1px solid #dde4ff; color: #3b4660 !important; font-size: 14px; line-height: 1.6; }
.sv-privacy-note .fa { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: #fff; color: var(--sv-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 4px 10px rgba(47, 91, 255, .12); }
.sv-privacy-note b { color: var(--sv-ink); }

/* about-us.php */
.ab-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sv-primary); margin-bottom: 8px; }
.ab-mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 36px; background: #fff; border: 1px solid var(--sv-line); border-radius: 24px; padding: 36px 40px; box-shadow: var(--sv-shadow); }
.ab-mission h2, .ab-office h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0; color: var(--sv-ink); line-height: 1.2; }
.ab-mission p { color: #3b4660; font-size: 16px; line-height: 1.75; }
.ab-mission p:last-child { margin-bottom: 0; }
.ab-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ab-values > div { background: #fff; border: 1px solid var(--sv-line); border-radius: 20px; padding: 24px; box-shadow: var(--sv-shadow); }
.ab-values .fa { width: 44px; height: 44px; border-radius: 14px; background: #eef2ff; color: var(--sv-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px; }
.ab-values h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; color: var(--sv-ink); }
.ab-values p { margin: 0; color: var(--sv-muted); font-size: 14.5px; }
.ab-office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; background: #fff; border: 1px solid var(--sv-line); border-radius: 24px; overflow: hidden; box-shadow: var(--sv-shadow); }
.ab-office-info { padding: 34px 36px; }
.ab-office-info p { display: flex; gap: 12px; align-items: baseline; color: #3b4660; margin: 14px 0; }
.ab-office-info p .fa { color: var(--sv-primary); width: 18px; text-align: center; }
.ab-office-info .btn { margin-top: 8px; border-radius: 12px; font-weight: 700; padding: .7rem 1.3rem; }
.ab-office-map { min-height: 320px; position: relative; }
.ab-office-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 767px) {
    .ab-mission, .ab-office { grid-template-columns: minmax(0, 1fr); }
    .ab-mission { padding: 26px 22px; gap: 12px; }
    .ab-office-info { padding: 26px 22px; }
    .ab-office-map { min-height: 260px; }
}

/* support.php */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; margin: 28px 0 40px; }
.sp-form { background: #fff; border: 1px solid var(--sv-line); border-radius: 24px; padding: 32px 34px; box-shadow: 0 24px 60px rgba(15, 23, 42, .07); }
.sp-form h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; color: var(--sv-ink); }
.sp-sub { color: var(--sv-muted); margin-bottom: 22px; }
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-form label { font-weight: 700; font-size: 14px; color: #26324a; }
.sp-opt { font-weight: 400; color: var(--sv-muted); }
.sp-form .form-control { border-radius: 12px; min-height: 46px; }
.sp-file { padding: 14px; border: 2px dashed #d7def0; border-radius: 14px; background: #fafbff; width: 100%; }
.sp-send { border-radius: 14px; font-weight: 700; padding: .8rem 1.6rem; }
.sp-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 14.5px; }
.sp-alert .fa { font-size: 20px; margin-top: 1px; }
.sp-alert.ok { background: #e9faf3; color: #0b5d40; border: 1px solid #b6ecd6; }
.sp-alert.err { background: #ffeeee; color: #a51d1d; border: 1px solid #ffc9c9; }
.sp-side { display: grid; gap: 16px; }
.sp-card { background: #fff; border: 1px solid var(--sv-line); border-radius: 20px; padding: 22px 22px 16px; box-shadow: var(--sv-shadow); }
.sp-card > .fa { width: 40px; height: 40px; border-radius: 12px; background: #eef2ff; color: var(--sv-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 10px; }
.sp-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; color: var(--sv-ink); }
.sp-card p { margin: 0 0 6px; }
.sp-card a { font-weight: 600; }
.sp-muted { color: var(--sv-muted); font-size: 13.5px; }
.sp-card ul { padding-left: 1.1em; margin: 0 0 6px; color: #3b4660; font-size: 14px; }
.sp-card li { margin: 6px 0; }
.sp-links { list-style: none; padding: 0 !important; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) { .sp-row { grid-template-columns: minmax(0, 1fr); gap: 0; } .sp-form { padding: 24px 18px; } }

/* subtitle-remover/ (its style.css centres the page as a table cell: undone here). */
html:has(body.sr-page) { display: block; margin: 0; }
body.sr-page { display: block; }
.sr-card { background: #fff; border: 1px solid var(--sv-line); border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .07); margin: 20px 0; overflow: hidden; }
.sr-head { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--sv-line); }
.sr-head h2 { font-size: 17px; font-weight: 800; margin: 0; color: var(--sv-ink); }
.sr-head p { margin: 0 0 0 auto; color: var(--sv-muted); font-size: 13.5px; }
.sr-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: #eef2ff; color: var(--sv-primary); font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.sr-body { padding: 22px 24px; }
.sr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sr-page .sr-body label { margin-left: 0; font-weight: 700; font-size: 14px; color: #26324a; }
.sr-body .custom-file { height: 48px; }
.sr-body .custom-file-label { height: 48px; line-height: 34px; border-radius: 12px; border: 2px dashed #c9d5ff; background: #fafbff; font-weight: 600; overflow: hidden; white-space: nowrap; }
.sr-body .custom-file-label::after { height: 44px; line-height: 34px; border-radius: 0 10px 10px 0; background: #eef2ff; color: var(--sv-primary); font-weight: 700; }
.sr-body .form-control { height: 48px; border-radius: 12px; }
.sr-body .progress { height: 18px; border-radius: 999px; margin-top: 12px; background: #eef2ff; }
.sr-page #resizable { width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 16 / 9; border: 2px dashed #c9d5ff !important; border-radius: 16px; background: #0f172a; resize: none; padding: 0 !important; overflow: hidden; }
.sr-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #8a94a8; font-weight: 600; text-align: center; padding: 20px; }
.sr-page #resizable video[src] ~ .sr-empty { display: none; }
.sr-page .hide_until_load { padding-top: 16px; }
.sr-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 14px; font-size: 14px; color: #26324a; }
.sr-controls input[type=number] { width: 92px; height: 38px; border: 1px solid var(--sv-line); border-radius: 10px; padding: 0 10px; }
.sr-controls .play_toggle { height: 38px; min-width: 44px; border-radius: 10px; border: 1px solid var(--sv-line); background: #fff; }
.sr-page #run_ffmpeg { border-radius: 14px; font-weight: 700; padding: .85rem 1.8rem; font-size: 16px; }
.sr-page .ffmpeg_log { margin-top: 12px; font-weight: 600; color: #26324a; }
.sr-page .download_links a { display: inline-flex; margin-top: 12px; padding: .75rem 1.3rem; border-radius: 12px; background: #12b886; color: #fff !important; font-weight: 700; text-decoration: none; }
@media (max-width: 767px) { .sr-grid { grid-template-columns: minmax(0, 1fr); } .sr-head p { display: none; } }

/* Home: balance card, savings badge and low-balance buy bar. */
.sv-balance { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; padding: 16px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--sv-line); box-shadow: var(--sv-shadow); }
.sv-balance-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; background: #eef2ff; color: var(--sv-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sv-balance-text { display: flex; flex-direction: column; min-width: 0; }
.sv-balance-text span { font-size: 13px; color: var(--sv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-balance-text b { font-size: 20px; font-weight: 800; color: var(--sv-ink); line-height: 1.25; }
.sv-balance-text small { font-size: 13px; color: var(--sv-muted); }
.sv-balance-btn { margin-left: auto; border-radius: 12px; font-weight: 700; padding: .65rem 1.2rem; white-space: nowrap; }
.sv-balance.low { background: #fff8eb; border-color: #ffe0a3; }
.sv-balance.low .sv-balance-ico { background: #ffe8bf; color: #c96a00; }
.sv-balance.low .sv-balance-text b { color: #b35c00; }
.sv-plan .badge-save { position: absolute; top: -12px; right: 24px; background: #12b886; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.sv-buybar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1040; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 10px 10px 18px; border-radius: 16px; background: #0f172a; color: #e6ebff; box-shadow: 0 20px 50px rgba(15, 23, 42, .35); font-size: 14px; animation: svPop .25s ease; }
.sv-buybar[hidden] { display: none !important; }
.sv-buybar b { color: #ffd27a; }
.sv-buybar .btn { border-radius: 10px; font-weight: 700; white-space: nowrap; }
.sv-buybar-x { border: 0; background: none; color: #8a94a8; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (max-width: 575px) {
    .sv-balance { flex-wrap: wrap; }
    .sv-balance-btn { margin-left: 0; width: 100%; }
    .sv-buybar { left: 16px; right: 16px; transform: none; font-size: 13px; }
}

/* Job list intro (index.php) */
.sv-results-sub { color: var(--sv-muted); font-size: 14.5px; margin: -4px 0 12px; }
.sv-results-sub .fa { color: var(--sv-primary); margin-right: 4px; }
.sv-engine-switch { align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: #f3f5ff; border: 1px solid #dde4ff; font-size: 14px; color: #3b4660; }
.sv-engine-switch .fa { color: var(--sv-primary); }
.sv-engine-switch a { font-weight: 700; }

/* Navbar icons (menu.php): top items carry an <i>, dropdown items get one by link. */
.sv-navbar .sv-nav-ico { width: 18px; margin-right: 6px; text-align: center; color: var(--sv-primary); opacity: .85; }
.sv-navbar .dropdown-item::before { font-family: FontAwesome; display: inline-block; width: 20px; margin-right: 8px; text-align: center; color: var(--sv-primary); opacity: .8; content: "\f105"; }
.sv-navbar .dropdown-item[href*="subtitlevideo.com"]::before, .sv-navbar .dropdown-item[href="/"]::before { content: "\f20a"; }
.sv-navbar .dropdown-item[href*="live-transcribe"]::before, .sv-navbar .dropdown-item[href*="speech_capture"]::before { content: "\f130"; }
.sv-navbar .dropdown-item[href*="translate-video"]::before { content: "\f1ab"; }
.sv-navbar .dropdown-item[href*="auto-subtitle-generator"]::before { content: "\f0e7"; }
.sv-navbar .dropdown-item[href*="video-enhance-ai"]::before { content: "\f065"; }
.sv-navbar .dropdown-item[href*="blur-faces"]::before { content: "\f21b"; }
.sv-navbar .dropdown-item[href*="subtitle-remover"]::before { content: "\f12d"; }
.sv-navbar .dropdown-item[href*="subtitle-translator"]::before { content: "\f0ac"; }
.sv-navbar .dropdown-item[href*="editor.subtitlevideo"]::before { content: "\f044"; }
.sv-navbar .dropdown-item[href*="translate-image"]::before { content: "\f03e"; }
.sv-navbar .dropdown-item[href*="youtube.com"]::before { content: "\f16a"; }
.sv-navbar .dropdown-item[href*="blog.subtitlevideo"]::before { content: "\f1ea"; }
.sv-navbar .dropdown-item[href$="/account"]::before { content: "\f2bd"; }
.sv-navbar .dropdown-item[href*="affiliates"]::before { content: "\f0c0"; }
.sv-navbar .dropdown-item[href*="logout"]::before { content: "\f08b"; }
.sv-navbar .dropdown-item[href*="shorten"]::before { content: "\f0c1"; }

/* Phone menu: roomy items and the sign-in row as full-width buttons. */
@media (max-width: 991px) {
    .sv-navbar .navbar-collapse { padding-top: 6px; }
    .sv-navbar .navbar-nav .nav-link { padding: .7rem .8rem; font-size: 16px; }
    .sv-navbar .dropdown-menu { border: 0; box-shadow: none; background: #f7f9ff; border-radius: 14px; margin: 2px 0 8px; padding: 4px; }
    .sv-navbar .dropdown-item { padding: .7rem .8rem; border-radius: 10px; font-size: 15px; white-space: normal; }
    .sv-navbar .sv-nav-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 6px; }
    .sv-navbar .sv-nav-actions .btn { grid-column: 1 / -1; padding: .75rem 1rem; }
    .sv-navbar .sv-nav-actions .sv-signin { display: flex; align-items: center; justify-content: center; gap: 6px; padding: .65rem .8rem; border: 1px solid var(--sv-line); border-radius: 12px; background: #fff; }
}
@media (max-width: 575px) {
    .sr-body { padding: 16px; }
    .sr-head { padding: 14px 16px; }
    .sr-page #run_ffmpeg { width: 100%; }
    .sr-controls label { display: flex; align-items: center; gap: 6px; }
}

/* People online now (js/theme.js, online.php) */
.sv-online { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #e6ebff; font-size: 13.5px; font-weight: 600; }
.sv-online[hidden] { display: none !important; }
.sv-online .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 0 rgba(46, 229, 157, .6); animation: svPulse 2s infinite; }
.sv-footer-brand .sv-online { margin-top: 10px; background: rgba(255, 255, 255, .08); color: #c9d4ff; }
@keyframes svPulse { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .55); } 70% { box-shadow: 0 0 0 8px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }
@media (prefers-reduced-motion: reduce) { .sv-online .dot { animation: none; } }

/* Job list (js/get_result.js): the result files stand out, the original upload is only a reference. */
#customers .sv-job-mode { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: var(--sv-primary); margin-right: 4px; vertical-align: 1px; }
#customers .sv-job-name { color: #26324a; font-weight: 500; overflow-wrap: anywhere; }
#customers .sv-job-orig { font-size: 12px; color: #8a94a8 !important; text-decoration: none; white-space: nowrap; }
#customers .sv-job-orig:hover { color: var(--sv-primary) !important; }
#customers .sv-job-admin a { font-size: 12px; }
#customers .sv-dl-btn { display: inline-flex; align-items: center; gap: 6px; margin: 2px 4px 2px 0; padding: 5px 11px; border-radius: 10px; background: var(--sv-primary); color: #fff !important; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
#customers .sv-dl-btn:hover { background: #1f3fd1; }
#customers .sv-dl-btn.sv-dl-soft { background: #eef2ff; color: var(--sv-primary) !important; }
#customers .sv-job-watch, #customers .sv-job-link { font-weight: 700; white-space: nowrap; }

/* Signed-in account in the navbar (menu.php): long emails are cut with "…". */
.sv-navbar .sv-nav-account .dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; }
.sv-navbar .sv-acct-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 991px) {
    .sv-navbar .sv-nav-actions.sv-nav-signed { display: flex !important; flex-direction: column; align-items: stretch; gap: 10px; }
    .sv-navbar .sv-nav-signed .sv-signin { justify-content: center; }
    .sv-navbar .sv-nav-account { width: 100%; margin: 0 !important; }
    .sv-navbar .sv-nav-account .dropdown-toggle { max-width: none; width: 100%; justify-content: center; padding: .65rem .8rem; border: 1px solid var(--sv-line); border-radius: 12px; background: #fff; }
    .sv-navbar .sv-nav-account .dropdown-toggle::after { margin-left: auto; }
    .sv-navbar .sv-nav-account .dropdown-menu { position: static !important; transform: none !important; width: 100%; }
}
@media (max-width: 991px) {
    .sv-navbar .sv-nav-account > .navbar-item { width: 100%; }
}

/* Customer reviews (reviews_block.php) and the review dialog (js/theme.js). */
.sv-reviews .sv-section-head { text-align: center; }
.sv-reviews-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: #fff4e0; border: 1px solid #ffe0a3; color: #9a5b00; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sv-reviews h2 { margin-top: 14px; }
.sv-stars { color: #f59f00; display: inline-flex; gap: 3px; }
.sv-stars.lg { font-size: 30px; gap: 6px; }
.sv-reviews-score p { color: var(--sv-muted); margin: 6px 0 0; }
.sv-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 26px; }
.sv-review-card { margin: 0; background: #fff; border: 1px solid var(--sv-line); border-radius: 20px; padding: 26px 26px 22px; box-shadow: var(--sv-shadow); display: flex; flex-direction: column; gap: 14px; }
.sv-review-card blockquote { margin: 0; font-size: 16px; line-height: 1.65; font-style: italic; color: #26324a; flex: 1; }
.sv-review-card figcaption { display: flex; align-items: center; gap: 12px; }
.sv-review-card figcaption b { display: block; color: var(--sv-ink); }
.sv-review-card figcaption small { color: var(--sv-muted); }
.sv-avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #12b886, #4f6bff); flex: 0 0 auto; }
.sv-review-card:nth-child(3n+2) .sv-avatar { background: linear-gradient(135deg, #7048e8, #4f6bff); }
.sv-review-card:nth-child(3n+3) .sv-avatar { background: linear-gradient(135deg, #f76707, #e64980); }
.sv-reviews-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; color: var(--sv-muted); }
.sv-reviews-cta .btn { border-radius: 12px; font-weight: 700; }
.sv-rv-stars { display: flex; gap: 6px; margin: 4px 0 16px; }
.sv-rv-stars button { border: 0; background: none; padding: 0; font-size: 32px; color: #f59f00; cursor: pointer; line-height: 1; }
.sv-review-modal label { font-weight: 600; font-size: 14px; color: #26324a; margin: 6px 0 4px; }
.sv-review-modal textarea { border-radius: 12px; }
.sv-rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#customers .sv-job-rate { display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 700; color: #b35c00 !important; white-space: nowrap; }

/* Reviews block: always a full-width section after the page content, even
   where the page markup leaves it inside the hero's flex row (#paypal). */
.sv-reviews-wrap { flex: 0 0 100%; max-width: 100%; width: 100%; order: 99; margin-top: 8px; }
.row > .sv-reviews-wrap { padding: 0 15px; }

/* Service-page pricing rebuilt as plan cards (js/theme.js). */
.sv-plans-service { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; text-align: left; }
.sv-packs { display: grid; gap: 10px; margin-top: 8px; }
.sv-pack { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px;
    border: 1px solid var(--sv-line); background: #f7f9ff; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.sv-pack:hover { border-color: var(--sv-primary); background: #fff; transform: translateY(-1px); }
.sv-pack b { font-size: 20px; font-weight: 800; color: var(--sv-ink); }
.sv-pack span { color: var(--sv-muted); font-weight: 600; }
.sv-pack .fa { color: var(--sv-primary); font-size: 20px; }
@media (max-width: 991px) { .sv-plans-service { grid-template-columns: 1fr; } }

/* Result tables as cards on phones (labels from js/theme.js). */
@media (max-width: 767px) {
    table#customers { display: block; overflow: visible; }
    #customers tbody { display: block; }
    #customers tr.d-flex.sv-head-row, #customers tr.sv-head-row { display: none !important; }
    #customers td.sv-empty { display: none !important; }
    #customers tr.d-flex { display: grid !important; grid-template-columns: 1fr; gap: 8px; padding: 14px 6px; border-bottom: 1px solid var(--sv-line); }
    #customers tr:last-child { border-bottom: 0; }
    #customers td { flex: none !important; max-width: 100% !important; width: auto !important; padding: 0 !important; border: 0 !important; }
    #customers td[data-label]:not(.name) { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
    #customers td[data-label]:not(.name)::before { content: attr(data-label); flex: 0 0 92px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a95ad; }
    #customers tr:not(:first-child) td:not(.name):not(:last-child) { color: inherit; }
    #customers .sv-dl-btn { white-space: nowrap; }
}

/* "Download your result" note above the result tables (enhancer, blur). */
.sv-results-note { display: block; position: relative; padding-left: 42px !important; background: #fff8e6; border: 1px solid #ffe2a8; color: #5c4400; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; line-height: 1.55; margin: 6px 0 12px; max-width: 960px; }
.sv-results-note > .fa { position: absolute; left: 16px; top: 15px; color: #d48806; }
#customers .sv-job-wait { color: #8a94a8; font-size: 13.5px; }
#customers .sv-job-name { font-weight: 600; color: var(--sv-ink); }
