:root {
    --ui-bg: #f3f7fc;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f6faff;
    --ui-text: #10243b;
    --ui-text-muted: #5d738d;
    --ui-border: #d6e1ee;
    --ui-success: #1f9d69;
    --ui-warning: #c9821b;
    --ui-danger: #ca3f57;
    --ui-info: #2074ce;
    --ui-accent: var(--primary, #2563eb);
    --ui-accent-strong: var(--primary-dark, #1d4ed8);
    --ui-accent-soft: color-mix(in srgb, var(--ui-accent) 12%, #ffffff);
    --ui-accent-muted: color-mix(in srgb, var(--ui-accent) 18%, #eff6ff);
    --ui-accent-glow: color-mix(in srgb, var(--ui-accent) 24%, transparent);
    --ui-shadow-lg: 0 20px 60px rgba(20, 38, 64, 0.09);
    --ui-shadow-md: 0 10px 28px rgba(20, 38, 64, 0.07);
    --ui-shadow-sm: 0 4px 14px rgba(20, 38, 64, 0.05);
    --ui-radius-xl: 24px;
    --ui-radius-lg: 18px;
    --ui-radius-md: 14px;
}

[data-bs-theme="dark"] {
    --ui-bg: #0d131c;
    --ui-surface: #111c28;
    --ui-surface-soft: #172536;
    --ui-text: #eaf2fb;
    --ui-text-muted: #9fb1c6;
    --ui-border: #25384f;
    --ui-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
    --ui-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.25);
    --ui-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.2);
}

html, body {
    min-height: 100%;
}

body {
    font-family: var(--font-family, "Manrope", "Inter", "Segoe UI", Arial, sans-serif);
    font-size: var(--font-size-base, 16px);
    color: var(--ui-text);
    background:
        radial-gradient(1180px 440px at -12% -20%, color-mix(in srgb, var(--ui-accent) 14%, transparent), transparent 55%),
        radial-gradient(980px 420px at 112% 0%, color-mix(in srgb, var(--primary-light, #dbeafe) 44%, transparent), transparent 62%),
        var(--ui-bg);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6,
.navbar .nav-link,
.btn {
    font-family: "Sora", "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

.container {
    max-width: 1240px;
}

.sect,
.card,
.modal-content,
.dropdown-menu,
.accordion-item,
.table,
.offcanvas,
.list-group-item {
    border-color: var(--ui-border) !important;
}

.sect,
.card,
.modal-content,
.dropdown-menu,
.accordion-item {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-surface) 94%, #ffffff) 0%, var(--ui-surface) 100%);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
}

.sect {
    padding: 1.1rem 1.2rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: saturate(170%) blur(10px);
    background: color-mix(in srgb, var(--ui-surface) 86%, transparent) !important;
    border-bottom: 1px solid var(--ui-border);
}

.navbar-brand svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.navbar .nav-link {
    color: var(--ui-text-muted) !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.45rem 0.8rem !important;
    transition: all .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--ui-text) !important;
    background: var(--ui-accent-soft);
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.subtitle-content {
    max-height: min(62vh, 760px);
    overflow-y: auto;
    padding: 0.25rem;
    font-family: var(--font-family, "Manrope", "Inter", "Segoe UI", Arial, sans-serif);
    line-height: 1.6;
}

.subtitle-section {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--ui-surface-soft) 86%, transparent);
}

.subtitle-section-title {
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    color: var(--ui-accent-strong);
    background: color-mix(in srgb, var(--ui-accent) 12%, var(--ui-surface));
}

.subtitle-line {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.35rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: color-mix(in srgb, var(--ui-surface) 92%, transparent);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.subtitle-line:last-child {
    margin-bottom: 0;
}

.subtitle-line:hover {
    background: color-mix(in srgb, var(--ui-accent) 7%, var(--ui-surface));
    border-color: color-mix(in srgb, var(--ui-accent) 18%, var(--ui-border));
}

.subtitle-line .timestamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.2rem 0.45rem;
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: var(--ui-accent-strong);
    background: color-mix(in srgb, var(--ui-accent) 11%, var(--ui-surface));
}

.subtitle-line .text {
    min-width: 0;
    color: var(--ui-text);
    font-size: 0.96rem;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 576px) {
    .subtitle-section {
        padding: 0.65rem;
        border-radius: 14px;
    }

    .subtitle-line {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.65rem 0.7rem;
    }

    .subtitle-line .timestamp {
        justify-self: start;
    }
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-convert,
.btn-primary {
    background: linear-gradient(135deg, var(--ui-accent) 0%, var(--ui-accent-strong) 100%);
    border-color: var(--ui-accent-strong);
    color: #fff;
    box-shadow: 0 12px 24px var(--ui-accent-glow);
}

.btn-convert:hover,
.btn-convert:focus,
.btn-convert:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-hover, #1d4ed8) 0%, var(--ui-accent-strong) 100%);
    border-color: var(--primary-hover, #1d4ed8);
    color: #fff;
}

.btn-outline-primary {
    border-width: 1px;
    border-color: color-mix(in srgb, var(--ui-accent) 28%, var(--ui-border));
    color: var(--ui-accent-strong);
    background: color-mix(in srgb, var(--ui-surface) 88%, transparent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff;
    background: var(--ui-accent);
    border-color: var(--ui-accent);
}

.form-control,
.form-select,
.input-group-text {
    background: color-mix(in srgb, var(--ui-surface-soft) 80%, transparent);
    border: 1px solid var(--ui-border);
    color: var(--ui-text);
    border-radius: 12px;
    min-height: 46px;
}

.form-control::placeholder {
    color: color-mix(in srgb, var(--ui-text-muted) 88%, transparent);
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--ui-accent) 45%, var(--ui-border));
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--ui-accent) 16%, transparent);
}


.table {
    border-radius: 14px;
    overflow: hidden;
    background: var(--ui-surface);
}

.table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: var(--ui-border);
    color: var(--ui-text);
}

.table thead th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ui-text-muted);
    background: color-mix(in srgb, var(--ui-surface-soft) 78%, transparent);
}

.alert {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
}

