:root {
    --tneb-bg: #f6f8fb;
    --tneb-surface: #ffffff;
    --tneb-surface-muted: #eef5f1;
    --tneb-text: #132019;
    --tneb-muted: #5f6f66;
    --tneb-border: #dce6df;
    --tneb-primary: #137a3f;
    --tneb-primary-dark: #0d5d30;
    --tneb-accent: #f3b23c;
    --tneb-danger: #b42318;
    --tneb-radius: 8px;
    --tneb-shadow: 0 18px 50px rgba(14, 55, 34, 0.12);
}

html {
    scroll-behavior: smooth;
}

body.tneb-page {
    background: var(--tneb-bg);
    color: var(--tneb-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tneb-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--tneb-border);
    backdrop-filter: blur(16px);
}

.tneb-navbar {
    padding: 12px 0;
}

.tneb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tneb-text);
    font-weight: 800;
}

.tneb-brand:hover {
    color: var(--tneb-primary);
}

.tneb-brand-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
}

.tneb-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--tneb-primary);
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0;
}

.tneb-navbar .nav-link {
    color: var(--tneb-muted);
    font-weight: 600;
    padding: 8px 12px;
}

.tneb-navbar .nav-link:hover,
.tneb-navbar .nav-link:focus {
    color: var(--tneb-primary);
}

.tneb-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tneb-language-btn {
    background: #fff;
    border: 1px solid var(--tneb-border);
    color: var(--tneb-text);
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 14px;
}

.tneb-language-btn:hover,
.tneb-language-btn:focus {
    border-color: var(--tneb-primary);
    color: var(--tneb-primary);
}

.tneb-toggler {
    border-color: var(--tneb-border);
}

.tneb-nav-cta,
.tneb-primary-btn {
    background: var(--tneb-primary);
    border: 1px solid var(--tneb-primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 18px;
}

.tneb-nav-cta:hover,
.tneb-primary-btn:hover {
    background: var(--tneb-primary-dark);
    border-color: var(--tneb-primary-dark);
    color: #fff;
}

.tneb-secondary-btn {
    background: #fff;
    border: 1px solid var(--tneb-border);
    color: var(--tneb-text);
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 18px;
}

.tneb-secondary-btn:hover {
    border-color: var(--tneb-primary);
    color: var(--tneb-primary);
}

.tneb-hero {
    padding: 64px 0 52px;
    background:
        linear-gradient(135deg, rgba(19, 122, 63, 0.11), rgba(243, 178, 60, 0.12)),
        var(--tneb-bg);
}

.tneb-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
    gap: 38px;
    align-items: center;
}

.tneb-kicker {
    margin: 0 0 10px;
    color: var(--tneb-primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tneb-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--tneb-text);
    font-size: clamp(2.2rem, 4.2vw, 4.4rem);
    line-height: 1.04;
    font-weight: 800;
}

.tneb-hero-subtitle {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--tneb-muted);
    font-size: 1.08rem;
}

.tneb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.tneb-hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    max-width: 680px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.tneb-hero-points li {
    position: relative;
    padding-left: 24px;
    color: var(--tneb-muted);
    font-weight: 600;
}

.tneb-hero-points li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tneb-accent);
}

.tneb-calculator-card {
    background: var(--tneb-surface);
    border: 1px solid var(--tneb-border);
    border-radius: var(--tneb-radius);
    box-shadow: var(--tneb-shadow);
    padding: 24px;
}

.tneb-calculator-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.tneb-calculator-header p,
.tneb-field-help {
    margin: 7px 0 0;
    color: var(--tneb-muted);
    font-size: 0.94rem;
}

.tneb-calculator-form {
    margin-top: 20px;
}

.tneb-calculator-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--tneb-text);
    font-weight: 700;
}

.tneb-calculator-form input {
    width: 100%;
    height: 64px;
    border: 2px solid var(--tneb-border);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--tneb-text);
    font-size: 2rem;
    font-weight: 800;
    text-align: right;
    padding: 10px 14px;
}

.tneb-calculator-form input:focus {
    border-color: var(--tneb-primary);
    box-shadow: 0 0 0 4px rgba(19, 122, 63, 0.13);
    outline: none;
}

.tneb-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.tneb-key,
.tneb-calculate-btn {
    min-height: 52px;
    border-radius: 8px;
    border: 1px solid var(--tneb-border);
    font-size: 1.1rem;
    font-weight: 800;
}

.tneb-key {
    background: #f8fbf8;
    color: var(--tneb-text);
}

.tneb-key:hover {
    border-color: var(--tneb-primary);
    color: var(--tneb-primary);
}

.tneb-key-clear {
    color: var(--tneb-danger);
}

.tneb-calculate-btn {
    grid-column: 1 / -1;
    background: var(--tneb-primary);
    border-color: var(--tneb-primary);
    color: #fff;
}

.tneb-calculate-btn:hover {
    background: var(--tneb-primary-dark);
}

.tneb-result {
    margin-top: 20px;
}

.tneb-result-empty,
.tneb-error {
    border: 1px dashed var(--tneb-border);
    border-radius: 8px;
    color: var(--tneb-muted);
    padding: 16px;
    text-align: center;
}

.tneb-error {
    border-color: rgba(180, 35, 24, 0.3);
    color: var(--tneb-danger);
}

.tneb-section,
.tneb-trust-strip {
    padding: 72px 0;
}

.tneb-section-muted,
.tneb-trust-strip {
    background: var(--tneb-surface);
}

