html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f7f9fb;
    color: #111827;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.tst-brand-text,
h1, h2, h3, h4, h5, h6 {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #0f172a;
    margin: 0 0 20px;
}

/* Legacy Bootstrap helper used by many views ("border-bottom border-gray").
   Tailwind v4 has no plain "border-gray" (only shaded variants); without this
   the line falls back to currentColor (text color) and looks too dark. */
.border-gray {
    border-color: #e2e8f0 !important;
}

a {
    color: #2563eb;
}

a:hover {
    color: #1d4ed8;
}

img {
    max-width: 100%;
}

.tst-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dfe7ef;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.tst-nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    min-height: 56px;
    margin: 0 auto;
    padding: 8px 24px;
    gap: 16px;
}

.tst-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    text-decoration: none;
}

.tst-brand:hover {
    color: #111827;
    text-decoration: none;
}

.tst-brand-logo {
    display: block;
    width: 34px;
    height: 34px;
    padding: 4px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    object-fit: contain;
}

.tst-brand-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.tst-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
}

.tst-nav-links,
.tst-auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tst-language-form {
    margin: 0;
}

.tst-language-select {
    min-height: 38px;
    padding: 8px 32px 8px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.tst-language-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tst-nav-links {
    margin-left: 24px;
}

.tst-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.tst-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.tst-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.tst-btn-primary,
.tst-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.tst-btn-primary {
    border: 1px solid #111827;
    background: #111827;
    color: #ffffff;
}

.tst-btn-primary:hover {
    background: #253044;
    color: #ffffff;
    text-decoration: none;
}

.tst-btn-secondary {
    border: 1px solid #cfd8e3;
    background: #ffffff;
    color: #111827;
}

.tst-btn-secondary:hover {
    border-color: #97a8ba;
    color: #111827;
    text-decoration: none;
}

.tst-admin-menu {
    position: relative;
}

.tst-admin-summary {
    list-style: none;
    cursor: pointer;
}

.tst-admin-summary::-webkit-details-marker {
    display: none;
}

.tst-admin-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    min-width: 208px;
    padding: 8px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.tst-admin-item {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.tst-admin-item:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.tst-main-shell {
    max-width: 1280px;
    min-height: calc(100vh - 142px);
    margin: 0 auto;
    padding: 32px 24px;
}

.tst-main-home {
    min-height: calc(100vh - 142px);
}

.tst-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
}

.container,
.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.container {
    max-width: 1280px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-9,
.col-lg-2,
.col-lg-10 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col {
    flex: 1 0 0%;
}

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-muted { color: #64748b !important; }
.text-danger { color: #dc2626 !important; }
.text-white { color: #ffffff !important; }
.bg-white { background-color: #ffffff !important; }
.bg-light { background-color: #f8fafc !important; }
.bg-dark { background-color: #111827 !important; }
.bg-primary { background-color: #2563eb !important; }
.bg-success { background-color: #16a34a !important; }
.bg-danger { background-color: #dc2626 !important; }
.bg-info { background-color: #0891b2 !important; }
.bg-secondary { background-color: #64748b !important; }
.border-top { border-top: 1px solid #e2e8f0 !important; }
.border-bottom { border-bottom: 1px solid #e2e8f0 !important; }
.shadow,
.box-shadow { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important; }
.rounded { border-radius: 8px !important; }
.list-unstyled { padding-left: 0; list-style: none; }
.position-sticky { position: sticky !important; }
.align-text-bottom { vertical-align: text-bottom !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.p-5 { padding: 32px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.px-3 { padding-right: 16px !important; padding-left: 16px !important; }
.px-4 { padding-right: 24px !important; padding-left: 24px !important; }
.pt-3 { padding-top: 16px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 16px !important; }
.m-0 { margin: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-3 { margin-top: 16px !important; margin-bottom: 16px !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.mt-3 { margin-top: 16px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.ml-1 { margin-left: 4px !important; }
.ml-2 { margin-left: 8px !important; }
.mr-2,
.me-2 { margin-right: 8px !important; }
.w-100 { width: 100% !important; }
.small { font-size: 12px; }
.lead { color: #475569; font-size: 18px; line-height: 1.6; }
.display-4 { font-size: 40px; font-weight: 900; line-height: 1.1; }
.font-weight-normal { font-weight: 700 !important; }
.lh-125 { line-height: 1.25 !important; }

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
}

.alert-danger { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.alert-info { border-color: #bae6fd; background: #f0f9ff; color: #075985; }
.alert-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }

.media {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.media-body {
    min-width: 0;
    flex: 1;
}

.form-group {
    margin-bottom: 16px;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.form-control,
.custom-select {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    outline: none;
}

.form-control:focus,
.custom-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.form-control-sm {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 12px;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.input-group > .form-control,
.input-group > .custom-select {
    flex: 1 1 200px;
    width: auto;
    min-width: 0;
}

.input-group-prepend,
.input-group-append {
    display: flex;
}

.input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #111827;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.custom-file {
    display: flex;
    align-items: center;
    min-height: 40px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.custom-file-input {
    width: 100%;
    padding: 8px 12px;
}

.custom-file-label {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn:hover {
    text-decoration: none;
}

.btn-primary { border-color: #111827; background: #111827; color: #ffffff; }
.btn-primary:hover { background: #253044; color: #ffffff; }
.btn-secondary { border-color: #cbd5e1; background: #e2e8f0; color: #111827; }
.btn-success { border-color: #16a34a; background: #16a34a; color: #ffffff; }
.btn-danger { border-color: #dc2626; background: #dc2626; color: #ffffff; }
.btn-link { min-height: 0; padding: 0; border-color: transparent; background: transparent; box-shadow: none; }
.btn-outline-primary { border-color: #2563eb; background: #ffffff; color: #2563eb; }
.btn-outline-secondary { border-color: #94a3b8; background: #ffffff; color: #475569; }
.btn-outline-success { border-color: #16a34a; background: #ffffff; color: #15803d; }
.btn-outline-danger { border-color: #dc2626; background: #ffffff; color: #b91c1c; }
.btn-outline-dark { border-color: #111827; background: #ffffff; color: #111827; }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.btn-lg { min-height: 46px; padding: 12px 20px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin-top: 0;
}

.card-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.badge-primary { background: #2563eb; }
.badge-success { background: #16a34a; }
.badge-danger { background: #dc2626; }
.badge-info { background: #0891b2; }
.badge-secondary { background: #64748b; }
.badge-dark { background: #111827; }

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    margin: 16px 0 0;
    list-style: none;
}

.page-link,
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-weight: 900;
    text-decoration: none;
}

.pagination .active a,
.pagination .active span {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

h1 + .table,
h2 + .table,
h3 + .table,
h4 + .table,
h5 + .table,
h6 + .table {
    margin-top: 16px;
}

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    color: #111827;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* freeze-last has sticky cells — overflow:hidden would break right: 0 stickiness.
   The freeze-last-wrap parent handles horizontal scroll. */
.table.freeze-last {
    overflow: visible;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.table-scroll .table {
    min-width: 100%;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.table th,
.table td {
    padding: 10px 12px;
    vertical-align: middle;
    white-space: nowrap;
    border: 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.table th:last-child,
.table td:last-child {
    border-right: 0;
}

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

.table thead th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 900;
}

.table thead tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.table thead tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table-scroll::-webkit-scrollbar {
    height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.spinner-border {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
    width: 12px;
    height: 12px;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 206px);
    padding: 24px 0;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 28px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.auth-header {
    margin-bottom: 24px;
}

.auth-header h1 {
    margin-bottom: 0;
}

.auth-kicker {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form .form-group {
    margin-bottom: 14px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.auth-input {
    min-height: 46px;
    border-color: #cfd8e3;
    background: #fbfdff;
}

.auth-field-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.auth-row {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 16px;
    font-size: 13px;
    font-weight: 800;
}

.auth-submit,
.auth-google-button {
    width: 100%;
    min-height: 46px;
}

.auth-external-form {
    margin-bottom: 18px;
}

.auth-google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.auth-google-button:hover {
    border-color: #97a8ba;
    background: #f8fafc;
}

.auth-google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #dbe4ee;
    border-radius: 50%;
    color: #2563eb;
    font-size: 14px;
    font-weight: 900;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-footer-text {
    margin: 20px 0 0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.auth-footer-text a {
    font-weight: 900;
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.referral-stat {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.referral-stat span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.referral-stat strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.product-page-header,
.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.product-page-header p,
.admin-page-header p {
    max-width: 720px;
    margin: 0;
    color: #475569;
    font-size: 16px;
}

.download-page {
    min-height: calc(100vh - 206px);
    display: flex;
    align-items: center;
}

.download-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 28px;
    width: 100%;
    align-items: stretch;
}

.download-copy,
.download-panel {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.download-copy {
    padding: 36px;
}

.download-kicker {
    display: block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-copy h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: 42px;
    line-height: 1.08;
}

.download-copy p {
    max-width: 680px;
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.download-primary {
    min-height: 46px;
    padding: 12px 20px;
}

.download-version {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.download-panel {
    overflow: hidden;
}

.download-panel-header {
    display: flex;
    gap: 8px;
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #0f172a;
}

.download-panel-header span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
}

.download-panel-header span:first-child {
    background: #ef4444;
}

.download-panel-header span:nth-child(2) {
    background: #f59e0b;
}

.download-details {
    margin: 0;
    padding: 22px;
}

.download-details div {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.download-details div:last-child {
    border-bottom: 0;
}

.download-details dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.download-details dd {
    margin: 6px 0 0;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.product-kicker {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.pricing-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.pricing-plan.is-popular {
    border-color: #2563eb;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.14);
}

.pricing-badge {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.pricing-plan-header h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 22px;
}

.pricing-plan-header p {
    min-height: 42px;
    margin: 0;
    color: #64748b;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0 10px;
}

.pricing-price strong {
    color: #0f172a;
    font-size: 34px;
    font-weight: 900;
}

.pricing-price span,
.pricing-meta {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.pricing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 22px;
    margin-bottom: 16px;
}

.pricing-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.pricing-plan h3 {
    margin: 16px 0 8px;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
}

.pricing-list {
    margin: 0;
    padding-left: 18px;
    color: #111827;
    font-weight: 700;
}

.pricing-list.muted {
    color: #64748b;
}

.pricing-plan form {
    margin-top: auto;
    padding-top: 20px;
}

.product-rich-content {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.package-editor,
.package-list,
.package-admin-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.package-editor h2,
.package-list h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.package-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.package-form-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.package-translation-editor {
    margin-bottom: 16px;
}

.package-language-picker {
    max-width: 260px;
    margin-bottom: 12px;
}

.package-locale-grid {
    display: block;
}

.package-locale-panel {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.package-locale-panel[hidden] {
    display: none;
}

.package-locale-panel h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 16px;
}

.package-textarea {
    min-height: 120px;
    resize: vertical;
}

.package-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    color: #334155;
    font-weight: 800;
}

.package-checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.package-card-title,
.package-card-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.package-card-title {
    margin-bottom: 16px;
}

.package-card-title h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.package-card-title p {
    margin: 0;
    color: #64748b;
    font-weight: 800;
}

.package-status,
.package-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.package-delete-form {
    margin-top: 12px;
    text-align: right;
}

.home-buy-dialog {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-buy-dialog.hidden {
    display: none;
}

.home-buy-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.home-buy-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.home-buy-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.home-buy-dialog-header h2 {
    margin: 0;
    font-size: 18px;
}

.home-buy-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.home-buy-dialog-body {
    margin: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.home-buy-dialog-body.is-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.home-buy-dialog-body.is-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.home-buy-dialog-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 20px;
}

.tst-main-home,
.tst-main-home section {
    max-width: 100%;
    overflow-x: hidden;
}

.tst-main-home article,
.tst-main-home p,
.tst-main-home h1,
.tst-main-home h2,
.tst-main-home h3,
.tst-main-home span,
.tst-main-home a,
.tst-main-home li,
.home-buy-dialog-body {
    overflow-wrap: anywhere;
}

.auth-validation-errors {
    margin-top: 14px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
}

.auth-validation-errors ul {
    margin: 0;
    padding-left: 18px;
}

.auth-validation-errors li + li {
    margin-top: 4px;
}

.auth-terms-field {
    margin-top: 4px;
}

.auth-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.auth-check-input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #111827;
}

.auth-check-label a {
    font-weight: 900;
}

.privacy-page {
    max-width: 980px;
    margin: 0 auto;
}

.privacy-header,
.privacy-content {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.privacy-header {
    margin-bottom: 20px;
    padding: 34px;
}

.privacy-kicker {
    display: block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.privacy-header h1 {
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1.1;
}

.privacy-header p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.privacy-content {
    overflow: hidden;
}

.privacy-section {
    padding: 26px 34px;
    border-bottom: 1px solid #e2e8f0;
}

.privacy-section h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.privacy-section p,
.privacy-section li {
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
}

.privacy-section p {
    margin: 0;
}

.privacy-section p + p {
    margin-top: 10px;
}

.privacy-section ul {
    margin: 0;
    padding-left: 20px;
}

.privacy-section li + li {
    margin-top: 8px;
}

.privacy-en {
    font-style: italic;
}

.privacy-footer-note {
    padding: 22px 34px;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .offset-md-3 { margin-left: 25%; }
    .d-md-block { display: block !important; }
    .flex-md-nowrap { flex-wrap: nowrap !important; }
    .mb-md-0 { margin-bottom: 0 !important; }
    .px-md-4 { padding-right: 24px !important; padding-left: 24px !important; }
    .pt-md-5 { padding-top: 48px !important; }
    .pb-md-4 { padding-bottom: 24px !important; }
}

@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
}

@media (max-width: 991.98px) {
    .tst-nav-shell {
        align-items: center;
        flex-wrap: wrap;
        padding: 8px 16px;
    }

    .tst-menu-button {
        display: inline-flex;
    }

    .tst-menu {
        display: none;
        width: 100%;
        padding-top: 8px;
    }

    .tst-menu.is-open {
        display: block;
    }

    .tst-nav-links,
    .tst-auth-links {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

    .tst-auth-links {
        margin-top: 12px;
    }

    .tst-admin-dropdown {
        position: static;
        margin-top: 6px;
        box-shadow: none;
    }

    .auth-page {
        min-height: auto;
        padding: 8px 0 24px;
    }

    .auth-card {
        padding: 22px;
    }

    .product-page-header,
    .admin-page-header,
    .package-card-title,
    .package-card-actions {
        display: block;
    }

    .product-page-header .btn,
    .admin-page-header .btn {
        margin-top: 14px;
    }

    .package-delete-form {
        margin-top: 12px;
        text-align: left;
    }

    .download-page {
        align-items: flex-start;
        min-height: auto;
    }

    .download-hero {
        grid-template-columns: 1fr;
    }

    .download-copy {
        padding: 24px;
    }

    .download-copy h1 {
        font-size: 32px;
    }

    .privacy-header,
    .privacy-section,
    .privacy-footer-note {
        padding-right: 22px;
        padding-left: 22px;
    }

    .privacy-header h1 {
        font-size: 32px;
    }
}