.alert-success {
    border-color: color-mix(in srgb, var(--ui-success) 35%, var(--ui-border));
    background: color-mix(in srgb, var(--ui-success) 12%, transparent);
    color: color-mix(in srgb, var(--ui-success) 76%, var(--ui-text));
}

.alert-warning {
    border-color: color-mix(in srgb, var(--ui-warning) 35%, var(--ui-border));
    background: color-mix(in srgb, var(--ui-warning) 13%, transparent);
}

.alert-danger {
    border-color: color-mix(in srgb, var(--ui-danger) 36%, var(--ui-border));
    background: color-mix(in srgb, var(--ui-danger) 12%, transparent);
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
}

.progress {
    background: color-mix(in srgb, var(--ui-border) 42%, transparent);
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--ui-accent), var(--ui-accent-strong));
}

.modal-content {
    border-radius: 18px;
}

.dropdown-menu {
    border-radius: 14px;
    padding: .5rem;
}

.dropdown-item {
    border-radius: 10px;
}

.dropdown-item:hover {
    background: var(--ui-accent-soft);
}

.accordion-button {
    border-radius: 12px !important;
    box-shadow: none !important;
    background: color-mix(in srgb, var(--ui-surface-soft) 74%, transparent);
}

.accordion-button:not(.collapsed) {
    color: var(--ui-text);
    background: var(--ui-accent-soft);
}

.theme-toggle {
    background: color-mix(in srgb, var(--ui-surface-soft) 75%, transparent);
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    justify-content: center;
}

footer {
    background: color-mix(in srgb, var(--ui-surface) 78%, transparent);
    backdrop-filter: blur(8px);
}

.review-floating-button,
.feedback-floating-button {
    border-radius: 16px !important;
    box-shadow: var(--ui-shadow-md) !important;
}

.card,
.sect,
.accordion-item,
.modal-content {
    animation: freeFadeIn .28s ease both;
}

@keyframes freeFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .navbar-brand svg {
        width: 160px;
        height: 32px;
    }

    .sect {
        padding: 1rem;
    }

    .free-notice-banner {
        grid-template-columns: 1fr;
    }

    .notice-banner-icon {
        width: 42px;
        height: 42px;
    }

    .home-trial-upsell-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

:root {
    --coffee-bg: #edf5ff;
    --coffee-border: #cfe0fb;
    --coffee-color: #18487d;
    --thanks-bg: #eef4ff;
    --thanks-border: #d3def7;
    --thanks-color: #163f76;
}

[data-bs-theme="dark"] {
    --coffee-bg: #112239;
    --coffee-border: #244972;
    --coffee-color: #c2ddff;
    --thanks-bg: #12233c;
    --thanks-border: #284971;
    --thanks-color: #c8ddff;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.sect.coffee {
    background: linear-gradient(180deg, color-mix(in srgb, var(--coffee-bg) 97%, #ffffff) 0%, var(--coffee-bg) 100%);
    border: 1px solid var(--coffee-border);
    color: var(--coffee-color);
    box-shadow: 0 14px 34px rgba(28, 78, 216, 0.08);
}

.sect.thanks {
    background: linear-gradient(180deg, color-mix(in srgb, var(--thanks-bg) 97%, #ffffff) 0%, var(--thanks-bg) 100%);
    border: 1px solid var(--thanks-border);
    color: var(--thanks-color);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
}

.home-trial-upsell {
    display: block;
    padding: 1.2rem 1.25rem;
    background:
        radial-gradient(420px 170px at 100% 0%, color-mix(in srgb, var(--ui-accent) 12%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--ui-surface-soft) 72%, #ffffff) 0%, var(--ui-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--ui-accent) 24%, var(--ui-border));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.08);
}

.home-trial-upsell-copy {
    min-width: 0;
}

.home-trial-upsell-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .8rem;
    padding: .42rem .75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ui-accent) 12%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--ui-accent) 24%, var(--ui-border));
    color: var(--ui-accent-strong);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.home-trial-upsell-badge-price {
    display: inline-flex;
    align-items: center;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ui-accent) 0%, var(--ui-accent-strong) 100%);
    color: #fff;
    font-weight: 900;
}

.home-trial-upsell-title {
    margin: 0 0 .4rem;
    font-size: clamp(1.08rem, 1.8vw, 1.42rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ui-text);
}

.home-trial-upsell-subtitle {
    color: var(--ui-text-muted);
    line-height: 1.65;
    max-width: 60ch;
}

.home-trial-upsell-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .85rem;
}

.home-trial-upsell-pill {
    display: inline-flex;
    align-items: center;
    padding: .38rem .72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid color-mix(in srgb, var(--ui-accent) 14%, var(--ui-border));
    color: color-mix(in srgb, var(--ui-text) 88%, var(--ui-accent));
    font-size: .82rem;
    font-weight: 700;
}

.home-trial-upsell-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    margin-top: 1rem;
    padding-top: .95rem;
    border-top: 1px solid color-mix(in srgb, var(--ui-accent) 16%, var(--ui-border));
}

.home-trial-upsell-price-note {
    margin: 0;
    color: var(--ui-text-muted);
    font-size: .92rem;
    font-weight: 700;
}

.home-trial-upsell-button {
    flex: 0 0 auto;
}

.free-notice-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
}

.notice-banner-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--ui-accent) 0%, var(--ui-accent-strong) 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.notice-banner-content {
    min-width: 0;
}