.tneb-section-heading {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.tneb-section-heading h2,
.tneb-two-column h2 {
    margin: 0 0 12px;
    color: var(--tneb-text);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
}

.tneb-section-heading p,
.tneb-two-column p {
    color: var(--tneb-muted);
    font-size: 1rem;
}

.tneb-trust-grid,
.tneb-benefit-grid,
.tneb-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tneb-benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tneb-trust-item,
.tneb-benefit-card,
.tneb-detail-card,
.tneb-name-card,
.tneb-steps,
.tneb-callout,
.tneb-payment-panel {
    background: var(--tneb-surface);
    border: 1px solid var(--tneb-border);
    border-radius: var(--tneb-radius);
    padding: 22px;
    box-shadow: 0 8px 28px rgba(14, 55, 34, 0.07);
}

.tneb-section-muted .tneb-trust-item,
.tneb-section-muted .tneb-benefit-card,
.tneb-section-muted .tneb-name-card,
.tneb-section-muted .tneb-steps {
    background: #fff;
}

.tneb-trust-item span,
.tneb-benefit-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: rgba(19, 122, 63, 0.1);
    color: var(--tneb-primary);
    font-weight: 800;
}

.tneb-trust-item strong,
.tneb-benefit-card h3,
.tneb-detail-card h3,
.tneb-name-card h3,
.tneb-steps h3,
.tneb-callout h3 {
    display: block;
    margin: 0 0 8px;
    color: var(--tneb-text);
    font-size: 1.12rem;
    font-weight: 800;
}

.tneb-trust-item p,
.tneb-benefit-card p,
.tneb-detail-card p,
.tneb-name-card p,
.tneb-callout p {
    margin: 0;
    color: var(--tneb-muted);
}

.tneb-two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
}

.tneb-steps ol {
    padding-left: 22px;
    margin: 0;
}

.tneb-steps li {
    margin-bottom: 10px;
    color: var(--tneb-text);
    font-weight: 600;
}

.tneb-example-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--tneb-border);
}

.tneb-example-box h4 {
    margin: 0 0 8px;
    color: var(--tneb-primary);
    font-size: 1rem;
    font-weight: 800;
}

.tneb-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--tneb-border);
    border-radius: var(--tneb-radius);
    background: #fff;
    box-shadow: 0 8px 28px rgba(14, 55, 34, 0.07);
}

.tneb-result-table-wrap {
    width: min(300px, 100%);
    margin: 0 auto;
    overflow-x: visible;
    border-radius: 0;
    box-shadow: none;
}

.tneb-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.tneb-result-table {
    min-width: 0;
    table-layout: fixed;
    background: #eeeeee;
    font-weight: 700;
}

.tneb-table th,
.tneb-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--tneb-border);
    vertical-align: top;
}

.tneb-result-table th,
.tneb-result-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    word-break: break-word;
}

.tneb-result-table th {
    background: #eeeeee;
    color: #000;
    font-size: 20px;
}

.tneb-result-table td {
    background: #eeeeee;
    font-size: 18px;
}

.tneb-result-table td:first-child {
    color: #0033ff;
}

.tneb-result-table td:last-child {
    color: #cc0000;
}

.tneb-result-table th:last-child,
.tneb-result-table td:last-child {
    text-align: center;
}

.tneb-total-row td {
    font-weight: 800;
}

.tneb-table th {
    background: #183625;
    color: #fff;
    font-size: 0.9rem;
}

.tneb-table tr:last-child td {
    border-bottom: 0;
}

.tneb-table td {
    color: var(--tneb-muted);
}

.tneb-table td:first-child {
    color: var(--tneb-text);
    font-weight: 800;
}

.tneb-note {
    margin: 16px 0 0;
    color: var(--tneb-muted);
    font-size: 0.94rem;
}

.tneb-callout {
    margin-top: 22px;
    border-left: 5px solid var(--tneb-accent);
}

.tneb-payment-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: #183625;
}

.tneb-payment-panel h2,
.tneb-payment-panel p {
    color: #fff;
}

.tneb-payment-panel .tneb-kicker {
    color: var(--tneb-accent);
}

.tneb-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.tneb-faq-list {
    max-width: 920px;
    margin: 0 auto;
}

.tneb-faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--tneb-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(14, 55, 34, 0.06);
}

.tneb-faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--tneb-text);
    font-weight: 800;
}

.tneb-faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--tneb-muted);
}

.tneb-footer {
    padding: 36px 0 10px;
    background: #232b3d;
    color: rgba(255, 255, 255, 0.78);
}

.tneb-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.tneb-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.tneb-footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.tneb-footer p {
    max-width: 560px;
    margin: 0;
    color: #fff;
    font-size: 0.88rem;
    line-height: 1.65;
}

.tneb-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    justify-content: flex-end;
}

.tneb-footer-links a {
    color: #fff;
    font-size: 0.86rem;
    text-decoration: none;
}

.tneb-footer-links a:hover {
    color: #fff;
}

.tneb-footer-note {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 991px) {
    .tneb-hero-grid,
    .tneb-two-column,
    .tneb-payment-panel,
    .tneb-footer-grid {
        grid-template-columns: 1fr;
    }

    .tneb-benefit-grid,
    .tneb-trust-grid,
    .tneb-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tneb-nav-cta {
        margin-top: 10px;
        width: 100%;
    }

    .tneb-nav-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 10px;
    }

    .tneb-language-btn {
        width: 100%;
    }

    .tneb-payment-actions,
    .tneb-footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .tneb-hero {
        padding: 40px 0;
    }

    .tneb-section,
    .tneb-trust-strip {
        padding: 52px 0;
    }

    .tneb-hero-points,
    .tneb-benefit-grid,
    .tneb-trust-grid,
    .tneb-detail-grid {
        grid-template-columns: 1fr;
    }

    .tneb-calculator-card {
        padding: 18px;
    }

}
