/* Nest accents follow Appearance > Theme options > Style. */
body[data-tnv-theme="nest"] {
    --primary-color-rgb: var(--color-brand-rgb);
    --tnv-brand-soft: rgba(var(--color-brand-rgb), 0.07);
    --tnv-brand-border: rgba(var(--color-brand-rgb), 0.2);
}

body[data-tnv-theme="nest"] .carousel-8-columns-cover .product-img,
body[data-tnv-theme="nest"] .tab-header .view-more,
body[data-tnv-theme="nest"] .entry-meta a.read-more {
    border-color: var(--tnv-brand-border);
}

body[data-tnv-theme="nest"] .entry-meta a.read-more,
body[data-tnv-theme="nest"] .text-new {
    color: var(--color-brand);
}

body[data-tnv-theme="nest"] .stock-status.in-stock,
body[data-tnv-theme="nest"] .vendor-wrap .total-product,
body[data-tnv-theme="nest"] .close-style-wrap .close-style,
body[data-tnv-theme="nest"] .bg-green,
body[data-tnv-theme="nest"] .bg-grey-10 {
    background-color: var(--tnv-brand-soft);
}

body[data-tnv-theme="nest"] .categories-dropdown-wrap .more_categories span.icon::before,
body[data-tnv-theme="nest"] .categories-dropdown-wrap .more_categories span.icon::after {
    background-color: var(--color-brand);
}

body[data-tnv-theme="nest"] .about-count::after {
    background-color: var(--color-brand-dark);
}

body[data-tnv-theme="nest"] .bundle-badge,
body[data-tnv-theme="nest"] .cart-bundle-badge {
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    box-shadow: 0 2px 8px rgba(var(--color-brand-rgb), 0.3);
}

/* Nest storefront: fluid containers with a single desktop width limit. */
body[data-tnv-theme="nest"] .container {
    width: 100%;
    max-width: 1320px;
}

/* Keep the banner link separate from the newsletter form. */
body[data-tnv-theme="nest"] .home-slider .single-hero-slider {
    position: relative;
}

body[data-tnv-theme="nest"] .home-slider .tnv-slider-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

body[data-tnv-theme="nest"] .home-slider .tnv-slider-link:focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: -3px;
}

body[data-tnv-theme="nest"] .home-slider .tnv-slider-linked-content {
    z-index: 2;
    pointer-events: none;
}

body[data-tnv-theme="nest"] .home-slider .tnv-slider-linked-content .newsletter,
body[data-tnv-theme="nest"] .home-slider .tnv-slider-linked-content a {
    pointer-events: auto;
}

body[data-tnv-theme="nest"] .product-cart-wrap .product-card-bottom {
    flex-wrap: wrap;
}

/* Keep header actions compact on phones, tablets and touch screens. */
@media (max-width: 1199.98px), (hover: none) and (pointer: coarse) {
    body[data-tnv-theme="nest"] .header-action-2 .header-action-icon-2 > a:has(> .lable) {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body[data-tnv-theme="nest"] .header-middle .header-action-right {
        display: flex;
        flex-shrink: 0;
    }
}

/* Shofy's catalog search, using Nest's rounded controls and brand color. */
body[data-tnv-theme="nest"] .tnv-catalog-search {
    position: relative;
    margin-bottom: 30px;
}

body[data-tnv-theme="nest"] .tnv-catalog-search input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 48px 0 16px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    color: #253d4e;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body[data-tnv-theme="nest"] .tnv-catalog-search input:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px var(--tnv-brand-soft);
}

body[data-tnv-theme="nest"] .tnv-catalog-search button {
    position: absolute;
    top: 2px;
    right: 2px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #253d4e;
}

body[data-tnv-theme="nest"] .tnv-catalog-search button:hover {
    background: var(--tnv-brand-soft);
    color: var(--color-brand);
}

body[data-tnv-theme="nest"] .tnv-catalog-search button:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

body[data-tnv-theme="nest"] .tnv-catalog-search button svg {
    width: 20px;
    height: 20px;
}

body[data-tnv-theme="nest"] #products-filter-ajax > .tnv-catalog-search {
    max-width: 360px;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Category/tag sidebar layouts: space the intro evenly above the catalog. */
body[data-tnv-theme="nest"]:is([id^="product-category-"], [id^="product-tag-"]) #main-section > .container > .row > .ps-block__header {
    padding-top: clamp(20px, 2vw, 28px);
}

body[data-tnv-theme="nest"]:is([id^="product-category-"], [id^="product-tag-"]) #main-section > .container > .row > .ps-block__content.mb-4 {
    /* The sidebar and product columns already provide 24px of top spacing. */
    margin-bottom: 0 !important;
}

body[data-tnv-theme="nest"]:is([id^="product-category-"], [id^="product-tag-"]) .ps-block__content > :last-child {
    margin-bottom: 0;
}

/* Center header announcements on the page and align them with the menu. */
@media (min-width: 1200px) {
    body[data-tnv-theme="nest"] .header-top > .container > .row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
    }

    body[data-tnv-theme="nest"] .header-top > .container > .row > div {
        width: auto;
        min-width: 0;
    }

    body[data-tnv-theme="nest"] .header-top #news-flash {
        display: block !important;
        min-width: 0;
        width: 100%;
        line-height: 24px;
    }

    body[data-tnv-theme="nest"] .header-top #news-flash > ul {
        width: 100%;
        text-align: center;
    }

    body[data-tnv-theme="nest"] .header-top #news-flash li {
        height: 24px;
        min-height: 24px;
        margin-top: 0 !important;
        white-space: nowrap;
    }

    body[data-tnv-theme="nest"] .header-top #news-flash li > svg,
    body[data-tnv-theme="nest"] .header-top #news-flash li > i,
    body[data-tnv-theme="nest"] .header-top #news-flash li > span,
    body[data-tnv-theme="nest"] .header-top #news-flash li > a {
        vertical-align: middle;
        margin-top: 0;
        line-height: 24px;
    }
}

/* Center the social label without the theme's default paragraph margin. */
body[data-tnv-theme="nest"] footer .footer-social-links .mobile-social-icon > p {
    margin-bottom: 0;
}

/* Keep footer category links text-only; preserve icons elsewhere. */
body[data-tnv-theme="nest"] footer .footer-link-widget a[href$="/product-categories/khac"] > .icon {
    display: none;
}