.notice-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .45rem;
    padding: .32rem .72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.56);
    color: color-mix(in srgb, var(--thanks-color) 88%, #163f76);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.notice-banner-text {
    font-size: 1rem;
    line-height: 1.7;
    color: color-mix(in srgb, var(--thanks-color) 92%, #163f76);
}

.notice-banner-text .notice-domain {
    color: var(--ui-accent-strong);
    font-weight: 800;
}

.notice-banner-text .notice-code,
.notice-banner-text .notice-discount {
    display: inline-flex;
    align-items: center;
    padding: .12rem .48rem;
    margin: 0 .08rem;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.notice-banner-text .notice-code {
    color: #fff;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    box-shadow: 0 8px 18px var(--ui-accent-glow);
}

.notice-banner-text .notice-discount {
    color: var(--ui-accent-strong);
    background: color-mix(in srgb, var(--ui-accent) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--ui-accent) 22%, var(--ui-border));
}

.sect.coffee a,
.sect.thanks a {
    color: inherit;
}

.btn-quality {
    background: color-mix(in srgb, var(--ui-surface-soft) 90%, transparent);
    color: var(--ui-accent-strong);
    font-weight: 600;
    border: 1px solid var(--ui-border);
}

.btn-quality:hover,
.btn-quality:focus {
    background: var(--ui-accent);
    border-color: var(--ui-accent);
    color: #fff;
}

.btn-share {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ui-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-share::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.btn-share:hover::after {
    animation: shareRipple .9s ease-out;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow-md);
    color: #fff;
}

.btn-share i,
.btn-share svg {
    color: inherit !important;
    fill: currentColor;
    line-height: 1;
    font-size: 1rem;
}

.btn-share:hover i,
.btn-share:hover svg,
.btn-share:focus i,
.btn-share:focus svg {
    color: inherit !important;
    fill: currentColor;
}

.btn-twitter { background: #1da1f2; }
.btn-facebook { background: #4267b2; }
.btn-reddit { background: #ff4500; }
.btn-telegram { background: #0088cc; }
.btn-vk { background: #2787f5; }
.btn-ok { background: #ee8208; }
.btn-mailru { background: #168de2; }
.btn-tumblr { background: #36465d; }
.btn-messenger { background: #0084ff; }
.btn-whatsapp { background: #25d366; }
.btn-email { background: #6b7280; }
.btn-copy { background: #111827; }

.btn-twitter,
.btn-twitter:hover,
.btn-twitter:focus,
.btn-twitter:active {
    background-color: #1da1f2 !important;
    border-color: #1da1f2 !important;
    color: #fff !important;
}

.btn-facebook,
.btn-facebook:hover,
.btn-facebook:focus,
.btn-facebook:active {
    background-color: #4267b2 !important;
    border-color: #4267b2 !important;
    color: #fff !important;
}

.btn-reddit,
.btn-reddit:hover,
.btn-reddit:focus,
.btn-reddit:active {
    background-color: #ff4500 !important;
    border-color: #ff4500 !important;
    color: #fff !important;
}

.btn-telegram,
.btn-telegram:hover,
.btn-telegram:focus,
.btn-telegram:active {
    background-color: #0088cc !important;
    border-color: #0088cc !important;
    color: #fff !important;
}

.btn-vk,
.btn-vk:hover,
.btn-vk:focus,
.btn-vk:active {
    background-color: #2787f5 !important;
    border-color: #2787f5 !important;
    color: #fff !important;
}

.btn-ok,
.btn-ok:hover,
.btn-ok:focus,
.btn-ok:active {
    background-color: #ee8208 !important;
    border-color: #ee8208 !important;
    color: #fff !important;
}

.btn-mailru,
.btn-mailru:hover,
.btn-mailru:focus,
.btn-mailru:active {
    background-color: #168de2 !important;
    border-color: #168de2 !important;
    color: #fff !important;
}

.btn-tumblr,
.btn-tumblr:hover,
.btn-tumblr:focus,
.btn-tumblr:active {
    background-color: #36465d !important;
    border-color: #36465d !important;
    color: #fff !important;
}

.btn-messenger,
.btn-messenger:hover,
.btn-messenger:focus,
.btn-messenger:active {
    background-color: #0084ff !important;
    border-color: #0084ff !important;
    color: #fff !important;
}

.btn-whatsapp,
.btn-whatsapp:hover,
.btn-whatsapp:focus,
.btn-whatsapp:active {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.btn-email,
.btn-email:hover,
.btn-email:focus,
.btn-email:active {
    background-color: #6b7280 !important;
    border-color: #6b7280 !important;
    color: #fff !important;
}

.btn-copy,
.btn-copy:hover,
.btn-copy:focus,
.btn-copy:active {
    background-color: #111827 !important;
    border-color: #111827 !important;
    color: #fff !important;
}

@keyframes shareRipple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: .5; }
    100% { transform: translate(-50%, -50%) scale(30); opacity: 0; }
}

.review-card {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-surface) 98%, #ffffff) 0%, color-mix(in srgb, var(--ui-surface-soft) 92%, transparent) 100%);
    border-radius: 16px;
    box-shadow: var(--ui-shadow-sm);
    padding: 1.25rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid color-mix(in srgb, var(--ui-border) 88%, transparent);
    position: relative;
    overflow: hidden;
}

.review-card-free {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--ui-accent) 18%, transparent) 0%, transparent 42%),
        linear-gradient(180deg, color-mix(in srgb, var(--ui-surface) 98%, #ffffff) 0%, color-mix(in srgb, #eaf2ff 86%, transparent) 100%);
    border-color: color-mix(in srgb, var(--ui-accent) 34%, var(--ui-border));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14);
}

.review-card-free::before {
    width: 6px;
    background: linear-gradient(180deg, #2563eb, #123a72);
}

.review-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ui-accent), var(--ui-accent-strong));
    opacity: .9;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-md);
}

.inline-review-card {
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--ui-border, #d1d5db) 76%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-surface-soft, #f8fafc) 84%, transparent) 0%, color-mix(in srgb, var(--ui-surface, #ffffff) 96%, transparent) 100%);
}

.inline-review-stars {
    display: inline-flex;
    gap: .4rem;
}

.review-card-header,
.review-card-footer {
    border-color: color-mix(in srgb, var(--ui-border) 86%, transparent);
}

.review-card-header {
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--ui-border) 86%, transparent);
}

.review-card-footer {
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid color-mix(in srgb, var(--ui-border) 86%, transparent);
}

.review-stars,
.average-stars {
    color: #ffd24d;
}

.review-date,
.review-country {
    color: var(--ui-text-muted);
}

.review-text {
    color: var(--ui-text);
    line-height: 1.55;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
}

.review-name {
    font-weight: 700;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .28rem .65rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
}

.review-badge-free {
    color: #123a72;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid rgba(37, 99, 235, 0.22);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.review-inline-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: .7rem;
    font-weight: 700;
    color: var(--ui-accent-strong);
    background: color-mix(in srgb, var(--ui-accent) 12%, white);
    border: 1px solid color-mix(in srgb, var(--ui-accent) 22%, transparent);
}

.empty-reviews-card,
.review-metrics {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-surface) 98%, #ffffff) 0%, color-mix(in srgb, var(--ui-surface-soft) 92%, transparent) 100%);
    border-radius: 16px;
    box-shadow: var(--ui-shadow-sm);
    border: 1px solid color-mix(in srgb, var(--ui-border) 88%, transparent);
}

.empty-reviews-icon {
    font-size: 3rem;
    color: var(--ui-accent);
    opacity: .3;
}

.average-rating {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: var(--ui-accent-strong);
}

.rating-bar {
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ui-border) 50%, transparent);
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ui-accent), var(--ui-accent-strong));
}

.reviews-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.reviews-pagination .page-link {
    color: var(--ui-accent-strong);
    border-color: var(--ui-border);
    background: var(--ui-surface);
}

.reviews-pagination .page-item.active .page-link {
    background: var(--ui-accent);
    border-color: var(--ui-accent);
    color: #fff;
}

.nav-pills,
.nav-tabs {
    gap: .55rem;
    border-bottom: 0;
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    color: var(--ui-text-muted);
    background: color-mix(in srgb, var(--ui-surface-soft) 88%, transparent);
    font-weight: 700;
    padding: .72rem 1rem;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: var(--ui-text);
    border-color: color-mix(in srgb, var(--ui-accent) 20%, var(--ui-border));
    background: var(--ui-accent-soft);
    transform: translateY(-1px);
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
    color: #fff;
    border-color: var(--ui-accent);
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    box-shadow: 0 10px 22px var(--ui-accent-glow);
}

.nav-pills .nav-link .badge,
.nav-tabs .nav-link .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: inherit !important;
}

.tab-content > .tab-pane {
    animation: freeFadeIn .2s ease both;
}

.step-number-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    box-shadow: 0 8px 18px var(--ui-accent-glow);
    flex-shrink: 0;
}

.stat-card {
    height: 100%;
    padding: 1.45rem 1rem;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--ui-border) 92%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-surface) 98%, #ffffff) 0%, color-mix(in srgb, var(--ui-surface-soft) 90%, transparent) 100%);
    box-shadow: var(--ui-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ui-accent), var(--ui-accent-strong));
    opacity: .95;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--ui-accent) 22%, var(--ui-border));
    box-shadow: var(--ui-shadow-md);
}

.stat-icon {
    font-size: 1.85rem;
    margin-bottom: .9rem;
    color: var(--ui-accent);
}

.stat-number {
    font-size: 2.35rem;
    font-weight: 800;
    margin-bottom: .45rem;
    color: var(--ui-accent-strong);
    line-height: 1;
}

.stat-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .35rem;
    color: var(--ui-text);
}

.stat-desc {
    font-size: .84rem;
    margin-bottom: 0;
    color: var(--ui-text-muted);
}

.recent-downloads-table {
    margin-bottom: 0;
}

.recent-downloads-table tbody tr {
    transition: background-color .18s ease, transform .18s ease;
}

.recent-downloads-table tbody tr:hover {
    background: color-mix(in srgb, var(--ui-accent) 5%, var(--ui-surface)) !important;
}

.recent-downloads-table .recent-title-cell .fw-medium {
    color: var(--ui-text);
}

.recent-downloads-table .badge,
.recent-downloads-table .status-badge {
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .recent-downloads-table thead {
        display: none;
    }

    .recent-downloads-table,
    .recent-downloads-table tbody,
    .recent-downloads-table tr,
    .recent-downloads-table td {
        display: block;
        width: 100% !important;
    }

    .recent-downloads-table tbody tr {
        margin-bottom: 14px;
        padding: 14px 14px 12px;
        border-radius: 18px;
        border: 1px solid color-mix(in srgb, var(--ui-border) 88%, transparent);
        background: linear-gradient(
            180deg,
            color-mix(in srgb, var(--ui-surface) 98%, #ffffff) 0%,
            color-mix(in srgb, var(--ui-surface-soft) 92%, transparent) 100%
        );
        box-shadow: var(--ui-shadow-sm);
    }

    .recent-downloads-table td {
        border: 0 !important;
        padding: .45rem 0;
    }

    .recent-downloads-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: .28rem;
        font-size: .72rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: .01em;
        text-transform: uppercase;
        color: var(--ui-text-muted);
    }

    .recent-downloads-table td[colspan] {
        text-align: center;
        padding: 1rem 0;
    }

    .recent-downloads-table td[colspan]::before {
        display: none;
    }

    .recent-downloads-table .recent-title-cell .fw-medium,
    .recent-downloads-table .recent-title-cell .small {
        max-width: none !important;
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        word-break: break-word;
    }

    .recent-downloads-table .recent-title-cell .fw-medium {
        font-size: .98rem;
        line-height: 1.35;
    }

    .recent-downloads-table .recent-title-cell .small {
        margin-top: .18rem;
    }

    .recent-downloads-table .badge {
        margin-right: .35rem;
        margin-bottom: .35rem;
    }

    .recent-downloads-table .recent-action-cell .btn {
        width: 100%;
        justify-content: center;
    }
}

.trim-live-wrap {
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--ui-border, #d1d5db) 70%, transparent);
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--ui-surface-soft, #f8fafc) 82%, transparent) 0%,
        color-mix(in srgb, var(--ui-surface-soft, #f8fafc) 58%, transparent) 100%
    );
}

.trim-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 44px;
    border-radius: 10px;
    padding: 6px 8px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ui-border, #d1d5db) 70%, transparent);
    background: color-mix(in srgb, var(--ui-surface-soft, #f8fafc) 88%, transparent);
}

.trim-waveform .trim-bar {
    flex: 1 1 auto;
    border-radius: 999px;
    min-width: 2px;
    background: color-mix(in srgb, var(--ui-accent) 38%, #ffffff);
    opacity: .82;
}

.trim-range-wrap {
    position: relative;
    height: 26px;
}

.trim-range {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.trim-range::-webkit-slider-runnable-track,
.trim-range::-moz-range-track {
    height: 26px;
    background: transparent;
    border: 0;
}

.trim-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--ui-accent);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .24);
    pointer-events: auto;
    cursor: ew-resize;
}

.trim-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--ui-accent);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .24);
    pointer-events: auto;
    cursor: ew-resize;
}