/* Shared Nest footer: website templates newsletter and four benefits. */
.newsletter .newsletter-inner.tnv-footer-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    padding: 46px 56px;
    background: radial-gradient(ellipse at 85% 35%, rgba(var(--color-brand-rgb, 11, 99, 206), 0.16) 0, transparent 55%), linear-gradient(115deg, rgba(var(--color-brand-rgb, 11, 99, 206), 0.04), rgba(var(--color-brand-rgb, 11, 99, 206), 0.09));
    border: 1px solid rgba(var(--color-brand-rgb, 11, 99, 206), 0.14);
    border-radius: 20px;
}

.tnv-footer-newsletter .newsletter-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.newsletter .tnv-footer-newsletter .newsletter-content h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.3;
    letter-spacing: -1.2px;
    color: #253d4e;
}

.newsletter .tnv-footer-newsletter .newsletter-content p {
    max-width: 450px;
    margin-bottom: 28px;
    color: #526175;
    font-size: 16px;
    line-height: 1.75;
}

.tnv-footer-newsletter .newsletter-content p span {
    color: var(--color-brand, #0b63ce);
    font-weight: 600;
}

.newsletter .tnv-footer-newsletter .newsletter-content .form-subscribe {
    width: 100%;
    max-width: 490px;
    min-height: 56px;
    margin-bottom: 0;
    box-shadow: 0 6px 24px rgba(var(--color-brand-rgb, 11, 99, 206), 0.06);
}

.newsletter .tnv-footer-newsletter .form-subscribe input {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: 56px;
    padding-left: 46px;
    padding-right: 12px;
    background-position: 18px center;
    font-size: 14px;
}

.newsletter .tnv-footer-newsletter .form-subscribe button {
    flex: 0 0 auto;
    padding: 14px 26px;
    font-size: 15px;
    white-space: nowrap;
}

.newsletter .tnv-footer-newsletter > img.tnv-footer-newsletter__image {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.tnv-footer-features {
    padding-top: 16px;
    padding-bottom: 32px;
}

.tnv-footer-features__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tnv-footer-features .tnv-footer-features__item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    height: 100%;
    padding: 22px 18px;
    border: 1px solid rgba(var(--color-brand-rgb, 11, 99, 206), 0.12);
    border-radius: 12px;
    background: rgba(var(--color-brand-rgb, 11, 99, 206), 0.035);
}

.tnv-footer-features .banner-icon {
    flex: 0 0 46px;
    width: 46px;
    margin: 0;
}

.tnv-footer-features .banner-icon img {
    display: block;
    width: 46px;
    height: 46px;
}

.tnv-footer-features .banner-text {
    min-width: 0;
}

.tnv-footer-features .banner-text h3 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.tnv-footer-features .banner-text p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #64748b;
}