.trim-live-inline .trim-track-labels {
    letter-spacing: .01em;
}

.progress-bar.downloading-progress-bar {
    background: linear-gradient(90deg, var(--ui-accent) 0%, var(--ui-accent-strong) 100%);
    color: #fff !important;
}

.download-progress-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
    letter-spacing: .01em;
}

.media-thumb,
.media-thumb-placeholder {
    display: block;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--ui-border, #d1d5db) 68%, transparent);
    overflow: hidden;
    background: color-mix(in srgb, var(--ui-surface-soft, #eef2ff) 86%, transparent);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

.media-thumb {
    object-fit: cover;
    object-position: center;
}

.media-thumb-placeholder {
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--ui-accent) 18%, transparent), color-mix(in srgb, var(--primary-light, #dbeafe) 54%, transparent));
}

.media-thumb-sm,
.media-thumb-placeholder.media-thumb-sm {
    width: 84px;
    height: 48px;
}

.media-thumb-md,
.media-thumb-placeholder.media-thumb-md {
    width: 86px;
    height: 50px;
}

.media-thumb-lg,
.media-thumb-placeholder.media-thumb-lg {
    width: 96px;
    height: 56px;
    border-radius: 12px;
}

.thumbnail-container {
    width: min(100%, 360px);
    aspect-ratio: 16 / 9;
    max-height: 220px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ui-border, #d1d5db) 68%, transparent);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
    margin-inline: auto;
    background: color-mix(in srgb, var(--ui-surface-soft, #eef2ff) 88%, transparent);
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#howToAccordion,
#whyChooseAccordion {
    gap: .5rem;
}

#howToAccordion .accordion-item,
#whyChooseAccordion .accordion-item {
    margin-bottom: 0 !important;
}

#howToAccordion .accordion-button,
#whyChooseAccordion .accordion-button {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .72rem .9rem;
    line-height: 1.25;
}

#howToAccordion .accordion-button .step-number-small,
#whyChooseAccordion .accordion-button .step-number-small {
    margin-right: 0 !important;
    flex: 0 0 28px;
}

#howToAccordion .accordion-body,
#whyChooseAccordion .accordion-body {
    padding: .82rem .95rem;
}

#reviewModal .modal-dialog {
    max-width: 560px;
}

#reviewModal .modal-content {
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--ui-border, #d1d5db) 72%, transparent);
    box-shadow: 0 24px 56px rgba(15, 23, 42, .24);
    overflow: hidden;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--ui-surface-soft, #f8fafc) 95%, transparent) 0%,
        color-mix(in srgb, var(--ui-surface, #ffffff) 98%, transparent) 100%
    );
}

#reviewModal .modal-header {
    padding: 1rem 1.1rem .4rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-accent) 10%, transparent) 0%, transparent 100%);
}

#reviewModal .modal-body {
    padding: .9rem 1.1rem 1.05rem;
}

#reviewModal .star-rating-container {
    padding: 10px 0 8px;
}

#reviewModal .star-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

#reviewModal .star-rating input {
    display: none;
}

#reviewModal .star-rating label,
.inline-review-stars .inline-review-star {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    color: color-mix(in srgb, var(--ui-text-muted, #6b7280) 45%, #ffffff);
    background: color-mix(in srgb, var(--ui-surface-soft, #f8fafc) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--ui-border, #d1d5db) 76%, transparent);
    transition: transform .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#reviewModal .star-rating label:hover,
.inline-review-stars .inline-review-star:hover {
    transform: translateY(-1px) scale(1.03);
}

#reviewModal .star-rating label.is-active,
.inline-review-stars .inline-review-star.is-active {
    color: #f59e0b;
    border-color: color-mix(in srgb, #f59e0b 52%, var(--ui-border, #d1d5db));
    background: color-mix(in srgb, #f59e0b 16%, #ffffff);
    box-shadow: 0 8px 18px rgba(245, 158, 11, .24);
}

#reviewModal .rating-description {
    min-height: 56px;
    margin: .55rem 0 .25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#formatPickerBody .format-option-card,
#formatPickerBody .free-video-option {
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 0;
    padding: .88rem .95rem !important;
    white-space: normal !important;
    text-transform: none !important;
    border: 1px solid color-mix(in srgb, var(--ui-border, #d1d5db) 74%, transparent);
    background: color-mix(in srgb, var(--ui-surface-soft, #f8fafc) 72%, transparent);
    border-radius: 14px !important;
}

#formatPickerBody .format-option-card::before,
#formatPickerBody .format-option-card::after,
#formatPickerBody .free-video-option::before,
#formatPickerBody .free-video-option::after {
    content: none !important;
    display: none !important;
}

#formatPickerBody .format-option-card .d-flex {
    width: 100%;
    align-items: flex-start !important;
    gap: .65rem !important;
}

#formatPickerBody .format-option-card .badge {
    margin-left: auto;
    flex-shrink: 0;
}

#formatPickerBody .format-option-card.is-active,
#formatPickerBody .format-option-card.border-primary,
#formatPickerBody .free-video-option.border-primary,
#formatPickerBody .free-video-option.is-active {
    border-color: color-mix(in srgb, var(--ui-accent) 56%, var(--ui-border, #d1d5db)) !important;
    background: color-mix(in srgb, var(--ui-accent) 11%, transparent) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ui-accent) 26%, transparent);
}

.assistant-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    border: none;
    border-radius: 18px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, .28), var(--ui-shadow-xl, 0 20px 25px -5px rgba(15, 23, 42, 0.1));
    transition: all .2s ease;
}

.assistant-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -4px rgba(37, 99, 235, .36), 0 25px 50px -12px rgba(15, 23, 42, .2);
}

.assistant-fab:active {
    transform: translateY(-1px);
}

.assistant-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.assistant-fab-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
    border-radius: 10px;
    font-size: 16px;
}

.assistant-fab-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.assistant-fab-title {
    font-family: "Sora", "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: .875rem;
    font-weight: 700;
}

.assistant-fab-sub {
    font-size: .75rem;
    opacity: .85;
}

.assistant-modal .modal-dialog {
    max-width: 720px;
}

.assistant-modal .modal-content {
    border-radius: 24px;
    border: 1px solid var(--ui-border);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .2);
    background: var(--ui-surface);
    overflow: hidden;
}

.assistant-modal .modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ui-border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-accent) 12%, #ffffff) 0%, var(--ui-surface) 100%);
}

[data-bs-theme="dark"] .assistant-modal .modal-header {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-accent) 10%, var(--ui-surface)) 0%, var(--ui-surface) 100%);
}

.assistant-header-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.assistant-header-info h5 {
    font-family: "Sora", "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 2px;
}

.assistant-header-info p {
    font-size: .75rem;
    color: var(--ui-text-muted);
    margin: 0;
}

.assistant-modal .modal-body,
.assistant-modal .modal-footer {
    padding: 1rem;
}

.assistant-user-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .75rem;
    background: color-mix(in srgb, var(--ui-surface-soft) 86%, transparent);
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    font-size: .75rem;
    color: var(--ui-text-muted);
    margin-bottom: .75rem;
}

.assistant-thread-status {
    font-weight: 600;
}

.assistant-chat-messages {
    background: color-mix(in srgb, var(--ui-surface-soft) 86%, transparent);
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    padding: 1rem;
    height: min(55vh, 480px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.assistant-msg-row {
    display: flex;
    max-width: 85%;
}

.assistant-msg-row.assistant-role-user {
    justify-content: flex-end;
    align-self: flex-end;
}

.assistant-msg-row.assistant-role-assistant,
.assistant-msg-row.assistant-role-admin,
.assistant-msg-row.assistant-role-system {
    justify-content: flex-start;
    align-self: flex-start;
}

.assistant-msg-bubble {
    padding: .75rem 1rem;
    border-radius: 14px;
    font-size: .875rem;
    line-height: 1.625;
    white-space: pre-wrap;
    word-break: break-word;
}

.assistant-role-user .assistant-msg-bubble {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    color: #fff;
    border-bottom-right-radius: 6px;
}

.assistant-role-assistant .assistant-msg-bubble {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    color: var(--ui-text);
    border-bottom-left-radius: 6px;
}

.assistant-role-admin .assistant-msg-bubble {
    background: color-mix(in srgb, var(--ui-info) 12%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--ui-info) 24%, var(--ui-border));
    color: color-mix(in srgb, var(--ui-info) 78%, var(--ui-text));
    border-bottom-left-radius: 6px;
}

.assistant-role-system .assistant-msg-bubble {
    background: color-mix(in srgb, var(--ui-warning) 12%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--ui-warning) 28%, var(--ui-border));
    color: color-mix(in srgb, var(--ui-warning) 80%, var(--ui-text));
    border-bottom-left-radius: 6px;
}

.assistant-msg-meta {
    margin-top: .5rem;
    font-size: .75rem;
    opacity: .7;
}

.assistant-role-user .assistant-msg-meta {
    color: rgba(255, 255, 255, .8);
}

.assistant-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 18px;
}

.assistant-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ui-text-muted);
    animation: assistantTypingPulse 1.2s infinite ease-in-out;
}

.assistant-typing span:nth-child(2) { animation-delay: .15s; }
.assistant-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes assistantTypingPulse {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .4;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.assistant-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .5rem;
    width: 100%;
}

.assistant-chat-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    max-height: 120px;
    resize: none;
    border-radius: 14px;
    padding: .8rem 1rem;
    line-height: 1.45;
    overflow-y: auto;
    box-sizing: border-box;
}

.assistant-chat-form .btn {
    min-width: 52px;
    height: 48px;
    padding: 0 1rem;
}

.assistant-temp-row .assistant-msg-bubble {
    opacity: .85;
}

@media (max-width: 575.98px) {
    .assistant-fab-text {
        display: none;
    }

    .assistant-fab {
        padding: .75rem;
        border-radius: 999px;
    }

    .assistant-fab-icon {
        background: transparent;
    }

    .assistant-modal .modal-dialog {
        margin: .5rem;
    }

    .assistant-chat-form textarea {
        min-height: 52px;
        max-height: 132px;
        padding: .75rem .9rem;
        font-size: 16px;
    }

    .assistant-chat-form .btn {
        width: 52px;
        min-width: 52px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-convert {
        width: 100%;
        margin-top: .5rem;
    }
}

/* Dark theme button contrast fixes. Keep this after component styles so
   Bootstrap outline utilities and dynamically injected converter buttons stay readable. */
[data-bs-theme="dark"] .btn,
[data-bs-theme="dark"] button {
    color: var(--ui-text);
}

[data-bs-theme="dark"] .btn-convert,
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-success,
[data-bs-theme="dark"] .btn-danger,
[data-bs-theme="dark"] .btn-info {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-warning {
    color: #1f1605 !important;
}

[data-bs-theme="dark"] .btn-light {
    color: var(--ui-text) !important;
    background: color-mix(in srgb, var(--ui-surface-soft) 82%, transparent) !important;
    border-color: var(--ui-border) !important;
}

[data-bs-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn-light:focus,
[data-bs-theme="dark"] .btn-light:active {
    color: var(--ui-text) !important;
    background: color-mix(in srgb, var(--ui-surface-soft) 96%, var(--ui-accent) 4%) !important;
    border-color: color-mix(in srgb, var(--ui-accent) 24%, var(--ui-border)) !important;
}

[data-bs-theme="dark"] .btn-share,
[data-bs-theme="dark"] .btn-share:hover,
[data-bs-theme="dark"] .btn-share:focus,
[data-bs-theme="dark"] .assistant-fab,
[data-bs-theme="dark"] .assistant-fab:hover,
[data-bs-theme="dark"] .assistant-fab:focus {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .home-trial-upsell {
    background:
        radial-gradient(420px 170px at 100% 0%, color-mix(in srgb, var(--ui-accent) 18%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--ui-surface-soft) 88%, transparent) 0%, var(--ui-surface) 100%) !important;
}

[data-bs-theme="dark"] .home-trial-upsell-badge {
    color: #cfe1ff !important;
    background: color-mix(in srgb, var(--ui-accent) 16%, var(--ui-surface-soft)) !important;
    border-color: color-mix(in srgb, var(--ui-accent) 42%, var(--ui-border)) !important;
}

[data-bs-theme="dark"] .home-trial-upsell-pill {
    color: #eef6ff !important;
    background: color-mix(in srgb, var(--ui-surface-soft) 88%, transparent) !important;
    border-color: color-mix(in srgb, var(--ui-accent) 36%, var(--ui-border)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

[data-bs-theme="dark"] .home-trial-upsell-price-note,
[data-bs-theme="dark"] .home-trial-upsell-subtitle {
    color: var(--ui-text-muted) !important;
}

[data-bs-theme="dark"] #howToAccordion .accordion-item,
[data-bs-theme="dark"] #whyChooseAccordion .accordion-item {
    background: color-mix(in srgb, var(--ui-surface) 92%, transparent) !important;
    border-color: var(--ui-border) !important;
}

[data-bs-theme="dark"] #howToAccordion .accordion-button,
[data-bs-theme="dark"] #whyChooseAccordion .accordion-button {
    color: var(--ui-text) !important;
    background: color-mix(in srgb, var(--ui-surface-soft) 78%, transparent) !important;
}

[data-bs-theme="dark"] #howToAccordion .accordion-button span,
[data-bs-theme="dark"] #whyChooseAccordion .accordion-button span {
    color: var(--ui-text) !important;
}

[data-bs-theme="dark"] #howToAccordion .accordion-button:not(.collapsed),
[data-bs-theme="dark"] #whyChooseAccordion .accordion-button:not(.collapsed) {
    color: #ffffff !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ui-accent) 32%, var(--ui-surface-soft)), color-mix(in srgb, var(--ui-accent-strong) 36%, var(--ui-surface))) !important;
}

[data-bs-theme="dark"] #howToAccordion .accordion-button:not(.collapsed) span,
[data-bs-theme="dark"] #whyChooseAccordion .accordion-button:not(.collapsed) span {
    color: #ffffff !important;
}