@media (max-width: 1199.98px) {
    .newsletter .newsletter-inner.tnv-footer-newsletter {
        gap: 20px;
        padding: 36px;
    }

    .tnv-footer-features__grid {
        gap: 14px;
    }

    .tnv-footer-features .tnv-footer-features__item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

@media (max-width: 991.98px) {
    .newsletter .newsletter-inner.tnv-footer-newsletter {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        padding: 30px;
    }

    .newsletter .tnv-footer-newsletter .newsletter-content h2 {
        font-size: 30px;
        letter-spacing: -.8px;
    }

    .tnv-footer-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tnv-footer-features .tnv-footer-features__item {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    .newsletter .newsletter-inner.tnv-footer-newsletter {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 30px 24px 18px;
    }

    .newsletter .tnv-footer-newsletter .newsletter-content p {
        margin-bottom: 24px !important;
        font-size: 14px;
    }

    .newsletter .tnv-footer-newsletter > img.tnv-footer-newsletter__image {
        width: 88%;
        max-width: 360px;
        margin: 0 auto;
    }

    .newsletter .tnv-footer-newsletter .form-subscribe input {
        padding-left: 38px;
        background-position: 13px center;
        font-size: 13px;
    }

    .newsletter .tnv-footer-newsletter .form-subscribe button {
        padding: 12px 18px;
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .newsletter .tnv-footer-newsletter .newsletter-content h2 {
        font-size: 27px;
        letter-spacing: -.7px;
    }

    .tnv-footer-features__grid {
        gap: 12px;
    }

    .tnv-footer-features .tnv-footer-features__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 14px;
    }

    .tnv-footer-features .banner-text h3 {
        font-size: 14px;
    }

    .tnv-footer-features .banner-text p {
        font-size: 12px;
    }
}

/* ===== Catalog navigation: danh mục và ngành nghề sản phẩm ===== */
.tnv-catalog-navigation .section-title {
    margin-bottom: 24px;
}

.tnv-catalog-navigation__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.tnv-catalog-navigation__group-title {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
}

.tnv-catalog-navigation__item + .tnv-catalog-navigation__group-title {
    margin-top: 12px;
}

.tnv-catalog-navigation__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 100px;
    padding: 18px 16px;
    border: 1px solid #eceef2;
    border-radius: 12px;
    background: #fff;
    color: var(--color-heading, #253d4e);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.tnv-catalog-navigation__item:hover,
.tnv-catalog-navigation__item:focus-visible {
    border-color: var(--color-brand, #0b63ce);
    box-shadow: 0 5px 16px rgb(37 61 78 / 7%);
    color: var(--color-brand, #0b63ce);
    transform: translateY(-2px);
}

.tnv-catalog-navigation__item--category {
    background: #f3f7ff;
}

.tnv-catalog-navigation__item--category:hover,
.tnv-catalog-navigation__item--category:focus-visible,
.tnv-catalog-navigation__item[aria-current="page"] {
    background: #e8f0ff;
    border-color: var(--color-brand, #0b63ce);
}

.tnv-catalog-navigation__item:focus-visible {
    outline: 2px solid var(--color-brand, #0b63ce);
    outline-offset: 3px;
}

.tnv-catalog-navigation__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--color-brand-rgb, 11, 99, 206), 0.07);
    color: var(--color-brand, #0b63ce);
}

.tnv-catalog-navigation__icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
}

.tnv-catalog-navigation__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tnv-catalog-navigation__name {
    font-family: var(--font-heading), sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tnv-catalog-navigation__count {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 1199.98px) {
    .tnv-catalog-navigation__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tnv-catalog-navigation__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .tnv-catalog-navigation__item {
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
        padding: 14px 6px;
        text-align: center;
    }

    .tnv-catalog-navigation__name {
        font-size: 13px;
    }

    .tnv-catalog-navigation__count {
        font-size: 12px;
    }
}

@media (max-width: 359.98px) {
    .tnv-catalog-navigation__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnv-catalog-navigation__item {
        transition: none;
    }

    .tnv-catalog-navigation__item:hover,
    .tnv-catalog-navigation__item:focus-visible {
        transform: none;
    }
}
/* ===== End catalog navigation ===== */

/* Shared tool shell and intro */
.tnv-tool {
    display: block;
    margin: 0;
    max-width: none;
    padding: 0 0 32px;
    width: 100%;
}

.tnv-tool,
.tnv-tool * {
    box-sizing: border-box;
}

.tnv-tool-boundary {
    display: none !important;
}

.ck-content > p:has(> .tnv-tool-boundary),
.ck-content > .tnv-tool + p:empty {
    display: none;
    margin: 0;
}

.tnv-tool-intro {
    margin-bottom: clamp(24px, 4vw, 38px);
}

.ck-content .tnv-tool-intro .tnv-tool-intro__title,
.tnv-tool-intro .tnv-tool-intro__title {
    color: #161b2d;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 10px;
}

.ck-content .tnv-tool-intro .tnv-tool-intro__description,
.tnv-tool-intro .tnv-tool-intro__description {
    color: #55585b;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
    margin: 0;
}

/* Password Generator */
.tnv-password-generator {
    --tnv-pg-primary: var(--primary-color, #0c55aa);
    --tnv-pg-primary-rgb: var(--primary-color-rgb, 12, 85, 170);
    --tnv-pg-heading: #1f2937;
    --tnv-pg-text: #4b5563;
    --tnv-pg-muted: #6b7280;
    --tnv-pg-border: #dfe3e8;
    --tnv-pg-surface: #fff;
    color: var(--tnv-pg-heading);
}

.tnv-password-generator [hidden] {
    display: none !important;
}

.tnv-password-generator__workspace {
    align-items: start;
    display: grid;
    gap: clamp(18px, 2vw, 26px);
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.tnv-password-generator__card {
    background: var(--tnv-pg-surface);
    border: 1px solid var(--tnv-pg-border);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.045);
    min-width: 0;
}

.tnv-password-generator__results {
    position: sticky;
    top: 20px;
}

.tnv-password-generator__card-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: clamp(20px, 3vw, 30px);
}

.tnv-password-generator__results-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
}

.ck-content .tnv-password-generator h2,
.tnv-password-generator h2 {
    color: var(--tnv-pg-heading);
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 7px;
}

.ck-content .tnv-password-generator__card p,
.tnv-password-generator__card p {
    color: var(--tnv-pg-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.tnv-password-generator__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tnv-password-generator__button,
.tnv-password-generator__submit {
    align-items: center;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 650;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tnv-password-generator__button {
    background: #fff;
    border: 1px solid #d8dde3;
    color: var(--tnv-pg-heading);
}

.tnv-password-generator__button:hover,
.tnv-password-generator__button:focus-visible {
    border-color: var(--tnv-pg-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-pg-primary-rgb), 0.11);
    color: var(--tnv-pg-primary);
    outline: 0;
}

.tnv-password-generator__button:disabled,
.tnv-password-generator__submit:disabled {
    cursor: wait;
    opacity: 0.6;
}

.tnv-password-generator__button svg,
.tnv-password-generator__submit svg {
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.tnv-password-generator__output {
    min-width: 0;
}

.tnv-password-generator__password,
.tnv-password-generator__passwords {
    background: #fbfcfe;
    border: 1px solid #d6dce3;
    border-radius: 10px;
    color: #374151;
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    width: 100%;
}

.tnv-password-generator__password {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    justify-content: space-between;
    min-height: 58px;
    padding: 13px 16px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ck-content .tnv-password-generator__password code,
.tnv-password-generator__password code {
    background: transparent;
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
    padding: 0;
}

.tnv-password-generator__password svg {
    color: var(--tnv-pg-muted);
    flex: 0 0 auto;
    height: 20px;
    margin-left: 16px;
    width: 20px;
}

.tnv-password-generator__password:hover,
.tnv-password-generator__password:focus-visible,
.tnv-password-generator__password.is-copied,
.tnv-password-generator__passwords:focus {
    border-color: var(--tnv-pg-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-pg-primary-rgb), 0.11);
    color: var(--tnv-pg-primary);
    outline: 0;
}

.tnv-password-generator__passwords {
    font-size: 15px;
    line-height: 1.65;
    min-height: 210px;
    padding: 14px 16px;
    resize: vertical;
}

.ck-content .tnv-password-generator__notice,
.tnv-password-generator__notice {
    align-items: flex-start;
    color: var(--tnv-pg-muted) !important;
    display: flex;
    font-size: 13px !important;
    gap: 8px;
}

.tnv-password-generator__notice svg {
    flex: 0 0 auto;
    height: 17px;
    margin-top: 2px;
    width: 17px;
}

.ck-content .tnv-password-generator__status,
.tnv-password-generator__status {
    color: #15803d !important;
    font-size: 13px !important;
    font-weight: 650;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tnv-password-generator__status.is-visible {
    opacity: 1;
}

.tnv-password-generator__status.is-error {
    color: #be123c !important;
}

.tnv-password-generator__number-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tnv-password-generator__field {
    display: grid;
    gap: 9px;
}

.tnv-password-generator__field > span,
.tnv-password-generator__fieldset legend {
    color: var(--tnv-pg-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.tnv-password-generator .form-control {
    color: var(--tnv-pg-heading);
    font-size: 14px;
    min-width: 0;
}

.tnv-password-generator .form-control-sm {
    border-radius: 8px;
    height: 40px;
    min-height: 40px;
}

.tnv-password-generator__field input[type="number"] {
    appearance: textfield;
    width: 100%;
}

.tnv-password-generator__field input[type="number"]::-webkit-inner-spin-button,
.tnv-password-generator__field input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
}

.tnv-password-generator__fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.tnv-password-generator__fieldset legend {
    margin-bottom: 13px;
    padding: 0;
}

.tnv-password-generator__choice-grid {
    display: grid;
    gap: 13px 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tnv-password-generator__radio-list {
    display: grid;
    gap: 13px;
}

.tnv-password-generator__choice {
    align-items: flex-start;
    color: var(--tnv-pg-heading);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    line-height: 1.5;
    min-width: 0;
}

.tnv-password-generator__choice input {
    appearance: none;
    background: #fff;
    border: 1.5px solid #c9cfd6;
    cursor: pointer;
    flex: 0 0 auto;
    height: 20px;
    margin: 1px 0 0;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    width: 20px;
}

.tnv-password-generator__choice input[type="checkbox"] {
    border-radius: 5px;
}

.tnv-password-generator__choice input[type="radio"] {
    border-radius: 50%;
}

.tnv-password-generator__choice input:checked {
    background: var(--tnv-pg-primary);
    border-color: var(--tnv-pg-primary);
}

.tnv-password-generator__choice input[type="checkbox"]:checked::after {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 10px;
    left: 6px;
    position: absolute;
    top: 3px;
    transform: rotate(45deg);
    width: 5px;
}

.tnv-password-generator__choice input[type="radio"]:checked::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 4.5px;
    position: absolute;
    top: 4.5px;
    width: 8px;
}

.tnv-password-generator__choice input:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--tnv-pg-primary-rgb), 0.15);
    outline: 0;
}

.tnv-password-generator__error {
    align-items: flex-start;
    background: #fff1f2;
    border-radius: 9px;
    color: #be123c;
    display: flex;
    font-size: 14px;
    gap: 8px;
    line-height: 1.55;
    padding: 11px 13px;
}

.tnv-password-generator__error svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

.tnv-password-generator__submit-row {
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    padding-top: 22px;
}

.tnv-password-generator__submit {
    background: var(--tnv-pg-primary);
    border: 1px solid var(--tnv-pg-primary);
    color: #fff;
    min-height: 46px;
    padding: 11px 18px;
}

.tnv-password-generator__submit:hover,
.tnv-password-generator__submit:focus-visible {
    box-shadow: 0 0 0 4px rgba(var(--tnv-pg-primary-rgb), 0.17);
    filter: brightness(0.94);
    outline: 0;
}

@media (max-width: 991px) {
    .tnv-password-generator__workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-password-generator__results {
        position: static;
    }
}

@media (max-width: 639px) {
    .tnv-password-generator__number-grid,
    .tnv-password-generator__choice-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-password-generator__actions {
        width: 100%;
    }

    .tnv-password-generator__button {
        flex: 1 1 auto;
    }

    .tnv-password-generator__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnv-password-generator *,
    .tnv-password-generator *::before,
    .tnv-password-generator *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Compound Interest */
.tnv-compound-interest {
    --tnv-ci-primary: var(--primary-color, #0989ff);
    --tnv-ci-primary-rgb: var(--primary-color-rgb, 9, 137, 255);
    --tnv-ci-heading: #161b2d;
    --tnv-ci-text: #55585b;
    --tnv-ci-muted: #6b7280;
    --tnv-ci-border: #e1e5e9;
    --tnv-ci-surface: #fff;
    color: var(--tnv-ci-heading);
}

.tnv-compound-interest [hidden] {
    display: none !important;
}

.tnv-compound-interest__card {
    background: var(--tnv-ci-surface);
    border: 1px solid var(--tnv-ci-border);
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.045);
    min-width: 0;
}

.tnv-compound-interest__form {
    display: block;
    margin: 0;
}

.tnv-compound-interest__form-row {
    align-items: start;
    display: grid;
    gap: clamp(20px, 4vw, 54px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    padding: clamp(20px, 3vw, 30px);
}

.tnv-compound-interest__form-row + .tnv-compound-interest__form-row {
    border-top: 1px solid var(--tnv-ci-border);
}

.tnv-compound-interest__step-copy {
    align-items: flex-start;
    display: flex;
    gap: 13px;
}

.tnv-compound-interest__step {
    align-items: center;
    background: rgba(var(--tnv-ci-primary-rgb), 0.1);
    border-radius: 50%;
    color: var(--tnv-ci-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 750;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.ck-content .tnv-compound-interest h2,
.tnv-compound-interest h2 {
    color: var(--tnv-ci-heading);
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 1px 0 5px;
}

.ck-content .tnv-compound-interest__step-copy p,
.tnv-compound-interest__step-copy p {
    color: var(--tnv-ci-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.tnv-compound-interest__field,
.tnv-compound-interest__period-field {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.tnv-compound-interest__field > span:first-child {
    color: var(--tnv-ci-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.tnv-compound-interest__field-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tnv-compound-interest__input-group {
    border-radius: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.tnv-compound-interest .form-control,
.tnv-compound-interest .form-select {
    color: var(--tnv-ci-heading);
    font-size: 14px;
    min-width: 0;
}

.tnv-compound-interest .input-group-sm > .form-control,
.tnv-compound-interest .input-group-sm > .input-group-text,
.tnv-compound-interest .form-select-sm {
    height: 40px;
    min-height: 40px;
}

.tnv-compound-interest .input-group-sm > .form-control:first-child {
    border-radius: 8px 0 0 8px;
}

.tnv-compound-interest .input-group-sm > .input-group-text:last-child {
    border-radius: 0 8px 8px 0;
}

.tnv-compound-interest .form-select-sm {
    border-radius: 8px;
}

.tnv-compound-interest .input-group-text {
    color: var(--tnv-ci-muted);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.tnv-compound-interest__input-group input[type="number"] {
    appearance: textfield;
}

.tnv-compound-interest__input-group input[type="number"]::-webkit-inner-spin-button,
.tnv-compound-interest__input-group input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
}

.ck-content .tnv-compound-interest__hint,
.tnv-compound-interest__hint {
    align-items: flex-start;
    background: #f7f9fb;
    border-radius: 9px;
    color: var(--tnv-ci-text);
    display: flex;
    font-size: 13px;
    gap: 8px;
    line-height: 1.55;
    margin: 0;
    padding: 11px 12px;
}

.tnv-compound-interest__hint svg {
    color: var(--tnv-ci-primary);
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.tnv-compound-interest__form-footer {
    align-items: center;
    border-top: 1px solid var(--tnv-ci-border);
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    padding: clamp(20px, 3vw, 28px);
}

.tnv-compound-interest__error {
    align-items: flex-start;
    background: #fff1f2;
    border-radius: 9px;
    color: #be123c;
    display: flex;
    flex: 1 1 auto;
    font-size: 14px;
    gap: 8px;
    line-height: 1.55;
    padding: 11px 13px;
}

.tnv-compound-interest__error svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

.tnv-compound-interest__submit {
    align-items: center;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 46px;
    padding: 11px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tnv-compound-interest__submit {
    background: var(--tnv-ci-primary);
    border: 1px solid var(--tnv-ci-primary);
    color: #fff;
}

.tnv-compound-interest__submit:hover,
.tnv-compound-interest__submit:focus-visible {
    box-shadow: 0 0 0 4px rgba(var(--tnv-ci-primary-rgb), 0.17);
    filter: brightness(0.94);
    outline: 0;
}

.tnv-compound-interest__submit svg {
    height: 18px;
    width: 18px;
}

.tnv-compound-interest__results {
    display: grid;
    gap: 18px;
    margin-top: clamp(22px, 4vw, 34px);
    scroll-margin-top: 96px;
}

.tnv-compound-interest__summary-card {
    padding: clamp(20px, 3vw, 30px);
}

.tnv-compound-interest__result-header {
    text-align: center;
}

.ck-content .tnv-compound-interest__result-header p,
.tnv-compound-interest__result-header p {
    color: var(--tnv-ci-text);
    font-size: 16px;
    margin: 0 0 5px;
}

.ck-content .tnv-compound-interest__result-header h2,
.tnv-compound-interest__result-header h2 {
    color: var(--tnv-ci-primary);
    font-size: clamp(26px, 4vw, 38px);
    font-variant-numeric: tabular-nums;
    margin: 0;
    overflow-wrap: anywhere;
}

.tnv-compound-interest__metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.tnv-compound-interest__metric {
    background: #f8fafc;
    border-radius: 10px;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 16px;
}

.tnv-compound-interest__metric span {
    color: var(--tnv-ci-muted);
    font-size: 13px;
    font-weight: 600;
}

.tnv-compound-interest__metric strong {
    color: var(--tnv-ci-heading);
    font-size: clamp(15px, 1.7vw, 18px);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.tnv-compound-interest__metric--interest {
    background: #ecfdf5;
}

.tnv-compound-interest__metric--interest span,
.tnv-compound-interest__metric--interest strong {
    color: #047857;
}

.tnv-compound-interest__metric--future {
    background: #eff6ff;
}

.tnv-compound-interest__metric--future span,
.tnv-compound-interest__metric--future strong {
    color: #1d4ed8;
}

.tnv-compound-interest__chart {
    border-top: 1px solid var(--tnv-ci-border);
    margin-top: 26px;
    padding-top: 24px;
}

.tnv-compound-interest__chart-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ck-content .tnv-compound-interest__chart h3,
.tnv-compound-interest__chart h3 {
    color: var(--tnv-ci-heading);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.tnv-compound-interest__legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.tnv-compound-interest__legend span {
    align-items: center;
    color: var(--tnv-ci-text);
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
}

.tnv-compound-interest__legend i {
    background: #10b981;
    border-radius: 50%;
    display: block;
    height: 9px;
    width: 9px;
}

.tnv-compound-interest__legend .is-future {
    background: #3b82f6;
}

.tnv-compound-interest__chart-canvas {
    min-height: 310px;
    overflow: visible;
    width: 100%;
}

.tnv-compound-interest__chart-plot {
    position: relative;
    width: 100%;
}

.tnv-compound-interest__chart-canvas svg {
    display: block;
    height: auto;
    max-width: none;
    overflow: visible;
    width: 100%;
}

.tnv-compound-interest__chart-grid {
    stroke: #e5e7eb;
    stroke-width: 1;
}

.tnv-compound-interest__chart-axis-label {
    fill: #6b7280;
    font-family: inherit;
    font-size: 12px;
}

.tnv-compound-interest__chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.tnv-compound-interest__chart-line--principal {
    stroke: #10b981;
}

.tnv-compound-interest__chart-line--future {
    stroke: #3b82f6;
}

.tnv-compound-interest__chart-hit {
    cursor: crosshair;
    fill: none;
    outline: none;
    pointer-events: stroke;
    stroke: transparent;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 22;
}

.tnv-compound-interest__chart-hit:focus-visible {
    stroke: rgba(var(--tnv-ci-primary-rgb), 0.18);
}

.tnv-compound-interest__chart-point {
    stroke: #fff;
    stroke-width: 1.5;
    transition: r 0.15s ease;
}

.tnv-compound-interest__chart-point:hover {
    r: 5;
}

.tnv-compound-interest__chart-point--principal {
    fill: #10b981;
}

.tnv-compound-interest__chart-point--future {
    fill: #3b82f6;
}

.tnv-compound-interest__chart-selection {
    pointer-events: none;
}

.tnv-compound-interest__chart-cursor {
    stroke: #64748b;
    stroke-dasharray: 4 4;
    stroke-width: 1.5;
}

.tnv-compound-interest__chart-selected-point {
    stroke: #fff;
    stroke-width: 2.5;
}

.tnv-compound-interest__chart-selected-point--principal {
    fill: #10b981;
}

.tnv-compound-interest__chart-selected-point--future {
    fill: #3b82f6;
}

.tnv-compound-interest__chart-tooltip {
    background: #111827;
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
    color: #fff;
    display: grid;
    font-size: 13px;
    gap: 5px;
    line-height: 1.45;
    max-width: calc(100% - 8px);
    min-width: 210px;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 3;
}

.tnv-compound-interest__chart-tooltip::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #111827;
    bottom: -6px;
    content: "";
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.tnv-compound-interest__chart-tooltip strong {
    color: #fff;
    font-size: 14px;
}

.tnv-compound-interest__chart-tooltip span {
    align-items: center;
    color: #e5e7eb;
    display: flex;
    gap: 7px;
    white-space: nowrap;
}

.tnv-compound-interest__chart-tooltip span::before {
    background: #10b981;
    border-radius: 50%;
    content: "";
    flex: 0 0 auto;
    height: 8px;
    width: 8px;
}

.tnv-compound-interest__chart-tooltip span.is-future::before {
    background: #3b82f6;
}

.tnv-compound-interest__table-wrap {
    overflow-x: auto;
}

.tnv-compound-interest__details table {
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
    min-width: 660px;
    width: 100%;
}

.tnv-compound-interest__details th,
.tnv-compound-interest__details td {
    border: 0;
    border-bottom: 1px solid #edf0f3;
    color: var(--tnv-ci-text);
    font-variant-numeric: tabular-nums;
    padding: 14px 18px;
    text-align: right;
    vertical-align: middle;
}

.tnv-compound-interest__details th {
    background: #f8fafc;
    color: var(--tnv-ci-heading);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tnv-compound-interest__details th:first-child,
.tnv-compound-interest__details td:first-child {
    text-align: left;
}

.tnv-compound-interest__details td:last-child {
    color: var(--tnv-ci-heading);
    font-weight: 700;
}

.tnv-compound-interest__details tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 899px) {
    .tnv-compound-interest__form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-compound-interest__field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .tnv-compound-interest__field-grid,
    .tnv-compound-interest__metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-compound-interest__form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .tnv-compound-interest__submit {
        width: 100%;
    }

    .tnv-compound-interest__chart-canvas {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnv-compound-interest *,
    .tnv-compound-interest *::before,
    .tnv-compound-interest *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Two-factor Tool */
.tnv-two-factor {
    --tnv-2fa-primary: var(--primary-color, #0c55aa);
    --tnv-2fa-primary-rgb: var(--primary-color-rgb, 12, 85, 170);
    --tnv-2fa-heading: #0f172a;
    --tnv-2fa-text: #475569;
    --tnv-2fa-border: #dfe5ec;
    color: var(--tnv-2fa-heading);
}

.tnv-two-factor [hidden] {
    display: none !important;
}

.ck-content .tnv-two-factor p,
.tnv-two-factor p {
    color: var(--tnv-2fa-text);
    line-height: 1.65;
    margin: 0;
}

.tnv-two-factor__table-wrap {
    background: #fff;
    border: 1px solid var(--tnv-2fa-border);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

.tnv-two-factor__label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tnv-two-factor__label-row label {
    font-size: 14px;
    font-weight: 700;
}

.tnv-two-factor__paste {
    align-items: center;
    background: #fff;
    border: 1px solid var(--tnv-2fa-border);
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 7px;
    padding: 8px 13px;
}

.tnv-two-factor__paste svg {
    height: 17px;
    width: 17px;
}

.tnv-two-factor__paste:hover,
.tnv-two-factor__paste:focus-visible {
    border-color: var(--tnv-2fa-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-2fa-primary-rgb), .12);
    color: var(--tnv-2fa-primary);
    outline: 0;
}

.tnv-two-factor__textarea {
    background: #fbfdff;
    border-radius: 8px;
    color: var(--tnv-2fa-heading);
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    height: auto;
    line-height: 1.6;
    min-height: 128px;
    padding: 8px;
    resize: vertical;
    width: 100%;
}

.tnv-two-factor__textarea:focus {
    background: #fff;
}

.tnv-two-factor__error {
    background: #fff1f2;
    border-radius: 10px;
    color: #be123c;
    font-size: 14px;
    margin-top: 14px;
    padding: 11px 13px;
}

.ck-content .tnv-two-factor__privacy,
.tnv-two-factor__privacy {
    font-size: 13px;
    margin-top: 14px;
}

.tnv-two-factor__results {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.tnv-two-factor__results-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
}

.ck-content .tnv-two-factor h3,
.tnv-two-factor h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 4px;
}

.tnv-two-factor__status {
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}

.tnv-two-factor__table-wrap {
    overflow-x: auto;
}

.ck-content .tnv-two-factor__table,
.tnv-two-factor__table {
    border: 0;
    border-collapse: collapse;
    margin: 0;
    min-width: 720px;
    width: 100%;
}

.ck-content .tnv-two-factor__table th,
.ck-content .tnv-two-factor__table td,
.tnv-two-factor__table th,
.tnv-two-factor__table td {
    border: 0;
    border-bottom: 1px solid #edf1f5;
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
}

.ck-content .tnv-two-factor__table th,
.tnv-two-factor__table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.ck-content .tnv-two-factor__table th:nth-child(2),
.ck-content .tnv-two-factor__table td:nth-child(2),
.tnv-two-factor__table th:nth-child(2),
.tnv-two-factor__table td:nth-child(2) {
    text-align: center;
}

.tnv-two-factor__table tbody tr:last-child td {
    border-bottom: 0;
}

.tnv-two-factor__code {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #cdd9e6;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    gap: 12px;
    letter-spacing: .16em;
    padding: 12px 14px 12px 16px;
}

.tnv-two-factor__code svg {
    height: 18px;
    width: 18px;
}

.tnv-two-factor__code:hover,
.tnv-two-factor__code:focus-visible {
    border-color: var(--tnv-2fa-primary);
    color: var(--tnv-2fa-primary);
    outline: 0;
}

.tnv-two-factor__countdown {
    color: #dc2626;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.tnv-two-factor__invalid {
    background: #fff1f2;
    border-radius: 999px;
    color: #be123c;
    display: inline-block;
    font-size: 13px;
    font-weight: 650;
    padding: 7px 10px;
}

.tnv-two-factor__key {
    background: transparent;
    color: var(--tnv-2fa-text);
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 767px) {
    .tnv-two-factor__results {
        margin-top: 22px;
    }

    .tnv-two-factor__results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* QR Code Generator */
.tnv-qr-generator {
    --tnv-qr-primary: var(--primary-color, #0c55aa);
    --tnv-qr-primary-rgb: var(--primary-color-rgb, 12, 85, 170);
    --tnv-qr-heading: #1f2937;
    --tnv-qr-text: #4b5563;
    --tnv-qr-muted: #6b7280;
    --tnv-qr-border: #dfe3e8;
    --tnv-qr-surface: #fff;
    color: var(--tnv-qr-heading);
}

.tnv-qr-generator [hidden] {
    display: none !important;
}

.tnv-qr-generator__workspace {
    align-items: start;
    display: grid;
    gap: clamp(18px, 2vw, 26px);
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
}

.tnv-qr-generator__card {
    background: var(--tnv-qr-surface);
    border: 1px solid var(--tnv-qr-border);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .045);
    min-width: 0;
}

.tnv-qr-generator__preview-card {
    position: sticky;
    top: 20px;
}

.tnv-qr-generator__card-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(20px, 3vw, 30px);
}

.ck-content .tnv-qr-generator h2,
.tnv-qr-generator h2 {
    color: var(--tnv-qr-heading);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0 0 7px;
}

.ck-content .tnv-qr-generator__card p,
.tnv-qr-generator__card p {
    color: var(--tnv-qr-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.tnv-qr-generator__types {
    background: #f4f6f8;
    border: 1px solid #e4e8ed;
    border-radius: 11px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px;
}

.tnv-qr-generator__type {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--tnv-qr-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    min-height: 40px;
    padding: 8px 7px;
    transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.tnv-qr-generator__type:hover,
.tnv-qr-generator__type:focus-visible {
    color: var(--tnv-qr-primary);
    outline: 0;
}

.tnv-qr-generator__type.is-active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
    color: var(--tnv-qr-primary);
}

.tnv-qr-generator__panels {
    min-height: 82px;
}

.tnv-qr-generator__field,
.tnv-qr-generator__color {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tnv-qr-generator__field + .tnv-qr-generator__field {
    margin-top: 15px;
}

.tnv-qr-generator__field > span:first-child,
.tnv-qr-generator__color > span:first-child {
    color: var(--tnv-qr-heading);
    font-size: 14px;
    font-weight: 700;
}

.tnv-qr-generator__field small {
    color: var(--tnv-qr-muted);
    font-size: 12px;
    font-weight: 500;
}

.tnv-qr-generator__field .form-control,
.tnv-qr-generator__field .form-select {
    background-color: #fbfdff;
    border-color: #d6dce3;
    border-radius: 8px;
    color: var(--tnv-qr-heading);
    font-size: 14px;
    min-height: 42px;
    padding: 8px 11px;
}

.tnv-qr-generator__field .form-control:focus,
.tnv-qr-generator__field .form-select:focus {
    background-color: #fff;
    border-color: var(--tnv-qr-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-qr-primary-rgb), .11);
}

.tnv-qr-generator__textarea {
    line-height: 1.55;
    min-height: 110px;
    resize: vertical;
}

.tnv-qr-generator__field-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: minmax(0, 1.4fr) minmax(150px, .8fr);
    margin-bottom: 15px;
}

.tnv-qr-generator__field-grid > .tnv-qr-generator__field + .tnv-qr-generator__field {
    margin-top: 0;
}

.tnv-qr-generator__check {
    align-items: center;
    color: var(--tnv-qr-heading);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    margin-top: 15px;
}

.tnv-qr-generator__check input {
    accent-color: var(--tnv-qr-primary);
    height: 17px;
    width: 17px;
}

.tnv-qr-generator__divider {
    border-top: 1px solid #edf0f3;
}

.tnv-qr-generator__design-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tnv-qr-generator__color-control {
    align-items: center;
    background: #fbfdff;
    border: 1px solid #d6dce3;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 42px;
    padding: 6px 9px;
}

.tnv-qr-generator__design-grid .tnv-qr-generator__color-control,
.tnv-qr-generator__design-grid .form-select {
    height: 56px;
    min-height: 56px;
}

.tnv-qr-generator__color-control input {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid #d6dce3;
    border-radius: 50%;
    cursor: pointer;
    height: 34px;
    overflow: hidden;
    padding: 0;
    width: 34px;
}

.tnv-qr-generator__color-control input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.tnv-qr-generator__color-control input::-webkit-color-swatch {
    border: 0;
    border-radius: 50%;
}

.tnv-qr-generator__color-control input::-moz-color-swatch {
    border: 0;
    border-radius: 50%;
}

.tnv-qr-generator__color-control output {
    color: var(--tnv-qr-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.tnv-qr-generator__submit,
.tnv-qr-generator__download {
    align-items: center;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 43px;
    padding: 10px 15px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.tnv-qr-generator__submit {
    background: var(--tnv-qr-primary);
    border: 1px solid var(--tnv-qr-primary);
    color: #fff;
    width: 100%;
}

.tnv-qr-generator__submit:hover,
.tnv-qr-generator__submit:focus-visible {
    box-shadow: 0 7px 18px rgba(var(--tnv-qr-primary-rgb), .2);
    filter: brightness(.96);
    outline: 0;
}

.tnv-qr-generator__submit:disabled,
.tnv-qr-generator__download:disabled {
    cursor: wait;
    opacity: .55;
}

.tnv-qr-generator__submit svg,
.tnv-qr-generator__download svg {
    height: 18px;
    width: 18px;
}

.tnv-qr-generator__error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 9px;
    color: #be123c;
    font-size: 14px;
    line-height: 1.5;
    padding: 11px 13px;
}

.tnv-qr-generator__preview {
    align-items: center;
    aspect-ratio: 1;
    background-color: #f6f8fa;
    background-image:
        linear-gradient(45deg, #eef1f4 25%, transparent 25%),
        linear-gradient(-45deg, #eef1f4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef1f4 75%),
        linear-gradient(-45deg, transparent 75%, #eef1f4 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border: 1px solid #e2e7ec;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: clamp(12px, 3vw, 22px);
}

.tnv-qr-generator__preview canvas {
    box-shadow: 0 8px 25px rgba(15, 23, 42, .1);
    display: block;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    width: 100%;
}

.ck-content .tnv-qr-generator__status,
.tnv-qr-generator__status {
    color: #15803d;
    font-size: 13px;
    font-weight: 650;
    min-height: 21px;
    text-align: center;
}

.tnv-qr-generator__downloads {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tnv-qr-generator__download {
    background: #fff;
    border: 1px solid #d6dce3;
    color: var(--tnv-qr-heading);
}

.tnv-qr-generator__download:hover,
.tnv-qr-generator__download:focus-visible {
    border-color: var(--tnv-qr-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-qr-primary-rgb), .11);
    color: var(--tnv-qr-primary);
    outline: 0;
}

.tnv-qr-generator__encoded {
    background: #f8fafc;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    padding: 12px 13px;
}

.tnv-qr-generator__encoded > span {
    color: var(--tnv-qr-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ck-content .tnv-qr-generator__encoded code,
.tnv-qr-generator__encoded code {
    background: transparent;
    color: var(--tnv-qr-heading);
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    max-height: 72px;
    overflow: auto;
    overflow-wrap: anywhere;
    padding: 0;
    white-space: pre-wrap;
}

.ck-content .tnv-qr-generator__privacy,
.tnv-qr-generator__privacy {
    align-items: flex-start;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
    display: flex;
    font-size: 13px;
    gap: 9px;
    padding: 11px 12px;
}

.tnv-qr-generator__privacy svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

@media (max-width: 991px) {
    .tnv-qr-generator__workspace {
        grid-template-columns: 1fr;
    }

    .tnv-qr-generator__preview-card {
        position: static;
    }

    .tnv-qr-generator__preview {
        margin-inline: auto;
        max-width: 520px;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .tnv-qr-generator__types {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tnv-qr-generator__field-grid,
    .tnv-qr-generator__design-grid {
        grid-template-columns: 1fr;
    }

    .tnv-qr-generator__field-grid {
        margin-bottom: 15px;
    }

    .tnv-qr-generator__downloads {
        grid-template-columns: 1fr;
    }
}

/* Refund calculator */
.tnv-refund {
    --tnv-refund-primary: var(--primary-color, #0c55aa);
    color: #1f2937;
}

.tnv-refund [hidden] {
    display: none !important;
}

.tnv-refund__workspace {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.tnv-refund__card {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.045);
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
}

.ck-content .tnv-refund h2,
.tnv-refund h2 {
    color: #1f2937;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 0 0 8px;
}

.ck-content .tnv-refund p,
.tnv-refund p {
    color: #55585b;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.tnv-refund__fields {
    display: grid;
    gap: 22px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px 0 20px;
}

.tnv-refund__field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.tnv-refund__field > span:first-child {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.tnv-refund .form-control {
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    color: #1f2937;
    font-size: 16px;
    min-height: 46px;
    min-width: 0;
    padding: 10px 12px;
    width: 100%;
}

.tnv-refund .form-control:focus {
    border-color: var(--tnv-refund-primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 12, 85, 170), 0.1);
    outline: none;
}

.tnv-refund .form-control[aria-invalid="true"] {
    border-color: #b42318;
}

.tnv-refund__money-field {
    position: relative;
}

.tnv-refund__money-field .form-control {
    padding-right: 52px;
}

.tnv-refund__money-field > span {
    color: #6b7280;
    font-size: 13px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.ck-content .tnv-refund .tnv-refund__hint,
.tnv-refund .tnv-refund__hint {
    background: #f5f7fa;
    border-radius: 8px;
    font-size: 13px;
    padding: 12px 14px;
}

.ck-content .tnv-refund .tnv-refund__error,
.tnv-refund .tnv-refund__error {
    color: #b42318;
    font-size: 14px;
    margin-top: 16px;
}

.tnv-refund__submit,
.tnv-refund__copy {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    line-height: 1.4;
    min-height: 46px;
    padding: 11px 18px;
}

.tnv-refund__submit {
    background: var(--tnv-refund-primary);
    color: #fff;
    margin-top: 24px;
    width: 100%;
}

.tnv-refund__submit:hover {
    filter: brightness(0.92);
}

.tnv-refund__submit:focus-visible,
.tnv-refund__copy:focus-visible {
    outline: 2px solid var(--tnv-refund-primary);
    outline-offset: 3px;
}

.tnv-refund__result-card {
    background: #f8faff;
}

.tnv-refund__empty {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    min-height: 260px;
    text-align: center;
}

.tnv-refund__empty-icon {
    align-items: center;
    background: #e9eff9;
    border-radius: 16px;
    color: var(--tnv-refund-primary);
    display: inline-flex;
    height: 64px;
    justify-content: center;
    margin-bottom: 20px;
    width: 64px;
}

.tnv-refund__empty-icon svg {
    height: 32px;
    width: 32px;
}

.ck-content .tnv-refund .tnv-refund__total,
.tnv-refund .tnv-refund__total {
    color: var(--tnv-refund-primary);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.2;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.tnv-refund__currency {
    font-size: 0.55em;
    font-weight: 600;
    letter-spacing: 0;
    margin-left: 0.12em;
}

.tnv-refund__metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0;
}

.tnv-refund__metrics > div {
    background: #fff;
    border: 1px solid #e2e7ef;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
}

.tnv-refund__metrics dt {
    color: #55585b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.tnv-refund__metrics dd {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.tnv-refund__calculation {
    border-top: 1px solid #dfe3e8;
    padding-top: 18px;
}

.tnv-refund__calculation > span {
    color: #374151;
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ck-content .tnv-refund__calculation p,
.tnv-refund__calculation p {
    color: #1f2937;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.tnv-refund__calculation small {
    color: #55585b;
    font-size: 12px;
}

.tnv-refund__copy {
    background: #fff;
    border-color: #d8dde3;
    color: #374151;
    margin-top: 20px;
}

.tnv-refund__copy:hover {
    border-color: var(--tnv-refund-primary);
    color: var(--tnv-refund-primary);
}

.tnv-refund__copy svg {
    height: 18px;
    width: 18px;
}

.ck-content .tnv-refund .tnv-refund__copy-status,
.tnv-refund .tnv-refund__copy-status {
    font-size: 13px;
    margin-top: 8px;
}

@media (max-width: 991px) {
    .tnv-refund__workspace {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .tnv-refund__fields {
        gap: 18px;
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-refund__copy {
        width: 100%;
    }
}

/* Industry dropdown: two columns on desktop; mobile uses Nest's accordion. */
@media (min-width: 992px) {
    body[data-tnv-theme="nest"] .main-menu > nav > ul > li.tnv-industry-menu > ul.sub-menu {
        width: 420px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: column;
        grid-template-rows: repeat(6, auto);
        gap: 15px 16px;
    }
    body[data-tnv-theme="nest"] .main-menu > nav > ul > li.tnv-industry-menu > ul.sub-menu > li {
        display: block;
        margin: 0;
        width: auto;
    }
    body[data-tnv-theme="nest"] .main-menu > nav > ul > li.tnv-industry-menu:focus-within > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        margin-top: 12px;
    }
}