[data-bs-theme="dark"] #howToAccordion .accordion-button .step-number-small,
[data-bs-theme="dark"] #whyChooseAccordion .accordion-button .step-number-small {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong)) !important;
    border-color: color-mix(in srgb, var(--ui-accent) 52%, var(--ui-border)) !important;
}

[data-bs-theme="dark"] #howToAccordion .accordion-body,
[data-bs-theme="dark"] #whyChooseAccordion .accordion-body {
    color: var(--ui-text-muted) !important;
    background: color-mix(in srgb, var(--ui-surface) 94%, transparent) !important;
    border-top: 1px solid var(--ui-border);
}

[data-bs-theme="dark"] .review-card {
    color: var(--ui-text) !important;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--ui-accent) 10%, transparent) 0%, transparent 46%),
        linear-gradient(180deg, color-mix(in srgb, var(--ui-surface-soft) 82%, transparent) 0%, var(--ui-surface) 100%) !important;
    border-color: color-mix(in srgb, var(--ui-border) 92%, transparent) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24) !important;
}

[data-bs-theme="dark"] .review-card-free {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--ui-accent) 22%, transparent) 0%, transparent 46%),
        linear-gradient(180deg, color-mix(in srgb, var(--ui-surface-soft) 90%, transparent) 0%, var(--ui-surface) 100%) !important;
    border-color: color-mix(in srgb, var(--ui-accent) 46%, var(--ui-border)) !important;
}

[data-bs-theme="dark"] .review-card-header,
[data-bs-theme="dark"] .review-card-footer {
    border-color: color-mix(in srgb, var(--ui-border) 92%, transparent) !important;
}

[data-bs-theme="dark"] .review-text,
[data-bs-theme="dark"] .review-name {
    color: var(--ui-text) !important;
}

[data-bs-theme="dark"] .review-date,
[data-bs-theme="dark"] .review-country {
    color: #bed0e6 !important;
}

[data-bs-theme="dark"] .review-country i {
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .review-inline-label {
    color: #d7e8ff !important;
    background: color-mix(in srgb, var(--ui-accent) 18%, var(--ui-surface-soft)) !important;
    border-color: color-mix(in srgb, var(--ui-accent) 40%, var(--ui-border)) !important;
}

[data-bs-theme="dark"] .review-badge-free {
    color: #082f63 !important;
    background: linear-gradient(135deg, #dbeafe, #93c5fd) !important;
    border-color: rgba(147, 197, 253, .55) !important;
}

[data-bs-theme="dark"] .review-metrics,
[data-bs-theme="dark"] .empty-reviews-card {
    color: var(--ui-text) !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ui-surface-soft) 84%, transparent) 0%, var(--ui-surface) 100%) !important;
    border-color: var(--ui-border) !important;
}

[data-bs-theme="dark"] .navbar .nav-link {
    color: #d7e2ef !important;
    background: transparent !important;
}

[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link:focus {
    color: #f8fbff !important;
    background: color-mix(in srgb, var(--ui-accent) 16%, var(--ui-surface-soft)) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ui-accent) 28%, var(--ui-border));
}

[data-bs-theme="dark"] .navbar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ui-accent) 26%, var(--ui-surface-soft)), color-mix(in srgb, var(--ui-accent-strong) 32%, var(--ui-surface))) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ui-accent) 34%, var(--ui-border));
}

[data-bs-theme="dark"] .navbar .nav-link.text-gradient,
[data-bs-theme="dark"] .navbar .nav-link.text-gradient:hover,
[data-bs-theme="dark"] .navbar .nav-link.text-gradient:focus,
[data-bs-theme="dark"] .navbar .nav-link.text-gradient.active {
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

[data-bs-theme="dark"] .navbar .nav-link.text-gradient {
    color: #9dcbff !important;
}

[data-bs-theme="dark"] .navbar .nav-link.text-gradient:hover,
[data-bs-theme="dark"] .navbar .nav-link.text-gradient:focus,
[data-bs-theme="dark"] .navbar .nav-link.text-gradient.active {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-primary,
[data-bs-theme="dark"] .free-audio-format,
[data-bs-theme="dark"] .free-audio-format-quick,
[data-bs-theme="dark"] .quality-btn {
    color: #b9d5ff !important;
    border-color: color-mix(in srgb, var(--ui-accent) 58%, var(--ui-border)) !important;
    background: color-mix(in srgb, var(--ui-accent) 10%, var(--ui-surface)) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .free-audio-quality,
[data-bs-theme="dark"] .free-audio-quality-quick {
    color: #d7e2ef !important;
    border-color: color-mix(in srgb, var(--ui-text-muted) 42%, var(--ui-border)) !important;
    background: color-mix(in srgb, var(--ui-surface-soft) 78%, transparent) !important;
}

[data-bs-theme="dark"] .btn-outline-success {
    color: #9ee6c2 !important;
    border-color: color-mix(in srgb, var(--ui-success) 58%, var(--ui-border)) !important;
    background: color-mix(in srgb, var(--ui-success) 10%, var(--ui-surface)) !important;
}

[data-bs-theme="dark"] .btn-outline-danger {
    color: #ffb4c2 !important;
    border-color: color-mix(in srgb, var(--ui-danger) 58%, var(--ui-border)) !important;
    background: color-mix(in srgb, var(--ui-danger) 10%, var(--ui-surface)) !important;
}

[data-bs-theme="dark"] .btn-outline-warning {
    color: #ffdca3 !important;
    border-color: color-mix(in srgb, var(--ui-warning) 62%, var(--ui-border)) !important;
    background: color-mix(in srgb, var(--ui-warning) 11%, var(--ui-surface)) !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus,
[data-bs-theme="dark"] .btn-outline-primary:active,
[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus,
[data-bs-theme="dark"] .btn-outline-secondary:active,
[data-bs-theme="dark"] .btn-outline-success:hover,
[data-bs-theme="dark"] .btn-outline-success:focus,
[data-bs-theme="dark"] .btn-outline-success:active,
[data-bs-theme="dark"] .btn-outline-danger:hover,
[data-bs-theme="dark"] .btn-outline-danger:focus,
[data-bs-theme="dark"] .btn-outline-danger:active,
[data-bs-theme="dark"] .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-warning:focus,
[data-bs-theme="dark"] .btn-outline-warning:active,
[data-bs-theme="dark"] .btn-outline-info:hover,
[data-bs-theme="dark"] .btn-outline-info:focus,
[data-bs-theme="dark"] .btn-outline-info:active {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus,
[data-bs-theme="dark"] .btn-outline-primary:active {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong)) !important;
    border-color: var(--ui-accent-strong) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus,
[data-bs-theme="dark"] .btn-outline-secondary:active {
    color: var(--ui-text) !important;
    background: color-mix(in srgb, var(--ui-surface-soft) 94%, transparent) !important;
    border-color: color-mix(in srgb, var(--ui-text-muted) 42%, var(--ui-border)) !important;
}

[data-bs-theme="dark"] .btn-outline-success:hover,
[data-bs-theme="dark"] .btn-outline-success:focus,
[data-bs-theme="dark"] .btn-outline-success:active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ui-success) 82%, #34d399), var(--ui-success)) !important;
    border-color: color-mix(in srgb, var(--ui-success) 90%, #16a34a) !important;
}

[data-bs-theme="dark"] .btn-outline-danger:hover,
[data-bs-theme="dark"] .btn-outline-danger:focus,
[data-bs-theme="dark"] .btn-outline-danger:active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ui-danger) 82%, #fb7185), var(--ui-danger)) !important;
    border-color: color-mix(in srgb, var(--ui-danger) 88%, #be123c) !important;
}

[data-bs-theme="dark"] .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-warning:focus,
[data-bs-theme="dark"] .btn-outline-warning:active {
    color: #1f1605 !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ui-warning) 86%, #fbbf24), var(--ui-warning)) !important;
    border-color: color-mix(in srgb, var(--ui-warning) 92%, #d97706) !important;
}

[data-bs-theme="dark"] .btn-outline-info:hover,
[data-bs-theme="dark"] .btn-outline-info:focus,
[data-bs-theme="dark"] .btn-outline-info:active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ui-info) 84%, #60a5fa), var(--ui-info)) !important;
    border-color: color-mix(in srgb, var(--ui-info) 90%, #2563eb) !important;
}

[data-bs-theme="dark"] .btn-primary.active,
[data-bs-theme="dark"] .btn-outline-primary.active,
[data-bs-theme="dark"] .free-audio-format.active,
[data-bs-theme="dark"] .free-audio-format-quick.active,
[data-bs-theme="dark"] .quality-btn.active,
[data-bs-theme="dark"] .free-audio-quality.active,
[data-bs-theme="dark"] .free-audio-quality-quick.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong)) !important;
    border-color: var(--ui-accent-strong) !important;
}

[data-bs-theme="dark"] #formatPickerBody .format-option-card,
[data-bs-theme="dark"] #formatPickerBody .free-video-option {
    color: var(--ui-text) !important;
    background: color-mix(in srgb, var(--ui-surface-soft) 82%, transparent) !important;
    border-color: var(--ui-border) !important;
}

[data-bs-theme="dark"] #formatPickerBody .format-option-card .text-muted,
[data-bs-theme="dark"] #formatPickerBody .free-video-option .text-muted,
[data-bs-theme="dark"] .btn .text-muted {
    color: var(--ui-text-muted) !important;
}

[data-bs-theme="dark"] #formatPickerBody .format-option-card.is-active,
[data-bs-theme="dark"] #formatPickerBody .format-option-card.border-primary,
[data-bs-theme="dark"] #formatPickerBody .free-video-option.border-primary,
[data-bs-theme="dark"] #formatPickerBody .free-video-option.is-active,
[data-bs-theme="dark"] #formatPickerBody .free-video-option.bg-light {
    color: var(--ui-text) !important;
    background: color-mix(in srgb, var(--ui-accent) 16%, var(--ui-surface-soft)) !important;
    border-color: color-mix(in srgb, var(--ui-accent) 62%, var(--ui-border)) !important;
}
